lkml.org 
[lkml]   [2014]   [Dec]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 37/37] perf data: Implement 'split' subcommand
On Wed, Dec 24, 2014 at 04:15:33PM +0900, Namhyung Kim wrote:
> The perf data split command is for splitting a (large) single data
> file into multiple files under a directory (perf.data.dir by default)
> so that it can be processed and reported using multiple threads.
>
> Signed-off-by: Namhyung Kim <namhyung@kernel.org>
> ---
> tools/perf/Documentation/perf-data.txt | 28 +++++
> tools/perf/builtin-data.c | 223 +++++++++++++++++++++++++++++++++
> 2 files changed, 251 insertions(+)
>
> diff --git a/tools/perf/Documentation/perf-data.txt b/tools/perf/Documentation/perf-data.txt
> index b8c83947715c..42708702f10c 100644
> --- a/tools/perf/Documentation/perf-data.txt
> +++ b/tools/perf/Documentation/perf-data.txt
> @@ -13,3 +13,31 @@ SYNOPSIS
> DESCRIPTION
> -----------
> Data file related processing.
> +
> +COMMANDS
> +--------
> +split::
> + Split single data file (perf.data) into multiple files under a directory
> + in order to be reported by multiple threads.
> +
> +OPTIONS for 'split'
> +---------------------
> +-i::
> +--input::
> + Specify input perf data file path.
> +
> +-o::
> +--output::
> + Specify output perf data directory path.

should the -o have 'perf.data.dir' as default?

[jolsa@krava perf]$ ./perf record ls > /dev/null
[ perf record: Woken up 1 times to write data ]
[ perf record: Captured and wrote 0.000 MB perf.data (~0 samples) ]
[jolsa@krava perf]$ ./perf data split
[jolsa@krava perf]$ ll perf.data*
-rw------- 1 jolsa jolsa 16172 Dec 26 14:58 perf.data

jirka


\
 
 \ /
  Last update: 2014-12-26 15:41    [W:0.283 / U:0.904 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site