Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
* [lttng-dev] lttng list -u return "Error: Command error"
@ 2015-06-04  3:00 zhenyu.ren
  2015-06-23 22:03 ` Jérémie Galarneau
  0 siblings, 1 reply; 2+ messages in thread
From: zhenyu.ren @ 2015-06-04  3:00 UTC (permalink / raw)


Hi,dev-team

   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)
{
        int ret;
        FILE *fp = NULL;
        char *cmdline = NULL;
        char path[20];        /* Can't go bigger than /proc/65535/cmdline */


 I think path[20] is not big enough .Do you have any better idea?

Thanks
zhenyu.ren



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-06-23 22:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-04  3:00 [lttng-dev] lttng list -u return "Error: Command error" zhenyu.ren
2015-06-23 22:03 ` Jérémie Galarneau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox