Skip to content

Commit

Permalink
Extend PerfType members
Browse files Browse the repository at this point in the history
You can use

    b.attach_perf_event(ev_type=PerfType.RAW, ...)

to attach perf raw event for profiling.

Signed-off-by: Edward Wu <[email protected]>
  • Loading branch information
netedwardwu authored and yonghong-song committed Aug 21, 2020
1 parent f4e65ac commit 785924b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/python/bcc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ class PerfType:
# From perf_type_id in uapi/linux/perf_event.h
HARDWARE = 0
SOFTWARE = 1
TRACEPOINT = 2
HW_CACHE = 3
RAW = 4
BREAKPOINT = 5

class PerfHWConfig:
# From perf_hw_id in uapi/linux/perf_event.h
Expand Down

0 comments on commit 785924b

Please sign in to comment.