perfetto icon indicating copy to clipboard operation
perfetto copied to clipboard

how to interpret IRQ Count/num_irq ?

Open sifangli-labs opened this issue 1 year ago • 2 comments

Hi, I captured a pftrace. When loaded into UI, under System/IRQ Count, I see rows of num_irq displayed with counter numbers by time. Each row does not really match a CPU as far as I can see (each row has the same name : "num_irq" - no index or anything). How do I get the IRQ info about which IRQ or devices for a row, and/or which CPUs handling them?

Here are part of the cfg:

data_sources {
  config {
    name: "linux.sys_info"
    target_buffer: 0
  }
}

data_sources {
  config {
    name: "linux.sys_stats"
    target_buffer: 0
    sys_stats_config {
      buddyinfo_period_ms : 1000
      cpufreq_period_ms : 1000
      devfreq_period_ms : 1000
      diskstat_period_ms : 1000
      gpufreq_period_ms : 1000
      meminfo_period_ms : 1000
      # psi_period_ms : 1000 it only reports total count no pct not much use
      stat_period_ms : 1000
      thermal_period_ms : 60000
      vmstat_period_ms : 1000
    }
  }
}

sifangli-labs avatar Aug 05 '25 19:08 sifangli-labs

Each counter is for a different irq id. The track names should have the id suffix but was missing it. I've sent https://github.com/google/perfetto/pull/2429 to fix this.

LalitMaganti avatar Aug 05 '25 19:08 LalitMaganti

thx for the fix!

sifangli-labs avatar Aug 05 '25 19:08 sifangli-labs