Skip to content

Commit

Permalink
fix events flag in python
Browse files Browse the repository at this point in the history
  • Loading branch information
itaysk committed May 6, 2020
1 parent 2efa61d commit e21954c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion start.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def parse_args(input_args):
help="save events in json format")
parser.add_argument("-l", "--list", action="store_true",
help="list events")
parser.add_argument("-e", "--event", default = syscalls + sysevents, action=EventsToTraceAction,
parser.add_argument("-e", "--events", default = syscalls + sysevents, action=EventsToTraceAction,
help="trace only the specified events and syscalls (default: trace all)")
parser.add_argument("--show-syscall", action="store_true",
help="show syscall name in kprobes")
Expand Down
2 changes: 1 addition & 1 deletion tracee/tracer.py
Original file line number Diff line number Diff line change
Expand Up @@ -865,7 +865,7 @@ def __init__(self, args):
self.json = args.json
self.ebpf = args.ebpf
self.list_events = args.list
self.events_to_trace = args.events_to_trace
self.events_to_trace = args.events
self.buf_pages = args.buf_pages
self.show_syscall = args.show_syscall
self.exec_env = args.exec_env
Expand Down

0 comments on commit e21954c

Please sign in to comment.