Jin Yao
30def61f64
perf parse-events: Create two hybrid cache events
...
For cache events, they have pre-defined configs. The kernel needs
to know where the cache event comes from (e.g. from cpu_core pmu
or from cpu_atom pmu). But the perf type PERF_TYPE_HW_CACHE
can't carry pmu information.
Now the type PERF_TYPE_HW_CACHE is extended to be PMU aware type.
The PMU type ID is stored at attr.config[63:32].
When enabling a hybrid cache event without specified pmu, such as,
'perf stat -e LLC-loads -a', two events are created
automatically. One is for atom, the other is for core.
# perf stat -e LLC-loads -a -vv -- sleep 1
Control descriptor is not initialized
------------------------------------------------------------
perf_event_attr:
type 3
size 120
config 0x400000002
sample_type IDENTIFIER
read_format TOTAL_TIME_ENABLED|TOTAL_TIME_RUNNING
disabled 1
inherit 1
exclude_guest 1
------------------------------------------------------------
sys_perf_event_open: pid -1 cpu 0 group_fd -1 flags 0x8 = 3
------------------------------------------------------------
...
------------------------------------------------------------
perf_event_attr:
type 3
size 120
config 0x400000002
sample_type IDENTIFIER
read_format TOTAL_TIME_ENABLED|TOTAL_TIME_RUNNING
disabled 1
inherit 1
exclude_guest 1
------------------------------------------------------------
sys_perf_event_open: pid -1 cpu 15 group_fd -1 flags 0x8 = 19
------------------------------------------------------------
perf_event_attr:
type 3
size 120
config 0x800000002
sample_type IDENTIFIER
read_format TOTAL_TIME_ENABLED|TOTAL_TIME_RUNNING
disabled 1
inherit 1
exclude_guest 1
------------------------------------------------------------
sys_perf_event_open: pid -1 cpu 16 group_fd -1 flags 0x8 = 20
------------------------------------------------------------
...
------------------------------------------------------------
perf_event_attr:
type 3
size 120
config 0x800000002
sample_type IDENTIFIER
read_format TOTAL_TIME_ENABLED|TOTAL_TIME_RUNNING
disabled 1
inherit 1
exclude_guest 1
------------------------------------------------------------
sys_perf_event_open: pid -1 cpu 23 group_fd -1 flags 0x8 = 27
LLC-loads: 0: 1507 1001800280 1001800280
LLC-loads: 1: 666 1001812250 1001812250
LLC-loads: 2: 3353 1001813453 1001813453
LLC-loads: 3: 514 1001848795 1001848795
LLC-loads: 4: 627 1001952832 1001952832
LLC-loads: 5: 4399 1001451154 1001451154
LLC-loads: 6: 1240 1001481052 1001481052
LLC-loads: 7: 478 1001520348 1001520348
LLC-loads: 8: 691 1001551236 1001551236
LLC-loads: 9: 310 1001578945 1001578945
LLC-loads: 10: 1018 1001594354 1001594354
LLC-loads: 11: 3656 1001622355 1001622355
LLC-loads: 12: 882 1001661416 1001661416
LLC-loads: 13: 506 1001693963 1001693963
LLC-loads: 14: 3547 1001721013 1001721013
LLC-loads: 15: 1399 1001734818 1001734818
LLC-loads: 0: 1314 1001793826 1001793826
LLC-loads: 1: 2857 1001752764 1001752764
LLC-loads: 2: 646 1001830694 1001830694
LLC-loads: 3: 1612 1001864861 1001864861
LLC-loads: 4: 2244 1001912381 1001912381
LLC-loads: 5: 1255 1001943889 1001943889
LLC-loads: 6: 4624 1002021109 1002021109
LLC-loads: 7: 2703 1001959302 1001959302
LLC-loads: 24793 16026838264 16026838264
LLC-loads: 17255 8015078826 8015078826
Performance counter stats for 'system wide':
24,793 cpu_core/LLC-loads/
17,255 cpu_atom/LLC-loads/
1.001970988 seconds time elapsed
0x4 in 0x400000002 indicates the cpu_core pmu.
0x8 in 0x800000002 indicates the cpu_atom pmu.
Signed-off-by: Jin Yao <yao.jin@linux.intel.com>
Reviewed-by: Jiri Olsa <jolsa@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Kan Liang <kan.liang@intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20210427070139.25256-10-yao.jin@linux.intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2021-04-29 10:30:59 -03:00
..
2021-04-07 16:23:20 -03:00
2021-03-23 17:46:44 -03:00
2020-01-14 12:02:19 -03:00
2021-03-23 17:13:43 -03:00
2020-11-12 17:55:41 -03:00
2021-02-18 16:13:56 -03:00
2021-03-23 17:13:43 -03:00
2021-03-23 17:13:43 -03:00
2019-11-28 08:08:38 -03:00
2019-11-28 08:08:38 -03:00
2021-04-20 08:40:20 -03:00
2021-03-06 16:42:31 -03:00
2019-03-11 11:56:02 -03:00
2021-02-16 11:52:00 -03:00
2021-04-23 15:34:32 -03:00
2021-02-18 16:11:19 -03:00
2021-04-07 16:18:49 -03:00
2020-03-09 21:43:25 -03:00
2019-01-25 15:12:09 +01:00
2019-01-25 15:12:09 +01:00
2021-04-29 10:30:58 -03:00
2021-04-29 10:30:58 -03:00
2019-02-19 16:11:56 -03:00
2019-02-19 16:11:56 -03:00
2021-03-16 10:01:44 -03:00
2020-05-05 16:35:29 -03:00
2021-03-23 17:13:43 -03:00
2020-11-04 09:42:40 -03:00
2020-06-09 12:40:04 -03:00
2019-09-20 09:19:20 -03:00
2020-05-28 10:03:27 -03:00
2021-04-29 10:30:59 -03:00
2021-02-18 16:41:40 -03:00
2021-02-18 16:41:40 -03:00
2019-08-29 17:38:32 -03:00
2019-08-26 11:58:29 -03:00
2019-07-09 10:13:27 -03:00
2021-03-23 17:13:43 -03:00
2021-03-23 17:13:43 -03:00
2020-10-14 13:34:26 -03:00
2019-08-14 10:48:39 -03:00
2020-04-16 12:19:08 -03:00
2021-02-08 16:39:14 -03:00
2020-09-28 09:18:06 -03:00
2020-08-06 09:33:57 -03:00
2020-08-06 09:33:57 -03:00
2020-05-28 10:03:26 -03:00
2019-08-31 22:24:10 -03:00
2019-08-31 22:24:10 -03:00
2019-01-25 15:12:08 +01:00
2019-07-09 10:13:26 -03:00
2019-01-25 15:12:09 +01:00
2019-05-15 16:36:49 -03:00
2021-04-29 10:30:58 -03:00
2021-01-20 14:34:21 -03:00
2019-10-15 12:05:18 -03:00
2019-09-25 09:51:49 -03:00
2020-05-28 10:03:27 -03:00
2020-05-28 10:03:27 -03:00
2019-02-06 10:00:39 -03:00
2020-12-24 10:05:28 -03:00
2020-12-24 10:05:28 -03:00
2019-08-22 17:16:57 -03:00
2020-05-28 10:03:27 -03:00
2021-03-23 17:13:43 -03:00
2021-03-23 17:13:43 -03:00
2021-04-29 10:30:58 -03:00
2021-04-29 10:30:58 -03:00
2021-04-29 10:30:58 -03:00
2021-04-20 14:46:48 -03:00
2020-11-27 08:37:15 -03:00
2021-02-18 16:12:51 -03:00
2019-07-29 18:34:42 -03:00
2021-01-20 14:34:20 -03:00
2021-01-20 14:34:20 -03:00
2021-03-23 17:13:43 -03:00
2021-03-30 12:45:59 -03:00
2021-02-17 15:15:06 -03:00
2019-09-20 09:19:20 -03:00
2020-11-27 08:36:53 -03:00
2021-03-23 17:13:43 -03:00
2020-10-14 11:28:52 -03:00
2019-11-19 19:12:26 -03:00
2018-12-28 16:33:02 -03:00
2018-12-28 16:33:02 -03:00
2021-03-23 17:13:43 -03:00
2021-03-23 17:13:43 -03:00
2021-03-01 14:47:50 -03:00
2020-11-04 09:42:41 -03:00
2020-11-04 09:42:41 -03:00
2021-02-08 17:09:11 -03:00
2021-03-26 08:50:00 -03:00
2021-04-29 10:30:59 -03:00
2021-04-29 10:30:58 -03:00
2021-04-15 16:33:57 -03:00
2020-05-28 10:03:24 -03:00
2021-01-20 14:34:21 -03:00
2020-05-28 10:03:24 -03:00
2021-04-29 10:30:58 -03:00
2021-04-29 10:30:59 -03:00
2020-11-30 09:48:07 -03:00
2019-08-15 12:25:55 -03:00
2020-11-16 14:09:18 -03:00
2021-03-23 17:13:43 -03:00
2020-06-22 16:28:09 -03:00
2020-11-16 14:09:18 -03:00
2019-01-08 13:28:13 -03:00
2019-11-28 08:08:38 -03:00
2019-11-28 08:08:38 -03:00
2020-05-29 16:51:38 -03:00
2019-11-29 12:20:45 -03:00
2019-09-25 16:26:41 -03:00
2019-08-26 11:58:29 -03:00
2019-07-09 10:13:26 -03:00
2020-11-03 08:26:55 -03:00
2020-11-27 14:19:33 -03:00
2021-03-23 17:13:43 -03:00
2020-08-06 09:35:06 -03:00
2019-07-09 10:13:26 -03:00
2021-04-29 10:30:59 -03:00
2021-04-29 10:30:59 -03:00
2020-05-05 16:35:30 -03:00
2019-06-05 17:36:37 +02:00
2021-03-23 17:13:43 -03:00
2019-06-05 17:36:37 +02:00
2021-02-08 17:02:00 -03:00
2021-02-08 17:02:00 -03:00
2021-04-20 08:40:20 -03:00
2021-04-20 08:40:20 -03:00
2021-02-03 13:10:44 -03:00
2021-02-03 13:10:44 -03:00
2020-05-28 10:03:27 -03:00
2019-09-20 10:28:26 -03:00
2021-03-23 17:13:43 -03:00
2021-03-23 17:13:43 -03:00
2019-08-29 17:38:32 -03:00
2019-09-20 09:19:20 -03:00
2021-03-23 17:13:43 -03:00
2021-02-18 16:14:33 -03:00
2020-12-19 17:52:24 -03:00
2021-04-23 16:03:09 -03:00
2021-03-23 17:13:43 -03:00
2019-11-26 11:07:46 -03:00
2020-11-04 09:42:40 -03:00
2019-08-31 19:10:40 -03:00
2021-02-08 16:25:00 -03:00
2021-04-06 13:32:03 -03:00
2019-09-20 09:19:22 -03:00
2021-04-08 14:24:14 -03:00
2021-04-08 14:23:39 -03:00
2020-03-12 11:32:46 -03:00
2020-01-06 11:46:09 -03:00
2021-02-03 13:10:44 -03:00
2021-02-03 13:10:44 -03:00
2020-04-30 10:48:32 -03:00
2020-05-28 10:03:27 -03:00
2019-08-31 19:10:19 -03:00
2021-04-29 10:30:59 -03:00
2021-04-29 10:30:59 -03:00
2021-04-29 10:30:59 -03:00
2021-04-29 10:30:59 -03:00
2021-04-29 10:30:58 -03:00
2021-03-06 16:54:27 -03:00
2020-12-17 14:36:16 -03:00
2019-05-15 16:36:49 -03:00
2020-08-14 09:15:47 -03:00
2020-08-14 09:15:47 -03:00
2019-08-31 22:24:10 -03:00
2019-08-31 22:24:10 -03:00
2020-12-28 11:35:57 -03:00
2020-12-28 11:35:57 -03:00
2021-02-08 16:25:00 -03:00
2019-10-10 09:29:33 -03:00
2021-02-18 16:24:43 -03:00
2019-09-20 09:19:20 -03:00
2019-05-28 18:37:44 -03:00
2020-05-29 16:51:38 -03:00
2020-05-29 16:51:38 -03:00
2021-04-29 10:30:59 -03:00
2021-04-29 10:30:59 -03:00
2021-04-29 10:30:59 -03:00
2021-04-29 10:30:59 -03:00
2020-10-01 12:10:56 -03:00
2021-03-23 17:13:43 -03:00
2019-11-18 19:09:23 -03:00
2020-12-28 09:53:28 -03:00
2019-11-18 19:08:02 -03:00
2021-03-23 17:13:43 -03:00
2020-09-18 09:20:47 -03:00
2020-05-28 10:03:27 -03:00
2021-03-06 16:54:30 -03:00
2021-04-29 10:30:58 -03:00
2019-01-25 15:12:10 +01:00
2019-06-05 17:37:04 +02:00
2019-01-25 15:12:10 +01:00
2021-02-08 16:25:00 -03:00
2021-01-20 14:34:20 -03:00
2019-07-09 14:59:11 -03:00
2019-07-09 14:59:11 -03:00
2019-09-20 09:19:20 -03:00
2020-04-16 12:19:15 -03:00
2021-03-23 17:13:43 -03:00
2021-04-08 14:24:14 -03:00
2020-11-30 15:15:30 -03:00
2020-11-30 15:15:30 -03:00
2021-04-29 10:30:59 -03:00
2021-04-29 10:30:59 -03:00
2019-07-09 10:13:26 -03:00
2021-01-20 14:34:21 -03:00
2020-11-30 14:56:52 -03:00
2020-05-05 16:35:29 -03:00
2021-03-26 08:50:00 -03:00
2021-03-26 08:49:54 -03:00
2019-10-11 10:57:00 -03:00
2019-10-11 10:57:00 -03:00
2019-11-28 08:08:38 -03:00
2019-02-06 10:00:38 -03:00
2020-01-30 11:55:26 +01:00
2019-01-25 15:12:09 +01:00
2021-04-29 10:30:59 -03:00
2021-04-20 08:40:20 -03:00
2021-03-09 09:03:40 -03:00
2021-04-20 08:40:20 -03:00
2019-08-31 19:10:19 -03:00
2021-03-23 17:13:43 -03:00
2020-10-14 13:34:26 -03:00
2020-10-14 13:34:26 -03:00
2019-07-09 10:13:26 -03:00
2021-03-23 17:13:43 -03:00
2021-02-17 15:15:06 -03:00
2021-02-17 15:15:06 -03:00
2019-07-09 10:13:26 -03:00
2019-01-25 15:12:10 +01:00
2019-09-20 09:19:21 -03:00
2019-08-29 17:38:31 -03:00
2021-02-08 17:09:11 -03:00
2021-03-08 11:17:51 -03:00
2021-03-23 17:13:43 -03:00
2020-10-14 08:46:42 -03:00
2021-02-18 16:38:31 -03:00
2020-11-03 08:30:34 -03:00
2019-08-31 22:24:05 -03:00
2021-03-29 10:39:10 -03:00
2020-04-03 09:37:55 -03:00
2021-03-01 14:49:28 -03:00
2020-05-29 16:50:26 -03:00
2021-01-20 14:25:28 -03:00
2021-04-29 10:30:58 -03:00
2019-08-29 08:36:12 -03:00
2019-08-29 08:36:12 -03:00
2020-05-05 16:35:29 -03:00
2021-03-25 08:59:10 -03:00
2020-04-18 09:05:01 -03:00
2020-04-18 09:05:01 -03:00
2019-10-15 08:36:22 -03:00
2019-10-15 08:36:22 -03:00
2020-07-10 08:20:01 -03:00
2020-05-05 16:35:30 -03:00
2020-05-05 16:35:29 -03:00
2020-09-17 15:47:58 -03:00
2020-09-17 15:47:58 -03:00
2021-02-03 13:13:53 -03:00
2019-11-05 08:39:27 -03:00
2021-03-06 16:54:26 -03:00
2019-08-29 17:38:32 -03:00
2019-09-20 09:19:20 -03:00
2019-11-05 08:39:27 -03:00
2019-08-29 17:38:32 -03:00
2020-09-22 13:46:40 -03:00
2020-09-22 13:45:21 -03:00
2021-03-15 11:36:54 -03:00
2021-03-15 11:36:54 -03:00
2021-02-18 14:20:32 -03:00
2021-03-23 17:13:43 -03:00
2019-11-26 11:07:46 -03:00
2019-11-26 11:07:46 -03:00
2019-09-20 09:19:20 -03:00
2020-04-16 12:19:08 -03:00
2020-09-10 11:55:37 -03:00
2019-08-31 19:10:19 -03:00
2021-03-24 10:38:56 -03:00
2019-09-20 09:19:20 -03:00
2020-09-01 12:15:21 -03:00