brendangregg / FlameGraph

Stack trace visualizer
http://www.brendangregg.com/flamegraphs.html
17.38k stars 1.97k forks source link

Segment Fault and report errors when I using perf script -F ...,trace #309

Open nichoal opened 1 year ago

nichoal commented 1 year ago

Ubuntu 18.04 kernel version:5.4.0-150-generic

I encountered several errors when I used perf scritp to generate output: command: $ perf script -F comm,pid,tid,cpu,time,period,event,ip,sym,dso,trace and the output: 'trace' not valid for hardware events. Ignoring. 'trace' not valid for software events. Ignoring. 'trace' not valid for hardware-cache events. Ignoring. 'trace' not valid for unknown events. Ignoring. 'trace' not valid for unknown events. Ignoring. 'trace' not valid for unknown events. Ignoring. segment fault(core dumped)

I have enabled the opiton of sched_schedstats by "echo 1 > /proc/sys/kernel/sched_schedstats",and the perf.data is generated by commad "perf inject -v -s -i perf.data.raw -o perf.data". How can I fix the errors and do I have anything else to configure?

lanseie commented 1 year ago

  您好,邮件已收到,我将在上机后,尽快给您回复。

AshinZ commented 1 year ago

@nichoal Could you tell me the way you use when do perf record?

wangjinnana commented 7 months ago

perf script -F trace: -F comm,pid,tid,cpu,time,period,event,ip,sym,dso 试下这个,参考perf script的man文档