diff options
author | Jim Cromie <jim.cromie@gmail.com> | 2011-09-07 19:14:03 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2011-09-29 16:04:30 -0400 |
commit | d4ffd04df175f8cab711d7857173285d971a406a (patch) | |
tree | b600b0d2c4706d8fdc2a32aca5d9abc7791c4028 /tools | |
parent | a1bca6cc87fee26f3d9120b3f3418b7edfc91ec2 (diff) |
perf stat: Allow tab as cvs delimiter
If option -x '\t' is given, convert '\t' to "\t". This makes cvs
printing more flexible.
Link: http://lkml.kernel.org/r/1315437244-3788-5-git-send-email-jim.cromie@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Jim Cromie <jim.cromie@gmail.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/builtin-stat.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c index 076eda53cfba..0ffbd97fb74f 100644 --- a/tools/perf/builtin-stat.c +++ b/tools/perf/builtin-stat.c | |||
@@ -1198,9 +1198,11 @@ int cmd_stat(int argc, const char **argv, const char *prefix __used) | |||
1198 | } | 1198 | } |
1199 | } | 1199 | } |
1200 | 1200 | ||
1201 | if (csv_sep) | 1201 | if (csv_sep) { |
1202 | csv_output = true; | 1202 | csv_output = true; |
1203 | else | 1203 | if (!strcmp(csv_sep, "\\t")) |
1204 | csv_sep = "\t"; | ||
1205 | } else | ||
1204 | csv_sep = DEFAULT_SEPARATOR; | 1206 | csv_sep = DEFAULT_SEPARATOR; |
1205 | 1207 | ||
1206 | /* | 1208 | /* |