perf metricgroup: Use strsep()
authorArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 26 Jun 2019 14:21:47 +0000 (11:21 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 26 Jun 2019 14:31:43 +0000 (11:31 -0300)
commit80e9073f1f4473639d585b89ebc9130bb47920e8
treea68e6b34753b4caba15a38faabbb4e2c325993e1
parentc1fc14cbdcc9455507e5f54109199bfea3af185f
perf metricgroup: Use strsep()

No change in behaviour intended, trivial optimization done by avoiding
looking for spaces in 'g' right after setting it to "No_group".

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lkml.kernel.org/n/tip-f2siadtp3hb5o0l1w7bvd8bk@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/metricgroup.c