ldv changed the topic of #strace to: https://strace.io | https://strace.io/logs/ | strace 4.24 is out | strace-devel@lists.strace.io for dev discussions
sscox has joined #strace
snailin has joined #strace
<snailin> Hi, does anybody know how to list all syscall traces during injection into some syscall? For example, I inject error on openat syscall and strace prints only this syscall. How can I print whole trace, not just injected syscall?
snailin has quit [Quit: Leaving]
snailin has joined #strace
<ldv> snailin: strace by default traces all syscalls
<snailin> Hi, strace -f -P "/proc/self" -e inject=openat:error=ENOENT -p 30228, for example, this command only prints injected syscall. Is it possible to print all syscalls including injected? Or is there something with bpf?
mjw has quit [Ping timeout: 250 seconds]
mjw has joined #strace
snailin has quit [Ping timeout: 250 seconds]
mator has quit [Remote host closed the connection]
snailin has joined #strace
<ldv> snailin: -P "/proc/self" limits the set of traced syscalls to those that access /proc/self
<snailin> So there is no way of injection based on syscall arguments. Strace is almost perfect tool, but the absence of this feature dissapoints. I saw issue for feature on github, do you have any plans for this?
pombreda has quit [Ping timeout: 245 seconds]
pombreda has joined #strace
snailin has quit [Quit: Leaving]
mator has joined #strace
mator has quit [Remote host closed the connection]
sscox has quit [Ping timeout: 258 seconds]