Revision 511e19b9e2112463c33a744ecb8a798056074408 authored by Namhyung Kim on 19 December 2022, 20:17:30 UTC, committed by Arnaldo Carvalho de Melo on 21 December 2022, 17:52:39 UTC
The -L/--lock-filter option is to filter only given locks. The locks can be specified by address or name (if exists). $ sudo ./perf lock record -a sleep 1 $ sudo ./perf lock con -l contended total wait max wait avg wait address symbol 57 1.11 ms 42.83 us 19.54 us ffff9f4140059000 15 280.88 us 23.51 us 18.73 us ffffffff9d007a40 jiffies_lock 1 20.49 us 20.49 us 20.49 us ffffffff9d0d50c0 rcu_state 1 9.02 us 9.02 us 9.02 us ffff9f41759e9ba0 $ sudo ./perf lock con -L jiffies_lock,rcu_state contended total wait max wait avg wait type caller 15 280.88 us 23.51 us 18.73 us spinlock tick_sched_do_timer+0x93 1 20.49 us 20.49 us 20.49 us spinlock __softirqentry_text_start+0xeb $ sudo ./perf lock con -L ffff9f4140059000 contended total wait max wait avg wait type caller 38 779.40 us 42.83 us 20.51 us spinlock worker_thread+0x50 11 216.30 us 39.87 us 19.66 us spinlock queue_work_on+0x39 8 118.13 us 20.51 us 14.77 us spinlock kthread+0xe5 Committer testing: # uname -a Linux quaco 6.0.12-200.fc36.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 8 17:15:53 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux # perf lock record ^C[ perf record: Woken up 1 times to write data ] # perf lock con -L jiffies_lock,rcu_state contended total wait max wait avg wait type caller # perf lock con contended total wait max wait avg wait type caller 1 9.06 us 9.06 us 9.06 us spinlock call_timer_fn+0x24 # perf lock con -L call ignore unknown symbol: call contended total wait max wait avg wait type caller 1 9.06 us 9.06 us 9.06 us spinlock call_timer_fn+0x24 # Signed-off-by: Namhyung Kim <namhyung@kernel.org> Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Blake Jones <blakejones@google.com> Cc: Ian Rogers <irogers@google.com> Cc: Ingo Molnar <mingo@kernel.org> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Song Liu <song@kernel.org> Cc: bpf@vger.kernel.org Link: https://lore.kernel.org/r/20221219201732.460111-5-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent 529772c
File | Mode | Size |
---|---|---|
Kconfig | -rw-r--r-- | 7.7 KB |
Makefile | -rw-r--r-- | 1.1 KB |
asn1.c | -rw-r--r-- | 1.4 KB |
cached_dir.c | -rw-r--r-- | 13.0 KB |
cached_dir.h | -rw-r--r-- | 2.1 KB |
cifs_debug.c | -rw-r--r-- | 30.3 KB |
cifs_debug.h | -rw-r--r-- | 4.3 KB |
cifs_dfs_ref.c | -rw-r--r-- | 9.6 KB |
cifs_fs_sb.h | -rw-r--r-- | 3.4 KB |
cifs_ioctl.h | -rw-r--r-- | 3.5 KB |
cifs_spnego.c | -rw-r--r-- | 5.7 KB |
cifs_spnego.h | -rw-r--r-- | 927 bytes |
cifs_spnego_negtokeninit.asn1 | -rw-r--r-- | 698 bytes |
cifs_swn.c | -rw-r--r-- | 16.9 KB |
cifs_swn.h | -rw-r--r-- | 1.4 KB |
cifs_unicode.c | -rw-r--r-- | 15.7 KB |
cifs_unicode.h | -rw-r--r-- | 9.6 KB |
cifs_uniupr.h | -rw-r--r-- | 11.9 KB |
cifsacl.c | -rw-r--r-- | 47.8 KB |
cifsacl.h | -rw-r--r-- | 6.2 KB |
cifsencrypt.c | -rw-r--r-- | 19.0 KB |
cifsfs.c | -rw-r--r-- | 49.4 KB |
cifsfs.h | -rw-r--r-- | 6.3 KB |
cifsglob.h | -rw-r--r-- | 73.8 KB |
cifspdu.h | -rw-r--r-- | 82.5 KB |
cifsproto.h | -rw-r--r-- | 29.4 KB |
cifsroot.c | -rw-r--r-- | 2.1 KB |
cifssmb.c | -rw-r--r-- | 172.9 KB |
connect.c | -rw-r--r-- | 126.5 KB |
dfs_cache.c | -rw-r--r-- | 39.8 KB |
dfs_cache.h | -rw-r--r-- | 2.9 KB |
dir.c | -rw-r--r-- | 21.9 KB |
dns_resolve.c | -rw-r--r-- | 2.3 KB |
dns_resolve.h | -rw-r--r-- | 472 bytes |
export.c | -rw-r--r-- | 1.6 KB |
file.c | -rw-r--r-- | 134.4 KB |
fs_context.c | -rw-r--r-- | 46.9 KB |
fs_context.h | -rw-r--r-- | 7.1 KB |
fscache.c | -rw-r--r-- | 6.2 KB |
fscache.h | -rw-r--r-- | 4.3 KB |
inode.c | -rw-r--r-- | 82.1 KB |
ioctl.c | -rw-r--r-- | 13.4 KB |
link.c | -rw-r--r-- | 15.2 KB |
misc.c | -rw-r--r-- | 35.2 KB |
netlink.c | -rw-r--r-- | 2.5 KB |
netlink.h | -rw-r--r-- | 326 bytes |
netmisc.c | -rw-r--r-- | 39.4 KB |
nterr.c | -rw-r--r-- | 32.9 KB |
nterr.h | -rw-r--r-- | 29.4 KB |
ntlmssp.h | -rw-r--r-- | 6.0 KB |
readdir.c | -rw-r--r-- | 34.0 KB |
rfc1002pdu.h | -rw-r--r-- | 2.1 KB |
sess.c | -rw-r--r-- | 49.0 KB |
smb1ops.c | -rw-r--r-- | 35.6 KB |
smb2file.c | -rw-r--r-- | 10.2 KB |
smb2glob.h | -rw-r--r-- | 1.2 KB |
smb2inode.c | -rw-r--r-- | 22.5 KB |
smb2maperror.c | -rw-r--r-- | 126.6 KB |
smb2misc.c | -rw-r--r-- | 26.5 KB |
smb2ops.c | -rw-r--r-- | 160.5 KB |
smb2pdu.c | -rw-r--r-- | 157.3 KB |
smb2pdu.h | -rw-r--r-- | 10.3 KB |
smb2proto.h | -rw-r--r-- | 13.8 KB |
smb2status.h | -rw-r--r-- | 105.7 KB |
smb2transport.c | -rw-r--r-- | 22.6 KB |
smbdirect.c | -rw-r--r-- | 70.9 KB |
smbdirect.h | -rw-r--r-- | 8.4 KB |
smbencrypt.c | -rw-r--r-- | 2.2 KB |
smberr.h | -rw-r--r-- | 6.8 KB |
trace.c | -rw-r--r-- | 195 bytes |
trace.h | -rw-r--r-- | 27.5 KB |
transport.c | -rw-r--r-- | 47.5 KB |
unc.c | -rw-r--r-- | 1.4 KB |
winucase.c | -rw-r--r-- | 36.2 KB |
xattr.c | -rw-r--r-- | 13.0 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...