GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — bcc/python: add perf_custom_event_open · sevan/bcc@fc3d942

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src/python/bcc
    • perf.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/python/bcc/perf.py‎

Copy file name to clipboardExpand all lines: src/python/bcc/perf.py
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,3 +190,9 @@ def perf_event_open(tpoint_id, pid=-1, ptype=PERF_TYPE_TRACEPOINT,
190190

191191
for cpu in get_online_cpus():
192192
Perf._open_for_cpu(cpu, attr)
193+
194+
@staticmethod
195+
def perf_custom_event_open(attr, pid=-1):
196+
attr.pid = pid
197+
for cpu in get_online_cpus():
198+
Perf._open_for_cpu(cpu, attr)

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.