Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 147684
b: refs/heads/master
c: 502fc5c
h: refs/heads/master
v: v3
  • Loading branch information
Ingo Molnar committed Jun 6, 2009
1 parent 986f285 commit 3bf7416
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 16 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 386b05e3a2f3c5b0a9c5575060421cca0911648a
refs/heads/master: 502fc5c72a886ff9d4d7a596e65ecc4dd5e4d458
10 changes: 5 additions & 5 deletions trunk/Documentation/perf_counter/builtin-help.c
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ void list_common_cmds_help(void)
longest = strlen(common_cmds[i].name);
}

puts("The most commonly used perf commands are:");
puts(" The most commonly used perf commands are:");
for (i = 0; i < ARRAY_SIZE(common_cmds); i++) {
printf(" %s ", common_cmds[i].name);
mput_char(' ', longest - strlen(common_cmds[i].name));
Expand Down Expand Up @@ -426,16 +426,16 @@ int cmd_help(int argc, const char **argv, const char *prefix)
builtin_help_usage, 0);

if (show_all) {
printf("usage: %s\n\n", perf_usage_string);
printf("\n usage: %s\n\n", perf_usage_string);
list_commands("perf commands", &main_cmds, &other_cmds);
printf("%s\n", perf_more_info_string);
printf(" %s\n\n", perf_more_info_string);
return 0;
}

if (!argv[0]) {
printf("usage: %s\n\n", perf_usage_string);
printf("\n usage: %s\n\n", perf_usage_string);
list_common_cmds_help();
printf("\n%s\n", perf_more_info_string);
printf("\n %s\n\n", perf_more_info_string);
return 0;
}

Expand Down
14 changes: 8 additions & 6 deletions trunk/Documentation/perf_counter/command-list.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#
# List of known perf commands.
# command name category [deprecated] [common]
perf-record mainporcelain common
perf-report mainporcelain common
perf-stat mainporcelain common
perf-top mainporcelain common

# command name category [deprecated] [common]
#
perf-record mainporcelain common
perf-report mainporcelain common
perf-stat mainporcelain common
perf-top mainporcelain common
perf-list mainporcelain common
4 changes: 2 additions & 2 deletions trunk/Documentation/perf_counter/perf.c
Original file line number Diff line number Diff line change
Expand Up @@ -384,9 +384,9 @@ int main(int argc, const char **argv)
argv[0] += 2;
} else {
/* The user didn't specify a command; give them help */
printf("usage: %s\n\n", perf_usage_string);
printf("\n usage: %s\n\n", perf_usage_string);
list_common_cmds_help();
printf("\n%s\n", perf_more_info_string);
printf("\n %s\n\n", perf_more_info_string);
exit(1);
}
cmd = argv[0];
Expand Down
2 changes: 1 addition & 1 deletion trunk/Documentation/perf_counter/util/parse-options.c
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ int usage_with_options_internal(const char * const *usagestr,
if (!usagestr)
return PARSE_OPT_HELP;

fprintf(stderr, "usage: %s\n", *usagestr++);
fprintf(stderr, "\n usage: %s\n", *usagestr++);
while (*usagestr && **usagestr)
fprintf(stderr, " or: %s\n", *usagestr++);
while (*usagestr) {
Expand Down
2 changes: 1 addition & 1 deletion trunk/Documentation/perf_counter/util/usage.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ static void report(const char *prefix, const char *err, va_list params)

static NORETURN void usage_builtin(const char *err)
{
fprintf(stderr, "usage: %s\n", err);
fprintf(stderr, "\n usage: %s\n", err);
exit(129);
}

Expand Down

0 comments on commit 3bf7416

Please sign in to comment.