Peter Zijlstra
2c5e8c52c6
perf tools: Merge all perf_event_attr print functions
...
Currently there's 3 (that I found) different and incomplete
implementations of printing perf_event_attr.
This is quite silly. Merge the lot.
While this patch does not retain the exact form all printing that I
found is debug output and thus it should not be critical.
Also, I cannot find a single print_event_desc() caller.
Pre:
$ perf record -vv -e cycles -- sleep 1
------------------------------------------------------------
perf_event_attr:
type 0
size 104
config 0
sample_period 4000
sample_freq 4000
sample_type 0x107
read_format 0
disabled 1 inherit 1
pinned 0 exclusive 0
exclude_user 0 exclude_kernel 0
exclude_hv 0 exclude_idle 0
mmap 1 comm 1
mmap2 1 comm_exec 1
freq 1 inherit_stat 0
enable_on_exec 1 task 1
watermark 0 precise_ip 0
mmap_data 0 sample_id_all 1
exclude_host 0 exclude_guest 1
excl.callchain_kern 0 excl.callchain_user 0
wakeup_events 0
wakeup_watermark 0
bp_type 0
bp_addr 0
config1 0
bp_len 0
config2 0
branch_sample_type 0
sample_regs_user 0
sample_stack_user 0
sample_regs_intr 0
------------------------------------------------------------
$ perf evlist -vv
cycles: sample_freq=4000, size: 104, sample_type: IP|TID|TIME|PERIOD,
disabled: 1, inherit: 1, mmap: 1, mmap2: 1, comm: 1, comm_exec: 1,
freq: 1, enable_on_exec: 1, task: 1, sample_id_all: 1, exclude_guest: 1
Post:
$ ./perf record -vv -e cycles -- sleep 1
------------------------------------------------------------
perf_event_attr:
size 112
{ sample_period, sample_freq } 4000
sample_type IP|TID|TIME|PERIOD
disabled 1
inherit 1
mmap 1
comm 1
freq 1
enable_on_exec 1
task 1
sample_id_all 1
exclude_guest 1
mmap2 1
comm_exec 1
------------------------------------------------------------
$ ./perf evlist -vv
cycles: size: 112, { sample_period, sample_freq }: 4000, sample_type:
IP|TID|TIME|PERIOD, disabled: 1, inherit: 1, mmap: 1, comm: 1, freq:
1, enable_on_exec: 1, task: 1, sample_id_all: 1, exclude_guest: 1,
mmap2: 1, comm_exec: 1
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Acked-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: John Stultz <john.stultz@linaro.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/20150407091150.644238729@infradead.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2015-04-08 10:06:28 -03:00
..
2015-01-16 17:49:29 -03:00
2015-04-02 13:18:43 -03:00
2015-03-27 09:46:03 +01:00
2015-01-16 17:49:29 -03:00
2015-03-21 14:53:40 -03:00
2015-03-20 17:49:50 -03:00
2015-02-27 15:52:33 -03:00
2015-02-11 12:37:08 -03:00
2015-02-18 17:16:17 +01:00
2015-02-18 17:16:17 +01:00
2015-03-24 12:08:07 -03:00
2015-03-24 12:08:07 -03:00
2015-01-21 13:24:32 -03:00
2015-01-21 13:24:32 -03:00
2014-10-29 10:32:49 -02:00
2014-12-09 09:14:35 -03:00
2015-04-02 13:18:52 -03:00
2015-04-02 13:18:52 -03:00
2015-04-02 13:18:43 -03:00
2015-04-02 13:18:43 -03:00
2015-02-25 16:13:12 -03:00
2015-02-25 16:13:12 -03:00
2015-03-24 12:08:43 -03:00
2015-03-24 12:08:43 -03:00
2015-04-02 13:18:44 -03:00
2015-02-06 11:46:36 +01:00
2015-03-31 17:52:30 -03:00
2015-03-31 17:52:32 -03:00
2015-04-08 09:06:58 -03:00
2015-03-26 10:52:28 -03:00
2015-04-08 10:06:28 -03:00
2015-04-08 10:06:28 -03:00
2014-10-29 10:32:48 -02:00
2015-04-08 10:06:28 -03:00
2014-11-05 10:14:07 -03:00
2015-03-17 17:18:58 -03:00
2015-03-17 18:27:28 -03:00
2015-04-02 13:18:47 -03:00
2015-03-21 14:53:40 -03:00
2015-04-08 09:07:03 -03:00
2015-03-03 00:17:08 -03:00
2015-04-08 09:07:03 -03:00
2015-04-08 09:07:03 -03:00
2015-03-31 17:52:32 -03:00
2015-03-31 17:52:32 -03:00
2015-02-27 15:52:18 -03:00
2015-02-27 15:52:18 -03:00
2014-12-03 15:14:29 +01:00
2014-12-03 15:14:29 +01:00
2015-03-19 13:53:28 -03:00
2015-03-19 13:53:28 -03:00
2015-01-21 13:24:33 -03:00
2014-11-24 18:03:51 -03:00
2015-04-08 09:07:03 -03:00
2014-09-17 18:01:14 -03:00
2015-04-02 13:18:44 -03:00
2015-02-12 11:22:01 -03:00
2015-01-21 13:24:31 -03:00
2014-12-11 17:53:04 -03:00
2015-04-08 09:07:03 -03:00
2015-03-31 17:52:32 -03:00
2015-02-12 17:55:18 -03:00
2015-02-27 10:08:38 -03:00
2015-03-24 12:06:55 -03:00
2014-12-19 13:09:43 +01:00
2014-10-15 16:04:33 -03:00
2015-04-08 09:07:03 -03:00
2015-03-24 12:08:43 -03:00
2015-04-08 09:07:03 -03:00
2015-03-24 13:02:46 -03:00
2015-03-24 12:08:30 -03:00
2014-10-14 17:32:52 -03:00
2014-10-14 17:32:52 -03:00
2014-11-03 17:43:56 -03:00
2014-11-03 17:43:56 -03:00
2015-03-12 12:39:50 -03:00
2015-03-24 13:02:46 -03:00
2015-03-12 12:39:49 -03:00
2015-02-06 11:46:37 +01:00
2015-04-02 13:18:41 -03:00
2015-04-02 13:18:41 -03:00
2014-10-29 10:32:46 -02:00
2015-03-19 13:53:27 -03:00
2014-10-29 10:32:46 -02:00
2015-02-24 15:34:23 -03:00
2015-03-21 14:53:40 -03:00
2014-10-29 10:32:48 -02:00
2014-10-29 10:32:48 -02:00
2014-11-05 10:11:26 -03:00