lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1366732433.9609.153.camel@gandalf.local.home>
Date:	Tue, 23 Apr 2013 11:53:53 -0400
From:	Steven Rostedt <rostedt@...dmis.org>
To:	Namhyung Kim <namhyung@...nel.org>
Cc:	Arnaldo Carvalho de Melo <acme@...stprotocols.net>,
	Peter Zijlstra <a.p.zijlstra@...llo.nl>,
	Paul Mackerras <paulus@...ba.org>,
	Ingo Molnar <mingo@...nel.org>,
	Namhyung Kim <namhyung.kim@....com>,
	LKML <linux-kernel@...r.kernel.org>,
	Frederic Weisbecker <fweisbec@...il.com>,
	Jiri Olsa <jolsa@...hat.com>, David Ahern <dsahern@...il.com>,
	Stephane Eranian <eranian@...gle.com>
Subject: Re: [PATCH 14/14] perf tools: Add document for perf-ftrace command

On Tue, 2013-04-23 at 17:31 +0900, Namhyung Kim wrote:
> From: Namhyung Kim <namhyung.kim@....com>
> 
> Cc: Steven Rostedt <rostedt@...dmis.org>
> Cc: Frederic Weisbecker <fweisbec@...il.com>
> Signed-off-by: Namhyung Kim <namhyung@...nel.org>
> ---
>  tools/perf/Documentation/perf-ftrace.txt | 114 +++++++++++++++++++++++++++++++
>  1 file changed, 114 insertions(+)
>  create mode 100644 tools/perf/Documentation/perf-ftrace.txt
> 
> diff --git a/tools/perf/Documentation/perf-ftrace.txt b/tools/perf/Documentation/perf-ftrace.txt
> new file mode 100644
> index 000000000000..f530cfabd8a5
> --- /dev/null
> +++ b/tools/perf/Documentation/perf-ftrace.txt
> @@ -0,0 +1,114 @@
> +perf-ftrace(1)
> +==============
> +
> +NAME
> +----
> +perf-ftrace - A front end for kernel's ftrace
> +
> +SYNOPSIS
> +--------
> +[verse]
> +'perf ftrace' {live|record} [<options>] [<command>]
> +'perf ftrace' {show|report} [<options>]
> +
> +DESCRIPTION
> +-----------
> +This command reads the ftrace buffer and displays the trace recorded.
> +
> +There are several variants of perf ftrace:
> +
> +  'perf ftrace live <command>' to see a live trace of kernel functions
> +  via trace_pipe during executing the <command>.  If <command> is not
> +  specified, one of target options (-p, -a or -C) should be given.  It

one of *the* target options

> +  just print out the result to stdout and doesn't save any files.

just *prints* out the result

> +
> +  'perf ftrace record <command>' to record trace entries of kernel
> +  functions during the execution of the <command>.  Like 'perf ftrace
> +  live', at least one of <command> and/or target options should be
> +  given in order to start recording.  The recorded results are saved
> +  under a directory ('perf.data.dir' by default) and will be used by
> +  other perf-ftrace tools like 'show' and 'report'.
> +
> +  'perf ftrace show' to see the trace of recorded functions.  It shows
> +  functions sorted by time so the end result might be interspersed if
> +  there's a concurrent execution.
> +
> +  'perf ftrace report' to display the result in an usual perf-report
> +  style - entries are sorted by given sort keys and output is resorted
> +  by its overhead.
> +
> +OPTIONS
> +-------
> +<command>...::
> +	Any command you can specify in a shell.
> +
> +-t::
> +--tracer=::
> +        The ftrace tracer to be used (default: function_graph).
> +	Currently only 'function' and 'function_graph' are supported.
> +        Used by 'live' and 'record' subcommands only.
> +
> +-p::
> +--pid=::
> +	Record events on existing process ID (comma separated list).
> +        Used by 'live' and 'record' subcommands only.
> +
> +-a::
> +        Force system-wide collection.  Scripts run without a <command>
> +        normally use -a by default, while scripts run with a <command>
> +        normally don't - this option allows the latter to be run in
> +        system-wide mode.  Used by 'live' and 'record' subcommands only.
> +
> +-C::
> +--cpu:: Only process samples for the list of CPUs provided.
> +        Multiple CPUs can be provided as a comma-separated list with
> +        no space: 0,1. Ranges of CPUs are specified with -: 0-2.
> +	Default is to report samples on all online CPUs.
> +
> +-s::
> +--sort=::
> +	Sort histogram entries by given key(s) - multiple keys can be
> +        specified in CSV format.  Following sort keys are available:
> +	pid, comm, dso, symbol, cpu.
> +
> +	Each key has following meaning:
> +
> +	- comm: command (name) of the task
> +	- pid: command and tid of the task
> +	- dso: name of library or module executed at the time of sample
> +	- symbol: name of function executed at the time of sample
> +	- cpu: cpu number the task ran at the time of sample
> +
> +	By default, comm, dso and symbol keys are used.
> +	(i.e. --sort comm,dso,symbol)
> +	Used by 'report' subcommands only.
> +
> +-i::
> +--input=::
> +        Input directory name excluding '.dir' at the end.
> +        (default: perf.data)
> +
> +-o::
> +--output=::
> +        Output directory name excluding '.dir' at the end.
> +	(default: perf.data)
> +
> +-v::
> +--verbose::
> +	Be more verbose (show counter open errors, etc).
> +
> +-D::
> +--dump-raw-trace::
> +        Dump raw trace in ASCII.  Used by 'report' subcommands only.
> +
> +-I::
> +--show-info::
> +	Display extended information about the record.  This adds
> +	information which may be very large and thus may clutter the
> +        display.  It currently includes: cpu and numa topology of the
> +        host system.  It can only be used with the 'report' subcommand.

Nice!

-- Steve

> +
> +SEE ALSO
> +--------
> +linkperf:perf-record[1], linkperf:perf-report[1],
> +linkperf:perf-script[1]


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ