diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-06-25 20:13:51 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-06-25 20:13:51 -0400 |
commit | bd9860bf050f77c4e260a9ae10a5587009ad6e07 (patch) | |
tree | 65d78ec4481a3e6e97cda18ba0f40ad1f8a09f9d | |
parent | 3052ba56bcb589046eca6a931bd897742653d2cb (diff) |
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 <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>
-rw-r--r-- | tools/perf/arch/s390/util/header.c | 2 | ||||
-rw-r--r-- | tools/perf/util/metricgroup.c | 2 | ||||
-rw-r--r-- | tools/perf/util/time-utils.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/tools/perf/arch/s390/util/header.c b/tools/perf/arch/s390/util/header.c index 3db85cd2069e..a25896135abe 100644 --- a/tools/perf/arch/s390/util/header.c +++ b/tools/perf/arch/s390/util/header.c | |||
@@ -11,7 +11,7 @@ | |||
11 | #include <unistd.h> | 11 | #include <unistd.h> |
12 | #include <stdio.h> | 12 | #include <stdio.h> |
13 | #include <string.h> | 13 | #include <string.h> |
14 | #include <ctype.h> | 14 | #include <linux/ctype.h> |
15 | 15 | ||
16 | #include "../../util/header.h" | 16 | #include "../../util/header.h" |
17 | #include "../../util/util.h" | 17 | #include "../../util/util.h" |
diff --git a/tools/perf/util/metricgroup.c b/tools/perf/util/metricgroup.c index 699e020737d9..a0cf3cd95ced 100644 --- a/tools/perf/util/metricgroup.c +++ b/tools/perf/util/metricgroup.c | |||
@@ -17,7 +17,7 @@ | |||
17 | #include "pmu-events/pmu-events.h" | 17 | #include "pmu-events/pmu-events.h" |
18 | #include "strlist.h" | 18 | #include "strlist.h" |
19 | #include <assert.h> | 19 | #include <assert.h> |
20 | #include <ctype.h> | 20 | #include <linux/ctype.h> |
21 | 21 | ||
22 | struct metric_event *metricgroup__lookup(struct rblist *metric_events, | 22 | struct metric_event *metricgroup__lookup(struct rblist *metric_events, |
23 | struct perf_evsel *evsel, | 23 | struct perf_evsel *evsel, |
diff --git a/tools/perf/util/time-utils.c b/tools/perf/util/time-utils.c index 2b48816a2d2e..369fa19dd596 100644 --- a/tools/perf/util/time-utils.c +++ b/tools/perf/util/time-utils.c | |||
@@ -7,7 +7,7 @@ | |||
7 | #include <errno.h> | 7 | #include <errno.h> |
8 | #include <inttypes.h> | 8 | #include <inttypes.h> |
9 | #include <math.h> | 9 | #include <math.h> |
10 | #include <ctype.h> | 10 | #include <linux/ctype.h> |
11 | 11 | ||
12 | #include "perf.h" | 12 | #include "perf.h" |
13 | #include "debug.h" | 13 | #include "debug.h" |