Home
last modified time | relevance | path

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

12345

/linux/tools/testing/selftests/powerpc/pmu/ebb/
H A 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()
H A 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()
H A 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()
H A Debb.h46 bool ebb_check_count(int pmc, u64 sample_period, int fudge);
58 int count_pmc(int pmc, uint32_t sample_period);
69 extern u64 sample_period;
H A 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()
H A 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()
H A Dno_handler_test.c38 sample_period = 1000; in no_handler_test()
39 mtspr(SPRN_PMC1, pmc_sample_period(sample_period)); in no_handler_test()
H A Dcycles_test.c35 mtspr(SPRN_PMC1, pmc_sample_period(sample_period)); in cycles()
50 FAIL_IF(!ebb_check_count(1, sample_period, 100)); in cycles()
H A 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()
H A Dpmc56_overflow_test.c30 count_pmc(2, sample_period); in ebb_callee()
69 mtspr(SPRN_PMC2, pmc_sample_period(sample_period)); in pmc56_overflow()
H A 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()
/linux/tools/testing/selftests/bpf/verifier/
H A Dperf_event_sample_period.c7 offsetof(struct bpf_perf_event_data, sample_period)),
10 offsetof(struct bpf_perf_event_data, sample_period) + 7),
23 offsetof(struct bpf_perf_event_data, sample_period)),
26 offsetof(struct bpf_perf_event_data, sample_period) + 6),
39 offsetof(struct bpf_perf_event_data, sample_period)),
42 offsetof(struct bpf_perf_event_data, sample_period) + 4),
54 offsetof(struct bpf_perf_event_data, sample_period)),
/linux/samples/bpf/
H A Dtracex6_user.c104 .sample_period = SAMPLE_PERIOD, in test_bpf_perf_event()
113 .sample_period = SAMPLE_PERIOD, in test_bpf_perf_event()
122 .sample_period = SAMPLE_PERIOD, in test_bpf_perf_event()
132 .sample_period = SAMPLE_PERIOD, in test_bpf_perf_event()
144 .sample_period = SAMPLE_PERIOD, in test_bpf_perf_event()
156 .sample_period = 0, in test_bpf_perf_event()
H A 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/tools/testing/selftests/bpf/progs/
H A Dverifier_unpriv_perf.c28 -(__s32) offsetof(struct bpf_perf_event_data, sample_period) - 8), in fill_of_different_pointers_ldx()
29 __imm_const(sample_period, in fill_of_different_pointers_ldx()
30 offsetof(struct bpf_perf_event_data, sample_period)) in fill_of_different_pointers_ldx()
/linux/drivers/thermal/intel/int340x_thermal/
H A Dacpi_thermal_rel.h49 u64 sample_period; member
64 u64 sample_period; member
110 u64 sample_period; member
121 u64 sample_period; member
/linux/tools/perf/arch/arm64/util/
H A Darm-spe.c241 static __u64 sample_period; in arm_spe_pmu__sample_period()
243 if (sample_period) in arm_spe_pmu__sample_period()
244 return sample_period; in arm_spe_pmu__sample_period()
251 &sample_period) != 1) { in arm_spe_pmu__sample_period()
253 sample_period = 4096; in arm_spe_pmu__sample_period()
255 return sample_period; in arm_spe_pmu__sample_period()
263 evsel->core.attr.sample_period = arm_spe_pmu__sample_period(evsel->pmu); in arm_spe_setup_evsel()
377 tracking_evsel->core.attr.sample_period = 1; in arm_spe_setup_tracking_event()
693 attr->sample_period = arm_spe_pmu__sample_period(arm_spe_pmu); in arm_spe_pmu_default_config()
240 static __u64 sample_period; arm_spe_pmu__sample_period() local
H A Dhisi-ptt.c116 evsel->core.attr.sample_period = 1; in hisi_ptt_recording_options()
142 tracking_evsel->core.attr.sample_period = 1; in hisi_ptt_recording_options()
/linux/arch/powerpc/perf/
H A Dvpa-dtl.c299 period = max_t(u64, NSEC_PER_MSEC, event->hw.sample_period); in vpa_dtl_hrtimer_handle()
310 period = max_t(u64, NSEC_PER_MSEC, hwc->sample_period); in vpa_dtl_start_hrtimer()
421 event->attr.sample_period = NSEC_PER_SEC / freq; in vpa_dtl_event_init()
422 hwc->sample_period = event->attr.sample_period; in vpa_dtl_event_init()
423 local64_set(&hwc->period_left, hwc->sample_period); in vpa_dtl_event_init()
424 hwc->last_period = hwc->sample_period; in vpa_dtl_event_init()
/linux/arch/riscv/kvm/
H A Dvcpu_pmu.c42 u64 sample_period; in kvm_pmu_get_sample_period() local
45 sample_period = counter_val_mask; in kvm_pmu_get_sample_period()
47 sample_period = (-pmc->counter_val) & counter_val_mask; in kvm_pmu_get_sample_period()
49 return sample_period; in kvm_pmu_get_sample_period()
325 perf_event->attr.sample_period = period; in kvm_riscv_pmu_overflow()
326 perf_event->hw.sample_period = period; in kvm_riscv_pmu_overflow()
351 attr->sample_period = kvm_pmu_get_sample_period(pmc); in kvm_pmu_create_perf_event()
/linux/drivers/perf/
H A Driscv_pmu.c206 s64 period = hwc->sample_period; in riscv_pmu_event_set_period()
345 hwc->sample_period = cmask >> 1; in riscv_pmu_event_init()
346 hwc->last_period = hwc->sample_period; in riscv_pmu_event_init()
347 local64_set(&hwc->period_left, hwc->sample_period); in riscv_pmu_event_init()
/linux/drivers/media/rc/
H A Dite-cir.h126 #define ITE_BITS_TO_US(bits, sample_period) \ argument
127 ((u32)((bits) * ITE_BAUDRATE_DIVISOR * (sample_period) / 1000))
/linux/tools/include/uapi/linux/
H A Dbpf_perf_event.h15 __u64 sample_period; member
/linux/include/uapi/linux/
H A Dbpf_perf_event.h15 __u64 sample_period; member
/linux/arch/s390/kernel/
H A Dperf_pai.c357 if (a->sample_period && a->config != pp->base) in pai_event_valid()
379 if (a->sample_period) { in pai_event_init()
396 if (a->sample_period) { in pai_event_init()
397 a->sample_period = 1; in pai_event_init()
447 if (!event->attr.sample_period) { /* Counting */ in pai_start()
506 if (!event->attr.sample_period) { /* Counting */ in pai_stop()

12345