Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nichoal opened this issue Jul 20, 2023 · 3 comments
Open

Comments

@nichoal
Copy link

nichoal commented Jul 20, 2023

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
Copy link

lanseie commented Jul 20, 2023 via email

@AshinZ
Copy link

AshinZ commented Sep 19, 2023

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

@wangjinnana
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants