Home
last modified time | relevance | path

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

123

/external/linux-kselftest/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()
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()
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()
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()
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()
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()
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()
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()
Debb_on_willing_child_test.c41 count_pmc(1, sample_period); in victim_child()
/external/linux-kselftest/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)),
/external/bcc/tools/
Dllcstat.py84 fn_name="on_cache_miss", sample_period=args.sample_period)
87 fn_name="on_cache_ref", sample_period=args.sample_period)
Dprofile.py218 sample_period = 0 variable
222 sample_period = args.count variable
227 else ("every ", sample_period, "events"))
249 sample_period=sample_period, sample_freq=sample_freq, cpu=args.cpu)
/external/perfetto/test/
Dclient_api_example.cc46 int sample_period = 0; in OnSetup() local
48 sample_period = static_cast<int>(config.counter_period_ns()); in OnSetup()
62 args.config->name().c_str(), int(sample_period / 1000000), in OnSetup()
/external/bcc/src/python/bcc/
Dperf.py103 attr.sample_period = freq
105 attr.sample_period = 1
/external/kernel-headers/original/uapi/linux/
Dbpf_perf_event.h15 __u64 sample_period; member
/external/linux-kselftest/tools/testing/selftests/bpf/prog_tests/
Dsend_signal.c149 .sample_period = 1, in test_send_signal_tracepoint()
177 .sample_period = 1, in test_send_signal_perf()
/external/bcc/src/cc/
Dlibbpf.c735 attr.sample_period = 1; in bpf_try_perf_event_open_with_probe()
810 attr.sample_period = 1; in bpf_attach_tracing_event()
1185 attr.sample_period = 1; in bpf_open_perf_buffer()
1259 attr.sample_period = LONG_MAX; in bpf_open_perf_event()
1422 uint64_t sample_period, uint64_t sample_freq, in bpf_attach_perf_event() argument
1427 if (!((sample_period > 0) ^ (sample_freq > 0))) { in bpf_attach_perf_event()
1443 attr.sample_period = sample_period; in bpf_attach_perf_event()
/external/strace/
Dperf_event_struct.h11 uint64_t sample_period; member

123