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

Use of uninitialized value $pname in string eq at ./stackcollapse-perf.pl line 214, <> line 515 #55

Open
Shahor opened this issue Apr 21, 2015 · 6 comments

Comments

@Shahor
Copy link

Shahor commented Apr 21, 2015

Hello there!

From a fresh clone, I got this error when I try to use this script.
I was following this blog post : http://www.brendangregg.com/blog/2014-09-17/node-flame-graphs-on-linux.html

@lostcontrol
Copy link

Same here. Maybe some changed in the newer Perf versions?

$ perf version
perf version 3.19.3

@agj32mrgibbits
Copy link

Make sure perf is recording your pid. If you run pgrep -n node yourself, is the pid showing up? Maybe try recording your process like this: perf record -g -F 99 COMMAND.

@Shahor
Copy link
Author

Shahor commented May 8, 2015

The PID was showing up.

@tp-m
Copy link

tp-m commented May 23, 2015

For what it's worth: had the same problem, in my case it was because I didn't pass -g to perf.

@evgkrsk
Copy link

evgkrsk commented Jul 13, 2015

Same issue for me:

root@teer ~ # perf --version;perl --version
perf version 3.14.0
This is perl 5, version 20, subversion 1 (v5.20.1) built for i686-linux-thread-multi
root@teer ~ # perf script|stackcollapse-perf.pl|flamegraph.pl >/dev/null
Use of uninitialized value $pname in string eq at /usr/bin/stackcollapse-perf.pl line 214, <> line 33030.
...

@Yamakaky
Copy link
Contributor

Same thing, perf -g ... fixes it. You should put a note in the README.

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

6 participants