/linux-6.3-rc2/tools/testing/selftests/powerpc/pmu/ebb/ |
A D | lost_exception_test.c | 49 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()
|
A D | multi_counter_test.c | 58 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()
|
A D | ebb.c | 31 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()
|
A D | ebb.h | 46 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;
|
A D | back_to_back_ebbs_test.c | 41 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()
|
A D | no_handler_test.c | 38 sample_period = 1000; in no_handler_test() 39 mtspr(SPRN_PMC1, pmc_sample_period(sample_period)); in no_handler_test()
|
A D | cycles_test.c | 35 mtspr(SPRN_PMC1, pmc_sample_period(sample_period)); in cycles() 50 FAIL_IF(!ebb_check_count(1, sample_period, 100)); in cycles()
|
A D | instruction_count_test.c | 43 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()
|
A D | pmae_handling_test.c | 42 count_pmc(1, sample_period); in syscall_ebb_callee() 77 mtspr(SPRN_PMC1, pmc_sample_period(sample_period)); in test_body()
|
A D | pmc56_overflow_test.c | 30 count_pmc(2, sample_period); in ebb_callee() 69 mtspr(SPRN_PMC2, pmc_sample_period(sample_period)); in pmc56_overflow()
|
A D | cycles_with_freeze_test.c | 48 count_pmc(1, sample_period); in ebb_callee() 74 mtspr(SPRN_PMC1, pmc_sample_period(sample_period)); in cycles_with_freeze()
|
/linux-6.3-rc2/tools/testing/selftests/bpf/verifier/ |
A D | perf_event_sample_period.c | 7 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-6.3-rc2/samples/bpf/ |
A D | tracex6_user.c | 104 .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()
|
A D | trace_event_kern.c | 50 if (ctx->sample_period < 10000) in bpf_prog1() 57 bpf_trace_printk(fmt, sizeof(fmt), cpu, ctx->sample_period, in bpf_prog1()
|
/linux-6.3-rc2/arch/s390/kernel/ |
A D | perf_pai_crypto.c | 139 if (a->sample_period) { /* Sampling requested */ in paicrypt_busy() 172 cpump->mode = a->sample_period ? PAI_MODE_SAMPLING in paicrypt_busy() 177 __func__, a->sample_period, cpump->active_events, in paicrypt_busy() 202 if (a->sample_period && a->config != PAI_CRYPTO_BASE) in paicrypt_event_init() 219 if (a->sample_period) { in paicrypt_event_init() 220 a->sample_period = 1; in paicrypt_event_init() 269 if (flags & PERF_EF_START && !event->attr.sample_period) { in paicrypt_add() 274 if (event->attr.sample_period) in paicrypt_add() 289 if (event->attr.sample_period) in paicrypt_del() 291 if (!event->attr.sample_period) in paicrypt_del()
|
A D | perf_pai_ext.c | 188 cpump->mode = a->sample_period ? PAI_MODE_SAMPLING in paiext_alloc() 196 (cpump->mode == PAI_MODE_COUNTING && a->sample_period)) { in paiext_alloc() 252 if (a->sample_period && a->config != PAI_NNPA_BASE) in paiext_event_init() 264 if (a->sample_period) { in paiext_event_init() 265 a->sample_period = 1; in paiext_event_init() 344 if (flags & PERF_EF_START && !event->attr.sample_period) { in paiext_add() 349 if (event->attr.sample_period) { in paiext_add() 368 if (event->attr.sample_period) in paiext_del() 370 if (!event->attr.sample_period) { in paiext_del()
|
/linux-6.3-rc2/drivers/media/rc/ |
A D | ene_ir.c | 30 static int sample_period; variable 103 if (sample_period != ENE_DEFAULT_SAMPLE_PERIOD) in ene_hw_detect() 392 if (sample_period == ENE_DEFAULT_SAMPLE_PERIOD) in ene_rx_setup() 397 (sample_period + sample_period_adjust) | in ene_rx_setup() 443 dev->rdev->rx_resolution = sample_period; in ene_rx_setup() 450 dev->rdev->min_timeout = 127 * sample_period; in ene_rx_setup() 455 dev->rdev->tx_resolution = sample_period; in ene_rx_setup() 786 hw_sample = hw_value * sample_period; in ene_isr() 1028 if (sample_period < 5 || sample_period > 0x7F) in ene_probe() 1029 sample_period = ENE_DEFAULT_SAMPLE_PERIOD; in ene_probe() [all …]
|
/linux-6.3-rc2/tools/perf/tests/attr/ |
A D | test-record-group2 | 10 sample_period=1234000 20 sample_period=6789000
|
/linux-6.3-rc2/arch/x86/kvm/ |
A D | pmu.h | 131 u64 sample_period = (-counter_value) & pmc_bitmask(pmc); in get_sample_period() local 133 if (!sample_period) in get_sample_period() 134 sample_period = pmc_bitmask(pmc) + 1; in get_sample_period() 135 return sample_period; in get_sample_period()
|
/linux-6.3-rc2/drivers/iio/adc/ |
A D | dln2-adc.c | 65 unsigned int sample_period; member 359 if (dln2->sample_period) { in dln2_adc_read_raw() 360 microhertz = 1000000000 / dln2->sample_period; in dln2_adc_read_raw() 391 dln2->sample_period = in dln2_adc_write_raw() 393 if (dln2->sample_period > 65535) { in dln2_adc_write_raw() 394 dln2->sample_period = 65535; in dln2_adc_write_raw() 408 dln2->trigger_chan, dln2->sample_period); in dln2_adc_write_raw() 548 dln2->sample_period); in dln2_adc_triggered_buffer_postenable()
|
/linux-6.3-rc2/arch/x86/events/amd/ |
A D | ibs.c | 104 s64 period = hwc->sample_period; in perf_event_set_period() 269 if (hwc->sample_period) { in perf_ibs_init() 273 if (!event->attr.sample_freq && hwc->sample_period & 0x0f) in perf_ibs_init() 280 hwc->sample_period &= ~0x0FULL; in perf_ibs_init() 281 if (!hwc->sample_period) in perf_ibs_init() 282 hwc->sample_period = 0x10; in perf_ibs_init() 286 event->attr.sample_period = max_cnt << 4; in perf_ibs_init() 287 hwc->sample_period = event->attr.sample_period; in perf_ibs_init() 290 if (!hwc->sample_period) in perf_ibs_init() 297 hwc->last_period = hwc->sample_period; in perf_ibs_init() [all …]
|
/linux-6.3-rc2/drivers/thermal/intel/int340x_thermal/ |
A D | acpi_thermal_rel.h | 39 u64 sample_period; member 74 u64 sample_period; member
|
/linux-6.3-rc2/tools/perf/arch/arm64/util/ |
A D | arm-spe.c | 162 evsel->core.attr.sample_period = arm_spe_pmu->default_config->sample_period; in arm_spe_recording_options() 268 tracking_evsel->core.attr.sample_period = 1; in arm_spe_recording_options() 536 &attr->sample_period) != 1) { in arm_spe_pmu_default_config() 538 attr->sample_period = 4096; in arm_spe_pmu_default_config()
|
/linux-6.3-rc2/arch/powerpc/perf/ |
A D | core-fsl-emb.c | 309 if (event->hw.sample_period) { in fsl_emb_pmu_add() 380 if (event->hw.idx < 0 || !event->hw.sample_period) in fsl_emb_pmu_start() 408 if (event->hw.idx < 0 || !event->hw.sample_period) in fsl_emb_pmu_stop() 546 event->hw.last_period = event->hw.sample_period; in fsl_emb_pmu_event_init() 592 u64 period = event->hw.sample_period; in record_and_restart() 618 event->hw.last_period = event->hw.sample_period; in record_and_restart()
|
/linux-6.3-rc2/drivers/perf/ |
A D | riscv_pmu.c | 145 s64 period = hwc->sample_period; in riscv_pmu_event_set_period() 278 hwc->sample_period = cmask >> 1; in riscv_pmu_event_init() 279 hwc->last_period = hwc->sample_period; in riscv_pmu_event_init() 280 local64_set(&hwc->period_left, hwc->sample_period); in riscv_pmu_event_init()
|