Searched refs:sample_type (Results 1 - 25 of 103) sorted by relevance

12345

/linux-master/tools/perf/arch/x86/tests/
H A Dsample-parsing.c38 static int do_test(u64 sample_type) argument
44 .sample_type = sample_type,
59 sz = perf_event__sample_event_size(&sample, sample_type, 0);
72 err = perf_event__synthesize_sample(event, sample_type, 0, &sample);
74 pr_debug("%s failed for sample_type %#"PRIx64", error %d\n",
75 "perf_event__synthesize_sample", sample_type, err);
90 evsel.sample_size = __evsel__sample_size(sample_type);
94 pr_debug("%s failed for sample_type %#"PRIx64", error %d\n",
95 "evsel__parse_sample", sample_type, er
[all...]
H A Damd-ibs-via-core-pmu.c34 attr.sample_type = PERF_SAMPLE_IP | PERF_SAMPLE_TID;
H A Dintel-cqm.c80 pe.sample_type = PERF_SAMPLE_IP | PERF_SAMPLE_READ;
/linux-master/drivers/cpufreq/
H A Dcpufreq_ondemand.h16 unsigned int sample_type:1; member in struct:od_policy_dbs_info
H A Dcpufreq_ondemand.c176 int sample_type = dbs_info->sample_type; local
179 dbs_info->sample_type = OD_NORMAL_SAMPLE;
184 if (sample_type == OD_SUB_SAMPLE && policy_dbs->sample_delay_ns > 0) {
194 dbs_info->sample_type = OD_SUB_SAMPLE;
394 dbs_info->sample_type = OD_NORMAL_SAMPLE;
/linux-master/tools/perf/tests/
H A Dsample-parsing.c196 static int do_test(u64 sample_type, u64 sample_regs, u64 read_format) argument
202 .sample_type = sample_type,
276 if (sample_type & PERF_SAMPLE_REGS_USER)
279 if (sample_type & PERF_SAMPLE_REGS_INTR)
282 if (sample_type & PERF_SAMPLE_BRANCH_STACK)
297 sz = perf_event__sample_event_size(&sample, sample_type, read_format);
310 err = perf_event__synthesize_sample(event, sample_type, read_format,
313 pr_debug("%s failed for sample_type %#"PRIx64", error %d\n",
314 "perf_event__synthesize_sample", sample_type, er
380 u64 sample_type; local
[all...]
H A Ddlfilter-test.c112 static int write_attr(struct test_data *td, u64 sample_type, u64 *id) argument
118 .sample_type = sample_type,
173 static int write_sample(struct test_data *td, u64 sample_type, u64 id, pid_t pid, pid_t tid) argument
192 event->header.size = perf_event__sample_event_size(&sample, sample_type, 0);
193 err = perf_event__synthesize_sample(event, sample_type, 0, &sample);
322 u64 sample_type = TEST_SAMPLE_TYPE; local
366 err = write_attr(td, sample_type, &id);
376 if (write_sample(td, sample_type, id, pid, tid) != TEST_OK)
/linux-master/tools/testing/selftests/powerpc/pmu/sampling_tests/
H A Dbhrb_no_crash_wo_pmu_test.c41 event.attr.sample_type = PERF_SAMPLE_BRANCH_STACK;
H A Dintr_regs_no_crash_wo_pmu_test.c40 event.attr.sample_type = PERF_SAMPLE_REGS_INTR;
H A Dmmcra_bhrb_any_test.c36 event.attr.sample_type |= PERF_SAMPLE_BRANCH_STACK;
H A Dmmcra_bhrb_cond_test.c40 event.attr.sample_type |= PERF_SAMPLE_BRANCH_STACK;
H A Dmmcra_bhrb_disable_test.c37 event.attr.sample_type |= PERF_SAMPLE_BRANCH_STACK;
H A Dmmcra_bhrb_ind_call_test.c40 event.attr.sample_type |= PERF_SAMPLE_BRANCH_STACK;
H A Dbhrb_filter_map_test.c59 event.attr.sample_type = PERF_SAMPLE_BRANCH_STACK;
/linux-master/tools/perf/util/
H A Dbpf_off_cpu.c61 evsel->core.attr.sample_type = PERF_SAMPLE_CALLCHAIN;
298 u64 sample_type, val, sid = 0; local
318 sample_type = evsel->core.attr.sample_type;
320 if (sample_type & ~OFFCPU_SAMPLE_TYPES) {
322 (unsigned long long)sample_type);
326 if (sample_type & (PERF_SAMPLE_ID | PERF_SAMPLE_IDENTIFIER)) {
341 if (sample_type & PERF_SAMPLE_IDENTIFIER)
343 if (sample_type & PERF_SAMPLE_IP) {
347 if (sample_type
[all...]
H A Drecord.c86 * sample_type to ease up reporting.
87 * An AUX area event also has sample_type requirements, so also include
88 * the sample type bits from the leader's sample_type to cover that
91 attr->sample_type = read_sampler->core.attr.sample_type |
92 leader->core.attr.sample_type;
129 if (evsel->core.attr.sample_type == first->core.attr.sample_type)
H A Devsel.c142 int __evsel__sample_size(u64 sample_type) argument
144 u64 mask = sample_type & PERF_SAMPLE_MASK;
160 * @sample_type: sample type
166 static int __perf_evsel__calc_id_pos(u64 sample_type) argument
170 if (sample_type & PERF_SAMPLE_IDENTIFIER)
173 if (!(sample_type & PERF_SAMPLE_ID))
176 if (sample_type & PERF_SAMPLE_IP)
179 if (sample_type & PERF_SAMPLE_TID)
182 if (sample_type & PERF_SAMPLE_TIME)
185 if (sample_type
199 __perf_evsel__calc_is_pos(u64 sample_type) argument
2745 u64 sample_type = evsel->core.attr.sample_type; local
[all...]
/linux-master/tools/perf/python/
H A Dtwatch.py19 sample_type = perf.SAMPLE_PERIOD | perf.SAMPLE_TID | perf.SAMPLE_CPU)
H A Dtracepoint.py15 sample_type = perf.SAMPLE_PERIOD | perf.SAMPLE_TID | perf.SAMPLE_CPU | perf.SAMPLE_RAW | perf.SAMPLE_TIME)
/linux-master/tools/perf/ui/browsers/
H A Dscripts.c39 if (attr->sample_type & PERF_SAMPLE_BRANCH_STACK)
41 if (attr->sample_type & PERF_SAMPLE_REGS_INTR)
43 if (attr->sample_type & PERF_SAMPLE_REGS_USER)
45 if (attr->sample_type & PERF_SAMPLE_PHYS_ADDR)
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dget_stackid_cannot_attach.c13 .sample_type = PERF_SAMPLE_IP | PERF_SAMPLE_BRANCH_STACK,
55 attr.sample_type |= PERF_SAMPLE_CALLCHAIN;
H A Dget_branch_snapshot.c42 attr.sample_type = PERF_SAMPLE_BRANCH_STACK;
/linux-master/samples/bpf/
H A Dtracex6_user.c108 .sample_type = 0,
117 .sample_type = 0,
126 .sample_type = 0,
136 .sample_type = 0,
148 .sample_type = 0,
161 .sample_type = 0,
/linux-master/sound/soc/intel/skylake/
H A Dskl-ssp-clk.h76 u32 sample_type : 8; member in struct:skl_dmactrl_sclkfs_cfg
/linux-master/arch/x86/events/amd/
H A Dibs.c960 static void perf_ibs_parse_ld_st_data(__u64 sample_type, argument
978 if (sample_type & PERF_SAMPLE_DATA_SRC) {
983 if (sample_type & PERF_SAMPLE_WEIGHT_TYPE && op_data3.dc_miss &&
987 if (sample_type & PERF_SAMPLE_WEIGHT_STRUCT) {
990 } else if (sample_type & PERF_SAMPLE_WEIGHT) {
996 if (sample_type & PERF_SAMPLE_ADDR && op_data3.dc_lin_addr_valid) {
1001 if (sample_type & PERF_SAMPLE_PHYS_ADDR && op_data3.dc_phy_addr_valid) {
1007 static int perf_ibs_get_offset_max(struct perf_ibs *perf_ibs, u64 sample_type, argument
1010 if (sample_type & PERF_SAMPLE_RAW ||
1012 (sample_type
[all...]

Completed in 315 milliseconds

12345