Skip to content

Commit

Permalink
bpftool: add profile support for cpu_clock metric
Browse files Browse the repository at this point in the history
Signed-off-by: Keren Kotler <keren@pelanor.io>
  • Loading branch information
kerenkio committed Nov 19, 2024
1 parent 0f8c72d commit 1b305e3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/prog.c
Original file line number Diff line number Diff line change
Expand Up @@ -2055,6 +2055,14 @@ struct profile_metric {
.ratio_desc = "dtlb misses per million insns",
.ratio_mul = 1e6,
},
{
.name = "cpu_clock",
.attr = {
.type = PERF_TYPE_SOFTWARE,
.config = PERF_COUNT_SW_CPU_CLOCK,
.exclude_user = 1,
},
},
};

static __u64 profile_total_count;
Expand Down

0 comments on commit 1b305e3

Please sign in to comment.