Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
  • linux
  • kernel
  • trace
  • trace_events_hist.c
Find file BlameHistoryPermalink
  • Masami Hiramatsu's avatar
    tracing: Clear trace_state when starting trace · 7ab215f2
    Masami Hiramatsu authored Feb 17, 2020
    Clear trace_state data structure when starting trace
    in __synth_event_trace_start() internal function.
    
    Currently trace_state is initialized only in the
    synth_event_trace_start() API, but the trace_state
    in synth_event_trace() and synth_event_trace_array()
    are on the stack without initialization.
    This means those APIs will see wrong parameters and
    wil skip closing process in __synth_event_trace_end()
    because trace_state->disabled may be !0.
    
    Link: http://lkml.kernel.org/r/158193315899.8868.1781259176894639952.stgit@devnote2
    
    
    
    Reviewed-by: default avatarTom Zanussi <zanussi@kernel.org>
    Signed-off-by: default avatarMasami Hiramatsu <mhiramat@kernel.org>
    Signed-off-by: default avatarSteven Rostedt (VMware) <rostedt@goodmis.org>
    7ab215f2
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7