• Namhyung Kim's avatar
    perf evlist: Add --trace-fields option to show trace fields · 775d8a1b
    Namhyung Kim authored
    To use dynamic sort keys, it might be good to add an option to see the
    list of field names.
    
      $ perf evlist -i perf.data.sched
      sched:sched_switch
      sched:sched_stat_wait
      sched:sched_stat_sleep
      sched:sched_stat_iowait
      sched:sched_stat_runtime
      sched:sched_process_fork
      sched:sched_wakeup
      sched:sched_wakeup_new
      sched:sched_migrate_task
      # Tip: use 'perf evlist --trace-fields' to show fields for tracepoint events
    
      $ perf evlist -i perf.data.sched --trace-fields
      sched:sched_switch: trace_fields: prev_comm,prev_pid,prev_prio,prev_state,next_comm,next_pid,next_prio
      sched:sched_stat_wait: trace_fields: comm,pid,delay
      sched:sched_stat_sleep: trace_fields: comm,pid,delay
      sched:sched_stat_iowait: trace_fields: comm,pid,delay
      sched:sched_stat_runtime: trace_fields: comm,pid,runtime,vruntime
      sched:sched_process_fork: trace_fields: parent_comm,parent_pid,child_comm,child_pid
      sched:sched_wakeup: trace_fields: comm,pid,prio,succe...
    775d8a1b
perf-evlist.txt 637 Bytes