• Steven Rostedt (Google)'s avatar
    tracing: Allow stacktraces to be saved as histogram variables · 288709c9
    Steven Rostedt (Google) authored
    Allow to save stacktraces into a histogram variable. This will be used by
    synthetic events to allow a stacktrace from one event to be passed and
    displayed by another event.
    
    The special keyword "stacktrace" is to be used to trigger a stack
    trace for the event that the histogram trigger is attached to.
    
      echo 'hist:keys=pid:st=stacktrace" > events/sched/sched_waking/trigger
    
    Currently nothing can get access to the "$st" variable above that contains
    the stack trace, but that will soon change.
    
    Link: https://lkml.kernel.org/r/20230117152235.856323729@goodmis.org
    
    Cc: Masami Hiramatsu <mhiramat@kernel.org>
    Cc: Andrew Morton <akpm@linux-foundation.org>
    Cc: Tom Zanussi <zanussi@kernel.org>
    Cc: Ross Zwisler <zwisler@google.com>
    Cc: Ching-lin Yu <chinglinyu@google.com>
    Signed-off-by: default avatarSteven Rostedt (Google) <rostedt@goodmis.org>
    288709c9
trace_events_hist.c 166 KB