Home
last modified time | relevance | path

Searched refs:sample_period (Results 1 – 25 of 109) sorted by relevance

12345

/Linux-v4.19/tools/testing/selftests/powerpc/pmu/ebb/
Dmulti_counter_test.c58 mtspr(SPRN_PMC1, pmc_sample_period(sample_period)); in multi_counter()
59 mtspr(SPRN_PMC2, pmc_sample_period(sample_period)); in multi_counter()
60 mtspr(SPRN_PMC3, pmc_sample_period(sample_period)); in multi_counter()
61 mtspr(SPRN_PMC4, pmc_sample_period(sample_period)); in multi_counter()
62 mtspr(SPRN_PMC5, pmc_sample_period(sample_period)); in multi_counter()
63 mtspr(SPRN_PMC6, pmc_sample_period(sample_period)); in multi_counter()
73 count_pmc(1, sample_period); in multi_counter()
74 count_pmc(2, sample_period); in multi_counter()
75 count_pmc(3, sample_period); in multi_counter()
76 count_pmc(4, sample_period); in multi_counter()
[all …]
Dlost_exception_test.c49 orig_period = max_period = sample_period = 400; in test_body()
51 mtspr(SPRN_PMC4, pmc_sample_period(sample_period)); in test_body()
66 if (sample_period >= (orig_period + 200)) in test_body()
67 sample_period = orig_period; in test_body()
69 sample_period++; in test_body()
71 if (sample_period > max_period) in test_body()
72 max_period = sample_period; in test_body()
78 count_pmc(4, sample_period); in test_body()
Dback_to_back_ebbs_test.c41 count_pmc(1, sample_period); in ebb_callee()
81 sample_period = 5; in back_to_back_ebbs()
84 mtspr(SPRN_PMC1, pmc_sample_period(sample_period)); in back_to_back_ebbs()
94 count_pmc(1, sample_period); in back_to_back_ebbs()
Debb.c31 u64 sample_period = 0x40000000ull; variable
71 bool ebb_check_count(int pmc, u64 sample_period, int fudge) in ebb_check_count() argument
77 lower = ebb_state.stats.ebb_count * (sample_period - fudge); in ebb_check_count()
85 upper = ebb_state.stats.ebb_count * (sample_period + fudge); in ebb_check_count()
119 found += count_pmc(i, sample_period); in standard_ebb_callee()
252 int count_pmc(int pmc, uint32_t sample_period) in count_pmc() argument
258 start_value = pmc_sample_period(sample_period); in count_pmc()
381 mtspr(SPRN_PMC1, pmc_sample_period(sample_period)); in ebb_child()
399 count_pmc(1, sample_period); in ebb_child()
Dcycles_test.c35 mtspr(SPRN_PMC1, pmc_sample_period(sample_period)); in cycles()
45 count_pmc(1, sample_period); in cycles()
52 FAIL_IF(!ebb_check_count(1, sample_period, 100)); in cycles()
Debb.h46 bool ebb_check_count(int pmc, u64 sample_period, int fudge);
60 int count_pmc(int pmc, uint32_t sample_period);
71 extern u64 sample_period;
Dpmae_handling_test.c42 count_pmc(1, sample_period); in syscall_ebb_callee()
77 mtspr(SPRN_PMC1, pmc_sample_period(sample_period)); in test_body()
85 count_pmc(1, sample_period); in test_body()
Dpmc56_overflow_test.c30 count_pmc(2, sample_period); in ebb_callee()
69 mtspr(SPRN_PMC2, pmc_sample_period(sample_period)); in pmc56_overflow()
79 count_pmc(2, sample_period); in pmc56_overflow()
Dcycles_with_freeze_test.c48 count_pmc(1, sample_period); in ebb_callee()
74 mtspr(SPRN_PMC1, pmc_sample_period(sample_period)); in cycles_with_freeze()
102 count_pmc(1, sample_period); in cycles_with_freeze()
Dno_handler_test.c38 sample_period = 1000; in no_handler_test()
39 mtspr(SPRN_PMC1, pmc_sample_period(sample_period)); in no_handler_test()
Dinstruction_count_test.c43 count_pmc(4, sample_period); in do_count_loop()
101 count_pmc(4, sample_period); in pmc4_ebb_callee()
125 sample_period = COUNTER_OVERFLOW; in instruction_count()
Dcycles_with_mmcr2_test.c46 mtspr(SPRN_PMC1, pmc_sample_period(sample_period)); in cycles_with_mmcr2()
74 count_pmc(1, sample_period); in cycles_with_mmcr2()
Dmulti_ebb_procs_test.c54 mtspr(SPRN_PMC1, pmc_sample_period(sample_period)); in cycles_child()
64 count_pmc(1, sample_period); in cycles_child()
/Linux-v4.19/samples/bpf/
Dtracex6_user.c103 .sample_period = SAMPLE_PERIOD, in test_bpf_perf_event()
112 .sample_period = SAMPLE_PERIOD, in test_bpf_perf_event()
121 .sample_period = SAMPLE_PERIOD, in test_bpf_perf_event()
131 .sample_period = SAMPLE_PERIOD, in test_bpf_perf_event()
143 .sample_period = SAMPLE_PERIOD, in test_bpf_perf_event()
155 .sample_period = 0, in test_bpf_perf_event()
Dtrace_event_kern.c50 if (ctx->sample_period < 10000) in bpf_prog1()
57 bpf_trace_printk(fmt, sizeof(fmt), cpu, ctx->sample_period, in bpf_prog1()
/Linux-v4.19/drivers/media/rc/
Dite-cir.c71 static long sample_period; variable
72 module_param(sample_period, long, S_IRUGO | S_IWUSR);
73 MODULE_PARM_DESC(sample_period, "Override carrier sample period, us");
173 u32 sample_period; in ite_decode_bytes() local
181 sample_period = dev->params.sample_period; in ite_decode_bytes()
188 ITE_BITS_TO_NS(next_one, sample_period); in ite_decode_bytes()
195 ev.duration = ITE_BITS_TO_NS(next_zero - next_one, sample_period); in ite_decode_bytes()
206 sample_period); in ite_decode_bytes()
406 (ITE_BAUDRATE_DIVISOR * dev->params.sample_period * in ite_tx_ir()
1343 .sample_period = (u32) (1000000000ULL / 115200),
[all …]
Dene_ir.c40 static int sample_period; variable
113 if (sample_period != ENE_DEFAULT_SAMPLE_PERIOD) in ene_hw_detect()
402 if (sample_period == ENE_DEFAULT_SAMPLE_PERIOD) in ene_rx_setup()
407 (sample_period + sample_period_adjust) | in ene_rx_setup()
453 dev->rdev->rx_resolution = US_TO_NS(sample_period); in ene_rx_setup()
460 dev->rdev->min_timeout = US_TO_NS(127 * sample_period); in ene_rx_setup()
465 dev->rdev->tx_resolution = US_TO_NS(sample_period); in ene_rx_setup()
648 dev->tx_sample = DIV_ROUND_CLOSEST(sample, sample_period); in ene_tx_sample()
657 dbg("TX: sample %8d (%s)", raw_tx * sample_period, in ene_tx_sample()
796 hw_sample = hw_value * sample_period; in ene_isr()
[all …]
Dite-cir.h62 u32 sample_period; member
158 #define ITE_BITS_TO_NS(bits, sample_period) \ argument
159 ((u32) ((bits) * ITE_BAUDRATE_DIVISOR * sample_period))
/Linux-v4.19/arch/x86/events/amd/
Dibs.c114 s64 period = hwc->sample_period; in perf_event_set_period()
291 if (hwc->sample_period) { in perf_ibs_init()
295 if (!event->attr.sample_freq && hwc->sample_period & 0x0f) in perf_ibs_init()
302 hwc->sample_period &= ~0x0FULL; in perf_ibs_init()
303 if (!hwc->sample_period) in perf_ibs_init()
304 hwc->sample_period = 0x10; in perf_ibs_init()
308 event->attr.sample_period = max_cnt << 4; in perf_ibs_init()
309 hwc->sample_period = event->attr.sample_period; in perf_ibs_init()
312 if (!hwc->sample_period) in perf_ibs_init()
319 hwc->last_period = hwc->sample_period; in perf_ibs_init()
[all …]
/Linux-v4.19/tools/perf/arch/arm64/util/
Darm-spe.c81 evsel->attr.sample_period = 1; in arm_spe_recording_options()
133 tracking_evsel->attr.sample_period = 1; in arm_spe_recording_options()
217 &attr->sample_period) != 1) { in arm_spe_pmu_default_config()
219 attr->sample_period = 4096; in arm_spe_pmu_default_config()
/Linux-v4.19/drivers/iio/adc/
Ddln2-adc.c68 unsigned int sample_period; member
363 if (dln2->sample_period) { in dln2_adc_read_raw()
364 microhertz = 1000000000 / dln2->sample_period; in dln2_adc_read_raw()
395 dln2->sample_period = in dln2_adc_write_raw()
397 if (dln2->sample_period > 65535) { in dln2_adc_write_raw()
398 dln2->sample_period = 65535; in dln2_adc_write_raw()
412 dln2->trigger_chan, dln2->sample_period); in dln2_adc_write_raw()
552 dln2->sample_period); in dln2_adc_triggered_buffer_postenable()
/Linux-v4.19/kernel/
Dwatchdog.c169 static u64 __read_mostly sample_period; variable
246 sample_period = get_softlockup_thresh() * ((u64)NSEC_PER_SEC / 5); in set_sample_period()
247 watchdog_update_hrtimer_threshold(sample_period); in set_sample_period()
377 hrtimer_forward_now(hrtimer, ns_to_ktime(sample_period)); in watchdog_timer_fn()
488 hrtimer_start(hrtimer, ns_to_ktime(sample_period), in watchdog_enable()
/Linux-v4.19/drivers/thermal/int340x_thermal/
Dacpi_thermal_rel.h37 u64 sample_period; member
70 u64 sample_period; member
/Linux-v4.19/arch/powerpc/perf/
Dcore-fsl-emb.c326 if (event->hw.sample_period) { in fsl_emb_pmu_add()
397 if (event->hw.idx < 0 || !event->hw.sample_period) in fsl_emb_pmu_start()
425 if (event->hw.idx < 0 || !event->hw.sample_period) in fsl_emb_pmu_stop()
563 event->hw.last_period = event->hw.sample_period; in fsl_emb_pmu_event_init()
609 u64 period = event->hw.sample_period; in record_and_restart()
635 event->hw.last_period = event->hw.sample_period; in record_and_restart()
/Linux-v4.19/tools/include/uapi/linux/
Dbpf_perf_event.h15 __u64 sample_period; member

12345