Home
last modified time | relevance | path

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

123

/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()
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()
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.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;
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()
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()
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_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()
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()
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()
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()
Dclose_clears_pmcc_test.c35 mtspr(SPRN_PMC1, pmc_sample_period(sample_period)); in close_clears_pmcc()
Dfork_cleanup_test.c60 mtspr(SPRN_PMC1, pmc_sample_period(sample_period)); in fork_cleanup()
/tools/testing/selftests/bpf/verifier/
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)),
/tools/perf/arch/arm64/util/
Darm-spe.c84 evsel->core.attr.sample_period = 1; in arm_spe_recording_options()
136 tracking_evsel->core.attr.sample_period = 1; in arm_spe_recording_options()
220 &attr->sample_period) != 1) { in arm_spe_pmu_default_config()
222 attr->sample_period = 4096; in arm_spe_pmu_default_config()
/tools/include/uapi/linux/
Dbpf_perf_event.h15 __u64 sample_period; member
/tools/perf/tests/attr/
Dtest-record-no-samples7 sample_period=0
Dtest-record-freq7 sample_period=100
Dtest-record-period7 sample_period=100
Dtest-record-count7 sample_period=123
Dbase-record10 sample_period=*
Dbase-stat10 sample_period=0
Dtest-record-group-sampling37 sample_period=0

123