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
  • perf
  • util
  • scripting-engines
  • trace-event-python.c
Find file BlameHistoryPermalink
  • Tom Zanussi's avatar
    perf script: hook up perf_scripting_context->pevent · 2de9533d
    Tom Zanussi authored Jan 18, 2013
    
    
    Running the check-perf-trace scripts causes segfaults in both the Perl
    and Python cases:
    
      # perf script record check-perf-trace
      # perf script -s libexec/perf-core/scripts/python/check-perf-trace.py
      trace_begin
      Segmentation fault (core dumped)
    
    The reason is that the 'pevent' field was added to
    perf_scripting_context but it wasn't hooked up with an actual pevent in
    either case, so when one of the 'common' fields is accessed (in
    util/trace-event-parse.c:get_common_fields()), pevent->events tries to
    dereference a NULL pointer.
    
    This sets the pevent field when the scripting context is set up.
    
    Signed-off-by: default avatarTom Zanussi <tom.zanussi@linux.intel.com>
    Link: http://lkml.kernel.org/r/d2b1b8166a6ca0a36e1f5255b88a8289058ba236.1358527965.git.tom.zanussi@linux.intel.com
    
    
    Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    2de9533d
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7