perf tools: Use linux/ctype.h in more places
authorArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 26 Jun 2019 00:13:51 +0000 (21:13 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 26 Jun 2019 00:13:51 +0000 (21:13 -0300)
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 <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lkml.kernel.org/n/tip-wa4nz4kt61eze88eprk20tfd@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/arch/s390/util/header.c
tools/perf/util/metricgroup.c
tools/perf/util/time-utils.c

index 3db85cd2069e2573c5ccd91864a7eecb86af6c68..a25896135abe8554321fe6d3f93011344cadf5c1 100644 (file)
@@ -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"
index 699e020737d98e3fda4358fade00ca248ea51c27..a0cf3cd95cedfc57a5746a32cf9768822a3b7e2d 100644 (file)
@@ -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,
index 2b48816a2d2efedc250547cc2f53ccbbde0a6534..369fa19dd59660c74be0c18cdc6e5319fe0a7fb8 100644 (file)
@@ -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"