Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 67 for ProcID (0.12 sec)

  1. src/cmd/trace/gstate.go

    type resource interface {
    	trace.GoID | trace.ProcID | trace.ThreadID
    }
    
    // noResource indicates the lack of a resource.
    const noResource = -1
    
    // gState represents the trace viewer state of a goroutine in a trace.
    //
    // The type parameter on this type is the resource which is used to construct
    // a timeline of events. e.g. R=ProcID for a proc-oriented view, R=GoID for
    // a goroutine-oriented view, etc.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  2. src/internal/trace/order.go

    type pState struct {
    	id     ProcID
    	status go122.ProcStatus
    	seq    seqCounter
    
    	// rangeState is the state of special time ranges bound to this proc.
    	rangeState
    }
    
    // mState is the state of a thread at a point in the trace.
    type mState struct {
    	g GoID   // Goroutine bound to this M. (The goroutine's state is Executing.)
    	p ProcID // Proc bound to this M. (The proc's state is Executing.)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 52.4K bytes
    - Viewed (0)
  3. src/runtime/export_debug_test.go

    	if gp.lockedm == 0 {
    		return nil, plainError("goroutine not locked to thread")
    	}
    
    	tid := int(gp.lockedm.ptr().procid)
    	if tid == 0 {
    		return nil, plainError("missing tid")
    	}
    
    	f := efaceOf(&fn)
    	if f._type == nil || f._type.Kind_&abi.KindMask != abi.Func {
    		return nil, plainError("fn must be a function")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  4. src/runtime/tracebuf.go

    		ts = w.traceBuf.lastTime + 1
    	}
    	w.traceBuf.lastTime = ts
    	w.traceBuf.link = nil
    	w.traceBuf.pos = 0
    
    	// Tolerate a nil mp.
    	mID := ^uint64(0)
    	if w.mp != nil {
    		mID = uint64(w.mp.procid)
    	}
    
    	// Write the buffer's header.
    	if exp == traceNoExperiment {
    		w.byte(byte(traceEvEventBatch))
    	} else {
    		w.byte(byte(traceEvExperimentalBatch))
    		w.byte(byte(exp))
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:47:01 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  5. src/internal/trace/reader.go

    			go121Events: convertOldFormat(tr),
    		}, nil
    	case version.Go122, version.Go123:
    		return &Reader{
    			r: br,
    			order: ordering{
    				mStates:     make(map[ThreadID]*mState),
    				pStates:     make(map[ProcID]*pState),
    				gStates:     make(map[GoID]*gState),
    				activeTasks: make(map[TaskID]taskState),
    			},
    			// Don't emit a sync event when we first go to emit events.
    			emittedSync: true,
    		}, nil
    	default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  6. src/runtime/traceevent.go

    		w = w.writeProcStatus(uint64(pp.id), procStatus, pp.trace.inSweep)
    	}
    	if gp := tl.mp.curg; gp != nil && !gp.trace.statusWasTraced(tl.gen) && gp.trace.acquireStatus(tl.gen) {
    		w = w.writeGoStatus(uint64(gp.goid), int64(tl.mp.procid), goStatus, gp.inMarkAssist, 0 /* no stack */)
    	}
    	return traceEventWriter{w}
    }
    
    // commit writes out a trace event and calls end. It's a helper to make the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:47:01 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  7. src/internal/trace/internal/testgen/go122/trace.go

    	case "gstatus":
    		u = uint64(arg.(go122.GoStatus))
    	case "g":
    		u = uint64(arg.(trace.GoID))
    	case "m":
    		u = uint64(arg.(trace.ThreadID))
    	case "p":
    		u = uint64(arg.(trace.ProcID))
    	case "string":
    		u = b.gen.String(arg.(string))
    	case "task":
    		u = uint64(arg.(trace.TaskID))
    	default:
    		panic(fmt.Sprintf("unsupported arg type %q for spec %q", typStr, argSpec))
    	}
    	return u
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  8. src/runtime/cgocall.go

    		hi := g0.stack.hi
    		lo := g0.stack.lo
    		g0.stack.hi = sp + 1024
    		g0.stack.lo = sp - 32*1024
    		g0.stackguard0 = g0.stack.lo + stackGuard
    		g0.stackguard1 = g0.stackguard0
    
    		print("M ", mp.id, " procid ", mp.procid, " runtime: cgocallback with sp=", hex(sp), " out of bounds [", hex(lo), ", ", hex(hi), "]")
    		print("\n")
    		exit(2)
    	}
    
    	if !mp.isextra {
    		// We allocated the stack for standard Ms. Don't replace the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:47 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  9. src/internal/trace/generation.go

    		if err != nil {
    			return nil, err
    		}
    		mid := ThreadID(m)
    
    		// Read the sample's P.
    		p, err := binary.ReadUvarint(r)
    		if err != nil {
    			return nil, err
    		}
    		pid := ProcID(p)
    
    		// Read the sample's G.
    		g, err := binary.ReadUvarint(r)
    		if err != nil {
    			return nil, err
    		}
    		goid := GoID(g)
    		if g == 0 {
    			goid = NoGoroutine
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 22:14:45 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  10. src/runtime/sys_linux_mipsx.s

    	// Check that SP is as we expect
    	NOP	R29	// tell vet R29/SP changed - stop checking offsets
    	MOVW	12(R29), R16
    	MOVW	$1234, R1
    	BEQ	R16, R1, 2(PC)
    	MOVW	(R0), R0
    
    	// Initialize m->procid to Linux tid
    	MOVW	$SYS_gettid, R2
    	SYSCALL
    
    	MOVW	0(R29), R16	// m
    	MOVW	4(R29), R17	// g
    	MOVW	8(R29), R18	// fn
    
    	BEQ	R16, nog
    	BEQ	R17, nog
    
    	MOVW	R2, m_procid(R16)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 18 20:57:24 UTC 2022
    - 9.7K bytes
    - Viewed (0)
Back to top