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 · May be fixed by #57
Open

branches event not recognised #52

giordano opened this issue Dec 13, 2024 · 0 comments · May be fixed by #57

Comments

@giordano
Copy link
Contributor

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.

@giordano giordano linked a pull request Jan 13, 2025 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant