[lttng-dev] lttng list -u return "Error: Command error"
zhenyu.ren at aliyun.com
Wed Jun 3 23:00:42 EDT 2015
As the subject is my problem. It seems that the function get_cmdline_by_pid() will fail if kernel.pid_max > 100000 (i.e. 131072)
static char *get_cmdline_by_pid(pid_t pid)
FILE *fp = NULL;
char *cmdline = NULL;
char path; /* Can't go bigger than /proc/65535/cmdline */
I think path is not big enough .Do you have any better idea?
More information about the lttng-dev