Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
  1. Mar 11, 2022
    • Steven Rostedt (Google)'s avatar
      tracing: Add TRACE_CUSTOM_EVENT() macro · 3a73333f
      Steven Rostedt (Google) authored
      To make it really easy to add custom events from modules, add a
      TRACE_CUSTOM_EVENT() macro that acts just like the TRACE_EVENT() macro,
      but creates a custom event to an already existing tracepoint.
      
      The trace_custom_sched.[ch] has been updated to use this new macro to show
      how simple it is.
      
      Link: https://lkml.kernel.org/r/20220303220625.738622494@goodmis.org
      
      
      
      Cc: Ingo Molnar <mingo@kernel.org>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Joel Fernandes <joel@joelfernandes.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Masami Hiramatsu <mhiramat@kernel.org>
      Cc: Tom Zanussi <zanussi@kernel.org>
      Signed-off-by: default avatarSteven Rostedt (Google) <rostedt@goodmis.org>
      3a73333f
    • Steven Rostedt (Google)'s avatar
      tracing: Add sample code for custom trace events · 953c2f05
      Steven Rostedt (Google) authored
      Add sample code to show how to create custom trace events in the tracefs
      directory that can be enabled and modified like any event in tracefs
      (including triggers, histograms, synthetic events and event probes).
      
      The example is creating a custom sched_switch and a sched_waking to limit
      what is recorded:
      
      If the custom sched switch only records the prev_prio, next_prio and
      next_pid, it can bring the size from 64 bytes per event, down to just 16
      bytes!
      
      If sched_waking only records the prio and pid of the woken event, it will
      bring the size down from 36 bytes to 12 bytes per event.
      
      This will allow for a much smaller footprint into the ring buffer and keep
      more events from dropping.
      
      Link: https://lkml.kernel.org/r/20220303220625.369226746@goodmis.org
      
      
      
      Cc: Ingo Molnar <mingo@kernel.org>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Masami Hiramatsu <mhiramat@kernel.org>
      Cc: Tom Zanussi <zanussi@kernel.org>
      Suggested-by: default avatarJoel Fernandes <joel@joelfernandes.org>
      Signed-off-by: default avatarSteven Rostedt (Google) <rostedt@goodmis.org>
      953c2f05
  2. Feb 10, 2022
  3. Jan 20, 2022
  4. Jan 13, 2022
  5. Jan 05, 2022
  6. Dec 14, 2021
  7. Dec 09, 2021
  8. Dec 08, 2021
  9. Dec 06, 2021
  10. Dec 02, 2021
  11. Dec 01, 2021
  12. Nov 26, 2021
  13. Nov 18, 2021
  14. Nov 15, 2021
  15. Nov 12, 2021
  16. Nov 07, 2021
  17. Nov 01, 2021
  18. Oct 27, 2021
  19. Oct 26, 2021
  20. Oct 25, 2021
  21. Oct 21, 2021