perf tools: Use linux/ctype.h in more places
tip-bot for Arnaldo Carvalho de Melo
merge botCommit-ID: bd9860bf050f77c4e260a9ae10a5587009ad6e07 Gitweb: https://git.kernel.org/tip/bd9860bf050f77c4e260a9ae10a5587009ad6e07 Author: Arnaldo Carvalho de Melo <[email protected]> AuthorDate: Tue, 25 Jun 2019 21:13:51 -0300 Committer: Arnaldo Carvalho de Melo <[email protected]> CommitDate: Tue, 25 Jun 2019 21:13:51 -0300
perf tools: Use linux/ctype.h in more places
There were a few places where we still were using the libc version of ctype.h, switch to the one in tools/lib/ctype.c that the rest of perf uses.
Cc Adrian Hunter <[email protected]>
Cc Jiri Olsa <[email protected]>
Cc Namhyung Kim <[email protected]>
Signed-off-by Arnaldo Carvalho de Melo <[email protected]>
--- tools/perf/arch/s390/util/header.c | 2 +- tools/perf/util/metricgroup.c | 2 +- tools/perf/util/time-utils.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
tools/perf/arch/s390/util/header.c +1 -1
@@ -11,7 +11,7 @@#include <unistd.h> #include <stdio.h> #include <string.h> -#include <ctype.h> +#include <linux/ctype.h> #include "../../util/header.h" #include "../../util/util.h"
tools/perf/util/metricgroup.c +1 -1
@@ -17,7 +17,7 @@#include "pmu-events/pmu-events.h" #include "strlist.h" #include <assert.h> -#include <ctype.h> +#include <linux/ctype.h> struct metric_event *metricgroup__lookup(struct rblist *metric_events, struct perf_evsel *evsel,
tools/perf/util/time-utils.c +1 -1
@@ -7,7 +7,7 @@#include <errno.h> #include <inttypes.h> #include <math.h> -#include <ctype.h> +#include <linux/ctype.h> #include "perf.h" #include "debug.h"