diff options
| author | Namhyung Kim <[email protected]> | 2013-01-22 09:09:41 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2013-01-24 19:40:49 +0000 |
| commit | 08aa9cce6bf3ecdfa386cf0a0be842855eac3e7d (patch) | |
| tree | e7038266905e66bd5628aecc5078a49fb5ecabe6 /tools/perf/builtin-script.c | |
| parent | perf tools: Fix PMU format parsing test failure (diff) | |
| download | kernel-08aa9cce6bf3ecdfa386cf0a0be842855eac3e7d.tar.gz kernel-08aa9cce6bf3ecdfa386cf0a0be842855eac3e7d.zip | |
perf tools: Move ltrim() to util/string.c
As we have ltrim() implementation in builtin-script.c move it to the
more generic location of util/string.c so that it can be used from other
places.
Signed-off-by: Namhyung Kim <[email protected]>
Cc: Feng Tang <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/builtin-script.c')
| -rw-r--r-- | tools/perf/builtin-script.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index 3314ef2ec83e..fee4c9a8aee5 100644 --- a/tools/perf/builtin-script.c +++ b/tools/perf/builtin-script.c @@ -909,18 +909,6 @@ static const char *ends_with(const char *str, const char *suffix) return NULL; } -static char *ltrim(char *str) -{ - int len = strlen(str); - - while (len && isspace(*str)) { - len--; - str++; - } - - return str; -} - static int read_script_info(struct script_desc *desc, const char *filename) { char line[BUFSIZ], *p; |
