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
  • tools
  • perf
  • util
  • scripting-engines
  • trace-event-python.c
Find file BlameHistoryPermalink
  • Sebastian Andrzej Siewior's avatar
    perf script: Handle the num array type in python properly · 8ac631cd
    Sebastian Andrzej Siewior authored May 27, 2014
    
    
    The raw_syscalls:sys_enter tracer for instance passes has one argument
    named 'arg' which is an array of 6 integers. Right the python scripts
    gets only 0 passed as an argument. The reason is that
    pevent_read_number() can not handle data types of 48 and returns always
    0.
    This patch changes this by passing num array as list of nums which fit
    the description. As a result python will now see a list named arg which
    contains 6 (integer) items.
    
    Signed-off-by: default avatarSebastian Andrzej Siewior <bigeasy@linutronix.de>
    Acked-by: default avatarNamhyung Kim <namhyung@kernel.org>
    Link: http://lkml.kernel.org/n/1401207274-8170-2-git-send-email-bigeasy@linutronix.de
    
    
    Signed-off-by: default avatarJiri Olsa <jolsa@kernel.org>
    8ac631cd
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7