Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 327 for syscall2 (0.61 sec)

  1. src/internal/trace/testdata/generators/go122-syscall-steal-proc-self.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 syscall P stealing.
    //
    // Specifically, it tests a scenario where a thread 'steals'
    // a P from itself. It's just a ProcStop with extra steps when
    // it happens on the same P.
    
    package main
    
    import (
    	"internal/trace"
    	"internal/trace/event/go122"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:15:28 UTC 2024
    - 1K bytes
    - Viewed (0)
  2. src/internal/trace/parser.go

    	EvGoSysCall         = 28 // syscall enter [timestamp, stack]
    	EvGoSysExit         = 29 // syscall exit [timestamp, goroutine id, seq, real timestamp]
    	EvGoSysBlock        = 30 // syscall blocks [timestamp]
    	EvGoWaiting         = 31 // denotes that goroutine is blocked when tracing starts [timestamp, goroutine id]
    	EvGoInSyscall       = 32 // denotes that goroutine is in syscall when tracing starts [timestamp, goroutine id]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:31:04 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  3. src/internal/trace/testdata/generators/go122-syscall-steal-proc-ambiguous.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 syscall P stealing.
    //
    // Specifically, it tests a scenerio wherein, without a
    // P sequence number of GoSyscallBegin, the syscall that
    // a ProcSteal applies to is ambiguous. This only happens in
    // practice when the events aren't already properly ordered
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:15:28 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  4. src/runtime/os_aix.go

    	throw("runPerThreadSyscall only valid on linux")
    }
    
    //go:nosplit
    func getuid() int32 {
    	r, errno := syscall0(&libc_getuid)
    	if errno != 0 {
    		print("getuid failed ", errno)
    		throw("getuid")
    	}
    	return int32(r)
    }
    
    //go:nosplit
    func geteuid() int32 {
    	r, errno := syscall0(&libc_geteuid)
    	if errno != 0 {
    		print("geteuid failed ", errno)
    		throw("geteuid")
    	}
    	return int32(r)
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  5. src/internal/runtime/syscall/syscall_linux.go

    // license that can be found in the LICENSE file.
    
    // Package syscall provides the syscall primitives required for the runtime.
    package syscall
    
    import (
    	"unsafe"
    )
    
    // TODO(https://go.dev/issue/51087): This package is incomplete and currently
    // only contains very minimal support for Linux.
    
    // Syscall6 calls system call number 'num' with arguments a1-6.
    func Syscall6(num, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2, errno uintptr)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:26:21 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  6. src/internal/trace/testdata/generators/go122-create-syscall-with-p.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Tests a G being created from within a syscall.
    //
    // Specifically, it tests a scenerio wherein a C
    // thread is calling into Go, creating a goroutine in
    // a syscall (in the tracer's model). Because the actual
    // m can be reused, it's possible for that m to have never
    // had its P (in _Psyscall) stolen if the runtime doesn't
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:15:28 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  7. src/syscall/zsyscall_openbsd_riscv64.go

    	r0, _, e1 := syscall(abi.FuncPCABI0(libc_read_trampoline), uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf))
    	n = int(r0)
    	if e1 != 0 {
    		err = errnoErr(e1)
    	}
    	return
    }
    
    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 04 07:51:20 UTC 2024
    - 47.5K bytes
    - Viewed (0)
  8. src/runtime/syscall_windows.go

    //go:linkname syscall_Syscall9 syscall.Syscall9
    //go:nosplit
    func syscall_Syscall9(fn, nargs, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2, err uintptr) {
    	args := [...]uintptr{a1, a2, a3, a4, a5, a6, a7, a8, a9}
    	return syscall_SyscallN(fn, args[:nargs]...)
    }
    
    //go:linkname syscall_Syscall12 syscall.Syscall12
    //go:nosplit
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:12:46 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  9. src/syscall/zsyscall_openbsd_arm.go

    func Fsync(fd int) (err error) {
    	_, _, e1 := syscall(abi.FuncPCABI0(libc_fsync_trampoline), uintptr(fd), 0, 0)
    	if e1 != 0 {
    		err = errnoErr(e1)
    	}
    	return
    }
    
    func libc_fsync_trampoline()
    
    //go:cgo_import_dynamic libc_fsync fsync "libc.so"
    
    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    func Ftruncate(fd int, length int64) (err error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 04 07:51:20 UTC 2024
    - 47.6K bytes
    - Viewed (0)
  10. src/internal/trace/testdata/generators/go122-syscall-steal-proc-gen-boundary.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
    - 1.1K bytes
    - Viewed (0)
Back to top