Skip to content

Commit

Permalink
Merge pull request iovisor#1360 from navytux/y/execsnoop-x-fix
Browse files Browse the repository at this point in the history
execsnoop: Fix -x handling
  • Loading branch information
brendangregg authored Oct 11, 2017
2 parents 3c67c2f + ce36bb6 commit 920319d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/execsnoop.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def print_event(cpu, data, size):
if event.type == EventType.EVENT_ARG:
argv[event.pid].append(event.argv)
elif event.type == EventType.EVENT_RET:
if args.fails and event.retval == 0:
if event.retval != 0 and not args.fails:
skip = True
if args.name and not re.search(args.name, event.comm):
skip = True
Expand Down

0 comments on commit 920319d

Please sign in to comment.