lkml.org 
[lkml]   [2021]   [Dec]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    Subject[PATCH v4 10/14] perf tools: add branch-brs as a new event
    From
    Although branch-brs is specific to AMD Zen3, we provide it in the list of
    events recognized by perf as a convenience. It allows: $ perf stat -e
    branch-brs $ perf list

    and enable some test suite to pass.

    Signed-off-by: Stephane Eranian <eranian@google.com>
    ---
    tools/perf/util/parse-events.l | 1 +
    1 file changed, 1 insertion(+)

    diff --git a/tools/perf/util/parse-events.l b/tools/perf/util/parse-events.l
    index 4efe9872c667..97e70368e7c7 100644
    --- a/tools/perf/util/parse-events.l
    +++ b/tools/perf/util/parse-events.l
    @@ -366,6 +366,7 @@ mem-loads-aux |
    mem-stores |
    topdown-[a-z-]+ |
    tx-capacity-[a-z-]+ |
    +branch-brs |
    el-capacity-[a-z-]+ { return str(yyscanner, PE_KERNEL_PMU_EVENT); }

    L1-dcache|l1-d|l1d|L1-data |
    --
    2.34.1.173.g76aa8bc2d0-goog
    \
     
     \ /
      Last update: 2021-12-10 22:04    [W:4.283 / U:0.268 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site