Commit 920319d1 authored by Brendan Gregg's avatar Brendan Gregg Committed by GitHub

Merge pull request #1360 from navytux/y/execsnoop-x-fix

execsnoop: Fix -x handling
parents 3c67c2fa ce36bb6b
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment