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

getProcName chop processname in Linux #19

Open
trufae opened this issue May 1, 2016 · 1 comment
Open

getProcName chop processname in Linux #19

trufae opened this issue May 1, 2016 · 1 comment
Labels
Milestone

Comments

@trufae
Copy link
Member

trufae commented May 1, 2016

No description provided.

@trufae trufae added this to the 1.2 milestone May 1, 2016
@trufae trufae added the bug label May 1, 2016
@crowell
Copy link

crowell commented May 2, 2016

this is a kernel setting

http://lxr.free-electrons.com/source/include/linux/sched.h#L315

TASK_COMM_LEN is set to 16, this requires a kernel recompilation to change.

you can use /proc/$PID/cmdline, but then you have to do all sorts of funky stuff to parse out the program name (which also isn't guaranteed to be the same as the TASK_COMM

@trufae trufae modified the milestones: 1.3, 1.2 May 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants