Home
last modified time | relevance | path

Searched refs:core (Results 1 – 25 of 121) sorted by relevance

12345

/tools/perf/pmu-events/arch/x86/
Dmapfile.csv2 GenuineIntel-6-56,v5,broadwellde,core
3 GenuineIntel-6-3D,v17,broadwell,core
4 GenuineIntel-6-47,v17,broadwell,core
5 GenuineIntel-6-4F,v10,broadwellx,core
6 GenuineIntel-6-1C,v4,bonnell,core
7 GenuineIntel-6-26,v4,bonnell,core
8 GenuineIntel-6-27,v4,bonnell,core
9 GenuineIntel-6-36,v4,bonnell,core
10 GenuineIntel-6-35,v4,bonnell,core
11 GenuineIntel-6-5C,v8,goldmont,core
[all …]
/tools/perf/tests/
Dparse-events.c51 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries); in test__checkevent_tracepoint()
53 TEST_ASSERT_VAL("wrong type", PERF_TYPE_TRACEPOINT == evsel->core.attr.type); in test__checkevent_tracepoint()
55 PERF_TP_SAMPLE_TYPE == evsel->core.attr.sample_type); in test__checkevent_tracepoint()
56 TEST_ASSERT_VAL("wrong sample_period", 1 == evsel->core.attr.sample_period); in test__checkevent_tracepoint()
64 TEST_ASSERT_VAL("wrong number of entries", evlist->core.nr_entries > 1); in test__checkevent_tracepoint_multi()
69 PERF_TYPE_TRACEPOINT == evsel->core.attr.type); in test__checkevent_tracepoint_multi()
71 PERF_TP_SAMPLE_TYPE == evsel->core.attr.sample_type); in test__checkevent_tracepoint_multi()
73 1 == evsel->core.attr.sample_period); in test__checkevent_tracepoint_multi()
82 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries); in test__checkevent_raw()
83 TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type); in test__checkevent_raw()
[all …]
Dtask-exit.c80 perf_evlist__set_maps(&evlist->core, cpus, threads); in test__task_exit()
93 evsel->core.attr.task = 1; in test__task_exit()
95 evsel->core.attr.sample_freq = 1000000; in test__task_exit()
97 evsel->core.attr.sample_freq = 1; in test__task_exit()
99 evsel->core.attr.inherit = 0; in test__task_exit()
100 evsel->core.attr.watermark = 0; in test__task_exit()
101 evsel->core.attr.wakeup_events = 1; in test__task_exit()
102 evsel->core.attr.exclude_kernel = 1; in test__task_exit()
Dkeep-tracking.c39 for (i = 0; i < evlist->core.nr_mmaps; i++) { in find_comm()
89 perf_evlist__set_maps(&evlist->core, cpus, threads); in test__keep_tracking()
98 evsel->core.attr.comm = 1; in test__keep_tracking()
99 evsel->core.attr.disabled = 1; in test__keep_tracking()
100 evsel->core.attr.enable_on_exec = 0; in test__keep_tracking()
Devent_update.c98 !perf_evsel__alloc_id(&evsel->core, 1, 1)); in test__event_update()
100 perf_evlist__id_add(&evlist->core, &evsel->core, 0, 0, 123); in test__event_update()
117 evsel->core.own_cpus = perf_cpu_map__new("1,2,3"); in test__event_update()
Devent-times.c41 evsel->core.attr.enable_on_exec = 1; in attach__enable_on_exec()
73 evsel->core.attr.disabled = 1; in attach__current_disabled()
126 evsel->core.attr.disabled = 1; in attach__cpu_disabled()
184 evsel->core.attr.read_format |= in test_times()
200 perf_evsel__read(&evsel->core, 0, 0, &count); in test_times()
/tools/perf/util/
Dmmap.c28 return map->core.mask + 1 + page_size; in perf_mmap__mmap_len()
35 unsigned char *data = map->core.base + page_size; in perf_mmap__read()
42 event = (union perf_event *)&data[*startp & map->core.mask]; in perf_mmap__read()
52 if ((*startp & map->core.mask) + size != ((*startp + size) & map->core.mask)) { in perf_mmap__read()
55 void *dst = map->core.event_copy; in perf_mmap__read()
58 cpy = min(map->core.mask + 1 - (offset & map->core.mask), len); in perf_mmap__read()
59 memcpy(dst, &data[offset & map->core.mask], cpy); in perf_mmap__read()
65 event = (union perf_event *)map->core.event_copy; in perf_mmap__read()
93 if (!refcount_read(&map->core.refcnt)) in perf_mmap__read_event()
97 if (!map->core.overwrite) in perf_mmap__read_event()
[all …]
Devlist.c52 #define FD(e, x, y) (*(int *)xyarray__entry(e->core.fd, x, y))
53 #define SID(e, x, y) xyarray__entry(e->core.sample_id, x, y)
58 perf_evlist__init(&evlist->core); in evlist__init()
59 perf_evlist__set_maps(&evlist->core, cpus, threads); in evlist__init()
60 fdarray__init(&evlist->core.pollfd, 64); in evlist__init()
129 list_del_init(&pos->core.node); in evlist__purge()
134 evlist->core.nr_entries = 0; in evlist__purge()
141 fdarray__exit(&evlist->core.pollfd); in evlist__exit()
151 perf_cpu_map__put(evlist->core.cpus); in evlist__delete()
152 perf_thread_map__put(evlist->core.threads); in evlist__delete()
[all …]
Devsel.h44 struct perf_evsel core; member
129 return perf_evsel__cpus(&evsel->core); in evsel__cpus()
253 (evsel->core.attr.type == PERF_TYPE_##t && \
254 evsel->core.attr.config == PERF_COUNT_##c)
259 return (e1->core.attr.type == e2->core.attr.type) && in perf_evsel__match2()
260 (e1->core.attr.config == e2->core.attr.config); in perf_evsel__match2()
266 (a)->core.attr.type == (b)->core.attr.type && \
267 (a)->core.attr.config == (b)->core.attr.config)
309 return list_entry(evsel->core.node.next, struct evsel, core.node); in perf_evsel__next()
314 return list_entry(evsel->core.node.prev, struct evsel, core.node); in perf_evsel__prev()
[all …]
Devsel.c103 #define FD(e, x, y) (*(int *)xyarray__entry(e->core.fd, x, y))
183 evsel->id_pos = __perf_evsel__calc_id_pos(evsel->core.attr.sample_type); in perf_evsel__calc_id_pos()
184 evsel->is_pos = __perf_evsel__calc_is_pos(evsel->core.attr.sample_type); in perf_evsel__calc_id_pos()
190 if (!(evsel->core.attr.sample_type & bit)) { in __perf_evsel__set_sample_bit()
191 evsel->core.attr.sample_type |= bit; in __perf_evsel__set_sample_bit()
200 if (evsel->core.attr.sample_type & bit) { in __perf_evsel__reset_sample_bit()
201 evsel->core.attr.sample_type &= ~bit; in __perf_evsel__reset_sample_bit()
216 evsel->core.attr.read_format |= PERF_FORMAT_ID; in perf_evsel__set_sample_id()
240 perf_evsel__init(&evsel->core, attr); in evsel__init()
271 evsel->core.attr.sample_type |= (PERF_SAMPLE_RAW | PERF_SAMPLE_TIME | in perf_evsel__new_idx()
[all …]
Drecord.c36 fd = sys_perf_event_open(&evsel->core.attr, pid, cpu, -1, flags); in perf_do_probe_api()
50 fd = sys_perf_event_open(&evsel->core.attr, pid, cpu, -1, flags); in perf_do_probe_api()
87 evsel->core.attr.sample_type |= PERF_SAMPLE_IDENTIFIER; in perf_probe_sample_identifier()
92 evsel->core.attr.comm_exec = 1; in perf_probe_comm_exec()
97 evsel->core.attr.context_switch = 1; in perf_probe_context_switch()
154 if (evlist->core.cpus->map[0] < 0) in perf_evlist__config()
162 evsel->core.attr.comm_exec = 1; in perf_evlist__config()
173 } else if (evlist->core.nr_entries > 1) { in perf_evlist__config()
177 if (evsel->core.attr.sample_type == first->core.attr.sample_type) in perf_evlist__config()
281 if (!evlist || perf_cpu_map__empty(evlist->core.cpus)) { in perf_evlist__can_select_event()
[all …]
Devlist.h52 struct perf_evlist core; member
234 return list_empty(&evlist->core.entries); in perf_evlist__empty()
239 struct perf_evsel *evsel = perf_evlist__first(&evlist->core); in evlist__first()
241 return container_of(evsel, struct evsel, core); in evlist__first()
246 struct perf_evsel *evsel = perf_evlist__last(&evlist->core); in evlist__last()
248 return container_of(evsel, struct evsel, core); in evlist__last()
264 list_for_each_entry(evsel, list, core.node)
272 __evlist__for_each_entry(&(evlist)->core.entries, evsel)
280 list_for_each_entry_continue(evsel, list, core.node)
288 __evlist__for_each_entry_continue(&(evlist)->core.entries, evsel)
[all …]
Dmmap.h24 struct perf_mmap core; member
54 return ring_buffer_read_head(mm->core.base); in perf_mmap__read_head()
59 ring_buffer_write_tail(md->core.base, tail); in perf_mmap__write_tail()
Dtop.c73 if (top->evlist->core.nr_entries == 1) { in perf_top__header_snprintf()
76 (uint64_t)first->core.attr.sample_period, in perf_top__header_snprintf()
98 top->evlist->core.cpus->nr > 1 ? "s" : "", in perf_top__header_snprintf()
105 top->evlist->core.cpus->nr, in perf_top__header_snprintf()
106 top->evlist->core.cpus->nr > 1 ? "s" : ""); in perf_top__header_snprintf()
/tools/perf/pmu-events/arch/arm64/
Dmapfile.csv11 # Type is core, uncore etc
15 0x00000000410fd030,v1,arm/cortex-a53,core
16 0x00000000420f1000,v1,arm/cortex-a53,core
17 0x00000000410fd070,v1,arm/cortex-a57-a72,core
18 0x00000000410fd080,v1,arm/cortex-a57-a72,core
19 0x00000000410fd0b0,v1,arm/cortex-a76-n1,core
20 0x00000000410fd0c0,v1,arm/cortex-a76-n1,core
21 0x00000000420f5160,v1,cavium/thunderx2,core
22 0x00000000430f0af0,v1,cavium/thunderx2,core
23 0x00000000480fd010,v1,hisilicon/hip08,core
[all …]
/tools/perf/pmu-events/arch/s390/
Dmapfile.csv2 ^IBM.209[78].*[13]\.[1-5].[[:xdigit:]]+$,1,cf_z10,core
3 ^IBM.281[78].*[13]\.[1-5].[[:xdigit:]]+$,1,cf_z196,core
4 ^IBM.282[78].*[13]\.[1-5].[[:xdigit:]]+$,1,cf_zec12,core
5 ^IBM.296[45].*[13]\.[1-5].[[:xdigit:]]+$,1,cf_z13,core
6 ^IBM.390[67].*[13]\.[1-5].[[:xdigit:]]+$,3,cf_z14,core
7 ^IBM.856[12].*3\.6.[[:xdigit:]]+$,3,cf_z15,core
/tools/testing/selftests/bpf/
Dtest_kmod.sh17 sysctl -w net.core.bpf_jit_enable=$1 2>&1 > /dev/null
18 sysctl -w net.core.bpf_jit_harden=$2 2>&1 > /dev/null
44 JE=`sysctl -n net.core.bpf_jit_enable`
45 JH=`sysctl -n net.core.bpf_jit_harden`
50 sysctl -w net.core.bpf_jit_enable=$JE 2>&1 > /dev/null
51 sysctl -w net.core.bpf_jit_harden=$JH 2>&1 > /dev/null
/tools/power/cpupower/lib/
Dcpupower.c113 else if (top1->core < top2->core) in __compare()
115 else if (top1->core > top2->core) in __compare()
147 cpu_top->core_info[cpu].core = -1; in get_cpu_topology()
153 &(cpu_top->core_info[cpu].core)) < 0) { in get_cpu_topology()
155 cpu_top->core_info[cpu].core = -1; in get_cpu_topology()
/tools/perf/pmu-events/arch/powerpc/
Dmapfile.csv10 # Type is core, uncore etc
16 004[bcd][[:xdigit:]]{4},1,power8,core
17 004e[[:xdigit:]]{4},1,power9,core
/tools/perf/arch/x86/tests/
Dperf-time-to-tsc.c80 perf_evlist__set_maps(&evlist->core, cpus, threads); in test__perf_time_to_tsc()
88 evsel->core.attr.comm = 1; in test__perf_time_to_tsc()
89 evsel->core.attr.disabled = 1; in test__perf_time_to_tsc()
90 evsel->core.attr.enable_on_exec = 0; in test__perf_time_to_tsc()
96 pc = evlist->mmap[0].core.base; in test__perf_time_to_tsc()
118 for (i = 0; i < evlist->core.nr_mmaps; i++) { in test__perf_time_to_tsc()
/tools/perf/arch/arm64/util/
Darm-spe.c54 if (!session->evlist->core.nr_mmaps) in arm_spe_info_fill()
78 if (evsel->core.attr.type == arm_spe_pmu->type) { in arm_spe_recording_options()
83 evsel->core.attr.freq = 0; in arm_spe_recording_options()
84 evsel->core.attr.sample_period = 1; in arm_spe_recording_options()
135 tracking_evsel->core.attr.freq = 0; in arm_spe_recording_options()
136 tracking_evsel->core.attr.sample_period = 1; in arm_spe_recording_options()
168 if (evsel->core.attr.type == sper->arm_spe_pmu->type) { in arm_spe_read_finish()
/tools/testing/selftests/powerpc/ptrace/
DMakefile4 ptrace-tm-spd-vsx ptrace-tm-spr ptrace-hwbreak ptrace-pkey core-pkey \
12 $(OUTPUT)/ptrace-pkey $(OUTPUT)/core-pkey: child.h
13 $(OUTPUT)/ptrace-pkey $(OUTPUT)/core-pkey: LDLIBS += -pthread
/tools/perf/arch/x86/util/
Dintel-pt.c128 if (evsel->core.attr.type == intel_pt_pmu->type) { in intel_pt_read_config()
129 *res = intel_pt_masked_bits(mask, evsel->core.attr.config); in intel_pt_read_config()
280 if (evsel->core.attr.type == intel_pt_pmu->type) in intel_pt_find_filter()
355 if (!session->evlist->core.nr_mmaps) in intel_pt_info_fill()
358 pc = session->evlist->mmap[0].core.base; in intel_pt_info_fill()
371 per_cpu_mmaps = !perf_cpu_map__empty(session->evlist->core.cpus); in intel_pt_info_fill()
425 evsel->core.system_wide = true; in intel_pt_track_switches()
532 !(evsel->core.attr.config & 1)) { in intel_pt_validate_config()
534 evsel->core.attr.config |= 1; in intel_pt_validate_config()
539 evsel->core.attr.config); in intel_pt_validate_config()
[all …]
Dintel-bts.c78 if (!session->evlist->core.nr_mmaps) in intel_bts_info_fill()
81 pc = session->evlist->mmap[0].core.base; in intel_bts_info_fill()
113 const struct perf_cpu_map *cpus = evlist->core.cpus; in intel_bts_recording_options()
120 if (evsel->core.attr.type == intel_bts_pmu->type) { in intel_bts_recording_options()
125 evsel->core.attr.freq = 0; in intel_bts_recording_options()
126 evsel->core.attr.sample_period = 1; in intel_bts_recording_options()
238 tracking_evsel->core.attr.freq = 0; in intel_bts_recording_options()
239 tracking_evsel->core.attr.sample_period = 1; in intel_bts_recording_options()
323 if (evsel->core.attr.type == btsr->intel_bts_pmu->type) in intel_bts_snapshot_start()
336 if (evsel->core.attr.type == btsr->intel_bts_pmu->type) in intel_bts_snapshot_finish()
[all …]
/tools/perf/arch/arm/util/
Dcs-etm.c102 evsel->core.attr.config |= (1 << ETM_OPT_CTXTID); in cs_etm_set_context_id()
151 evsel->core.attr.config |= (1 << ETM_OPT_TS); in cs_etm_set_timestamp()
162 struct perf_cpu_map *event_cpus = evsel->evlist->core.cpus; in cs_etm_set_option()
222 if (evsel->core.attr.config2 & GENMASK(31, 0)) in cs_etm_set_sink_attr()
240 evsel->core.attr.config2 |= hash; in cs_etm_set_sink_attr()
260 struct perf_cpu_map *cpus = evlist->core.cpus; in cs_etm_recording_options()
271 if (evsel->core.attr.type == cs_etm_pmu->type) { in cs_etm_recording_options()
277 evsel->core.attr.freq = 0; in cs_etm_recording_options()
278 evsel->core.attr.sample_period = 1; in cs_etm_recording_options()
423 tracking_evsel->core.attr.freq = 0; in cs_etm_recording_options()
[all …]

12345