Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
  1. Mar 23, 2022
  2. Mar 18, 2022
  3. Mar 17, 2022
  4. Mar 15, 2022
  5. 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
  6. Feb 25, 2022
  7. Feb 10, 2022
  8. Feb 04, 2022
  9. Feb 03, 2022
  10. Feb 01, 2022
  11. Jan 25, 2022
  12. Jan 21, 2022
  13. Jan 20, 2022
  14. Jan 13, 2022
  15. Jan 12, 2022
  16. Jan 05, 2022
  17. Dec 14, 2021
  18. Dec 09, 2021
  19. Dec 08, 2021
  20. Dec 06, 2021
  21. Dec 02, 2021
  22. Dec 01, 2021
  23. Nov 26, 2021
  24. Nov 18, 2021
  25. Nov 15, 2021