Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
6142fdd9
Commit
6142fdd9
authored
Apr 20, 2009
by
Ingo Molnar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf_counter tools: add 'perf help'
Signed-off-by:
Ingo Molnar
<
mingo@elte.hu
>
parent
cc13a591
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
0 deletions
+40
-0
Documentation/perf_counter/Documentation/perf-help.txt
Documentation/perf_counter/Documentation/perf-help.txt
+38
-0
Documentation/perf_counter/builtin.h
Documentation/perf_counter/builtin.h
+1
-0
Documentation/perf_counter/perf.c
Documentation/perf_counter/perf.c
+1
-0
No files found.
Documentation/perf_counter/Documentation/perf-help.txt
0 → 100644
View file @
6142fdd9
perf-help(1)
===========
NAME
----
perf-help - display help information about perf
SYNOPSIS
--------
'perf help' [-a|--all] [COMMAND]
DESCRIPTION
-----------
With no options and no COMMAND given, the synopsis of the 'perf'
command and a list of the most commonly used perf commands are printed
on the standard output.
If the option '--all' or '-a' is given, then all available commands are
printed on the standard output.
If a perf command is named, a manual page for that command is brought
up. The 'man' program is used by default for this purpose, but this
can be overridden by other options or configuration variables.
Note that `perf --help ...` is identical to `perf help ...` because the
former is internally converted into the latter.
OPTIONS
-------
-a::
--all::
Prints all the available commands on the standard output. This
option supersedes any other option.
PERF
----
Part of the linkperf:perf[1] suite
Documentation/perf_counter/builtin.h
View file @
6142fdd9
...
...
@@ -14,6 +14,7 @@ extern void prune_packed_objects(int);
extern
int
read_line_with_nul
(
char
*
buf
,
int
size
,
FILE
*
file
);
extern
int
check_pager_config
(
const
char
*
cmd
);
extern
int
cmd_help
(
int
argc
,
const
char
**
argv
,
const
char
*
prefix
);
extern
int
cmd_record
(
int
argc
,
const
char
**
argv
,
const
char
*
prefix
);
extern
int
cmd_stat
(
int
argc
,
const
char
**
argv
,
const
char
*
prefix
);
extern
int
cmd_top
(
int
argc
,
const
char
**
argv
,
const
char
*
prefix
);
...
...
Documentation/perf_counter/perf.c
View file @
6142fdd9
...
...
@@ -248,6 +248,7 @@ static void handle_internal_command(int argc, const char **argv)
{
const
char
*
cmd
=
argv
[
0
];
static
struct
cmd_struct
commands
[]
=
{
{
"help"
,
cmd_help
,
0
},
{
"record"
,
cmd_record
,
0
},
{
"stat"
,
cmd_stat
,
0
},
{
"top"
,
cmd_top
,
0
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment