Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 73 for tv_nsec (0.11 sec)

  1. src/runtime/sys_freebsd_arm.s

    	RET
    
    TEXT runtime·usleep(SB),NOSPLIT,$16
    	MOVW usec+0(FP), R0
    	CALL runtime·usplitR0(SB)
    	// 0(R13) is the saved LR, don't use it
    	MOVW R0, 4(R13) // tv_sec.low
    	MOVW $0, R0
    	MOVW R0, 8(R13) // tv_sec.high
    	MOVW $1000, R2
    	MUL R1, R2
    	MOVW R2, 12(R13) // tv_nsec
    
    	MOVW $4(R13), R0 // arg 1 - rqtp
    	MOVW $0, R1      // arg 2 - rmtp
    	MOVW $SYS_nanosleep, R7
    	SWI $0
    	RET
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 06 18:49:01 UTC 2023
    - 10.4K bytes
    - Viewed (0)
  2. src/runtime/sys_netbsd_arm.s

    TEXT runtime·usleep(SB),NOSPLIT,$16
    	MOVW usec+0(FP), R0
    	CALL runtime·usplitR0(SB)
    	// 0(R13) is the saved LR, don't use it
    	MOVW R0, 4(R13) // tv_sec.low
    	MOVW $0, R0
    	MOVW R0, 8(R13) // tv_sec.high
    	MOVW $1000, R2
    	MUL R1, R2
    	MOVW R2, 12(R13) // tv_nsec
    
    	MOVW $4(R13), R0 // arg 1 - rqtp
    	MOVW $0, R1      // arg 2 - rmtp
    	SWI $SYS___nanosleep50
    	RET
    
    TEXT runtime·lwp_kill(SB),NOSPLIT,$0-8
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 06 18:49:01 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  3. src/runtime/sys_openbsd_mips64.s

    	RET
    
    TEXT runtime·usleep(SB),NOSPLIT,$24-4
    	MOVWU	usec+0(FP), R3
    	MOVV	R3, R5
    	MOVW	$1000000, R4
    	DIVVU	R4, R3
    	MOVV	LO, R3
    	MOVV	R3, 8(R29)		// tv_sec
    	MOVW	$1000, R4
    	MULVU	R3, R4
    	MOVV	LO, R4
    	SUBVU	R4, R5
    	MOVV	R5, 16(R29)		// tv_nsec
    
    	ADDV	$8, R29, R4		// arg 1 - rqtp
    	MOVV	$0, R5			// arg 2 - rmtp
    	MOVV	$91, R2			// sys_nanosleep
    	SYSCALL
    	RET
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 06 18:49:01 UTC 2023
    - 8.8K bytes
    - Viewed (0)
  4. src/runtime/os_linux.go

    	if ret != 0 {
    		print("runtime: failed to configure profiling timer; timer_settime(", timerid,
    			", 0, {interval: {",
    			spec.it_interval.tv_sec, "s + ", spec.it_interval.tv_nsec, "ns} value: {",
    			spec.it_value.tv_sec, "s + ", spec.it_value.tv_nsec, "ns}}, nil) errno=", -ret, "\n")
    		throw("timer_settime")
    	}
    
    	mp.profileTimer = timerid
    	mp.profileTimerValid.Store(true)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 25.9K bytes
    - Viewed (0)
  5. src/runtime/sys_freebsd_amd64.s

    	JCC	2(PC)
    	MOVL	$0xf1, 0xf1  // crash
    	RET
    
    TEXT runtime·usleep(SB),NOSPLIT,$16
    	MOVL	$0, DX
    	MOVL	usec+0(FP), AX
    	MOVL	$1000000, CX
    	DIVL	CX
    	MOVQ	AX, 0(SP)		// tv_sec
    	MOVL	$1000, AX
    	MULL	DX
    	MOVQ	AX, 8(SP)		// tv_nsec
    
    	MOVQ	SP, DI			// arg 1 - rqtp
    	MOVQ	$0, SI			// arg 2 - rmtp
    	MOVL	$SYS_nanosleep, AX
    	SYSCALL
    	RET
    
    // set tls base to DI
    TEXT runtime·settls(SB),NOSPLIT,$8
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 06 18:49:01 UTC 2023
    - 12.7K bytes
    - Viewed (0)
  6. src/runtime/sys_linux_loong64.s

    	RET
    
    // func usleep(usec uint32)
    TEXT runtime·usleep(SB),NOSPLIT,$16-4
    	MOVWU	usec+0(FP), R7
    	MOVV	$1000, R6
    	MULVU	R6, R7, R7
    	MOVV	$1000000000, R6
    
    	DIVVU	R6, R7, R5	// ts->tv_sec
    	REMVU	R6, R7, R4	// ts->tv_nsec
    	MOVV	R5, 8(R3)
    	MOVV	R4, 16(R3)
    
    	// nanosleep(&ts, 0)
    	ADDV	$8, R3, R4
    	MOVV	R0, R5
    	MOVV	$SYS_nanosleep, R11
    	SYSCALL
    	RET
    
    // func gettid() uint32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 25 20:58:13 UTC 2023
    - 14.2K bytes
    - Viewed (0)
  7. src/runtime/sys_linux_ppc64x.s

    	MOVD	$0x8637bd06, R4
    	MULLD	R3, R4, R4	// Convert usec to S.
    	SRD	$51, R4, R4
    	MOVD	R4, 8(R1)	// Store to tv_sec
    
    	MOVD	$1000000, R5
    	MULLW	R4, R5, R5	// Convert tv_sec back into uS
    	SUB	R5, R3, R5	// Compute remainder uS.
    	MULLD	$1000, R5, R5	// Convert to nsec
    	MOVD	R5, 16(R1)	// Store to tv_nsec
    
    	// nanosleep(&ts, 0)
    	ADD	$8, R1, R3
    	MOVW	$0, R4
    	SYSCALL	$SYS_nanosleep
    	RET
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:17:17 UTC 2024
    - 18.1K bytes
    - Viewed (0)
  8. src/runtime/sys_darwin.go

    //
    //go:linkname walltime
    //go:nosplit
    //go:cgo_unsafe_args
    func walltime() (int64, int32) {
    	var t timespec
    	libcCall(unsafe.Pointer(abi.FuncPCABI0(walltime_trampoline)), unsafe.Pointer(&t))
    	return t.tv_sec, int32(t.tv_nsec)
    }
    func walltime_trampoline()
    
    //go:nosplit
    //go:cgo_unsafe_args
    func sigaction(sig uint32, new *usigactiont, old *usigactiont) {
    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/cmd/cgo/internal/testcarchive/testdata/main6.c

    	go_start_profile();
    
    	// Busy wait so we have something to profile.
    	// If we just sleep the profiling signal will never fire.
    	while (1) {
    		gettimeofday(&tvnow, NULL);
    		diff = (tvnow.tv_sec - tvstart.tv_sec) * 1000 * 1000 + (tvnow.tv_usec - tvstart.tv_usec);
    
    		// Profile frequency is 100Hz so we should definitely
    		// get a signal in 50 milliseconds.
    		if (diff > 50 * 1000)
    			break;
    	}
    
    	go_stop_profile();
    	return 0;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 830 bytes
    - Viewed (0)
  10. src/cmd/cgo/internal/testsanitizers/testdata/tsan9.go

    	gettimeofday(&tvstart, NULL);
    	for (n = 0; n < 1<<20; n++) {
    		cur = malloc(n);
    		free(prev);
    		prev = cur;
    
    		gettimeofday(&tvnow, NULL);
    		diff = (tvnow.tv_sec - tvstart.tv_sec) * 1000 * 1000 + (tvnow.tv_usec - tvstart.tv_usec);
    
    		// Profile frequency is 100Hz so we should definitely
    		// get a signal in 50 milliseconds.
    		if (diff > 50 * 1000) {
    			break;
    		}
    	}
    
    	free(prev);
    }
    */
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 1.3K bytes
    - Viewed (0)
Back to top