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
  • tools
  • lib
  • traceevent
  • event-parse.c
Find file BlameHistoryPermalink
  • Steven Rostedt's avatar
    tools lib traceevent: Split pevent_print_event() into specific functionality functions · a6745330
    Steven Rostedt authored Feb 29, 2016
    
    
    Currently there's a single function that is used to display a record's
    data in human readable format. That's pevent_print_event().
    Unfortunately, this gives little room for adding other output within the
    line without updating that function call.
    
    I've decided to split that function into 3 parts.
    
     pevent_print_event_task() which prints the task comm, pid and the CPU
     pevent_print_event_time() which outputs the record's timestamp
     pevent_print_event_data() which outputs the rest of the event data.
    
    pevent_print_event() now simply calls these three functions.
    
    To save time from doing the search for event from the record's type, I
    created a new helper function called pevent_find_event_by_record(),
    which returns the record's event, and this event has to be passed to the
    above functions.
    
    Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
    Cc: Namhyung Kim <namhyung@kernel.org>
    Link: http://lkml.kernel.org/r/20160229090128.43a56704@gandalf.local.home
    
    
    Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    a6745330
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7