Home
last modified time | relevance | path

Searched refs:sample_period (Results 1 - 25 of 268) sorted by relevance

1234567891011

/kernel/linux/linux-5.10/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);
60 int count_pmc(int pmc, uint32_t sample_period);
71 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 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 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 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()
/kernel/linux/linux-6.6/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 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 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()
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/
H A Dverifier_unpriv_perf.c23 r1 = *(u64*)(r1 + %[sample_period]); \ in fill_of_different_pointers_ldx()
28 -(__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()
/kernel/linux/linux-5.10/samples/bpf/
H A Dtracex6_user.c105 .sample_period = SAMPLE_PERIOD, in test_bpf_perf_event()
114 .sample_period = SAMPLE_PERIOD, in test_bpf_perf_event()
123 .sample_period = SAMPLE_PERIOD, in test_bpf_perf_event()
133 .sample_period = SAMPLE_PERIOD, in test_bpf_perf_event()
145 .sample_period = SAMPLE_PERIOD, in test_bpf_perf_event()
157 .sample_period = 0, in test_bpf_perf_event()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-6.6/arch/s390/kernel/
H A Dperf_pai_crypto.c140 if (a->sample_period) { /* Sampling requested */ in paicrypt_busy()
175 cpump->mode = a->sample_period ? PAI_MODE_SAMPLING in paicrypt_busy()
178 debug_sprintf_event(cfm_dbg, 5, "%s sample_period %#llx users %d" in paicrypt_busy()
180 __func__, a->sample_period, cpump->active_events, in paicrypt_busy()
205 if (a->sample_period && a->config != PAI_CRYPTO_BASE) in paicrypt_event_init()
222 if (a->sample_period) { in paicrypt_event_init()
223 a->sample_period = 1; in paicrypt_event_init()
272 if (flags & PERF_EF_START && !event->attr.sample_period) { in paicrypt_add()
277 if (event->attr.sample_period) in paicrypt_add()
292 if (event->attr.sample_period) in paicrypt_del()
[all...]
H A Dperf_pai_ext.c190 cpump->mode = a->sample_period ? PAI_MODE_SAMPLING in paiext_alloc()
198 (cpump->mode == PAI_MODE_COUNTING && a->sample_period)) { in paiext_alloc()
255 if (a->sample_period && a->config != PAI_NNPA_BASE) in paiext_event_init()
267 if (a->sample_period) { in paiext_event_init()
268 a->sample_period = 1; in paiext_event_init()
347 if (flags & PERF_EF_START && !event->attr.sample_period) { in paiext_add()
352 if (event->attr.sample_period) { in paiext_add()
371 if (event->attr.sample_period) in paiext_del()
373 if (!event->attr.sample_period) { in paiext_del()
/kernel/linux/linux-6.6/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
/kernel/linux/linux-5.10/drivers/media/rc/
H A Dite-cir.c62 static long sample_period; variable
63 module_param(sample_period, long, S_IRUGO | S_IWUSR);
64 MODULE_PARM_DESC(sample_period, "Override carrier sample period, us");
164 u32 sample_period; in ite_decode_bytes() local
172 sample_period = dev->params.sample_period; in ite_decode_bytes()
179 ITE_BITS_TO_US(next_one, sample_period); in ite_decode_bytes()
186 ev.duration = ITE_BITS_TO_US(next_zero - next_one, sample_period); in ite_decode_bytes()
197 sample_period); in ite_decode_bytes()
403 (ITE_BAUDRATE_DIVISOR * dev->params.sample_period * in ite_tx_ir()
[all...]
/kernel/linux/linux-5.10/arch/x86/kvm/
H A Dpmu.h135 u64 sample_period = (-counter_value) & pmc_bitmask(pmc); in get_sample_period() local
137 if (!sample_period) in get_sample_period()
138 sample_period = pmc_bitmask(pmc) + 1; in get_sample_period()
139 return sample_period; in get_sample_period()
/kernel/linux/linux-5.10/tools/perf/arch/arm64/util/
H A Darm-spe.c84 evsel->core.attr.sample_period = 1; in arm_spe_recording_options()
142 tracking_evsel->core.attr.sample_period = 1; in arm_spe_recording_options()
213 &attr->sample_period) != 1) { in arm_spe_pmu_default_config()
215 attr->sample_period = 4096; in arm_spe_pmu_default_config()

Completed in 10 milliseconds

1234567891011