[acme@seventh perf]$ rm -rf my_symfs/ [acme@seventh perf]$ perf record ls foo* ls: cannot access 'foo*': No such file or directory [ perf record: Woken up 1 times to write data ] [ perf record: Captured and wrote 0.002 MB perf.data (8 samples) ] [acme@seventh perf]$ perf report --stdio # To display the perf.data header info, please use --header/--header-only options. # # # Total Lost Samples: 0 # # Samples: 8 of event 'cycles:u' # Event count (approx.): 741044 # # Overhead Command Shared Object Symbol # ........ ....... .................... ......................... # 66.57% ls ld-linux-x86-64.so.2 [.] _dl_lookup_symbol_x 25.74% ls ld-linux-x86-64.so.2 [.] _dl_next_ld_env_entry 7.69% ls [unknown] [k] 0xffffffffa7e01047 # # (Tip: For memory address profiling, try: perf mem record / perf mem report) # [acme@seventh perf]$ perf report -v --stdio build id event received for [kernel.kallsyms]: 731aab296cbe38ea3f310e9d52c8879ac6adb1a4 [20] build id event received for /usr/lib64/ld-linux-x86-64.so.2: f526ee004c4dbdc3528e4997dfa2f9cd13c192c7 [20] build id event received for [vdso]: d598ba80ef8e74ba62a4dda34dcddf6afc0e3ee8 [20] # To display the perf.data header info, please use --header/--header-only options. # # # Total Lost Samples: 0 # # Samples: 8 of event 'cycles:u' # Event count (approx.): 741044 # # Overhead Command Shared Object Symbol # ........ ....... ............................... .............................................. # 66.57% ls /usr/lib64/ld-linux-x86-64.so.2 0xb6cf B [.] _dl_lookup_symbol_x 25.74% ls /usr/lib64/ld-linux-x86-64.so.2 0x1d7c0 B [.] _dl_next_ld_env_entry 7.69% ls [unknown] 0xffffffffa7e01047 ! [k] 0xffffffffa7e01047 # # (Tip: If you have debuginfo enabled, try: perf report -s sym,srcline) # [acme@seventh perf]$ mkdir my_symfs [acme@seventh perf]$ perf report --stdio --symfs my_symfs # To display the perf.data header info, please use --header/--header-only options. # # # Total Lost Samples: 0 # # Samples: 8 of event 'cycles:u' # Event count (approx.): 741044 # # Overhead Command Shared Object Symbol # ........ ....... .................... ...................... # 66.57% ls ld-linux-x86-64.so.2 [.] 0x000000000000b6cf 25.74% ls ld-linux-x86-64.so.2 [.] 0x000000000001d7c0 7.69% ls [unknown] [k] 0xffffffffa7e01047 # # (Tip: To see list of saved events and attributes: perf evlist -v) # [acme@seventh perf]$ mkdir -p my_symfs/usr/lib64 [acme@seventh perf]$ cp /usr/lib64/ld-linux-x86-64.so.2 my_symfs/usr/lib64/ [acme@seventh perf]$ perf report --stdio --symfs my_symfs # To display the perf.data header info, please use --header/--header-only options. # # # Total Lost Samples: 0 # # Samples: 8 of event 'cycles:u' # Event count (approx.): 741044 # # Overhead Command Shared Object Symbol # ........ ....... .................... ......................... # 66.57% ls ld-linux-x86-64.so.2 [.] _dl_lookup_symbol_x 25.74% ls ld-linux-x86-64.so.2 [.] _dl_next_ld_env_entry 7.69% ls [unknown] [k] 0xffffffffa7e01047 # # (Tip: Profiling branch (mis)predictions with: perf record -b / perf report) # [acme@seventh perf]$