Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 164 for stackID (0.55 sec)

  1. src/runtime/stkframe.go

    				print("runtime: pcdata is ", stackid, " and ", stkmap.n, " locals stack map entries for ", funcname(f), " (targetpc=", hex(targetpc), ")\n")
    				throw("bad symbol table")
    			}
    			locals = stackmapdata(stkmap, stackid)
    			if stackDebug >= 3 && debug {
    				print("      locals ", stackid, "/", stkmap.n, " ", locals.n, " words ", locals.bytedata, "\n")
    			}
    		} else if stackDebug >= 3 && debug {
    			print("      no locals to adjust\n")
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 15:10:48 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  2. src/runtime/tracestatus.go

    func (w traceWriter) writeGoStatus(goid uint64, mid int64, status traceGoStatus, markAssist bool, stackID uint64) traceWriter {
    	// The status should never be bad. Some invariant must have been violated.
    	if status == traceGoBad {
    		print("runtime: goid=", goid, "\n")
    		throw("attempted to trace a bad status for a goroutine")
    	}
    
    	// Trace the status.
    	if stackID == 0 {
    		w = w.event(traceEvGoStatus, traceArg(goid), traceArg(uint64(mid)), traceArg(status))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 17:03:35 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  3. src/internal/trace/generation.go

    	return nil
    }
    
    // validateStackStrings makes sure all the string references in
    // the stack table are present in the string table.
    func validateStackStrings(
    	stacks *dataTable[stackID, stack],
    	strings *dataTable[stringID, string],
    	frames map[uint64]frame,
    ) error {
    	var err error
    	stacks.forEach(func(id stackID, stk stack) bool {
    		for _, pc := range stk.pcs {
    			frame, ok := frames[pc]
    			if !ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 22:14:45 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  4. src/internal/trace/base.go

    		},
    	}
    	e.base.args[0] = uint64(s.stack)
    	return e
    }
    
    // stack represents a goroutine stack sample.
    type stack struct {
    	pcs []uint64
    }
    
    func (s stack) String() string {
    	var sb strings.Builder
    	for _, frame := range s.pcs {
    		fmt.Fprintf(&sb, "\t%#v\n", frame)
    	}
    	return sb.String()
    }
    
    // frame represents a single stack frame.
    type frame struct {
    	pc     uint64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  5. src/cmd/trace/jsontrace_test.go

    		if keep {
    			filtered.Events = append(filtered.Events, e)
    		}
    	}
    	return
    }
    
    func stackFrames(data *format.Data, stackID int) (frames []string) {
    	for {
    		frame, ok := data.Frames[strconv.Itoa(stackID)]
    		if !ok {
    			return
    		}
    		frames = append(frames, frame.Name)
    		stackID = frame.Parent
    	}
    }
    
    func checkProcStartStop(t *testing.T, data format.Data) {
    	procStarted := map[uint64]bool{}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  6. src/internal/trace/event.go

    	Message string
    }
    
    // Stack represents a stack. It's really a handle to a stack and it's trivially comparable.
    //
    // If two Stacks are equal then their Frames are guaranteed to be identical. If they are not
    // equal, however, their Frames may still be equal.
    type Stack struct {
    	table *evTable
    	id    stackID
    }
    
    // Frames is an iterator over the frames in a Stack.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 12:39:00 UTC 2024
    - 28.9K bytes
    - Viewed (0)
  7. src/runtime/tracecpu.go

    		var flushed bool
    		w, flushed = w.ensure(2 + 5*traceBytesPerNumber /* traceEvCPUSamples + traceEvCPUSample + timestamp + g + m + p + stack ID */)
    		if flushed {
    			// Annotate the batch as containing strings.
    			w.byte(byte(traceEvCPUSamples))
    		}
    
    		// Add the stack to the table.
    		stackID := trace.stackTab[gen%2].put(pcBuf[:nstk])
    
    		// Write out the CPU sample.
    		w.byte(byte(traceEvCPUSample))
    		w.varint(timestamp)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 17:03:35 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  8. src/runtime/trace.go

    	}
    	statusWriter.flush().end()
    
    	// Read everything out of the last gen's CPU profile buffer.
    	traceReadCPU(gen)
    
    	// Flush CPU samples, stacks, and strings for the last generation. This is safe,
    	// because we're now certain no M is writing to the last generation.
    	//
    	// Ordering is important here. traceCPUFlush may generate new stacks and dumping
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 37.1K bytes
    - Viewed (0)
  9. src/internal/trace/oldtrace.go

    		// This should be impossible but let's be safe.
    		return fmt.Errorf("couldn't add strings: %w", addErr)
    	}
    
    	it.evt.strings.compactify()
    
    	// Convert stacks.
    	for id, stk := range pr.Stacks {
    		evt.stacks.insert(stackID(id), stack{pcs: stk})
    	}
    
    	// OPT(dh): if we could share the frame type between this package and
    	// oldtrace we wouldn't have to copy the map.
    	for pc, f := range pr.PCs {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  10. src/runtime/cgo/gcc_netbsd.c

    static void*
    threadentry(void *v)
    {
    	ThreadStart ts;
    	stack_t ss;
    
    	ts = *(ThreadStart*)v;
    	free(v);
    
    	// On NetBSD, a new thread inherits the signal stack of the
    	// creating thread. That confuses minit, so we remove that
    	// signal stack here before calling the regular mstart. It's
    	// a bit baroque to remove a signal stack here only to add one
    	// in minit, but it's a simple change that keeps NetBSD
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 15 03:55:51 UTC 2023
    - 1.7K bytes
    - Viewed (0)
Back to top