Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 67 for ProcID (0.14 sec)

  1. src/internal/trace/testdata/generators/go122-create-syscall-reuse-thread-id.go

    	// have a self-steal here potentially that doesn't make
    	// sense.
    	b1 := g.Batch(trace.ThreadID(0), 0)
    	b1.Event("ProcStatus", trace.ProcID(1), go122.ProcIdle)
    	b1.Event("ProcStart", trace.ProcID(1), testgen.Seq(1))
    	b1.Event("ProcSteal", trace.ProcID(0), testgen.Seq(3), trace.ThreadID(0))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:15:28 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  2. src/internal/trace/testdata/generators/go122-confuse-seq-across-generations.go

    	b10 := g1.Batch(trace.ThreadID(0), 0)
    	b10.Event("ProcStatus", trace.ProcID(0), go122.ProcRunning)
    	b10.Event("GoStatus", trace.GoID(1), trace.ThreadID(0), go122.GoRunning)
    	b10.Event("GoStop", "whatever", testgen.NoStack)
    
    	// The running goroutine gets unblocked.
    	b11 := g1.Batch(trace.ThreadID(1), 0)
    	b11.Event("ProcStatus", trace.ProcID(1), go122.ProcRunning)
    	b11.Event("GoStart", trace.GoID(1), testgen.Seq(1))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:15:28 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  3. src/internal/trace/resources.go

    	}
    	return GoID(r.id)
    }
    
    // Proc obtains a ProcID from the resource ID.
    //
    // r.Kind must be ResourceProc or this function will panic.
    func (r ResourceID) Proc() ProcID {
    	if r.Kind != ResourceProc {
    		panic(fmt.Sprintf("attempted to get ProcID from %s resource ID", r.Kind))
    	}
    	return ProcID(r.id)
    }
    
    // Thread obtains a ThreadID from the resource ID.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 8K bytes
    - Viewed (0)
  4. src/internal/trace/testdata/generators/go122-syscall-steal-proc-sitting-in-syscall.go

    	g := t.Generation(1)
    
    	// Steal proc from a goroutine that's been blocked
    	// in a syscall the entire generation.
    	b0 := g.Batch(trace.ThreadID(0), 0)
    	b0.Event("ProcStatus", trace.ProcID(0), go122.ProcSyscallAbandoned)
    	b0.Event("ProcSteal", trace.ProcID(0), testgen.Seq(1), trace.ThreadID(1))
    
    	// Status event for a goroutine blocked in a syscall for the entire generation.
    	bz := g.Batch(trace.NoThread, 0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:15:28 UTC 2024
    - 946 bytes
    - Viewed (0)
  5. src/internal/trace/testdata/generators/go122-syscall-steal-proc-ambiguous.go

    	b0.Event("GoSyscallEndBlocked")
    
    	// A running goroutine steals proc 0.
    	b1 := g.Batch(trace.ThreadID(1), 0)
    	b1.Event("ProcStatus", trace.ProcID(2), go122.ProcRunning)
    	b1.Event("GoStatus", trace.GoID(2), trace.ThreadID(1), go122.GoRunning)
    	b1.Event("ProcSteal", trace.ProcID(0), testgen.Seq(3), trace.ThreadID(0))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:15:28 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  6. src/internal/trace/testdata/generators/go122-syscall-steal-proc-simple-bare-m.go

    	b0 := g.Batch(trace.ThreadID(0), 0)
    	b0.Event("ProcStatus", trace.ProcID(0), go122.ProcRunning)
    	b0.Event("GoStatus", trace.GoID(1), trace.ThreadID(0), go122.GoRunning)
    	b0.Event("GoSyscallBegin", testgen.Seq(1), testgen.NoStack)
    	b0.Event("GoSyscallEndBlocked")
    
    	// A bare M steals the goroutine's P.
    	b1 := g.Batch(trace.ThreadID(1), 0)
    	b1.Event("ProcSteal", trace.ProcID(0), testgen.Seq(2), trace.ThreadID(0))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:15:28 UTC 2024
    - 855 bytes
    - Viewed (0)
  7. src/internal/trace/testdata/generators/go122-task-across-generations.go

    )
    
    func main() {
    	testgen.Main(gen)
    }
    
    func gen(t *testgen.Trace) {
    	g1 := t.Generation(1)
    
    	// A running goroutine emits a task begin.
    	b1 := g1.Batch(trace.ThreadID(0), 0)
    	b1.Event("ProcStatus", trace.ProcID(0), go122.ProcRunning)
    	b1.Event("GoStatus", trace.GoID(1), trace.ThreadID(0), go122.GoRunning)
    	b1.Event("UserTaskBegin", trace.TaskID(2), trace.TaskID(0) /* 0 means no parent, not background */, "my task", testgen.NoStack)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:15:28 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  8. src/internal/trace/testdata/generators/go122-create-syscall-with-p.go

    	// possible on other platforms, however.
    	b0 := g.Batch(trace.ThreadID(0), 0)
    	b0.Event("GoCreateSyscall", trace.GoID(4))
    	b0.Event("ProcStatus", trace.ProcID(0), go122.ProcIdle)
    	b0.Event("ProcStart", trace.ProcID(0), testgen.Seq(1))
    	b0.Event("GoSyscallEndBlocked")
    	b0.Event("GoStart", trace.GoID(4), testgen.Seq(1))
    	b0.Event("GoSyscallBegin", testgen.Seq(2), testgen.NoStack)
    	b0.Event("GoDestroySyscall")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:15:28 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  9. src/runtime/os_linux.go

    	minitSignals()
    
    	// Cgo-created threads and the bootstrap m are missing a
    	// procid. We need this for asynchronous preemption and it's
    	// useful in debuggers.
    	getg().m.procid = uint64(gettid())
    }
    
    // Called from dropm to undo the effect of an minit.
    //
    //go:nosplit
    func unminit() {
    	unminitSignals()
    	getg().m.procid = 0
    }
    
    // Called from exitm, but not from drop, to undo the effect of thread-owned
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 25.9K bytes
    - Viewed (0)
  10. src/runtime/os_netbsd.go

    	atomic.Xadd(&mp.waitsemacount, 1)
    	// From NetBSD's _lwp_unpark(2) manual:
    	// "If the target LWP is not currently waiting, it will return
    	// immediately upon the next call to _lwp_park()."
    	ret := lwp_unpark(int32(mp.procid), unsafe.Pointer(&mp.waitsemacount))
    	if ret != 0 && ret != _ESRCH {
    		// semawakeup can be called on signal stack.
    		systemstack(func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 10.1K bytes
    - Viewed (0)
Back to top