aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2019-06-26 11:08:10 -0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2019-06-26 11:31:43 -0300
commitc1fc14cbdcc9455507e5f54109199bfea3af185f (patch)
treecae329cdc3b47cffb17dcf0bb374ecfbf733c4f4 /tools/perf/util
parentperf probe: Use skip_spaces() for argv handling (diff)
downloadlinux-dev-c1fc14cbdcc9455507e5f54109199bfea3af185f.tar.xz
linux-dev-c1fc14cbdcc9455507e5f54109199bfea3af185f.zip
perf strfilter: Use skip_spaces()
No change in behaviour. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Masami Hiramatsu <mhiramat@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Link: https://lkml.kernel.org/n/tip-p9rtamq7lvre9zhti70azfwe@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util')
-rw-r--r--tools/perf/util/strfilter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/util/strfilter.c b/tools/perf/util/strfilter.c
index 2c3a2904ebcd..90ea2b209cbb 100644
--- a/tools/perf/util/strfilter.c
+++ b/tools/perf/util/strfilter.c
@@ -5,6 +5,7 @@
#include <errno.h>
#include <linux/ctype.h>
+#include <linux/string.h>
/* Operators */
static const char *OP_and = "&"; /* Logical AND */
@@ -37,8 +38,7 @@ static const char *get_token(const char *s, const char **e)
{
const char *p;
- while (isspace(*s)) /* Skip spaces */
- s++;
+ s = skip_spaces(s);
if (*s == '\0') {
p = s;