Re: [PATCH bpf-next v7] selftests/bpf: add BPF program dump in veristat

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2025-09-05 at 14:51 -0700, Andrii Nakryiko wrote:

[...]

> > Yes, but looks like it's a separate binary, not a command:
> > 
> >   $ strace command -v ls 2>&1 | grep command
> >   execve("/usr/bin/command", ["command", "-v", "ls"], 0x7ffffeaef7b0 /* 65 vars */) = 0
> > 
> > (Not that it changes much).
> 
> You nerd sniped me here :) You get that execve("/usr/bin/command")
> because strace forces the command to be resolved as binary. If you run
> something like execsnoop in background and execute `command -v blah`
> you won't see this execve. ¯\_(ツ)_/¯

Interesting, so I should have done this:

  $ strace bash -c 'command -v ls' 2>&1 | grep command

So, it's like 'time' vs '/usr/bin/time' :)





[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux