David Ahern
a91f4c473f
perf script: Add option to specify time window of interest
Add option to allow user to control analysis window. e.g., collect data
for some amount of time and analyze a segment of interest within that
window.
Committer notes:
Testing it:
# perf evlist -v
cycles:ppp: size: 112, { sample_period, sample_freq }: 4000, sample_type: IP|TID|TIME|CALLCHAIN|CPU|PERIOD, disabled: 1, inherit: 1, mmap: 1, comm: 1, freq: 1, task: 1, precise_ip: 3, sample_id_all: 1, exclude_guest: 1, mmap2: 1, comm_exec: 1
#
# perf script --hide-call-graph | head -15
swapper 0 [0] 9693.370039: 1 cycles:ppp: ffffffffb90072ad x86_pmu_enable (.../4.8.8-300.fc25.x86_64/vmlinux)
swapper 0 [0] 9693.370044: 1 cycles:ppp: ffffffffb900ca1b intel_pmu_handle_irq (.../4.8.8-300.fc25.x86_64/vmlinux)
swapper 0 [0] 9693.370046: 7 cycles:ppp: ffffffffb902fd93 native_sched_clock (.../4.8.8-300.fc25.x86_64/vmlinux)
swapper 0 [0] 9693.370048: 126 cycles:ppp: ffffffffb902fd93 native_sched_clock (.../4.8.8-300.fc25.x86_64/vmlinux)
swapper 0 [0] 9693.370049: 2701 cycles:ppp: ffffffffb902fd93 native_sched_clock (.../4.8.8-300.fc25.x86_64/vmlinux)
swapper 0 [0] 9693.370051: 58823 cycles:ppp: ffffffffb90cd2e0 idle_cpu (.../4.8.8-300.fc25.x86_64/vmlinux)
swapper 0 [1] 9693.370059: 1 cycles:ppp: ffffffffb91a713a ctx_resched (.../4.8.8-300.fc25.x86_64/vmlinux)
swapper 0 [1] 9693.370062: 1 cycles:ppp: ffffffffb900ca1b intel_pmu_handle_irq (.../4.8.8-300.fc25.x86_64/vmlinux)
swapper 0 [1] 9693.370064: 13 cycles:ppp: ffffffffb902fd93 native_sched_clock (.../4.8.8-300.fc25.x86_64/vmlinux)
swapper 0 [1] 9693.370065: 250 cycles:ppp: ffffffffb902fd93 native_sched_clock (.../4.8.8-300.fc25.x86_64/vmlinux)
swapper 0 [1] 9693.370067: 5269 cycles:ppp: ffffffffb902fe79 sched_clock (.../4.8.8-300.fc25.x86_64/vmlinux)
swapper 0 [1] 9693.370069: 114602 cycles:ppp: ffffffffb90c1c5a atomic_notifier_call_chain (.../4.8.8-300.fc25.x86_64/vmlinux)
perf 5124 [2] 9693.370076: 1 cycles:ppp: ffffffffb91a76c1 __perf_event_enable (.../4.8.8-300.fc25.x86_64/vmlinux)
perf 5124 [2] 9693.370091: 1 cycles:ppp: ffffffffb900ca1b intel_pmu_handle_irq (.../4.8.8-300.fc25.x86_64/vmlinux)
perf 5124 [2] 9693.370095: 3 cycles:ppp: ffffffffb902fd93 native_sched_clock (.../4.8.8-300.fc25.x86_64/vmlinux)
#
# perf script --hide-call-graph --time ,9693.370048
swapper 0 [0] 9693.370039: 1 cycles:ppp: ffffffffb90072ad x86_pmu_enable (.../4.8.8-300.fc25.x86_64/vmlinux)
swapper 0 [0] 9693.370044: 1 cycles:ppp: ffffffffb900ca1b intel_pmu_handle_irq (.../4.8.8-300.fc25.x86_64/vmlinux)
swapper 0 [0] 9693.370046: 7 cycles:ppp: ffffffffb902fd93 native_sched_clock (.../4.8.8-300.fc25.x86_64/vmlinux)
# perf script --hide-call-graph --time 9693.370064,9693.370076
swapper 0 [1] 9693.370064: 13 cycles:ppp: ffffffffb902fd93 native_sched_clock (.../4.8.8-300.fc25.x86_64/vmlinux)
swapper 0 [1] 9693.370065: 250 cycles:ppp: ffffffffb902fd93 native_sched_clock (.../4.8.8-300.fc25.x86_64/vmlinux)
swapper 0 [1] 9693.370067: 5269 cycles:ppp: ffffffffb902fe79 sched_clock (.../4.8.8-300.fc25.x86_64/vmlinux)
swapper 0 [1] 9693.370069: 114602 cycles:ppp: ffffffffb90c1c5a atomic_notifier_call_chain (.../4.8.8-300.fc25.x86_64/vmlinux)
#
Signed-off-by: David Ahern <dsahern@gmail.com>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1480439746-42695-4-git-send-email-dsahern@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2016-12-01 13:02:45 -03:00
..
2016-11-29 12:46:11 -03:00
2016-10-25 09:50:53 -03:00
2016-12-01 13:02:45 -03:00
2016-11-14 12:42:56 -03:00
2016-10-17 13:39:47 -03:00
2016-07-12 16:23:35 -03:00
2016-08-04 11:02:38 +02:00
2016-11-29 12:46:11 -03:00
2016-09-19 11:25:07 -03:00
2016-11-25 15:56:34 -03:00
2016-12-01 13:02:39 -03:00
2016-05-30 12:41:46 -03:00
2016-10-19 13:18:31 -03:00
2016-09-08 13:44:03 -03:00
2015-12-17 14:27:14 -03:00
2016-07-12 15:19:47 -03:00
2015-12-17 14:27:14 -03:00
2016-11-23 10:44:06 -03:00
2016-11-14 13:10:37 -03:00
2016-06-28 10:54:57 -03:00
2016-08-23 15:37:33 -03:00
2016-06-23 11:26:15 -03:00
2016-07-12 15:19:47 -03:00
2016-09-05 11:14:50 -03:00
2016-11-29 12:50:32 -03:00
2016-08-23 15:37:33 -03:00
2016-10-03 21:35:47 -03:00
2015-12-17 14:27:14 -03:00
2016-08-12 14:39:48 -03:00
2016-09-01 12:42:22 -03:00
2016-11-29 12:13:27 -03:00
2016-11-14 13:23:42 -03:00
2016-11-25 16:00:22 -03:00
2016-12-01 13:02:45 -03:00
2016-09-22 13:07:36 -03:00
2016-08-23 15:37:33 -03:00
2016-11-17 17:12:50 -03:00
2016-11-25 16:04:22 -03:00
2015-12-09 13:42:03 -03:00
2016-10-19 13:18:31 -03:00
2016-01-08 12:46:17 -03:00
2014-03-18 18:17:06 -03:00
2016-02-04 15:57:00 -03:00
2016-11-14 12:42:47 -03:00
2016-11-14 12:42:47 -03:00
2016-10-24 11:07:33 -03:00
2015-03-19 13:53:27 -03:00
2014-10-29 10:32:48 -02:00
2016-09-08 13:44:07 -03:00
2015-08-06 16:48:27 -03:00
2016-10-19 13:18:31 -03:00
2016-08-23 15:37:33 -03:00