Skip to content

Feature Request: Provide a convenience view/table for counters with followers #4758

@auselen

Description

@auselen

When I have a config similar to

    perf_event_config {
      timebase {
        tracepoint {
          name: "sched/sched_switch"
        }
        period: 1
      }
      followers {
        raw_event {
          type: 12
          config: 17
        }
        name: "CPU_CYCLES"
      }
      followers {
        raw_event {
          type: 12
          config: 8
        }
        name: "INST_RETIRED"
      }
    }

I would like to have a table like below, including column values such as CPU_CYCLES being in deltas rather than accumulated/sampled counter value.

ts cpu sched_switch CPU_CYCLES INST_RETIRED
891848972656 3 1 786603 2134024

This would allow me to calculate metrics like IPC (INST_RETIRED / CPU_CYCLES) as a new column easily.

Currently I do this with joining, grouping, hard-coded pivoting over using WINDOWed values (to calculate deltas) which seems like waste given this should be already available at perf data consumption.

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