projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b416e20
)
perf tools: Add comment explaining the repsep_snprintf function
author
Arnaldo Carvalho de Melo
<
[email protected]
>
Fri, 12 Feb 2016 14:27:51 +0000
(11:27 -0300)
committer
Arnaldo Carvalho de Melo
<
[email protected]
>
Fri, 12 Feb 2016 15:52:20 +0000
(12:52 -0300)
Cc: Adrian Hunter <
[email protected]
>
Cc: Jiri Olsa <
[email protected]
>
Cc: Namhyung Kim <
[email protected]
>
Cc: Wang Nan <
[email protected]
>
Link:
http://lkml.kernel.org/n/
[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <
[email protected]
>
tools/perf/util/sort.c
patch
|
blob
|
history
diff --git
a/tools/perf/util/sort.c
b/tools/perf/util/sort.c
index de620f7f40f4ad01e30e4385865efd1c3797022a..8b54ede7ec1f4e1944bc445f106d42dfe9426caf 100644
(file)
--- a/
tools/perf/util/sort.c
+++ b/
tools/perf/util/sort.c
@@
-28,7
+28,15
@@
int sort__has_socket = 0;
int sort__has_thread = 0;
enum sort_mode sort__mode = SORT_MODE__NORMAL;
-
+/*
+ * Replaces all occurrences of a char used with the:
+ *
+ * -t, --field-separator
+ *
+ * option, that uses a special separator character and don't pad with spaces,
+ * replacing all occurances of this separator in symbol names (and other
+ * output) with a '.' character, that thus it's the only non valid separator.
+*/
static int repsep_snprintf(char *bf, size_t size, const char *fmt, ...)
{
int n;