You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit cfb104c
Browse filesBrowse the repository at this point in the historyBrowse files
Merge tag 'perf-core-for-mingo-5.4-20190816' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/core
Pull perf/core improvements and fixes from Arnaldo:
report/script/trace/top:
Arnaldo Carvalho de Melo:
- Allow specifying marker events demarcating when to consider the other events,
i.e. one now can state something like:
# perf probe kernel_function
# perf record -e cycles,probe:kernel_function
And then, in 'perf script' or 'perf report' say:
# perf report --switch-on=probe:kernel_function
And then the cycles event samples will be considered only after we
find the first probe:kernel_function event.
There is also --switch-off=event, to make it stop considering events
out of some window, say to avoid some winding down of a workload.
The same can be done with the "live mode" tools: 'perf top' and 'perf trace'.
There are examples in the cset comments showing how to use it with
SDT events in things like 'systemtap', that have those tracepoint-like
events for the start/end of passes, etc.
Another example involves selecting scheduler events + entry/exit of
a syscall, using the syscalls tracepoints, one can then see the
scheduler events that take place while that syscall is being processed.
In the future this should be possible in record/top/trace via eBPF
where the perf tools would hook into the marker events and enable events
put in place but not enabled when the on/off conditions are the desired
ones, reducing the amount of events sampled, but this userspace only
solution should be good enough for many scenarios.
perf vendor events intel:
Haiyan Song:
- Add Tremontx event file v1.02.
unwind:
John Keeping:
- Fix callchain unwinding when tid != pid, that was working only for the
thread group leader.
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-----BEGIN PGP SIGNATURE-----
iHUEABYIAB0WIQR2GiIUctdOfX2qHhGyPKLppCJ+JwUCXVcMPgAKCRCyPKLppCJ+
J6ipAP9F5+TitM1zln/wUUP7/Ug4ZPDsdvA+Ggc8x0Ns7URJQwD/RHk43MgDC1fG
VXbpQ7byj339Wo7SpjadzLl9xPlh/Qw=
=IaYE
-----END PGP SIGNATURE-----
commit e273621
Author: John Keeping <john@metanate.com>
Date: Thu Aug 15 11:01:46 2019 +0100
perf unwind: Remove unnecessary test
If dwarf_callchain_users is false, then unwind__prepare_access() will
not set unwind_libunwind_ops so the remaining test here is sufficient.
Signed-off-by: John Keeping <john@metanate.com>
Reviewed-by: Jiri Olsa <jolsa@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Konstantin Khlebnikov <khlebnikov@yandex-team.ru>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: john keeping <john@metanate.com>
Link: http://lkml.kernel.org/r/20190815100146.28842-3-john@metanate.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
diff --git a/tools/perf/util/unwind-libunwind.c b/tools/perf/util/unwind-libunwind.c
index b843f9d..6499b22 100644
--- a/tools/perf/util/unwind-libunwind.c
+++ b/tools/perf/util/unwind-libunwind.c
@@ -69,18 +69,12 @@ int unwind__prepare_access(struct map_groups *mg, struct map *map,
void unwind__flush_access(struct map_groups *mg)
{
- if (!dwarf_callchain_users)
- return;
-
if (mg->unwind_libunwind_ops)
mg->unwind_libunwind_ops->flush_access(mg);
}
void unwind__finish_access(struct map_groups *mg)
{
- if (!dwarf_callchain_users)
- return;
-
if (mg->unwind_libunwind_ops)
mg->unwind_libunwind_ops->finish_access(mg);
}
"PublicDescription": "Counts cacheable memory requests that miss in the the Last Level Cache. Requests include Demand Loads, Reads for Ownership(RFO), Instruction fetches and L1 HW prefetches. If the platform has an L3 cache, last level cache is the L3, otherwise it is the L2.",
5
+
"EventCode": "0x2e",
6
+
"Counter": "0,1,2,3",
7
+
"UMask": "0x41",
8
+
"PEBScounters": "0,1,2,3",
9
+
"EventName": "LONGEST_LAT_CACHE.MISS",
10
+
"PDIR_COUNTER": "na",
11
+
"SampleAfterValue": "200003",
12
+
"BriefDescription": "Counts memory requests originating from the core that miss in the last level cache. If the platform has an L3 cache, last level cache is the L3, otherwise it is the L2."
13
+
},
14
+
{
15
+
"CollectPEBSRecord": "2",
16
+
"PublicDescription": "Counts cacheable memory requests that access the Last Level Cache. Requests include Demand Loads, Reads for Ownership(RFO), Instruction fetches and L1 HW prefetches. If the platform has an L3 cache, last level cache is the L3, otherwise it is the L2.",
17
+
"EventCode": "0x2e",
18
+
"Counter": "0,1,2,3",
19
+
"UMask": "0x4f",
20
+
"PEBScounters": "0,1,2,3",
21
+
"EventName": "LONGEST_LAT_CACHE.REFERENCE",
22
+
"PDIR_COUNTER": "na",
23
+
"SampleAfterValue": "200003",
24
+
"BriefDescription": "Counts memory requests originating from the core that reference a cache line in the last level cache. If the platform has an L3 cache, last level cache is the L3, otherwise it is the L2."
25
+
},
26
+
{
27
+
"PEBS": "1",
28
+
"CollectPEBSRecord": "2",
29
+
"PublicDescription": "Counts the number of load uops retired. This event is Precise Event capable",
30
+
"EventCode": "0xd0",
31
+
"Counter": "0,1,2,3",
32
+
"UMask": "0x81",
33
+
"PEBScounters": "0,1,2,3",
34
+
"EventName": "MEM_UOPS_RETIRED.ALL_LOADS",
35
+
"SampleAfterValue": "200003",
36
+
"BriefDescription": "Counts the number of load uops retired.",
37
+
"Data_LA": "1"
38
+
},
39
+
{
40
+
"PEBS": "1",
41
+
"CollectPEBSRecord": "2",
42
+
"PublicDescription": "Counts the number of store uops retired. This event is Precise Event capable",
43
+
"EventCode": "0xd0",
44
+
"Counter": "0,1,2,3",
45
+
"UMask": "0x82",
46
+
"PEBScounters": "0,1,2,3",
47
+
"EventName": "MEM_UOPS_RETIRED.ALL_STORES",
48
+
"SampleAfterValue": "200003",
49
+
"BriefDescription": "Counts the number of store uops retired.",
50
+
"Data_LA": "1"
51
+
},
52
+
{
53
+
"PEBS": "1",
54
+
"CollectPEBSRecord": "2",
55
+
"EventCode": "0xd1",
56
+
"Counter": "0,1,2,3",
57
+
"UMask": "0x1",
58
+
"PEBScounters": "0,1,2,3",
59
+
"EventName": "MEM_LOAD_UOPS_RETIRED.L1_HIT",
60
+
"SampleAfterValue": "200003",
61
+
"BriefDescription": "Counts the number of load uops retired that hit the level 1 data cache",
62
+
"Data_LA": "1"
63
+
},
64
+
{
65
+
"PEBS": "1",
66
+
"CollectPEBSRecord": "2",
67
+
"EventCode": "0xd1",
68
+
"Counter": "0,1,2,3",
69
+
"UMask": "0x2",
70
+
"PEBScounters": "0,1,2,3",
71
+
"EventName": "MEM_LOAD_UOPS_RETIRED.L2_HIT",
72
+
"SampleAfterValue": "200003",
73
+
"BriefDescription": "Counts the number of load uops retired that hit in the level 2 cache",
74
+
"Data_LA": "1"
75
+
},
76
+
{
77
+
"PEBS": "1",
78
+
"CollectPEBSRecord": "2",
79
+
"EventCode": "0xd1",
80
+
"Counter": "0,1,2,3",
81
+
"UMask": "0x4",
82
+
"PEBScounters": "0,1,2,3",
83
+
"EventName": "MEM_LOAD_UOPS_RETIRED.L3_HIT",
84
+
"SampleAfterValue": "200003",
85
+
"BriefDescription": "Counts the number of load uops retired that miss in the level 3 cache"
86
+
},
87
+
{
88
+
"PEBS": "1",
89
+
"CollectPEBSRecord": "2",
90
+
"EventCode": "0xd1",
91
+
"Counter": "0,1,2,3",
92
+
"UMask": "0x8",
93
+
"PEBScounters": "0,1,2,3",
94
+
"EventName": "MEM_LOAD_UOPS_RETIRED.L1_MISS",
95
+
"SampleAfterValue": "200003",
96
+
"BriefDescription": "Counts the number of load uops retired that miss in the level 1 data cache",
97
+
"Data_LA": "1"
98
+
},
99
+
{
100
+
"PEBS": "1",
101
+
"CollectPEBSRecord": "2",
102
+
"EventCode": "0xd1",
103
+
"Counter": "0,1,2,3",
104
+
"UMask": "0x10",
105
+
"PEBScounters": "0,1,2,3",
106
+
"EventName": "MEM_LOAD_UOPS_RETIRED.L2_MISS",
107
+
"SampleAfterValue": "200003",
108
+
"BriefDescription": "Counts the number of load uops retired that miss in the level 2 cache",
0 commit comments