Skip to content

Commit

Permalink
even more benchmark annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
hodgesds committed Oct 11, 2020
1 parent b7302fb commit ede7ad6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,8 @@ func EventAttrString(eventAttr *unix.PerfEventAttr) string {
switch eventAttr.Config {
case (unix.PERF_COUNT_HW_CACHE_L1D) | (unix.PERF_COUNT_HW_CACHE_OP_READ << 8) | (unix.PERF_COUNT_HW_CACHE_RESULT_ACCESS << 16):
b.WriteString("l1d_read")
case (unix.PERF_COUNT_HW_CACHE_L1D) | (unix.PERF_COUNT_HW_CACHE_OP_READ << 8) | (unix.PERF_COUNT_HW_CACHE_RESULT_MISS << 16):
b.WriteString("l1d_miss")
case (unix.PERF_COUNT_HW_CACHE_L1D) | (unix.PERF_COUNT_HW_CACHE_OP_WRITE << 8) | (unix.PERF_COUNT_HW_CACHE_RESULT_ACCESS << 16):
b.WriteString("l1d_write")
case (unix.PERF_COUNT_HW_CACHE_L1I) | (unix.PERF_COUNT_HW_CACHE_OP_READ << 8) | (unix.PERF_COUNT_HW_CACHE_RESULT_ACCESS << 16):
Expand Down

0 comments on commit ede7ad6

Please sign in to comment.