Home
last modified time | relevance | path

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

/linux-4.4.14/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()
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.c33 u64 sample_period = 0x40000000ull; variable
73 bool ebb_check_count(int pmc, u64 sample_period, int fudge) in ebb_check_count() argument
79 lower = ebb_state.stats.ebb_count * (sample_period - fudge); in ebb_check_count()
87 upper = ebb_state.stats.ebb_count * (sample_period + fudge); in ebb_check_count()
121 found += count_pmc(i, sample_period); in standard_ebb_callee()
254 int count_pmc(int pmc, uint32_t sample_period) in count_pmc() argument
260 start_value = pmc_sample_period(sample_period); in count_pmc()
383 mtspr(SPRN_PMC1, pmc_sample_period(sample_period)); in ebb_child()
401 count_pmc(1, sample_period); in ebb_child()
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()
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()
Dpmc56_overflow_test.c30 count_pmc(2, sample_period); in ebb_callee()
69 mtspr(SPRN_PMC1, 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;
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.c61 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()
Devent_attributes_test.c50 event.attr.sample_period = 1; in event_attributes()
/linux-4.4.14/drivers/media/rc/
Dite-cir.c78 static long sample_period; variable
79 module_param(sample_period, long, S_IRUGO | S_IWUSR);
80 MODULE_PARM_DESC(sample_period, "Override carrier sample period, us");
180 u32 sample_period; in ite_decode_bytes() local
188 sample_period = dev->params.sample_period; in ite_decode_bytes()
195 ITE_BITS_TO_NS(next_one, sample_period); in ite_decode_bytes()
202 ev.duration = ITE_BITS_TO_NS(next_zero - next_one, sample_period); in ite_decode_bytes()
213 sample_period); in ite_decode_bytes()
411 (ITE_BAUDRATE_DIVISOR * dev->params.sample_period * in ite_tx_ir()
1348 .sample_period = (u32) (1000000000ULL / 115200),
[all …]
Dene_ir.c45 static int sample_period; variable
118 if (sample_period != ENE_DEFAULT_SAMPLE_PERIOD) in ene_hw_detect()
407 if (sample_period == ENE_DEFAULT_SAMPLE_PERIOD) in ene_rx_setup()
412 (sample_period + sample_period_adjust) | in ene_rx_setup()
458 dev->rdev->rx_resolution = US_TO_NS(sample_period); in ene_rx_setup()
465 dev->rdev->min_timeout = US_TO_NS(127 * sample_period); in ene_rx_setup()
470 dev->rdev->tx_resolution = US_TO_NS(sample_period); in ene_rx_setup()
653 dev->tx_sample = DIV_ROUND_CLOSEST(sample, sample_period); in ene_tx_sample()
662 dbg("TX: sample %8d (%s)", raw_tx * sample_period, in ene_tx_sample()
801 hw_sample = hw_value * sample_period; in ene_isr()
[all …]
Dite-cir.h67 u32 sample_period; member
170 #define ITE_BITS_TO_NS(bits, sample_period) \ argument
171 ((u32) ((bits) * ITE_BAUDRATE_DIVISOR * sample_period))
/linux-4.4.14/arch/x86/kernel/cpu/
Dperf_event_amd_ibs.c76 s64 period = hwc->sample_period; in perf_event_set_period()
253 if (hwc->sample_period) { in perf_ibs_init()
257 if (!event->attr.sample_freq && hwc->sample_period & 0x0f) in perf_ibs_init()
264 hwc->sample_period &= ~0x0FULL; in perf_ibs_init()
265 if (!hwc->sample_period) in perf_ibs_init()
266 hwc->sample_period = 0x10; in perf_ibs_init()
270 event->attr.sample_period = max_cnt << 4; in perf_ibs_init()
271 hwc->sample_period = event->attr.sample_period; in perf_ibs_init()
274 if (!hwc->sample_period) in perf_ibs_init()
281 hwc->last_period = hwc->sample_period; in perf_ibs_init()
[all …]
Dperf_event.c393 hwc->sample_period = x86_pmu.max_period; in x86_setup_perfctr()
394 hwc->last_period = hwc->sample_period; in x86_setup_perfctr()
395 local64_set(&hwc->period_left, hwc->sample_period); in x86_setup_perfctr()
422 !attr->freq && hwc->sample_period == 1) { in x86_setup_perfctr()
541 if (event->attr.sample_period && x86_pmu.limit_period) { in x86_pmu_hw_config()
542 if (x86_pmu.limit_period(event, event->attr.sample_period) > in x86_pmu_hw_config()
543 event->attr.sample_period) in x86_pmu_hw_config()
1093 s64 period = hwc->sample_period; in x86_perf_event_set_period()
Dperf_event_msr.c128 event->attr.sample_period) /* no sampling */ in msr_event_init()
Dperf_event_intel_uncore_snb.c274 if (hwc->sample_period) in snb_uncore_imc_event_init()
284 event->attr.sample_period) /* no sampling */ in snb_uncore_imc_event_init()
Dperf_event_intel_cstate.c400 event->attr.sample_period) /* no sampling */ in cstate_pmu_event_init()
Dperf_event_intel_rapl.c375 event->attr.sample_period) /* no sampling */ in rapl_pmu_event_init()
Dperf_event.h821 !event->attr.freq && event->hw.sample_period == 1) in intel_pmu_has_bts()
Dperf_event_intel_cqm.c1103 event->attr.sample_period) /* no sampling */ in intel_cqm_event_init()
Dperf_event_intel.c1932 if (unlikely(hw_event == bts_event && hwc->sample_period == 1)) in intel_bts_constraints()
2670 if (event->attr.sample_period > 0 && in hsw_hw_config()
2671 event->attr.sample_period < 0x7fffffff) in hsw_hw_config()
Dperf_event_intel_ds.c817 (u64)(-hwc->sample_period) & x86_pmu.cntval_mask; in intel_pmu_pebs_enable()
Dperf_event_intel_uncore.c666 if (hwc->sample_period) in uncore_pmu_event_init()
/linux-4.4.14/drivers/thermal/int340x_thermal/
Dacpi_thermal_rel.h36 u64 sample_period; member
69 u64 sample_period; member
Dacpi_thermal_rel.c297 trt_user[i].sample_period = trts[i].sample_period; in fill_trt()
/linux-4.4.14/arch/powerpc/perf/
Dcore-fsl-emb.c326 if (event->hw.sample_period) { in fsl_emb_pmu_add()
397 if (event->hw.idx < 0 || !event->hw.sample_period) in fsl_emb_pmu_start()
425 if (event->hw.idx < 0 || !event->hw.sample_period) in fsl_emb_pmu_stop()
563 event->hw.last_period = event->hw.sample_period; in fsl_emb_pmu_event_init()
609 u64 period = event->hw.sample_period; in record_and_restart()
635 event->hw.last_period = event->hw.sample_period; in record_and_restart()
Dcore-book3s.c529 event->attr.sample_period || in ebb_event_check()
1331 if (event->hw.sample_period) { in power_pmu_enable()
1537 if (!event->hw.idx || !event->hw.sample_period) in power_pmu_start()
1567 if (!event->hw.idx || !event->hw.sample_period) in power_pmu_stop()
1680 || event->attr.sample_period) in can_go_on_limited_pmc()
1885 event->hw.last_period = event->hw.sample_period; in power_pmu_event_init()
1955 u64 period = event->hw.sample_period; in record_and_restart()
1983 event->hw.last_period = event->hw.sample_period; in record_and_restart()
/linux-4.4.14/tools/perf/tests/attr/
Dtest-record-freq6 sample_period=100
Dtest-record-no-samples6 sample_period=0
Dtest-record-raw6 sample_period=4000
Dtest-record-branch-any6 sample_period=4000
Dtest-record-count6 sample_period=123
Dtest-record-period6 sample_period=100
Dtest-record-branch-filter-hv6 sample_period=4000
Dtest-record-branch-filter-u6 sample_period=4000
Dtest-record-branch-filter-k6 sample_period=4000
Dtest-record-branch-filter-ind_call6 sample_period=4000
Dtest-record-branch-filter-any6 sample_period=4000
Dtest-record-branch-filter-any_ret6 sample_period=4000
Dtest-record-branch-filter-any_call6 sample_period=4000
Dtest-record-no-delay6 sample_period=4000
Dtest-record-data6 sample_period=4000
Dbase-stat10 sample_period=0
Dbase-record10 sample_period=4000
Dtest-record-group-sampling36 sample_period=0
/linux-4.4.14/kernel/
Dwatchdog.c92 static u64 __read_mostly sample_period; variable
219 sample_period = get_softlockup_thresh() * ((u64)NSEC_PER_SEC / 5); in set_sample_period()
391 hrtimer_forward_now(hrtimer, ns_to_ktime(sample_period)); in watchdog_timer_fn()
505 hrtimer_start(hrtimer, ns_to_ktime(sample_period), in watchdog_enable()
590 wd_attr->sample_period = hw_nmi_get_sample_period(watchdog_thresh); in watchdog_nmi_enable()
/linux-4.4.14/arch/alpha/kernel/
Dperf_event.c255 long period = hwc->sample_period; in alpha_perf_event_set_period()
683 if (!hwc->sample_period) { in __hw_perf_event_init()
684 hwc->sample_period = alpha_pmu->pmc_max_period[0]; in __hw_perf_event_init()
685 hwc->last_period = hwc->sample_period; in __hw_perf_event_init()
686 local64_set(&hwc->period_left, hwc->sample_period); in __hw_perf_event_init()
/linux-4.4.14/arch/arc/kernel/
Dperf_event.c158 hwc->sample_period = arc_pmu->max_period; in arc_pmu_event_init()
159 hwc->last_period = hwc->sample_period; in arc_pmu_event_init()
160 local64_set(&hwc->period_left, hwc->sample_period); in arc_pmu_event_init()
218 s64 period = hwc->sample_period; in arc_pmu_event_set_period()
/linux-4.4.14/arch/metag/kernel/perf/
Dperf_event.c225 s64 period = hwc->sample_period; in metag_pmu_event_set_period()
588 if (!hwc->sample_period) { in _hw_perf_event_init()
589 hwc->sample_period = metag_pmu->max_period >> 1; in _hw_perf_event_init()
590 hwc->last_period = hwc->sample_period; in _hw_perf_event_init()
591 local64_set(&hwc->period_left, hwc->sample_period); in _hw_perf_event_init()
/linux-4.4.14/samples/bpf/
Dtracex6_user.c24 .sample_period = SAMPLE_PERIOD, in test_bpf_perf_event()
Dbpf_load.c59 attr.sample_period = 1; in load_and_attach()
/linux-4.4.14/arch/tile/kernel/
Dperf_event.c553 s64 period = hwc->sample_period; in tile_event_set_period()
824 if (!hwc->sample_period) { in __tile_event_init()
825 hwc->sample_period = tile_pmu->max_period; in __tile_event_init()
826 hwc->last_period = hwc->sample_period; in __tile_event_init()
827 local64_set(&hwc->period_left, hwc->sample_period); in __tile_event_init()
/linux-4.4.14/tools/perf/arch/x86/tests/
Dintel-cqm.c75 pe.sample_period = 128; in test__intel_cqm_count_nmi_context()
/linux-4.4.14/tools/perf/util/
Dpython.c62 sample_member_def(sample_period, period, T_ULONGLONG, "event period"), \
593 u64 sample_period = 0; in pyrf_evsel__init() local
618 &sample_period, &attr.sample_type, in pyrf_evsel__init()
630 if (sample_period != 0) { in pyrf_evsel__init()
633 attr.sample_period = sample_period; in pyrf_evsel__init()
Dtop.c76 (uint64_t)first->attr.sample_period, in perf_top__header_snprintf()
Devsel.c258 attr.sample_period = 1; in perf_evsel__newtp_idx()
637 attr->sample_period = term->val.period; in apply_config_terms()
767 if (!attr->sample_period || (opts->user_freq != UINT_MAX || in perf_evsel__config()
774 attr->sample_period = opts->default_interval; in perf_evsel__config()
784 attr->sample_period = 0; in perf_evsel__config()
1240 PRINT_ATTRn("{ sample_period, sample_freq }", sample_period, p_unsigned); in perf_event_attr__fprintf()
1603 data->period = evsel->attr.sample_period; in perf_evsel__parse_sample()
Dintel-pt.c1871 attr.sample_period = in intel_pt_synth_events()
1874 attr.sample_period = pt->synth_opts.period; in intel_pt_synth_events()
1875 pt->instructions_sample_period = attr.sample_period; in intel_pt_synth_events()
1896 attr.sample_period = 1; in intel_pt_synth_events()
1924 attr.sample_period = 1; in intel_pt_synth_events()
Dintel-bts.c808 attr.sample_period = 1; in intel_bts_synth_events()
Devent.c1073 attr->sample_period == 1; in is_bts_event()
Dparse-events.c727 attr.sample_period = 1; in parse_events_add_breakpoint()
Dsession.c535 bswap_field_64(sample_period); in perf_event__attr_swap()
/linux-4.4.14/tools/perf/tests/
Dbp_signal_overflow.c87 pe.sample_period = THRESHOLD; in test__bp_signal_overflow()
Dbp_signal.c74 pe.sample_period = 1; in bp_event()
Dattr.c93 WRITE_ASS(sample_period, "llu"); in store_event()
Dparse-events.c24 TEST_ASSERT_VAL("wrong sample_period", 1 == evsel->attr.sample_period); in test__checkevent_tracepoint()
41 1 == evsel->attr.sample_period); in test__checkevent_tracepoint_multi()
90 0 == evsel->attr.sample_period); in test__checkevent_symbolic_name_config()
417 TEST_ASSERT_VAL("wrong period", 0 == evsel->attr.sample_period); in test__checkevent_pmu()
443 TEST_ASSERT_VAL("wrong sample_period", 1 == evsel->attr.sample_period); in test__checkevent_list()
495 TEST_ASSERT_VAL("wrong period", 0 == evsel->attr.sample_period); in test__checkevent_pmu_partial_time_callgraph()
508 TEST_ASSERT_VAL("wrong period", 0 == evsel->attr.sample_period); in test__checkevent_pmu_partial_time_callgraph()
714 TEST_ASSERT_VAL("wrong sample_period", 1 == evsel->attr.sample_period); in test__group3()
Dswitch-tracking.c415 tracking_evsel->attr.sample_period = 1; in test__switch_tracking()
/linux-4.4.14/drivers/perf/
Darm_pmu.c108 s64 period = hwc->sample_period; in armpmu_event_set_period()
440 hwc->sample_period = armpmu->max_period >> 1; in __hw_perf_event_init()
441 hwc->last_period = hwc->sample_period; in __hw_perf_event_init()
442 local64_set(&hwc->period_left, hwc->sample_period); in __hw_perf_event_init()
/linux-4.4.14/kernel/events/
Dcore.c2963 s64 period, sample_period; in perf_adjust_period() local
2968 delta = (s64)(period - hwc->sample_period); in perf_adjust_period()
2971 sample_period = hwc->sample_period + delta; in perf_adjust_period()
2973 if (!sample_period) in perf_adjust_period()
2974 sample_period = 1; in perf_adjust_period()
2976 hwc->sample_period = sample_period; in perf_adjust_period()
2978 if (local64_read(&hwc->period_left) > 8*sample_period) { in perf_adjust_period()
4155 event->attr.sample_period = value; in __perf_event_period()
4156 event->hw.sample_period = value; in __perf_event_period()
4217 event->attr.sample_period = value; in perf_event_period()
[all …]
Dhw_breakpoint.c586 bp->hw.last_period = bp->hw.sample_period; in hw_breakpoint_add()
/linux-4.4.14/include/linux/
Dhw_breakpoint.h22 attr->sample_period = 1; in hw_breakpoint_init()
Dperf_event.h167 u64 sample_period; member
851 return event->attr.sample_period != 0; in is_sampling_event()
/linux-4.4.14/drivers/oprofile/
Dnmi_timer_int.c133 nmi_timer_attr.sample_period = period; in nmi_timer_setup()
Doprofile_perf.c69 attr->sample_period = counter_config[i].count; in op_perf_setup()
/linux-4.4.14/arch/s390/kernel/
Dperf_cpum_sf.c642 hwc->sample_period = period; in hw_init_period()
643 hwc->last_period = hwc->sample_period; in hw_init_period()
644 local64_set(&hwc->period_left, hwc->sample_period); in hw_init_period()
750 attr->sample_period = rate; in __hw_perf_event_init()
756 rate = hw_limit_rate(&si, hwc->sample_period); in __hw_perf_event_init()
/linux-4.4.14/tools/perf/arch/x86/util/
Dintel-bts.c132 evsel->attr.sample_period = 1; in intel_bts_recording_options()
245 tracking_evsel->attr.sample_period = 1; in intel_bts_recording_options()
Dintel-pt.c519 evsel->attr.sample_period = 1; in intel_pt_recording_options()
641 switch_evsel->attr.sample_period = 1; in intel_pt_recording_options()
699 tracking_evsel->attr.sample_period = 1; in intel_pt_recording_options()
/linux-4.4.14/arch/mips/kernel/
Dperf_event_mipsxx.c380 u64 period = hwc->sample_period; in mipspmu_event_set_period()
1322 if (!hwc->sample_period) { in __hw_perf_event_init()
1323 hwc->sample_period = mipspmu.max_period; in __hw_perf_event_init()
1324 hwc->last_period = hwc->sample_period; in __hw_perf_event_init()
1325 local64_set(&hwc->period_left, hwc->sample_period); in __hw_perf_event_init()
/linux-4.4.14/drivers/iio/accel/
Dbmc150-accel-core.c871 uint64_t sample_period; in __bmc150_accel_fifo_flush() local
912 sample_period = (data->timestamp - data->old_timestamp); in __bmc150_accel_fifo_flush()
913 do_div(sample_period, count); in __bmc150_accel_fifo_flush()
914 tstamp = data->timestamp - (count - 1) * sample_period; in __bmc150_accel_fifo_flush()
940 tstamp += sample_period; in __bmc150_accel_fifo_flush()
/linux-4.4.14/arch/sparc/kernel/
Dperf_event.c889 s64 period = hwc->sample_period; in sparc_perf_event_set_period()
1483 if (!hwc->sample_period) { in sparc_pmu_event_init()
1484 hwc->sample_period = MAX_PERIOD; in sparc_pmu_event_init()
1485 hwc->last_period = hwc->sample_period; in sparc_pmu_event_init()
1486 local64_set(&hwc->period_left, hwc->sample_period); in sparc_pmu_event_init()
/linux-4.4.14/arch/x86/kvm/
Dpmu.c121 attr.sample_period = (-pmc->counter) & pmc_bitmask(pmc); in pmc_reprogram_counter()
/linux-4.4.14/include/uapi/linux/
Dperf_event.h292 __u64 sample_period; member
/linux-4.4.14/arch/xtensa/kernel/
Dperf_event.c166 s64 period = hwc->sample_period; in xtensa_perf_event_set_period()
/linux-4.4.14/drivers/bus/
Darm-cci.c1108 hwc->sample_period = CCI_PMU_CNTR_MASK >> 1; in __hw_perf_event_init()
1109 hwc->last_period = hwc->sample_period; in __hw_perf_event_init()
1110 local64_set(&hwc->period_left, hwc->sample_period); in __hw_perf_event_init()
Darm-ccn.c727 if (hw->sample_period) { in arm_ccn_pmu_event_init()
/linux-4.4.14/tools/perf/Documentation/
Dintel-pt.txt197 { sample_period, sample_freq } 1
576 { sample_period, sample_freq } 1
595 { sample_period, sample_freq } 1
611 { sample_period, sample_freq } 1
/linux-4.4.14/Documentation/powerpc/
Dpmu-ebb.txt73 An EBB event must NOT set any of the "inherit", "sample_period", "freq" or
/linux-4.4.14/arch/x86/kernel/
Dkgdb.c686 pevent[0]->hw.sample_period = 1; in kgdb_arch_late()
/linux-4.4.14/tools/perf/
Dbuiltin-kvm.c1009 attr->sample_period = 1; in kvm_live_open_events()
Dbuiltin-trace.c2426 attr.sample_period = 1; in perf_evlist__add_pgfault()