X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fbootchart%2Fbootchart.c;h=543037dae1486692e876729ddd8c465b04e11fe3;hp=af573da0f238469c90b823217678f546c81ab4e7;hb=e90f9fa4d1cab6f73fc502fe9ef705c1bb2912a0;hpb=650001c6f7532601a9e5f685c348dae9541352cf diff --git a/src/bootchart/bootchart.c b/src/bootchart/bootchart.c index af573da0f..543037dae 100644 --- a/src/bootchart/bootchart.c +++ b/src/bootchart/bootchart.c @@ -76,6 +76,7 @@ bool entropy = false; bool initcall = true; bool relative = false; bool filter = true; +bool show_cmdline = false; bool pss = false; int samples; int len = 500; /* we record len+1 (1 start sample) */ @@ -150,6 +151,7 @@ int main(int argc, char *argv[]) {"output", required_argument, NULL, 'o'}, {"init", required_argument, NULL, 'i'}, {"no-filter", no_argument, NULL, 'F'}, + {"cmdline", no_argument, NULL, 'C'}, {"help", no_argument, NULL, 'h'}, {"scale-x", required_argument, NULL, 'x'}, {"scale-y", required_argument, NULL, 'y'}, @@ -159,7 +161,7 @@ int main(int argc, char *argv[]) gind = 0; - i = getopt_long(argc, argv, "erpf:n:o:i:Fhx:y:", opts, &gind); + i = getopt_long(argc, argv, "erpf:n:o:i:FChx:y:", opts, &gind); if (i == -1) break; switch (i) { @@ -175,6 +177,9 @@ int main(int argc, char *argv[]) case 'F': filter = false; break; + case 'C': + show_cmdline = true; + break; case 'n': r = safe_atoi(optarg, &len); if (r < 0)