Message ID | 20220207163900.178524-2-y.karadz@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
Series | [1/4] trace-cruncher: Fix coments & style in ft_utils.py | expand |
diff --git a/examples/start_tracing.py b/examples/start_tracing.py index aaeb0cf..367c626 100755 --- a/examples/start_tracing.py +++ b/examples/start_tracing.py @@ -11,7 +11,8 @@ import tracecruncher.ftracepy as ft # Create new Ftrace instance to work in. inst = ft.create_instance() -# Enable all static events from systems "sched" and "irq". +# Enable several static events, including "sched_switch" and "sched_waking" +# from systems "sched" and all events from system "irq". ft.enable_events(instance=inst, events={'sched': ['sched_switch', 'sched_waking'], 'irq': ['all']})
The new comment in the code describes correctly the example usage of the 'enable_events' API. Signed-off-by: Yordan Karadzhov (VMware) <y.karadz@gmail.com> --- examples/start_tracing.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)