/linux-master/arch/hexagon/include/asm/ |
H A D | delay.h | 11 extern void __delay(unsigned long cycles);
|
/linux-master/arch/riscv/include/asm/ |
H A D | delay.h | 18 extern void __delay(unsigned long cycles);
|
/linux-master/tools/testing/selftests/kvm/include/aarch64/ |
H A D | delay.h | 11 static inline void __delay(uint64_t cycles) argument 16 while ((timer_get_cntct(timer) - start) < cycles)
|
/linux-master/tools/perf/dlfilters/ |
H A D | dlfilter-show-cycles.c | 3 * dlfilter-show-cycles.c: Print the number of cycles at the start of each line 19 static __u64 cycles[MAX_CPU][MAX_ENTRY]; variable 30 __u64 cycles[MAX_ENTRY]; member in struct:entry 77 e->cycles[pos] += cnt; 92 cycles[cpu][pos] += sample->cyc_cnt; 98 static void print_vals(__u64 cycles, __u64 delta) argument 101 printf("%10llu %10llu ", (unsigned long long)cycles, (unsigned long long)delta); 103 printf("%10llu %10s ", (unsigned long long)cycles, ""); 115 print_vals(cycles[cp [all...] |
/linux-master/arch/x86/lib/ |
H A D | delay.c | 37 static void (*delay_halt_fn)(u64 start, u64 cycles) __ro_after_init; 63 static void delay_tsc(u64 cycles) argument 73 if ((now - bclock) >= cycles) 91 cycles -= (now - bclock); 105 static void delay_halt_tpause(u64 start, u64 cycles) argument 107 u64 until = start + cycles; 122 * counts with TSC frequency. The input value is the number of TSC cycles 125 static void delay_halt_mwaitx(u64 unused, u64 cycles) argument 129 delay = min_t(u64, MWAITX_MAX_WAIT_CYCLES, cycles); 151 u64 start, end, cycles local [all...] |
/linux-master/arch/xtensa/include/asm/ |
H A D | delay.h | 25 /* 2 cycles per loop. */ 40 unsigned long cycles = (usecs * (ccount_freq >> 15)) >> 5; local 43 while (((unsigned long)get_ccount()) - start < cycles) 61 unsigned long cycles = (nsec * (ccount_freq >> 15)) >> 15; local 62 __delay(cycles);
|
/linux-master/tools/perf/tests/shell/ |
H A D | stat+csv_summary.sh | 8 # 1.001364330 9224197 cycles 8012885033 100.00 9 # summary 9224197 cycles 8012885033 100.00 11 perf stat -e cycles -x' ' -I1000 --interval-count 1 --summary 2>&1 | \ 21 # 1.001360298 9148534 cycles 8012853854 100.00 22 #9148534 cycles 8012853854 100.00 24 perf stat -e cycles -x' ' -I1000 --interval-count 1 --summary --no-csv-summary 2>&1 | \
|
H A D | stat_bpf_counters.sh | 25 if ! perf stat -e cycles --bpf-counters true > /dev/null 2>&1; then 28 perf --no-pager stat -e cycles --bpf-counters true || true 33 base_cycles=$(perf stat --no-big-num -e cycles -- perf bench sched messaging -g 1 -l 100 -t 2>&1 | awk '/cycles/ {print $1}') 35 echo "Skipping: cycles event not counted" 38 bpf_cycles=$(perf stat --no-big-num --bpf-counters -e cycles -- perf bench sched messaging -g 1 -l 100 -t 2>&1 | awk '/cycles/ {print $1}') 40 echo "Failed: cycles not counted with --bpf-counters"
|
H A D | stat+shadow_stat.sh | 13 perf stat -a -e cycles sleep 1 2>&1 | grep -e cpu_core && exit 2 17 perf stat -a --no-big-num -e cycles,instructions sleep 1 2>&1 | \ 18 grep -e cycles -e instructions | \ 26 # save cycles count 27 if [ "$evt" = "cycles" ]; then 32 # skip if no cycles 56 perf stat -a -A --no-big-num -e cycles,instructions sleep 1 2>&1 | \ 65 # save cycles count 66 if [ "$evt" = "cycles" ]; then 74 # skip if no cycles [all...] |
H A D | stat+std_output.sh | 14 event_name=(cpu-clock task-clock context-switches cpu-migrations page-faults stalled-cycles-frontend stalled-cycles-backend cycles instructions branches branch-misses) 15 event_metric=("CPUs utilized" "CPUs utilized" "/sec" "/sec" "/sec" "frontend cycles idle" "backend cycles idle" "GHz" "insn per cycle" "/sec" "of all branches") 16 skip_metric=("stalled cycles per insn" "tma_" "retiring" "frontend_bound" "bad_speculation" "backend_bound")
|
/linux-master/tools/testing/selftests/kvm/include/riscv/ |
H A D | arch_timer.h | 22 #define cycles_to_usec(cycles) \ 23 ((uint64_t)(cycles) * 1000000 / (timer_freq)) 58 static inline void __delay(uint64_t cycles) argument 62 while ((timer_get_cycles() - start) < cycles)
|
/linux-master/drivers/gpu/drm/i915/gt/ |
H A D | selftest_gt_pm.c | 56 u32 cycles[5]; local 61 cycles[i] = -read_timestamp(engine); 66 cycles[i] += read_timestamp(engine); 72 sort(cycles, 5, sizeof(*cycles), cmp_u32, NULL); 73 *out_cycles = (cycles[1] + 2 * cycles[2] + cycles[3]) / 4; 99 u32 cycles; local 107 measure_clocks(engine, &cycles, [all...] |
/linux-master/drivers/net/wireless/ath/ |
H A D | hw.c | 144 u32 cycles, busy, rx, tx; local 151 cycles = REG_READ(ah, AR_CCCNT); 166 common->cc_ani.cycles += cycles; 171 common->cc_survey.cycles += cycles; 183 listen_time = (cc->cycles - cc->rx_frame - cc->tx_frame) /
|
/linux-master/arch/arm64/lib/ |
H A D | delay.c | 26 void __delay(unsigned long cycles) argument 31 u64 end = start + cycles; 38 while ((get_cycles() - start) < cycles) 44 while ((get_cycles() - start + timer_evt_period) < cycles) 48 while ((get_cycles() - start) < cycles)
|
/linux-master/arch/nios2/lib/ |
H A D | delay.c | 11 void __delay(unsigned long cycles) argument 15 while ((get_cycles() - start) < cycles)
|
/linux-master/arch/loongarch/lib/ |
H A D | delay.c | 12 void __delay(unsigned long cycles) argument 16 while ((unsigned long)(get_cycles() - t0) < cycles)
|
/linux-master/drivers/memory/ |
H A D | jz4780-nemc.c | 162 uint32_t smcr, val, cycles; local 171 /* 11 - 12 -> 12 cycles */ 174 /* 13 - 15 -> 15 cycles */ 177 /* 16 - 20 -> 20 cycles */ 180 /* 21 - 25 -> 25 cycles */ 183 /* 26 - 31 -> 31 cycles */ 208 cycles = jz4780_nemc_ns_to_cycles(nemc, val); 209 if (cycles > nemc->soc_info->tas_tah_cycles_max) { 210 dev_err(nemc->dev, "tAS %u is too high (%u cycles)\n", 211 val, cycles); [all...] |
/linux-master/tools/power/cpupower/bench/ |
H A D | parse.h | 16 unsigned int cycles; /* calculation cycles with the same sleep/load time */ member in struct:config
|
/linux-master/arch/loongarch/include/asm/ |
H A D | delay.h | 10 extern void __delay(unsigned long cycles);
|
/linux-master/tools/testing/selftests/powerpc/pmu/ebb/ |
H A D | cycles_test.c | 13 * Basic test that counts user cycles and takes EBBs. 15 int cycles(void) function 21 event_init_named(&event, 0x1001e, "cycles"); 57 return test_harness(cycles, "cycles");
|
/linux-master/arch/openrisc/lib/ |
H A D | delay.c | 30 void __delay(unsigned long cycles) argument 34 while ((get_cycles() - start) < cycles)
|
/linux-master/drivers/net/ethernet/mellanox/mlx4/ |
H A D | en_clock.c | 44 container_of(tc, struct mlx4_en_dev, cycles); 139 mdev->cycles.mult = mult; 208 timecounter_init(&mdev->clock, &mdev->cycles, ns); 247 * of MLX4_EN_WRAP_AROUND_SEC values in the cycles register. 275 memset(&mdev->cycles, 0, sizeof(mdev->cycles)); 276 mdev->cycles.read = mlx4_en_read_clock; 277 mdev->cycles.mask = CLOCKSOURCE_MASK(48); 278 mdev->cycles.shift = freq_to_shift(dev->caps.hca_core_clock); 279 mdev->cycles [all...] |
/linux-master/tools/virtio/ringtest/ |
H A D | main.h | 21 static inline void wait_cycles(unsigned long long cycles) argument 26 while (__rdtsc() - t < cycles) {} 33 static inline void wait_cycles(unsigned long long cycles) argument 35 asm volatile("0: brctg %0,0b" : : "d" (cycles)); 43 static inline void wait_cycles(unsigned long long cycles) argument
|
/linux-master/drivers/pwm/ |
H A D | pwm-berlin.c | 81 u64 cycles; local 83 cycles = clk_get_rate(bpc->clk); 84 cycles *= period_ns; 85 do_div(cycles, NSEC_PER_SEC); 87 if (cycles > BERLIN_PWM_MAX_TCNT) { 89 cycles >>= 12; // Prescaled by 4096 91 if (cycles > BERLIN_PWM_MAX_TCNT) 95 period = cycles; 96 cycles *= duty_ns; 97 do_div(cycles, period_n [all...] |
/linux-master/arch/m68k/68000/ |
H A D | timers.c | 75 u32 cycles; local 78 cycles = m68328_tick_cnt + TCN; 81 return cycles;
|