[lttng-dev] lttng list -u return "Error: Command error"

2015-06-03 Thread zhenyu.ren
Hi,dev-team As the subject is my problem. It seems that the function get_cmdline_by_pid() will fail if kernel.pid_max > 10 (i.e. 131072) static char *get_cmdline_by_pid(pid_t pid) { int ret; FILE *fp = NULL; char *cmdline = NULL; char path[20];/* C

Re: [lttng-dev] lttng list -u return "Error: Command error"

2015-06-23 Thread Jérémie Galarneau
On Thu, Jun 4, 2015 at 5:00 AM, zhenyu.ren wrote: > Hi,dev-team > >As the subject is my problem. It seems that the function > get_cmdline_by_pid() will fail if kernel.pid_max > 10 (i.e. 131072) > > static char *get_cmdline_by_pid(pid_t pid) > { > int ret; > FILE *fp = NULL