2013-10-02 11:49:08 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-02-19 16:52:54 +01:00
|
|
|
|
|
|
|
|
|
2013-10-02 11:49:08 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-02-19 16:52:57 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-10-23 18:16:03 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
perf tools: Add gzip decompression support for kernel module
Now my Archlinux box shows module symbols correctly.
Before:
$ perf report --stdio
Failed to open /tmp/perf-3477.map, continuing without symbols
no symbols found in /usr/bin/date, maybe install a debug package?
No kallsyms or vmlinux with build-id 7b4ea0a49ae2111925857099aaf05c3246ff33e0 was found
[drm] with build id 7b4ea0a49ae2111925857099aaf05c3246ff33e0 not found, continuing without symbols
No kallsyms or vmlinux with build-id edd931629094b660ca9dec09a1b635c8d87aa2ee was found
[jbd2] with build id edd931629094b660ca9dec09a1b635c8d87aa2ee not found, continuing without symbols
No kallsyms or vmlinux with build-id a7b1eada671c34933e5610bb920b2ca4945a82c3 was found
[ext4] with build id a7b1eada671c34933e5610bb920b2ca4945a82c3 not found, continuing without symbols
No kallsyms or vmlinux with build-id d69511fa3e5840e770336ef45b06c83fef8d74e3 was found
[scsi_mod] with build id d69511fa3e5840e770336ef45b06c83fef8d74e3 not found, continuing without symbols
No kallsyms or vmlinux with build-id af0430af13461af058770ee9b87afc07922c2e77 was found
[libata] with build id af0430af13461af058770ee9b87afc07922c2e77 not found, continuing without symbols
No kallsyms or vmlinux with build-id aaeedff8160ce631a5f0333591c6ff291201d29f was found
[libahci] with build id aaeedff8160ce631a5f0333591c6ff291201d29f not found, continuing without symbols
No kallsyms or vmlinux with build-id c57907712becaf662dc4981824bb372c0441d605 was found
[mac80211] with build id c57907712becaf662dc4981824bb372c0441d605 not found, continuing without symbols
No kallsyms or vmlinux with build-id e0589077cc0ec8c3e4c40eb9f2d9e69d236bee8f was found
[iwldvm] with build id e0589077cc0ec8c3e4c40eb9f2d9e69d236bee8f not found, continuing without symbols
No kallsyms or vmlinux with build-id 2d86086bf136bf374a2f029cf85a48194f9b950b was found
[cfg80211] with build id 2d86086bf136bf374a2f029cf85a48194f9b950b not found, continuing without symbols
No kallsyms or vmlinux with build-id 4493c48599bdb3d91d0f8db5150e0be33fdd9221 was found
[iwlwifi] with build id 4493c48599bdb3d91d0f8db5150e0be33fdd9221 not found, continuing without symbols
...
#
# Overhead Command Shared Object Symbol
# ........ ............... ....................... ........................................................
#
0.03% swapper [ext4] [k] 0x000000000000fe2e
0.03% swapper [kernel.kallsyms] [k] account_entity_enqueue
0.03% swapper [ext4] [k] 0x000000000000fc2b
0.03% irq/50-iwlwifi [iwlwifi] [k] 0x000000000000200b
0.03% swapper [kernel.kallsyms] [k] ktime_add_safe
0.03% swapper [kernel.kallsyms] [k] elv_completed_request
0.03% swapper [libata] [k] 0x0000000000003997
0.03% swapper [libahci] [k] 0x0000000000001f25
0.03% swapper [kernel.kallsyms] [k] rb_next
0.03% swapper [kernel.kallsyms] [k] blk_finish_request
0.03% swapper [ext4] [k] 0x0000000000010248
0.00% perf [kernel.kallsyms] [k] native_write_msr_safe
After:
$ perf report --stdio
Failed to open /tmp/perf-3477.map, continuing without symbols
no symbols found in /usr/bin/tr, maybe install a debug package?
...
#
# Overhead Command Shared Object Symbol
# ........ ............... ........................... ......................................................
#
0.04% kworker/u16:3 [ext4] [k] ext4_read_block_bitmap
0.03% kworker/u16:0 [mac80211] [k] ieee80211_sta_reset_beacon_monitor
0.02% irq/50-iwlwifi [mac80211] [k] ieee80211_get_bssid
0.02% firefox [e1000e] [k] __ew32_prepare
0.02% swapper [libahci] [k] ahci_handle_port_interrupt
0.02% emacs libglib-2.0.so.0.4000.0 [.] g_mutex_unlock
0.02% swapper [e1000e] [k] e1000_clean_tx_irq
0.02% dwm [kernel.kallsyms] [k] __schedule
0.02% gnome-terminal- [vdso] [.] __vdso_clock_gettime
0.02% swapper [e1000e] [k] e1000_alloc_rx_buffers
0.02% irq/50-iwlwifi [mac80211] [k] ieee80211_rx
0.01% firefox [vdso] [.] __vdso_gettimeofday
0.01% irq/50-iwlwifi [iwlwifi] [k] iwl_pcie_rxq_restock.part.13
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: Jiri Olsa <jolsa@redhat.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Namhyung Kim <namhyung.kim@lge.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/87h9yexshi.fsf@sejong.aot.lge.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2014-10-31 16:51:38 +09:00
|
|
|
|
|
|
|
|
|
2015-02-20 23:16:58 +01:00
|
|
|
|
2015-03-28 11:30:30 +01:00
|
|
|
|
2015-02-20 23:16:58 +01:00
|
|
|
|
2015-01-29 13:29:39 +01:00
|
|
|
|
|
|
|
|
|
2015-04-30 17:37:27 +03:00
|
|
|
|
|
|
|
|
|
2015-10-14 12:41:12 +00:00
|
|
|
|
|
|
|
|
|
2014-02-19 16:52:57 +01:00
|
|
|
|
2015-08-13 10:14:55 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-10-02 11:49:08 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-12-29 17:42:46 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-10-02 11:49:08 +02:00
|
|
|
|
|
|
|
|
|
2015-01-11 23:59:55 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-01-10 21:43:32 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-10-02 11:49:08 +02:00
|
|
|
|
2015-01-11 23:59:55 +01:00
|
|
|
|
|
|
|
|
|
2013-10-02 11:49:08 +02:00
|
|
|
|
2015-07-14 12:05:20 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-01-15 10:44:08 +00:00
|
|
|
|
2013-10-02 11:49:08 +02:00
|
|
|
|
|
|
|
|
|
perf trace: Add 'trace' alias to 'perf trace'
Make 'perf trace' more accessible by aliasing it to just 'trace':
[root@zoo linux]# trace --duration 15 -a -e futex sleep 1
110.092 (16.188 ms): libvirtd/1166 futex(uaddr: 0x185b344, op: WAIT|PRIV, val: 174293 ) = 0
110.101 (15.903 ms): libvirtd/1171 futex(uaddr: 0x185b3dc, op: WAIT|PRIV, val: 139265 ) = 0
111.594 (15.776 ms): libvirtd/1165 futex(uaddr: 0x185b344, op: WAIT|PRIV, val: 174295 ) = 0
111.610 (15.969 ms): libvirtd/1169 futex(uaddr: 0x185b3dc, op: WAIT|PRIV, val: 139267 ) = 0
113.556 (16.216 ms): libvirtd/1168 futex(uaddr: 0x185b3dc, op: WAIT|PRIV, val: 139269 ) = 0
291.265 (199.508 ms): chromium-brows/15830 futex(uaddr: 0x7fff2986bcb4, op: WAIT_BITSET|PRIV|CLKRT, val: 1, utime: 0x7fff2986bab0, val3: 4294967295) = -1 ETIMEDOUT Connection timed out
360.354 (69.053 ms): chromium-brows/15830 futex(uaddr: 0x7fff2986bcb4, op: WAIT_BITSET|PRIV|CLKRT, val: 1, utime: 0x7fff2986bab0, val3: 4294967295) = -1 ETIMEDOUT Connection timed out
[root@zoo linux]#
I.e. looking for futex calls that take at least 15ms, system wide, during a one
second window. Now to get callchains into 'trace' to figure out what are those
locks :-)
Requested-by: Ingo Molnar <mingo@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-ch4smqz8b5fmgrte7c5e4fuw@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2013-09-24 11:56:36 -03:00
|
|
|
|
2013-10-02 11:49:08 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-08-13 10:14:55 +03:00
|
|
|
|
2013-10-02 11:49:08 +02:00
|
|
|
|
2013-12-09 17:14:23 +01:00
|
|
|
|
2013-10-02 11:49:08 +02:00
|
|
|
|
2015-10-14 12:41:12 +00:00
|
|
|
|
2013-10-02 11:49:08 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-12-03 14:09:21 +01:00
|
|
|
|
2013-10-02 11:49:08 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-07-31 09:01:12 +03:00
|
|
|
|
2013-10-02 11:49:08 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-10-14 12:41:12 +00:00
|
|
|
|
2013-10-02 11:49:08 +02:00
|
|
|
|
2013-12-09 17:14:23 +01:00
|
|
|
|
2013-10-02 11:49:08 +02:00
|
|
|
|
2013-12-09 17:14:23 +01:00
|
|
|
|
2013-10-02 11:49:08 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-12-09 17:14:23 +01:00
|
|
|
|
2015-10-14 12:41:12 +00:00
|
|
|
|
2013-10-02 11:49:08 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-05-28 13:28:54 +00:00
|
|
|
|
2015-06-17 14:46:29 +00:00
|
|
|
|
2015-05-28 13:28:54 +00:00
|
|
|
|
2015-01-10 20:53:13 +01:00
|
|
|
|
|
|
|
|
|
2013-10-02 11:49:08 +02:00
|
|
|
|
2015-10-14 12:41:12 +00:00
|
|
|
|
|
|
|
|
|
2013-10-02 11:49:08 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-10-09 11:49:26 +02:00
|
|
|
|
2013-10-02 11:49:08 +02:00
|
|
|
|
|
|
|
|
|
2015-01-10 20:53:13 +01:00
|
|
|
|
2013-10-02 11:49:08 +02:00
|
|
|
|
2015-06-12 03:17:11 +00:00
|
|
|
|
2015-06-17 14:46:29 +00:00
|
|
|
|
|
|
|
|
|
2013-10-02 11:49:08 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-10-23 18:16:03 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-10-02 11:49:08 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-01-10 20:53:13 +01:00
|
|
|
|
2015-10-14 12:41:12 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-10-02 11:49:08 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-09-13 15:27:43 +09:00
|
|
|
|
2014-12-30 00:34:23 +01:00
|
|
|
|
2013-09-13 15:27:43 +09:00
|
|
|
|
|
|
|
|
|
2013-10-09 11:49:29 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-10-02 11:49:08 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-01-11 23:59:55 +01:00
|
|
|
|
2013-10-02 11:49:08 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-12-29 13:52:36 +01:00
|
|
|
|
|
|
|
|
|
2015-08-13 10:14:55 +03:00
|
|
|
|
2015-09-23 12:33:56 +02:00
|
|
|
|
2014-12-29 13:52:36 +01:00
|
|
|
|
2015-09-23 12:34:01 +02:00
|
|
|
|
2015-01-11 23:59:55 +01:00
|
|
|
|
2014-12-29 13:52:36 +01:00
|
|
|
|
2015-05-28 13:28:54 +00:00
|
|
|
|
2015-06-17 14:46:29 +00:00
|
|
|
|
|
|
|
|
|
2013-10-02 11:49:08 +02:00
|
|
|
|
2015-09-23 12:34:02 +02:00
|
|
|
|
2015-01-11 23:59:55 +01:00
|
|
|
|
2013-09-13 15:27:43 +09:00
|
|
|
|
2014-12-30 00:34:23 +01:00
|
|
|
|
2014-04-27 11:12:21 +02:00
|
|
|
|
2013-09-13 15:27:43 +09:00
|
|
|
|
2013-10-02 11:49:08 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-12-30 17:09:15 +01:00
|
|
|
|
2013-10-02 11:49:08 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-10-04 12:14:59 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-10-10 07:42:56 +02:00
|
|
|
|
2013-10-04 12:14:59 +02:00
|
|
|
|
2013-10-10 07:42:56 +02:00
|
|
|
|
2013-10-04 12:14:59 +02:00
|
|
|
|
2013-10-10 07:42:56 +02:00
|
|
|
|
2013-10-04 12:14:59 +02:00
|
|
|
|
2013-10-02 11:49:08 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-12-30 18:44:38 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-09-23 12:34:02 +02:00
|
|
|
|
2014-12-30 18:44:38 +01:00
|
|
|
|
2015-09-23 12:34:01 +02:00
|
|
|
|
2015-01-11 23:59:55 +01:00
|
|
|
|
2014-12-30 18:44:38 +01:00
|
|
|
|
2015-09-23 12:34:01 +02:00
|
|
|
|
2015-01-11 23:59:55 +01:00
|
|
|
|
2014-12-30 18:44:38 +01:00
|
|
|
|
2015-09-23 12:34:01 +02:00
|
|
|
|
2015-01-11 23:59:55 +01:00
|
|
|
|
2014-12-30 18:44:38 +01:00
|
|
|
|
2015-09-23 12:34:01 +02:00
|
|
|
|
2015-01-11 23:59:55 +01:00
|
|
|
|
2014-12-30 18:44:38 +01:00
|
|
|
|
2015-09-23 12:34:01 +02:00
|
|
|
|
2015-01-11 23:59:55 +01:00
|
|
|
|
2014-12-30 18:44:38 +01:00
|
|
|
|
2015-09-23 12:34:01 +02:00
|
|
|
|
2015-01-11 23:59:55 +01:00
|
|
|
|
2014-12-30 18:44:38 +01:00
|
|
|
|
2015-09-23 12:34:01 +02:00
|
|
|
|
2015-01-11 23:59:55 +01:00
|
|
|
|
2013-10-02 11:49:08 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-10-23 18:16:03 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-12-30 16:51:35 +01:00
|
|
|
|
2013-10-02 11:49:08 +02:00
|
|
|
|
2014-12-29 17:42:46 +01:00
|
|
|
|
|
|
|
|
|
2015-09-23 12:34:02 +02:00
|
|
|
|
2015-01-11 23:59:55 +01:00
|
|
|
|
2014-12-29 17:42:46 +01:00
|
|
|
|
2014-12-30 16:51:35 +01:00
|
|
|
|
2014-12-29 17:42:46 +01:00
|
|
|
|
2013-10-02 11:49:08 +02:00
|
|
|
|
2013-12-03 14:09:21 +01:00
|
|
|
|
|
|
|
|
|
2015-09-23 12:34:02 +02:00
|
|
|
|
2015-05-28 13:28:54 +00:00
|
|
|
|
|
|
|
|
|
2015-09-23 12:34:02 +02:00
|
|
|
|
2015-05-28 13:28:54 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-10-02 11:49:08 +02:00
|
|
|
|
|
|
|
|
|
2013-10-09 11:49:26 +02:00
|
|
|
|
2015-01-11 23:59:55 +01:00
|
|
|
|
2013-10-02 11:49:08 +02:00
|
|
|
|
2013-12-05 12:13:54 +01:00
|
|
|
|
2015-01-11 23:59:55 +01:00
|
|
|
|
2013-12-03 14:09:21 +01:00
|
|
|
|
2015-09-23 12:34:02 +02:00
|
|
|
|
2015-01-11 23:59:55 +01:00
|
|
|
|
2013-10-02 11:49:08 +02:00
|
|
|
|
2015-01-10 20:53:13 +01:00
|
|
|
|
|
|
|
|
|
2015-01-11 23:59:55 +01:00
|
|
|
|
2013-10-02 11:49:08 +02:00
|
|
|
|
2015-10-28 21:44:50 +01:00
|
|
|
|
2015-10-14 12:41:12 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-10-02 11:49:08 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-06-03 00:44:34 +08:00
|
|
|
|
|
|
|
|
|
2013-10-02 11:49:08 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-10-14 12:41:12 +00:00
|
|
|
|
2014-05-28 10:19:18 +02:00
|
|
|
|
|
|
|
|
|
2013-10-02 11:49:08 +02:00
|
|
|
|
2014-06-04 14:43:58 +02:00
|
|
|
|
2014-05-28 10:19:18 +02:00
|
|
|
|
2013-10-02 11:49:08 +02:00
|
|
|
|
|
|
|
|
|
2014-06-04 14:43:58 +02:00
|
|
|
|
2014-05-28 10:19:18 +02:00
|
|
|
|
2013-10-02 11:49:08 +02:00
|
|
|
|
|
|
|
|
|
2014-06-04 14:43:58 +02:00
|
|
|
|
2014-05-28 10:19:18 +02:00
|
|
|
|
2013-10-02 11:49:08 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-09-13 15:27:43 +09:00
|
|
|
|
|
|
|
|
|
2015-05-18 11:37:27 -07:00
|
|
|
|
2013-10-09 11:49:29 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-10-23 18:16:03 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-10-09 11:49:29 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-07-31 09:01:12 +03:00
|
|
|
|
|
|
|
|
|
perf trace: Support 'strace' syscall event groups
I.e.:
$ cat ~/share/perf-core/strace/groups/file
access
chmod
creat
execve
faccessat
getcwd
lstat
mkdir
open
openat
quotactl
readlink
rename
rmdir
stat
statfs
symlink
unlink
$
Then, on a quiet desktop, try running this and then moving your mouse to
see the deluge of mouse related activity:
# perf probe 'vfs_getname=getname_flags:72 pathname=filename:string'
Added new event:
probe:vfs_getname (on getname_flags:72 with pathname=filename:string)
You can now use it in all perf tools, such as:
perf record -e probe:vfs_getname -aR sleep 1
#
# trace --ev probe:vfs_getname --filter-pids 2232 -e file
0.042 (0.042 ms): mousetweaks/2235 open(filename: 0x14e3910, mode: 438 ) ...
0.042 ( ): probe:vfs_getname:(ffffffff812230bc) pathname="/home/acme/.icons/Adwaita/cursors/xterm")
0.100 (0.100 ms): mousetweaks/2235 ... [continued]: open()) = -1 ENOENT No such file or directory
0.142 (0.018 ms): mousetweaks/2235 open(filename: 0x14c3c10, mode: 438 ) ...
0.142 ( ): probe:vfs_getname:(ffffffff812230bc) pathname="/home/acme/.icons/Adwaita/index.theme")
0.192 (0.069 ms): mousetweaks/2235 ... [continued]: open()) = -1 ENOENT No such file or directory
0.230 (0.017 ms): mousetweaks/2235 open(filename: 0x14c3c10, mode: 438 ) ...
0.230 ( ): probe:vfs_getname:(ffffffff812230bc) pathname="/usr/share/icons/Adwaita/cursors/xterm")
0.253 (0.041 ms): mousetweaks/2235 ... [continued]: open()) = 14
0.459 (0.008 ms): mousetweaks/2235 open(filename: 0x14e3910, mode: 438 ) ...
0.459 ( ): probe:vfs_getname:(ffffffff812230bc) pathname="/home/acme/.icons/Adwaita/cursors/left_side")
0.468 (0.017 ms): mousetweaks/2235 ... [continued]: open()) = -1 ENOENT No such file or directory
Need to combine that raw_syscalls:sys_enter(open) + probe:vfs_getname +
raw_syscalls:sys_exit(open) sequence...
Now, if you're bored, please write some more syscall groups, like the ones
in 'strace' and send it our way :-)
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Borislav Petkov <bp@suse.de>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Milian Wolff <mail@milianw.de>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-a42xklu59lcbxp7bbnic74a8@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2015-07-20 12:02:09 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-10-02 11:49:08 +02:00
|
|
|
|
2013-10-09 11:49:29 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-10-02 11:49:08 +02:00
|
|
|
|
|
|
|
|
|
2013-10-09 11:49:29 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-10-02 11:49:08 +02:00
|
|
|
|
2013-11-17 21:43:27 +05:30
|
|
|
|
2013-10-09 11:49:29 +02:00
|
|
|
|
2013-11-17 21:43:27 +05:30
|
|
|
|
2015-05-18 11:37:27 -07:00
|
|
|
|
|
|
|
|
|
2013-10-09 11:49:29 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-10-02 11:49:08 +02:00
|
|
|
|
2015-05-18 11:37:27 -07:00
|
|
|
|
|
|
|
|
|
2013-12-03 14:09:21 +01:00
|
|
|
|
2013-10-02 11:49:08 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-10-09 11:49:26 +02:00
|
|
|
|
2015-03-01 21:19:44 +01:00
|
|
|
|
2013-10-02 11:49:08 +02:00
|
|
|
|
2015-10-14 12:41:12 +00:00
|
|
|
|
2014-12-30 16:51:35 +01:00
|
|
|
|
2015-01-11 23:59:55 +01:00
|
|
|
|
2015-07-01 14:54:42 +03:00
|
|
|
|
2014-10-23 18:16:03 -03:00
|
|
|
|
2015-08-13 10:14:55 +03:00
|
|
|
|
|
|
|
|
|
2013-12-09 17:14:23 +01:00
|
|
|
|
2013-10-02 11:49:08 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-12-29 13:52:36 +01:00
|
|
|
|
|
|
|
|
|
2013-09-13 15:27:43 +09:00
|
|
|
|
2013-10-02 11:49:08 +02:00
|
|
|
|
2015-09-23 12:34:01 +02:00
|
|
|
|
2015-05-28 13:28:54 +00:00
|
|
|
|
2013-10-02 11:49:08 +02:00
|
|
|
|