Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 69 for setitimer (0.14 sec)

  1. src/runtime/os_linux.go

    		// accurate reporting of its CPU usage; see issue 35057) and ignore any
    		// that it gets from the process-wide setitimer (to not over-count its
    		// CPU consumption).
    		return timer_create
    	}
    
    	// No active per-thread timer means the only valid profiler is setitimer.
    	return setitimer
    }
    
    func setProcessCPUProfiler(hz int32) {
    	setProcessCPUProfilerTimer(hz)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 25.9K bytes
    - Viewed (0)
  2. src/runtime/sys_openbsd2.go

    	errno = libcCall(unsafe.Pointer(abi.FuncPCABI0(pipe2_trampoline)), unsafe.Pointer(&args))
    	return p[0], p[1], errno
    }
    func pipe2_trampoline()
    
    //go:nosplit
    //go:cgo_unsafe_args
    func setitimer(mode int32, new, old *itimerval) {
    	libcCall(unsafe.Pointer(abi.FuncPCABI0(setitimer_trampoline)), unsafe.Pointer(&mode))
    	KeepAlive(new)
    	KeepAlive(old)
    }
    func setitimer_trampoline()
    
    //go:nosplit
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  3. src/runtime/os_openbsd_syscall2.go

    	n := sigset(0)
    	if new != nil {
    		n = *new
    	}
    	r := obsdsigprocmask(how, n)
    	if old != nil {
    		*old = r
    	}
    }
    
    func pipe2(flags int32) (r, w int32, errno int32)
    
    //go:noescape
    func setitimer(mode int32, new, old *itimerval)
    
    //go:noescape
    func sysctl(mib *uint32, miblen uint32, out *byte, size *uintptr, dst *byte, ndst uintptr) int32
    
    // mmap calls the mmap system call. It is implemented in assembly.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  4. src/runtime/os2_aix.go

    	return int32(r)
    }
    
    //go:nosplit
    func setitimer(mode int32, new, old *itimerval) {
    	r, err := syscall3(&libc_setitimer, uintptr(mode), uintptr(unsafe.Pointer(new)), uintptr(unsafe.Pointer(old)))
    	if int32(r) == -1 {
    		println("syscall setitimer failed: ", hex(err))
    		throw("syscall setitimer")
    	}
    }
    
    //go:nosplit
    func malloc(size uintptr) unsafe.Pointer {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 20.9K bytes
    - Viewed (0)
  5. src/runtime/os3_solaris.go

    //go:cgo_import_dynamic libc_sem_post sem_post "libc.so"
    //go:cgo_import_dynamic libc_sem_reltimedwait_np sem_reltimedwait_np "libc.so"
    //go:cgo_import_dynamic libc_sem_wait sem_wait "libc.so"
    //go:cgo_import_dynamic libc_setitimer setitimer "libc.so"
    //go:cgo_import_dynamic libc_sigaction sigaction "libc.so"
    //go:cgo_import_dynamic libc_sigaltstack sigaltstack "libc.so"
    //go:cgo_import_dynamic libc_sigprocmask sigprocmask "libc.so"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  6. src/runtime/os_dragonfly.go

    //go:noescape
    func sigaltstack(new, old *stackt)
    
    //go:noescape
    func sigaction(sig uint32, new, old *sigactiont)
    
    //go:noescape
    func sigprocmask(how int32, new, old *sigset)
    
    //go:noescape
    func setitimer(mode int32, new, old *itimerval)
    
    //go:noescape
    func sysctl(mib *uint32, miblen uint32, out *byte, size *uintptr, dst *byte, ndst uintptr) int32
    
    func raiseproc(sig uint32)
    
    func lwp_gettid() int32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/sys/unix/syscall_linux.go

    	}
    }
    
    // A value which may be passed to the which parameter for Getitimer and
    // Setitimer.
    type ItimerWhich int
    
    // Possible which values for Getitimer and Setitimer.
    const (
    	ItimerReal    ItimerWhich = ITIMER_REAL
    	ItimerVirtual ItimerWhich = ITIMER_VIRTUAL
    	ItimerProf    ItimerWhich = ITIMER_PROF
    )
    
    // Getitimer wraps getitimer(2) to return the current value of the timer
    // specified by which.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 05:26:45 UTC 2024
    - 77.5K bytes
    - Viewed (0)
  8. src/runtime/sys_darwin.go

    //go:cgo_unsafe_args
    func raiseproc(sig uint32) {
    	libcCall(unsafe.Pointer(abi.FuncPCABI0(raiseproc_trampoline)), unsafe.Pointer(&sig))
    }
    func raiseproc_trampoline()
    
    //go:nosplit
    //go:cgo_unsafe_args
    func setitimer(mode int32, new, old *itimerval) {
    	libcCall(unsafe.Pointer(abi.FuncPCABI0(setitimer_trampoline)), unsafe.Pointer(&mode))
    	KeepAlive(new)
    	KeepAlive(old)
    }
    func setitimer_trampoline()
    
    //go:nosplit
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  9. src/runtime/os_netbsd.go

    	// From NetBSD's <sys/ucontext.h>
    	_UC_SIGMASK = 0x01
    	_UC_CPU     = 0x04
    
    	// From <sys/lwp.h>
    	_LWP_DETACHED = 0x00000040
    )
    
    type mOS struct {
    	waitsemacount uint32
    }
    
    //go:noescape
    func setitimer(mode int32, new, old *itimerval)
    
    //go:noescape
    func sigaction(sig uint32, new, old *sigactiont)
    
    //go:noescape
    func sigaltstack(new, old *stackt)
    
    //go:noescape
    func sigprocmask(how int32, new, old *sigset)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  10. src/runtime/os_freebsd.go

    //go:noescape
    func thr_new(param *thrparam, size int32) int32
    
    //go:noescape
    func sigaltstack(new, old *stackt)
    
    //go:noescape
    func sigprocmask(how int32, new, old *sigset)
    
    //go:noescape
    func setitimer(mode int32, new, old *itimerval)
    
    //go:noescape
    func sysctl(mib *uint32, miblen uint32, out *byte, size *uintptr, dst *byte, ndst uintptr) int32
    
    func raiseproc(sig uint32)
    
    func thr_self() thread
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 11.6K bytes
    - Viewed (0)
Back to top