Home
last modified time | relevance | path

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

/linux-4.1.27/tools/testing/selftests/powerpc/pmu/ebb/
Dmulti_counter_test.c56 mtspr(SPRN_PMC1, pmc_sample_period(sample_period)); in multi_counter()
57 mtspr(SPRN_PMC2, pmc_sample_period(sample_period)); in multi_counter()
58 mtspr(SPRN_PMC3, pmc_sample_period(sample_period)); in multi_counter()
59 mtspr(SPRN_PMC4, pmc_sample_period(sample_period)); in multi_counter()
60 mtspr(SPRN_PMC5, pmc_sample_period(sample_period)); in multi_counter()
61 mtspr(SPRN_PMC6, pmc_sample_period(sample_period)); in multi_counter()
71 count_pmc(1, sample_period); in multi_counter()
72 count_pmc(2, sample_period); in multi_counter()
73 count_pmc(3, sample_period); in multi_counter()
74 count_pmc(4, sample_period); in multi_counter()
[all …]
Dlost_exception_test.c47 orig_period = max_period = sample_period = 400; in test_body()
49 mtspr(SPRN_PMC4, pmc_sample_period(sample_period)); in test_body()
64 if (sample_period >= (orig_period + 200)) in test_body()
65 sample_period = orig_period; in test_body()
67 sample_period++; in test_body()
69 if (sample_period > max_period) in test_body()
70 max_period = sample_period; in test_body()
76 count_pmc(4, sample_period); in test_body()
Dback_to_back_ebbs_test.c41 count_pmc(1, sample_period); in ebb_callee()
79 sample_period = 5; in back_to_back_ebbs()
82 mtspr(SPRN_PMC1, pmc_sample_period(sample_period)); in back_to_back_ebbs()
92 count_pmc(1, sample_period); in back_to_back_ebbs()
Debb.c32 u64 sample_period = 0x40000000ull; variable
72 bool ebb_check_count(int pmc, u64 sample_period, int fudge) in ebb_check_count() argument
78 lower = ebb_state.stats.ebb_count * (sample_period - fudge); in ebb_check_count()
86 upper = ebb_state.stats.ebb_count * (sample_period + fudge); in ebb_check_count()
120 found += count_pmc(i, sample_period); in standard_ebb_callee()
253 int count_pmc(int pmc, uint32_t sample_period) in count_pmc() argument
259 start_value = pmc_sample_period(sample_period); in count_pmc()
372 mtspr(SPRN_PMC1, pmc_sample_period(sample_period)); in ebb_child()
390 count_pmc(1, sample_period); in ebb_child()
Dcycles_test.c33 mtspr(SPRN_PMC1, pmc_sample_period(sample_period)); in cycles()
43 count_pmc(1, sample_period); in cycles()
50 FAIL_IF(!ebb_check_count(1, sample_period, 100)); in cycles()
Dpmc56_overflow_test.c30 count_pmc(2, sample_period); in ebb_callee()
67 mtspr(SPRN_PMC1, pmc_sample_period(sample_period)); in pmc56_overflow()
77 count_pmc(2, sample_period); in pmc56_overflow()
Debb.h46 bool ebb_check_count(int pmc, u64 sample_period, int fudge);
59 int count_pmc(int pmc, uint32_t sample_period);
70 extern u64 sample_period;
Dpmae_handling_test.c42 count_pmc(1, sample_period); in syscall_ebb_callee()
75 mtspr(SPRN_PMC1, pmc_sample_period(sample_period)); in test_body()
83 count_pmc(1, sample_period); in test_body()
Dcycles_with_freeze_test.c48 count_pmc(1, sample_period); in ebb_callee()
72 mtspr(SPRN_PMC1, pmc_sample_period(sample_period)); in cycles_with_freeze()
100 count_pmc(1, sample_period); in cycles_with_freeze()
Dno_handler_test.c36 sample_period = 1000; in no_handler_test()
37 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()
123 sample_period = COUNTER_OVERFLOW; in instruction_count()
Dcycles_with_mmcr2_test.c44 mtspr(SPRN_PMC1, pmc_sample_period(sample_period)); in cycles_with_mmcr2()
72 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.c33 mtspr(SPRN_PMC1, pmc_sample_period(sample_period)); in close_clears_pmcc()
Dfork_cleanup_test.c59 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.c48 event.attr.sample_period = 1; in event_attributes()
/linux-4.1.27/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.1.27/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.c389 hwc->sample_period = x86_pmu.max_period; in x86_setup_perfctr()
390 hwc->last_period = hwc->sample_period; in x86_setup_perfctr()
391 local64_set(&hwc->period_left, hwc->sample_period); in x86_setup_perfctr()
418 !attr->freq && hwc->sample_period == 1) { in x86_setup_perfctr()
537 if (event->attr.sample_period && x86_pmu.limit_period) { in x86_pmu_hw_config()
538 if (x86_pmu.limit_period(event, event->attr.sample_period) > in x86_pmu_hw_config()
539 event->attr.sample_period) in x86_pmu_hw_config()
1078 s64 period = hwc->sample_period; in x86_perf_event_set_period()
Dperf_event_intel_uncore_snb.c254 if (hwc->sample_period) in snb_uncore_imc_event_init()
264 event->attr.sample_period) /* no sampling */ in snb_uncore_imc_event_init()
Dperf_event_intel_rapl.c378 event->attr.sample_period) /* no sampling */ in rapl_pmu_event_init()
Dperf_event.h815 !event->attr.freq && event->hw.sample_period == 1) in intel_pmu_has_bts()
Dperf_event_intel.c1696 if (unlikely(hw_event == bts_event && hwc->sample_period == 1)) in intel_bts_constraints()
2447 if (event->attr.sample_period > 0 && in hsw_hw_config()
2448 event->attr.sample_period < 0x7fffffff) in hsw_hw_config()
Dperf_event_intel_cqm.c1097 event->attr.sample_period) /* no sampling */ in intel_cqm_event_init()
Dperf_event_intel_uncore.c613 if (hwc->sample_period) in uncore_pmu_event_init()
/linux-4.1.27/kernel/
Dwatchdog.c63 static u64 __read_mostly sample_period; variable
182 sample_period = get_softlockup_thresh() * ((u64)NSEC_PER_SEC / 5); in set_sample_period()
338 hrtimer_forward_now(hrtimer, ns_to_ktime(sample_period)); in watchdog_timer_fn()
452 hrtimer_start(hrtimer, ns_to_ktime(sample_period), in watchdog_enable()
537 wd_attr->sample_period = hw_nmi_get_sample_period(watchdog_thresh); in watchdog_nmi_enable()
675 hrtimer_start(hrtimer, ns_to_ktime(sample_period), in restart_watchdog_hrtimer()
/linux-4.1.27/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.1.27/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()
1656 || event->attr.sample_period) in can_go_on_limited_pmc()
1861 event->hw.last_period = event->hw.sample_period; in power_pmu_event_init()
1931 u64 period = event->hw.sample_period; in record_and_restart()
1959 event->hw.last_period = event->hw.sample_period; in record_and_restart()
/linux-4.1.27/tools/perf/tests/attr/
Dtest-record-no-samples6 sample_period=0
Dtest-record-freq6 sample_period=100
Dtest-record-raw6 sample_period=4000
Dtest-record-period6 sample_period=100
Dtest-record-count6 sample_period=123
Dtest-record-branch-any6 sample_period=4000
Dtest-record-branch-filter-any6 sample_period=4000
Dtest-record-branch-filter-hv6 sample_period=4000
Dtest-record-no-delay6 sample_period=4000
Dtest-record-branch-filter-any_ret6 sample_period=4000
Dtest-record-branch-filter-any_call6 sample_period=4000
Dtest-record-branch-filter-u6 sample_period=4000
Dtest-record-branch-filter-ind_call6 sample_period=4000
Dtest-record-branch-filter-k6 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.1.27/arch/arm/kernel/
Dperf_event.c102 s64 period = hwc->sample_period; in armpmu_event_set_period()
438 hwc->sample_period = armpmu->max_period >> 1; in __hw_perf_event_init()
439 hwc->last_period = hwc->sample_period; in __hw_perf_event_init()
440 local64_set(&hwc->period_left, hwc->sample_period); in __hw_perf_event_init()
/linux-4.1.27/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.1.27/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.1.27/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.1.27/tools/perf/util/
Dpython.c62 sample_member_def(sample_period, period, T_ULONGLONG, "event period"), \
546 u64 sample_period = 0; in pyrf_evsel__init() local
570 &sample_period, &attr.sample_type, in pyrf_evsel__init()
582 if (sample_period != 0) { in pyrf_evsel__init()
585 attr.sample_period = sample_period; in pyrf_evsel__init()
Dtop.c76 (uint64_t)first->attr.sample_period, in perf_top__header_snprintf()
Devsel.c244 attr.sample_period = 1; in perf_evsel__newtp_idx()
651 if (!attr->sample_period || (opts->user_freq != UINT_MAX || in perf_evsel__config()
658 attr->sample_period = opts->default_interval; in perf_evsel__config()
668 attr->sample_period = 0; in perf_evsel__config()
1086 PRINT_ATTRn("{ sample_period, sample_freq }", sample_period, p_unsigned); in perf_event_attr__fprintf()
1430 data->period = evsel->attr.sample_period; in perf_evsel__parse_sample()
Dparse-events.c536 attr.sample_period = 1; in parse_events_add_breakpoint()
565 attr->sample_period = term->val.num; in config_term()
Dsession.c442 attr->sample_period = bswap_64(attr->sample_period); in perf_event__attr_swap()
Devent.c944 attr->sample_period == 1; in is_bts_event()
/linux-4.1.27/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()
86 100000 == evsel->attr.sample_period); in test__checkevent_symbolic_name_config()
409 TEST_ASSERT_VAL("wrong period", 1000 == evsel->attr.sample_period); in test__checkevent_pmu()
435 TEST_ASSERT_VAL("wrong sample_period", 1 == evsel->attr.sample_period); in test__checkevent_list()
673 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.1.27/kernel/events/
Dcore.c2935 s64 period, sample_period; in perf_adjust_period() local
2940 delta = (s64)(period - hwc->sample_period); in perf_adjust_period()
2943 sample_period = hwc->sample_period + delta; in perf_adjust_period()
2945 if (!sample_period) in perf_adjust_period()
2946 sample_period = 1; in perf_adjust_period()
2948 hwc->sample_period = sample_period; in perf_adjust_period()
2950 if (local64_read(&hwc->period_left) > 8*sample_period) { in perf_adjust_period()
3996 event->attr.sample_period = value; in __perf_event_period()
3997 event->hw.sample_period = value; in __perf_event_period()
6202 hwc->last_period = hwc->sample_period; in perf_swevent_set_period()
[all …]
Dhw_breakpoint.c586 bp->hw.last_period = bp->hw.sample_period; in hw_breakpoint_add()
/linux-4.1.27/include/linux/
Dhw_breakpoint.h22 attr->sample_period = 1; in hw_breakpoint_init()
Dperf_event.h146 u64 sample_period; member
735 return event->attr.sample_period != 0; in is_sampling_event()
/linux-4.1.27/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.1.27/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.1.27/arch/arm64/kernel/
Dperf_event.c157 s64 period = hwc->sample_period; in armpmu_event_set_period()
568 if (!hwc->sample_period) { in __hw_perf_event_init()
575 hwc->sample_period = armpmu->max_period >> 1; in __hw_perf_event_init()
576 hwc->last_period = hwc->sample_period; in __hw_perf_event_init()
577 local64_set(&hwc->period_left, hwc->sample_period); in __hw_perf_event_init()
/linux-4.1.27/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.1.27/drivers/iio/accel/
Dbmc150-accel.c965 uint64_t sample_period; in __bmc150_accel_fifo_flush() local
1005 sample_period = (data->timestamp - data->old_timestamp); in __bmc150_accel_fifo_flush()
1006 do_div(sample_period, count); in __bmc150_accel_fifo_flush()
1007 tstamp = data->timestamp - (count - 1) * sample_period; in __bmc150_accel_fifo_flush()
1033 tstamp += sample_period; in __bmc150_accel_fifo_flush()
/linux-4.1.27/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.1.27/include/uapi/linux/
Dperf_event.h287 __u64 sample_period; member
/linux-4.1.27/drivers/bus/
Darm-cci.c714 hwc->sample_period = CCI_PMU_CNTR_MASK >> 1; in __hw_perf_event_init()
715 hwc->last_period = hwc->sample_period; in __hw_perf_event_init()
716 local64_set(&hwc->period_left, hwc->sample_period); in __hw_perf_event_init()
Darm-ccn.c629 if (hw->sample_period) { in arm_ccn_pmu_event_init()
/linux-4.1.27/samples/bpf/
Dbpf_load.c45 attr.sample_period = 1; in load_and_attach()
/linux-4.1.27/Documentation/powerpc/
Dpmu-ebb.txt73 An EBB event must NOT set any of the "inherit", "sample_period", "freq" or
/linux-4.1.27/arch/x86/kvm/
Dpmu.c185 attr.sample_period = (-pmc->counter) & pmc_bitmask(pmc); in reprogram_counter()
/linux-4.1.27/arch/x86/kernel/
Dkgdb.c681 pevent[0]->hw.sample_period = 1; in kgdb_arch_late()
/linux-4.1.27/tools/perf/
Dbuiltin-kvm.c1008 attr->sample_period = 1; in kvm_live_open_events()
Dbuiltin-trace.c2118 attr.sample_period = 1; in perf_evlist__add_pgfault()