• Steven Rostedt (Red Hat)'s avatar
    tracing: Add snapshot in the per_cpu trace directories · f1affcaa
    Steven Rostedt (Red Hat) authored
    Add the snapshot file into the per_cpu tracing directories to allow
    them to be read for an individual cpu. This also allows to clear
    an individual cpu from the snapshot buffer.
    
    If the kernel allows it (CONFIG_RING_BUFFER_ALLOW_SWAP is set), then
    echoing in '1' into one of the per_cpu snapshot files will do an
    individual cpu buffer swap instead of the entire file.
    
    Cc: Hiraku Toyooka <hiraku.toyooka.gu@hitachi.com>
    Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
    f1affcaa
trace.c 137 KB