[PATCH 2/4] trace-cruncher: Fix misleading comment in start_tracing.py

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

 



The new comment in the code describes correctly the example usage of
the 'enable_events' API.

Signed-off-by: Yordan Karadzhov (VMware) <y.karadz@xxxxxxxxx>
---
 examples/start_tracing.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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']})
-- 
2.32.0




[Index of Archives]     [Linux USB Development]     [Linux USB Development]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux