Skip to content

branches event not recognised #52

@giordano

Description

@giordano
$ 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions