Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 204 for syscall0 (0.53 sec)

  1. src/internal/trace/testdata/generators/go122-syscall-steal-proc-reacquire-new-proc-bare-m.go

    // license that can be found in the LICENSE file.
    
    // Tests syscall P stealing.
    
    package main
    
    import (
    	"internal/trace"
    	"internal/trace/event/go122"
    	testgen "internal/trace/internal/testgen/go122"
    )
    
    func main() {
    	testgen.Main(gen)
    }
    
    func gen(t *testgen.Trace) {
    	g := t.Generation(1)
    
    	// One goroutine enters a syscall, grabs a P, and starts running.
    	b0 := g.Batch(trace.ThreadID(0), 0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:15:28 UTC 2024
    - 999 bytes
    - Viewed (0)
  2. src/internal/syscall/windows/syscall_windows.go

    		var s syscall.Handle
    		s, sendRecvMsgFunc.err = syscall.Socket(syscall.AF_INET, syscall.SOCK_DGRAM, syscall.IPPROTO_UDP)
    		if sendRecvMsgFunc.err != nil {
    			return
    		}
    		defer syscall.CloseHandle(s)
    		var n uint32
    		sendRecvMsgFunc.err = syscall.WSAIoctl(s,
    			syscall.SIO_GET_EXTENSION_FUNCTION_POINTER,
    			(*byte)(unsafe.Pointer(&WSAID_WSARECVMSG)),
    			uint32(unsafe.Sizeof(WSAID_WSARECVMSG)),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 22:55:25 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  3. src/internal/trace/testdata/generators/go122-syscall-steal-proc-gen-boundary-reacquire-new-proc-bare-m.go

    // license that can be found in the LICENSE file.
    
    // Tests syscall P stealing at a generation boundary.
    
    package main
    
    import (
    	"internal/trace"
    	"internal/trace/event/go122"
    	testgen "internal/trace/internal/testgen/go122"
    )
    
    func main() {
    	testgen.Main(gen)
    }
    
    func gen(t *testgen.Trace) {
    	g := t.Generation(1)
    
    	// One goroutine is exiting with a syscall. It already
    	// acquired a new P.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:15:28 UTC 2024
    - 1009 bytes
    - Viewed (0)
  4. src/runtime/syscall_windows.go

    // must be kept 16-byte aligned on syscall entry.
    //
    // Although it only permits maximum 42 parameters, it
    // is arguably large enough.
    const maxArgs = 42
    
    //go:linkname syscall_SyscallN syscall.SyscallN
    //go:nosplit
    func syscall_SyscallN(fn uintptr, args ...uintptr) (r1, r2, err uintptr) {
    	if len(args) > maxArgs {
    		panic("runtime: SyscallN has too many arguments")
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:12:46 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  5. src/internal/trace/testdata/tests/go122-syscall-steal-proc-sitting-in-syscall.test

    Carlos Amedee <******@****.***> 1715265901 -0400
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 429 bytes
    - Viewed (0)
  6. src/net/cgo_unix.go

    // This file is called cgo_unix.go, but to allow syscalls-to-libc-based
    // implementations to share the code, it does not use cgo directly.
    // Instead of C.foo it uses _C_foo, which is defined in either
    // cgo_unix_cgo.go or cgo_unix_syscall.go
    
    //go:build !netgo && ((cgo && unix) || darwin)
    
    package net
    
    import (
    	"context"
    	"errors"
    	"internal/bytealg"
    	"net/netip"
    	"syscall"
    	"unsafe"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:23:45 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  7. src/internal/trace/testdata/testprog/stress.go

    // Copyright 2023 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Tests a many interesting cases (network, syscalls, a little GC, busy goroutines,
    // blocked goroutines, LockOSThread, pipes, and GOMAXPROCS).
    
    //go:build ignore
    
    package main
    
    import (
    	"log"
    	"net"
    	"os"
    	"runtime"
    	"runtime/trace"
    	"sync"
    	"time"
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  8. src/cmd/trace/goroutinegen.go

    	}
    	if from == trace.GoSyscall && to != trace.GoRunning {
    		// Exiting blocked syscall.
    		gs.syscallEnd(ev.Time(), true, ctx)
    		gs.blockedSyscallEnd(ev.Time(), ev.Stack(), ctx)
    	} else if from == trace.GoSyscall {
    		// Check if we're exiting a syscall in a non-blocking way.
    		gs.syscallEnd(ev.Time(), false, ctx)
    	}
    
    	// Handle syscalls.
    	if to == trace.GoSyscall {
    		start := ev.Time()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  9. src/cmd/trace/procgen.go

    		// Goroutine exited a blocked syscall.
    		gs.blockedSyscallEnd(ev.Time(), ev.Stack(), ctx)
    	}
    
    	// Handle syscalls.
    	if to == trace.GoSyscall && ev.Proc() != trace.NoProc {
    		start := ev.Time()
    		if from == trace.GoUndetermined {
    			// Back-date the event to the start of the trace.
    			start = ctx.startTime
    		}
    		// Write down that we've entered a syscall. Note: we might have no P here
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  10. src/os/path_windows_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package os_test
    
    import (
    	"fmt"
    	"internal/syscall/windows"
    	"internal/testenv"
    	"os"
    	"path/filepath"
    	"strings"
    	"syscall"
    	"testing"
    )
    
    func TestAddExtendedPrefix(t *testing.T) {
    	// Test addExtendedPrefix instead of fixLongPath so the path manipulation code
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 23 16:37:32 UTC 2024
    - 8K bytes
    - Viewed (0)
Back to top