Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 27 of 27 for pkgIdx (0.13 sec)

  1. src/internal/coverage/decodemeta/decodefile.go

    func (r *CoverageMetaFileReader) GetPackagePayload(pkIdx uint32, payloadbuf []byte) ([]byte, error) {
    
    	// Determine correct offset/length.
    	if uint64(pkIdx) >= r.hdr.Entries {
    		return nil, fmt.Errorf("GetPackagePayload: illegal pkg index %d", pkIdx)
    	}
    	off := r.pkgOffsets[pkIdx]
    	len := r.pkgLengths[pkIdx]
    
    	if r.debug {
    		fmt.Fprintf(os.Stderr, "=-= for pk %d, off=%d len=%d\n", pkIdx, off, len)
    	}
    
    	if r.fileView != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Oct 14 22:30:23 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  2. src/runtime/covermeta.go

    )
    
    // The compiler emits calls to runtime.addCovMeta
    // but this code has moved to rtcov.AddMeta.
    func addCovMeta(p unsafe.Pointer, dlen uint32, hash [16]byte, pkgpath string, pkgid int, cmode uint8, cgran uint8) uint32 {
    	id := rtcov.AddMeta(p, dlen, hash, pkgpath, pkgid, cmode, cgran)
    	if id == 0 {
    		throw("runtime.addCovMeta: coverage package map collision")
    	}
    	return id
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 09:57:47 UTC 2024
    - 603 bytes
    - Viewed (0)
  3. src/internal/coverage/cfile/emit.go

    			}
    			if !isLive {
    				// Skip this function.
    				i += coverage.FirstCtrOffset + int(nCtrs) - 1
    				continue
    			}
    
    			if s.debug {
    				if pkgId != dpkg {
    					dpkg = pkgId
    					fmt.Fprintf(os.Stderr, "\n=+= %d: pk=%d visit live fcn",
    						i, pkgId)
    				}
    				fmt.Fprintf(os.Stderr, " {i=%d F%d NC%d}", i, funcId, nCtrs)
    			}
    
    			// Vet and/or fix up package ID. A package ID of zero
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 09:57:47 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  4. src/internal/coverage/cfile/apis.go

    	// value into main.XYZ's counter slab. However since we've just
    	// finished clearing the entire counter segment, we will have lost
    	// the values in the prolog portion of main.XYZ's counter slab
    	// (nctrs, pkgid, funcid). This means that later on at the end of
    	// program execution as we walk through the entire counter array
    	// for the program looking for executed functions, we'll zoom past
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 09:57:47 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  5. src/internal/coverage/defs.go

    // as a struct of the following form:
    //
    // struct {
    //     numCtrs uint32
    //     pkgid uint32
    //     funcid uint32
    //     counterArray [numBlocks]uint32
    // }
    //
    // where "numCtrs" is the number of blocks / coverable units within the
    // function, "pkgid" is the unique index assigned to this package by
    // the runtime, "funcid" is the index of this function within its containing
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 14 12:51:16 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/typecheck/_builtin/runtime.go

    func libfuzzerTraceConstCmp8(uint64, uint64, uint)
    func libfuzzerHookStrCmp(string, string, uint)
    func libfuzzerHookEqualFold(string, string, uint)
    
    func addCovMeta(p unsafe.Pointer, len uint32, hash [16]byte, pkpath string, pkgId int, cmode uint8, cgran uint8) uint32
    
    // architecture variants
    var x86HasPOPCNT bool
    var x86HasSSE41 bool
    var x86HasFMA bool
    var armHasVFPv4 bool
    var arm64HasATOMICS bool
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  7. src/cmd/cover/cover.go

    				atomicPackagePrefix(), cv, which, val)
    		}
    	}
    
    	// Generate the registration hook sequence for the function. This
    	// sequence looks like
    	//
    	//   counterVar[0] = <num_units>
    	//   counterVar[1] = pkgId
    	//   counterVar[2] = fnId
    	//
    	cv := f.fn.counterVar
    	regHook := hookWrite(cv, 0, strconv.Itoa(len(f.fn.units))) + " ; " +
    		hookWrite(cv, 1, mkPackageIdExpression()) + " ; " +
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 34.5K bytes
    - Viewed (0)
Back to top