Lines Matching refs:CMDLINE
114 my $PROGRAM_NAME_PAGE = "/pprof/cmdline";
3311 open(CMDLINE, "$command_line |") or error($command_line);
3312 my $cmdline = <CMDLINE>;
3313 $cmdline =~ s/\r//g; # turn windows-looking lines into unix-looking lines
3314 close(CMDLINE);
3315 error("Failed to get program name from $url\n") unless defined($cmdline);
3316 $cmdline =~ s/\x00.+//; # Remove argv[1] and latters.
3317 $cmdline =~ s!\n!!g; # Remove LFs.
3318 return $cmdline;
3328 open(CMDLINE, "$command_line |") or error($command_line);
3329 while (<CMDLINE>) {
3335 close(CMDLINE);