Skip to content

Instantly share code, notes, and snippets.

@b10n1k
Created April 13, 2022 07:31
Show Gist options
  • Save b10n1k/1475cc99390c87c9ce20e1b7a90789f7 to your computer and use it in GitHub Desktop.
Save b10n1k/1475cc99390c87c9ce20e1b7a90789f7 to your computer and use it in GitHub Desktop.
run-find-external strace
susetest:~ # strace -fc /usr/lib/spack/run-find-external.sh
strace: Process 3980 attached
Create /etc/spack/no_rpm_trigger to stop spack to search for new packages after a rpm install
strace: Process 3981 attached
strace: Process 3982 attached
strace: Process 3983 attached
strace: Process 3984 attached
strace: Process 3985 attached
strace: Process 3986 attached
strace: Process 3987 attached
strace: Process 3988 attached
strace: Process 3989 attached
strace: Process 3990 attached
strace: Process 3991 attached
strace: Process 3992 attached
strace: Process 3993 attached
strace: Process 3994 attached
strace: Process 3995 attached
strace: Process 3996 attached
strace: Process 3997 attached
strace: Process 3998 attached
strace: Process 3999 attached
strace: Process 4000 attached
strace: Process 4001 attached
strace: Process 4002 attached
strace: Process 4003 attached
strace: Process 4004 attached
strace: Process 4005 attached
strace: Process 4006 attached
strace: Process 4007 attached
strace: Process 4008 attached
strace: Process 4009 attached
strace: Process 4010 attached
strace: Process 4011 attached
strace: Process 4012 attached
strace: Process 4013 attached
strace: Process 4014 attached
strace: Process 4015 attached
strace: Process 4016 attached
strace: Process 4017 attached
strace: Process 4018 attached
strace: Process 4019 attached
strace: Process 4020 attached
strace: Process 4021 attached
strace: Process 4022 attached
strace: Process 4023 attached
strace: Process 4024 attached
strace: Process 4025 attached
strace: Process 4026 attached
strace: Process 4027 attached
strace: Process 4028 attached
strace: Process 4029 attached
strace: Process 4030 attached
strace: Process 4031 attached
strace: Process 4032 attached
strace: Process 4033 attached
strace: Process 4034 attached
strace: Process 4035 attached
strace: Process 4036 attached
strace: Process 4037 attached
strace: Process 4038 attached
strace: Process 4039 attached
strace: Process 4040 attached
strace: Process 4041 attached
strace: Process 4042 attached
strace: Process 4043 attached
strace: Process 4044 attached
strace: Process 4045 attached
strace: Process 4046 attached
strace: Process 4047 attached
strace: Process 4048 attached
strace: Process 4049 attached
strace: Process 4050 attached
strace: Process 4051 attached
strace: Process 4052 attached
strace: Process 4053 attached
strace: Process 4054 attached
strace: Process 4055 attached
strace: Process 4056 attached
strace: Process 4057 attached
strace: Process 4058 attached
strace: Process 4059 attached
strace: Process 4060 attached
strace: Process 4061 attached
strace: Process 4062 attached
strace: Process 4063 attached
strace: Process 4064 attached
strace: Process 4065 attached
strace: Process 4066 attached
strace: Process 4067 attached
strace: Process 4068 attached
strace: Process 4069 attached
strace: Process 4070 attached
strace: Process 4071 attached
strace: Process 4072 attached
strace: Process 4073 attached
strace: Process 4074 attached
strace: Process 4075 attached
strace: Process 4076 attached
strace: Process 4077 attached
strace: Process 4078 attached
strace: Process 4079 attached
strace: Process 4080 attached
strace: Process 4081 attached
strace: Process 4082 attached
strace: Process 4083 attached
strace: Process 4084 attached
strace: Process 4085 attached
strace: Process 4086 attached
strace: Process 4087 attached
strace: Process 4088 attached
strace: Process 4089 attached
strace: Process 4090 attached
strace: Process 4091 attached
strace: Process 4092 attached
strace: Process 4093 attached
strace: Process 4094 attached
strace: Process 4095 attached
strace: Process 4096 attached
strace: Process 4097 attached
strace: Process 4098 attached
strace: Process 4099 attached
strace: Process 4100 attached
strace: Process 4101 attached
strace: Process 4102 attached
strace: Process 4103 attached
strace: Process 4104 attached
strace: Process 4105 attached
strace: Process 4106 attached
strace: Process 4107 attached
strace: Process 4108 attached
strace: Process 4109 attached
strace: Process 4110 attached
strace: Process 4111 attached
strace: Process 4112 attached
strace: Process 4113 attached
strace: Process 4114 attached
strace: Process 4115 attached
strace: Process 4116 attached
strace: Process 4117 attached
strace: Process 4118 attached
strace: Process 4119 attached
strace: Process 4120 attached
strace: Process 4121 attached
strace: Process 4122 attached
strace: Process 4123 attached
strace: Process 4124 attached
strace: Process 4125 attached
strace: Process 4126 attached
strace: Process 4127 attached
strace: Process 4128 attached
strace: Process 4129 attached
strace: Process 4130 attached
strace: Process 4131 attached
strace: Process 4132 attached
strace: Process 4133 attached
strace: Process 4134 attached
strace: Process 4135 attached
strace: Process 4136 attached
strace: Process 4137 attached
strace: Process 4138 attached
strace: Process 4139 attached
strace: Process 4140 attached
strace: Process 4141 attached
strace: Process 4142 attached
strace: Process 4143 attached
strace: Process 4144 attached
strace: Process 4145 attached
strace: Process 4146 attached
strace: Process 4147 attached
strace: Process 4148 attached
strace: Process 4149 attached
strace: Process 4150 attached
strace: Process 4151 attached
strace: Process 4152 attached
strace: Process 4153 attached
strace: Process 4154 attached
strace: Process 4155 attached
strace: Process 4156 attached
strace: Process 4157 attached
strace: Process 4158 attached
strace: Process 4159 attached
strace: Process 4160 attached
strace: Process 4161 attached
strace: Process 4162 attached
strace: Process 4163 attached
strace: Process 4164 attached
strace: Process 4165 attached
strace: Process 4166 attached
strace: Process 4167 attached
==> The following specs have been detected on this system and added to /var/lib/nobody/.spack/packages.yaml
[email protected] [email protected] [email protected] [email protected]
[email protected] [email protected] [email protected] [email protected]
[email protected] [email protected] [email protected] [email protected]
[email protected] [email protected] [email protected] [email protected]
[email protected] [email protected] [email protected] [email protected]
[email protected] [email protected] [email protected] [email protected]
[email protected] [email protected] [email protected]
[email protected] [email protected] [email protected]
[email protected] [email protected] [email protected]
strace: Process 4168 attached
copied '/var/lib/nobody/.spack/packages.yaml' -> '/etc/spack/packages.yaml'
removed '/var/lib/nobody/.spack/packages.yaml'
strace: Process 4169 attached
strace: Process 4170 attached
% time seconds usecs/call calls errors syscall
------ ----------- ----------- --------- --------- ------------------
91.16 210.294115 790579 266 81 wait4
1.67 3.851841 28322 136 execve
1.65 3.815941 67 56417 11163 newfstatat
0.93 2.136370 525 4066 munmap
0.79 1.832725 9595 191 clone
0.59 1.368591 86 15743 6688 openat
0.54 1.254912 75 16670 4 read
0.42 0.961375 92 10351 13 close
0.36 0.821140 52 15574 fstat
0.34 0.781653 88 8816 220 faccessat
0.33 0.772015 113 6779 mmap
0.23 0.537386 86 6209 6206 mkdirat
0.14 0.329950 41 8021 261 lseek
0.14 0.313263 157 1995 mprotect
0.12 0.272995 714 382 32 futex
0.11 0.264704 76 3456 rt_sigaction
0.07 0.160495 69 2305 brk
0.06 0.127190 181 702 getdents64
0.05 0.122724 116 1056 write
0.05 0.109325 97 1117 rt_sigprocmask
0.04 0.087554 54 1600 906 ioctl
0.03 0.075043 220 341 1 ppoll
0.01 0.034350 122 280 dup3
0.01 0.031993 31993 1 pselect6
0.01 0.026625 93 284 pipe2
0.01 0.026605 61 435 getuid
0.01 0.026038 58 442 geteuid
0.01 0.025731 60 426 getegid
0.01 0.025368 59 424 getgid
0.01 0.016111 48 329 getcwd
0.01 0.014561 66 218 getpid
0.01 0.013907 70 198 14 fcntl
0.00 0.010898 1556 7 madvise
0.00 0.010838 722 15 2 unlinkat
0.00 0.010830 133 81 1 rt_sigreturn
0.00 0.010304 448 23 sendto
0.00 0.009208 61 150 prlimit64
0.00 0.008831 191 46 21 statfs
0.00 0.008682 57 152 set_robust_list
0.00 0.006297 86 73 gettid
0.00 0.005503 220 25 2 recvmsg
0.00 0.004652 2326 2 setreuid
0.00 0.003963 76 52 getrandom
0.00 0.003823 112 34 17 readlinkat
0.00 0.003670 917 4 shmat
0.00 0.003428 95 36 uname
0.00 0.002946 60 49 set_tid_address
0.00 0.002935 133 22 socket
0.00 0.002753 250 11 setresuid
0.00 0.002693 179 15 1 connect
0.00 0.002560 426 6 shmctl
0.00 0.002171 1085 2 keyctl
0.00 0.002145 178 12 setfsuid
0.00 0.002055 51 40 sysinfo
0.00 0.002051 120 17 8 prctl
0.00 0.002007 1003 2 shmget
0.00 0.001970 985 2 shmdt
0.00 0.001913 239 8 1 getsockopt
0.00 0.001734 55 31 getppid
0.00 0.001705 142 12 setfsgid
0.00 0.001608 114 14 1 recvfrom
0.00 0.001518 27 55 sigaltstack
0.00 0.001333 190 7 setresgid
0.00 0.001237 25 49 dup
0.00 0.001153 288 4 setsockopt
0.00 0.001129 1129 1 fchown
0.00 0.000994 124 8 5 chdir
0.00 0.000994 198 5 setgroups
0.00 0.000979 39 25 getpgid
0.00 0.000970 485 2 epoll_create1
0.00 0.000796 398 2 timerfd_create
0.00 0.000768 45 17 getgroups
0.00 0.000759 75 10 umask
0.00 0.000755 755 1 fsetxattr
0.00 0.000709 354 2 flistxattr
0.00 0.000659 329 2 getsockname
0.00 0.000643 643 1 bind
0.00 0.000543 543 1 1 fgetxattr
0.00 0.000519 519 1 utimensat
0.00 0.000351 351 1 fadvise64
0.00 0.000336 112 3 sendmsg
0.00 0.000312 78 4 sched_getaffinity
0.00 0.000238 238 1 fchownat
0.00 0.000192 96 2 setgid
0.00 0.000126 126 1 1 renameat2
0.00 0.000115 19 6 epoll_ctl
0.00 0.000100 100 1 getpriority
0.00 0.000083 41 2 2 fsync
0.00 0.000051 25 2 2 symlinkat
0.00 0.000050 25 2 getresuid
0.00 0.000047 23 2 getresgid
0.00 0.000000 0 1 eventfd2
0.00 0.000000 0 5 epoll_pwait
0.00 0.000000 0 3 pread64
0.00 0.000000 0 1 splice
0.00 0.000000 0 2 timerfd_settime
0.00 0.000000 0 3 setitimer
0.00 0.000000 0 1 clock_gettime
0.00 0.000000 0 1 setpriority
0.00 0.000000 0 1 getsid
0.00 0.000000 0 4 mremap
------ ----------- ----------- --------- --------- ------------------
100.00 230.685228 1386 166415 25654 total
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment