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
  • python
  • twatch.py
Find file BlameHistoryPermalink
  • Arnaldo Carvalho de Melo's avatar
    perf python: Make twatch.py use soft dummy event, freq=0 · 58b32c1b
    Arnaldo Carvalho de Melo authored Jul 27, 2015
    
    
    To not sample, what we want are just the PERF_RECORD_ lifetime events
    for threads, using the default, PERF_TYPE_HARDWARE +
    PERF_COUNT_HW_CYCLES and freq=1 (the default), makes perf reenable
    irq_vectors:local_timer_entry, disabling nohz, not good for some use
    cases where all we want is to get notifications when threads comes and
    goes...
    
    Fix it by using PERF_TYPE_SOFTWARE (no counter rotation) and
    PERF_COUNT_SW_DUMMY (created by Adrian so that we could have access to
    those PERF_RECORD_ goodies).
    
    Reported-by: default avatarLuiz Fernando Capitulino <lcapitulino@redhat.com>
    Suggested-by: default avatarPeter Zijlstra <peterz@infradead.org>
    Cc: Adrian Hunter <adrian.hunter@intel.com>
    Cc: Borislav Petkov <bp@suse.de>
    Cc: David Ahern <dsahern@gmail.com>
    Cc: Frederic Weisbecker <fweisbec@gmail.com>
    Cc: Jaroslav Skarvada <jskarvad@redhat.com>
    Cc: Jeremy Eder <jeder@redhat.com>
    Cc: Jiri Olsa <jolsa@redhat.com>
    Cc: Namhyung Kim <namhyung@kernel.org>
    Cc: Stephane Eranian <eranian@google.com>
    Link: http://lkml.kernel.org/n/tip-kfsijirfrs6xfhkcdxeoen06@git.kernel.org
    
    
    Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    58b32c1b
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7