Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for fltab (0.05 sec)

  1. src/net/internal/socktest/sys_unix.go

    // Socket wraps [syscall.Socket].
    func (sw *Switch) Socket(family, sotype, proto int) (s int, err error) {
    	sw.once.Do(sw.init)
    
    	so := &Status{Cookie: cookie(family, sotype, proto)}
    	sw.fmu.RLock()
    	f := sw.fltab[FilterSocket]
    	sw.fmu.RUnlock()
    
    	af, err := f.apply(so)
    	if err != nil {
    		return -1, err
    	}
    	s, so.Err = syscall.Socket(family, sotype, proto)
    	if err = af.apply(so); err != nil {
    		if so.Err == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 4K bytes
    - Viewed (0)
  2. src/net/internal/socktest/sys_windows.go

    	sw.once.Do(sw.init)
    
    	so := &Status{Cookie: cookie(int(family), int(sotype), int(proto))}
    	sw.fmu.RLock()
    	f, _ := sw.fltab[FilterSocket]
    	sw.fmu.RUnlock()
    
    	af, err := f.apply(so)
    	if err != nil {
    		return syscall.InvalidHandle, err
    	}
    	s, so.Err = windows.WSASocket(family, sotype, proto, protinfo, group, flags)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  3. src/net/internal/socktest/switch.go

    )
    
    // A Switch represents a callpath point switch for socket system
    // calls.
    type Switch struct {
    	once sync.Once
    
    	fmu   sync.RWMutex
    	fltab map[FilterType]Filter
    
    	smu   sync.RWMutex
    	sotab Sockets
    	stats stats
    }
    
    func (sw *Switch) init() {
    	sw.fltab = make(map[FilterType]Filter)
    	sw.sotab = make(Sockets)
    	sw.stats = make(stats)
    }
    
    // Stats returns a list of per-cookie socket statistics.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  4. src/runtime/plugin.go

    }
    
    func pluginftabverify(md *moduledata) {
    	badtable := false
    	for i := 0; i < len(md.ftab); i++ {
    		entry := md.textAddr(md.ftab[i].entryoff)
    		if md.minpc <= entry && entry <= md.maxpc {
    			continue
    		}
    
    		f := funcInfo{(*_func)(unsafe.Pointer(&md.pclntable[md.ftab[i].funcoff])), md}
    		name := funcname(f)
    
    		// A common bug is f.entry has a relocation to a duplicate
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 15:10:48 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  5. src/runtime/symtab.go

    		throw("invalid function symbol table")
    	}
    
    	// ftab is lookup table for function by program counter.
    	nftab := len(datap.ftab) - 1
    	for i := 0; i < nftab; i++ {
    		// NOTE: ftab[nftab].entry is legal; it is the address beyond the final function.
    		if datap.ftab[i].entryoff > datap.ftab[i+1].entryoff {
    			f1 := funcInfo{(*_func)(unsafe.Pointer(&datap.pclntable[datap.ftab[i].funcoff])), datap}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 40K bytes
    - Viewed (0)
  6. src/cmd/covdata/metamerge.go

    		// the function and look it up in the package ftab to see if we've
    		// encountered it before. If we haven't, then register it with the
    		// meta-data builder.
    		fnhash := encodemeta.HashFuncDesc(fd)
    		gfidx, ok := mm.p.ftab[fnhash]
    		if !ok {
    			// We haven't seen this function before, need to add it to
    			// the meta data.
    			gfidx = uint32(mm.p.cmdb.AddFunc(*fd))
    			mm.p.ftab[fnhash] = gfidx
    			if *verbflag >= 3 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 12 17:17:47 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  7. src/cmd/link/internal/ld/symtab.go

    	// The filetab slice
    	sliceSym(pcln.filetab)
    
    	// The pctab slice
    	sliceSym(pcln.pctab)
    
    	// The pclntab slice
    	slice(pcln.pclntab, uint64(ldr.SymSize(pcln.pclntab)))
    
    	// The ftab slice
    	slice(pcln.pclntab, uint64(pcln.nfunc+1))
    
    	// findfunctab
    	moduledata.AddAddr(ctxt.Arch, pcln.findfunctab)
    	// minpc, maxpc
    	moduledata.AddAddr(ctxt.Arch, pcln.firstFunc)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 13 16:29:40 UTC 2023
    - 29.2K bytes
    - Viewed (0)
Back to top