Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 21 for GoSyscall (0.15 sec)

  1. src/cmd/trace/threadgen.go

    		// Goroutine was created.
    		gs.created(ev.Time(), ev.Thread(), ev.Stack())
    	}
    	if from == trace.GoSyscall {
    		// Exiting syscall.
    		gs.syscallEnd(ev.Time(), to != trace.GoRunning, ctx)
    	}
    
    	// Handle syscalls.
    	if to == trace.GoSyscall {
    		start := ev.Time()
    		if from == trace.GoUndetermined {
    			// Back-date the event to the start of the trace.
    			start = ctx.startTime
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  2. src/internal/trace/event.go

    		s = goStateTransition(e.ctx.G, GoRunning, GoSyscall)
    		s.Stack = e.Stack() // This event references the resource the event happened on.
    	case go122.EvGoSyscallEnd:
    		s = goStateTransition(e.ctx.G, GoSyscall, GoRunning)
    		s.Stack = e.Stack() // This event references the resource the event happened on.
    	case go122.EvGoSyscallEndBlocked:
    		s = goStateTransition(e.ctx.G, GoSyscall, GoRunnable)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 12:39:00 UTC 2024
    - 28.9K bytes
    - Viewed (0)
  3. src/runtime/traceruntime.go

    		// We can fix this by acquiring the goroutine's scan bit.
    		w = w.writeGoStatus(gp.goid, -1, traceGoWaiting, gp.inMarkAssist, 0)
    	}
    	return w
    }
    
    // GoSysCall emits a GoSyscallBegin event.
    //
    // Must be called with a valid P.
    func (tl traceLocker) GoSysCall() {
    	// Scribble down the M that the P is currently attached to.
    	pp := tl.mp.p.ptr()
    	pp.trace.mSyscallID = int64(tl.mp.procid)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 25.7K bytes
    - Viewed (0)
  4. src/internal/trace/testtrace/validation.go

    }
    
    func (v *Validator) getOrCreateThread(e *errAccumulator, ev trace.Event, m trace.ThreadID) *schedContext {
    	lenient := func() bool {
    		// Be lenient about GoUndetermined -> GoSyscall transitions if they
    		// originate from an old trace. These transitions lack thread
    		// information in trace formats older than 1.22.
    		if !v.Go121 {
    			return false
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  5. src/internal/trace/event/go122/event.go

    	},
    }
    
    type GoStatus uint8
    
    const (
    	GoBad GoStatus = iota
    	GoRunnable
    	GoRunning
    	GoSyscall
    	GoWaiting
    )
    
    func (s GoStatus) String() string {
    	switch s {
    	case GoRunnable:
    		return "Runnable"
    	case GoRunning:
    		return "Running"
    	case GoSyscall:
    		return "Syscall"
    	case GoWaiting:
    		return "Waiting"
    	}
    	return "Bad"
    }
    
    type ProcStatus uint8
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  6. src/internal/trace/order.go

    	if !ok {
    		return curCtx, false, fmt.Errorf("event %s for goroutine (%v) that doesn't exist", go122.EventString(ev.typ), curCtx.G)
    	}
    	if state.status != go122.GoSyscall {
    		return curCtx, false, fmt.Errorf("%s event for goroutine that's not %v", go122.EventString(ev.typ), GoSyscall)
    	}
    	// This goroutine is exiting itself.
    	delete(o.gStates, curCtx.G)
    	newCtx := curCtx
    	newCtx.G = NoGoroutine
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 52.4K bytes
    - Viewed (0)
  7. src/internal/trace/summary.go

    				// Record sched latency time as we transition out of runnable.
    				if g.lastRunnableTime != 0 {
    					g.SchedWaitTime += ev.Time().Sub(g.lastRunnableTime)
    					g.lastRunnableTime = 0
    				}
    			case GoSyscall:
    				// Record syscall execution time and syscall block time as we transition out of syscall.
    				if g.lastSyscallTime != 0 {
    					if g.lastSyscallBlockTime != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 20.7K bytes
    - Viewed (0)
  8. src/cmd/trace/pprof.go

    	})
    }
    
    // computePprofSyscall returns a computePprofFunc that generates a syscall pprof-like
    // profile (time spent in syscalls).
    func computePprofSyscall() computePprofFunc {
    	return makeComputePprofFunc(trace.GoSyscall, func(_ string) bool {
    		return true
    	})
    }
    
    // computePprofSched returns a computePprofFunc that generates a scheduler latency pprof-like profile
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  9. src/cmd/trace/gstate.go

    	// startRunning is the most recent event that caused a goroutine to
    	// transition to GoRunning.
    	startRunningTime trace.Time
    
    	// startSyscall is the most recent event that caused a goroutine to
    	// transition to GoSyscall.
    	syscall struct {
    		time   trace.Time
    		stack  trace.Stack
    		active bool
    	}
    
    	// startBlockReason is the StateTransition.Reason of the most recent
    	// event that caused a goroutine to transition to GoWaiting.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  10. src/internal/trace/internal/oldtrace/parser.go

    	EvGoBlockSync:       {"GoBlockSync", 5, true, []string{}, nil},
    	EvGoBlockCond:       {"GoBlockCond", 5, true, []string{}, nil},
    	EvGoBlockNet:        {"GoBlockNet", 5, true, []string{}, nil},
    	EvGoSysCall:         {"GoSysCall", 5, true, []string{}, nil},
    	EvGoSysExit:         {"GoSysExit", 5, false, []string{"g", "seq", "ts"}, nil},
    	EvGoSysBlock:        {"GoSysBlock", 5, false, []string{}, nil},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:15:28 UTC 2024
    - 46.8K bytes
    - Viewed (0)
Back to top