Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for getTimecounter (0.18 sec)

  1. src/runtime/vdso_freebsd_riscv64.go

    // license that can be found in the LICENSE file.
    
    package runtime
    
    const (
    	_VDSO_TH_ALGO_RISCV_RDTIME = 1
    )
    
    func getCntxct() uint32
    
    //go:nosplit
    func (th *vdsoTimehands) getTimecounter() (uint32, bool) {
    	switch th.algo {
    	case _VDSO_TH_ALGO_RISCV_RDTIME:
    		return getCntxct(), true
    	default:
    		return 0, false
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 20 15:14:38 UTC 2022
    - 429 bytes
    - Viewed (0)
  2. src/runtime/vdso_freebsd_arm64.go

    // license that can be found in the LICENSE file.
    
    package runtime
    
    const (
    	_VDSO_TH_ALGO_ARM_GENTIM = 1
    )
    
    func getCntxct(physical bool) uint32
    
    //go:nosplit
    func (th *vdsoTimehands) getTimecounter() (uint32, bool) {
    	switch th.algo {
    	case _VDSO_TH_ALGO_ARM_GENTIM:
    		return getCntxct(th.physical != 0), true
    	default:
    		return 0, false
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Sep 04 04:17:04 UTC 2022
    - 454 bytes
    - Viewed (0)
  3. src/runtime/vdso_freebsd_arm.go

    // license that can be found in the LICENSE file.
    
    package runtime
    
    const (
    	_VDSO_TH_ALGO_ARM_GENTIM = 1
    )
    
    func getCntxct(physical bool) uint32
    
    //go:nosplit
    func (th *vdsoTimehands) getTimecounter() (uint32, bool) {
    	switch th.algo {
    	case _VDSO_TH_ALGO_ARM_GENTIM:
    		return getCntxct(th.physical != 0), true
    	default:
    		return 0, false
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 18 21:54:26 UTC 2018
    - 454 bytes
    - Viewed (0)
  4. src/runtime/vdso_freebsd_x86.go

    	if mmapErr != 0 {
    		newP = ^uintptr(0)
    	}
    	if !atomic.Casuintptr(&hpetDevMap[idx], 0, newP) && mmapErr == 0 {
    		munmap(addr, physPageSize)
    	}
    }
    
    //go:nosplit
    func (th *vdsoTimehands) getTimecounter() (uint32, bool) {
    	switch th.algo {
    	case _VDSO_TH_ALGO_X86_TSC:
    		return th.getTSCTimecounter(), true
    	case _VDSO_TH_ALGO_X86_HPET:
    		return th.getHPETTimecounter()
    	default:
    		return 0, false
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  5. src/runtime/vdso_freebsd.go

    		}
    
    		curr := atomic.Load(&timekeepSharedPage.current) // atomic_load_acq_32
    		th := &timehands[curr]
    		gen := atomic.Load(&th.gen) // atomic_load_acq_32
    		bt = th.offset
    
    		if tc, ok := th.getTimecounter(); !ok {
    			return zeroBintime
    		} else {
    			delta := (tc - th.offset_count) & th.counter_mask
    			bt.AddX(th.scale * uint64(delta))
    		}
    		if abs {
    			bt.Add(&th.boottime)
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 2.4K bytes
    - Viewed (0)
Back to top