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
You need to sign in or sign up before continuing.
  • linux
  • kernel
  • trace
  • trace.h
Find file BlameHistoryPermalink
  • Tom Zanussi's avatar
    tracing: Remove logic for registering multiple event triggers at a time · b8cc44a4
    Tom Zanussi authored Feb 04, 2022
    Code for registering triggers assumes it's possible to register more
    than one trigger at a time.  In fact, it's unimplemented and there
    doesn't seem to be a reason to do that.
    
    Remove the n_registered param from event_trigger_register() and fix up
    callers.
    
    Doing so simplifies the logic in event_trigger_register to the point
    that it just becomes a wrapper calling event_command.reg().
    
    It also removes the problematic call to event_command.unreg() in case
    of failure.  A new function, event_trigger_unregister() is also added
    for callers to call themselves.
    
    The changes to trace_events_hist.c simply allow compilation; a
    separate patch follows which updates the hist triggers to work
    correctly with the new changes.
    
    Link: https://lkml.kernel.org/r/6149fec7a139d93e84fa4535672fb5bef88006b0.1644010575.git.zanussi@kernel.org
    
    
    
    Signed-off-by: default avatarTom Zanussi <zanussi@kernel.org>
    Signed-off-by: default avatarSteven Rostedt (Google) <rostedt@goodmis.org>
    b8cc44a4
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7