Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

branches event not recognised #52

Open
giordano opened this issue Dec 13, 2024 · 0 comments
Open

branches event not recognised #52

giordano opened this issue Dec 13, 2024 · 0 comments

Comments

@giordano
Copy link

giordano commented Dec 13, 2024

$ perf list | grep 'OR.*Hardware event'
  branch-instructions OR branches                    [Hardware event]
  cpu-cycles OR cycles                               [Hardware event]
  stalled-cycles-backend OR idle-cycles-backend      [Hardware event]
  stalled-cycles-frontend OR idle-cycles-frontend    [Hardware event]
julia> using LinuxPerf

julia> LinuxPerf.parse_event("branches", 1)
ERROR: unknown event name: branches
Stacktrace:
 [1] error(s::String)
   @ Base ./error.jl:35
 [2] parse_event(str::String, i::Int64)
   @ LinuxPerf ~/.julia/packages/LinuxPerf/Ylq05/src/LinuxPerf.jl:766
 [3] top-level scope
   @ REPL[2]:1

Would it be ok to add branches as alias to branch-instructions

"branch-instructions" => EventType(:hw, :branches),
? Similarly for the other aliases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant