[root@quaco ~]# gdb perf GNU gdb (GDB) Fedora 8.2-5.fc29 Copyright (C) 2018 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-redhat-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from perf...done. (gdb) run trace -e open* Starting program: /root/bin/perf trace -e open* Missing separate debuginfos, use: dnf debuginfo-install glibc-2.28-26.fc29.x86_64 warning: Loadable section ".note.gnu.property" outside of ELF segments warning: Loadable section ".note.gnu.property" outside of ELF segments warning: Loadable section ".note.gnu.property" outside of ELF segments [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". warning: Loadable section ".note.gnu.property" outside of ELF segments warning: Loadable section ".note.gnu.property" outside of ELF segments warning: Loadable section ".note.gnu.property" outside of ELF segments NetworkManager/18254 openat(AT_FDCWD, "/etc/hosts", O_RDONLY|O_CLOEXEC) = 25 gsd-color/2905 openat(AT_FDCWD, "/etc/localtime", O_RDONLY) = 18 gsd-color/2905 openat(AT_FDCWD, "/run/user/1000/dconf/user", O_RDWR|O_CREAT, S_IRUSR|S_IWUSR) = 18 gsd-color/2905 openat(AT_FDCWD, "/home/acme/.config/dconf/user", O_RDONLY) = 18 gsd-color/2905 openat(AT_FDCWD, "/etc/localtime", O_RDONLY) = 18 qmgr/1404 openat(AT_FDCWD, "deferred", O_RDONLY|O_CLOEXEC|O_DIRECTORY|O_NONBLOCK) = 13 qmgr/1404 openat(AT_FDCWD, "deferred/6", O_RDONLY|O_CLOEXEC|O_DIRECTORY|O_NONBLOCK) = 14 qmgr/1404 openat(AT_FDCWD, "deferred/D", O_RDONLY|O_CLOEXEC|O_DIRECTORY|O_NONBLOCK) = 14 qmgr/1404 openat(AT_FDCWD, "deferred/5", O_RDONLY|O_CLOEXEC|O_DIRECTORY|O_NONBLOCK) = 14 qmgr/1404 openat(AT_FDCWD, "incoming", O_RDONLY|O_CLOEXEC|O_DIRECTORY|O_NONBLOCK) = 14 lighttpd/10539 openat(AT_FDCWD, "/proc/loadavg", O_RDONLY) = 12 gnome-shell/2665 openat(AT_FDCWD, "/usr/share/zoneinfo/America/New_York", O_RDONLY) = 63 gnome-shell/2665 openat(AT_FDCWD, "/etc/localtime", O_RDONLY) = 63 tmux: server/2486 openat(AT_FDCWD, "/proc/2537/cmdline", O_RDONLY) = 11 ^C Program received signal SIGINT, Interrupt. 0x00007ffff73213e8 in poll () from /lib64/libc.so.6 Missing separate debuginfos, use: dnf debuginfo-install bzip2-libs-1.0.6-28.fc29.x86_64 elfutils-libelf-0.174-5.fc29.x86_64 elfutils-libs-0.174-5.fc29.x86_64 glib2-2.58.1-1.fc29.x86_64 libbabeltrace-1.5.6-1.fc29.x86_64 libgcc-8.2.1-6.fc29.x86_64 libunwind-1.2.1-6.fc29.x86_64 libuuid-2.32.1-1.fc29.x86_64 libxcrypt-4.4.1-1.fc29.x86_64 numactl-libs-2.0.12-1.fc29.x86_64 openssl-libs-1.1.1-3.fc29.x86_64 pcre-8.42-5.fc29.x86_64 perl-libs-5.28.1-427.fc29.x86_64 popt-1.16-15.fc29.x86_64 python2-libs-2.7.15-11.fc29.x86_64 slang-2.3.2-4.fc29.x86_64 xz-libs-5.2.4-3.fc29.x86_64 (gdb) c Continuing. gdb/15675 openat(AT_FDCWD, "/proc/15700/task/15700/stat", O_RDONLY|O_CLOEXEC) = 15 gdb/15675 openat(AT_FDCWD, "/proc/15700/mem", O_RDONLY|O_CLOEXEC) = 15 gdb/15675 openat(AT_FDCWD, "/home/acme/bin/trace", O_RDONLY) = 15 gdb/15675 openat(AT_FDCWD, "/lib64/ld-linux-x86-64.so.2", O_RDONLY) = 16 gdb/15675 openat(AT_FDCWD, "/lib64/libunwind-x86_64.so.8", O_RDONLY) = 20 gdb/15675 openat(AT_FDCWD, "/lib64/libunwind.so.8", O_RDONLY) = 21 gdb/15675 openat(AT_FDCWD, "/lib64/liblzma.so.5", O_RDONLY) = 22 gdb/15675 openat(AT_FDCWD, "/lib64/libpthread.so.0", O_RDONLY) = 23 gdb/15675 openat(AT_FDCWD, "/lib64/librt.so.1", O_RDONLY) = 24 gdb/15675 openat(AT_FDCWD, "/lib64/libm.so.6", O_RDONLY) = 25 gdb/15675 openat(AT_FDCWD, "/lib64/libdl.so.2", O_RDONLY) = 26 gdb/15675 openat(AT_FDCWD, "/lib64/libelf.so.1", O_RDONLY) = 27 gdb/15675 openat(AT_FDCWD, "/lib64/libdw.so.1", O_RDONLY) = 28 gdb/15675 openat(AT_FDCWD, "/lib64/libcrypto.so.1.1", O_RDONLY) = 29 gdb/15675 openat(AT_FDCWD, "/lib64/libslang.so.2", O_RDONLY) = 30 gdb/15675 openat(AT_FDCWD, "/lib64/libperl.so.5.28", O_RDONLY) = 31 gdb/15675 openat(AT_FDCWD, "/lib64/libresolv.so.2", O_RDONLY) = 32 gdb/15675 openat(AT_FDCWD, "/lib64/libcrypt.so.1", O_RDONLY) = 33 gdb/15675 openat(AT_FDCWD, "/lib64/libutil.so.1", O_RDONLY) = 34 gdb/15675 openat(AT_FDCWD, "/lib64/libc.so.6", O_RDONLY) = 35 systemd/1 openat(AT_FDCWD, "/proc/703/cgroup", O_RDONLY|O_CLOEXEC) = 97 lighttpd/10539 openat(AT_FDCWD, "/proc/loadavg", O_RDONLY) = 12 systemd/1 openat(AT_FDCWD, "/proc/1083/cgroup", O_RDONLY|O_CLOEXEC) = 97