perf tools: Include errno.h where needed

Removing it from util.h, part of an effort to disentangle the includes
hell, that makes changes to util.h or something included by it to cause
a complete rebuild of the tools.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-ztrjy52q1rqcchuy3rubfgt2@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
Arnaldo Carvalho de Melo
2017-04-18 10:46:11 -03:00
parent a067558e2f
commit a43783aeec
95 changed files with 96 additions and 2 deletions

View File

@@ -18,6 +18,7 @@
* permissions. All the event text files are stored there.
*/
#include <errno.h>
#include <inttypes.h>
#include <stdlib.h>
#include <stdio.h>

View File

@@ -8,6 +8,7 @@
#include <sys/prctl.h>
#include "tests.h"
#include "debug.h"
#include <errno.h>
#define NR_ITERS 111

View File

@@ -1,3 +1,4 @@
#include <errno.h>
#include <stdio.h>
#include <sys/epoll.h>
#include <util/util.h>

View File

@@ -3,6 +3,7 @@
*
* Builtin regression testing command: ever growing number of sanity tests
*/
#include <errno.h>
#include <unistd.h>
#include <string.h>
#include "builtin.h"

View File

@@ -1,3 +1,4 @@
#include <errno.h>
#include <linux/kernel.h>
#include <linux/types.h>
#include <inttypes.h>

View File

@@ -1,4 +1,5 @@
#include <linux/compiler.h>
#include <errno.h>
#include <inttypes.h>
#include <string.h>
#include "tests.h"

View File

@@ -3,6 +3,7 @@
#include "parse-events.h"
#include "tests.h"
#include "debug.h"
#include <errno.h>
#include <linux/kernel.h>
static int perf_evsel__roundtrip_cache_name_test(void)

View File

@@ -9,6 +9,7 @@
#include "thread.h"
#include "parse-events.h"
#include "hists_common.h"
#include <errno.h>
#include <linux/kernel.h>
struct sample {

View File

@@ -1,3 +1,4 @@
#include <errno.h>
#include <inttypes.h>
/* For the CLR_() macros */
#include <pthread.h>

View File

@@ -1,3 +1,4 @@
#include <errno.h>
#include <inttypes.h>
/* For the CPU_* macros */
#include <pthread.h>

View File

@@ -5,6 +5,7 @@
#include "thread_map.h"
#include "tests.h"
#include "debug.h"
#include <errno.h>
#ifndef O_DIRECTORY
#define O_DIRECTORY 00200000

View File

@@ -1,3 +1,4 @@
#include <errno.h>
#include <inttypes.h>
#include <api/fs/tracing_path.h>
#include <linux/err.h>

View File

@@ -5,6 +5,7 @@
#include "tests.h"
#include "debug.h"
#include "util.h"
#include <errno.h>
#include <linux/kernel.h>
#include <linux/hw_breakpoint.h>
#include <api/fs/fs.h>

View File

@@ -1,3 +1,4 @@
#include <errno.h>
#include <inttypes.h>
/* For the CLR_() macros */
#include <pthread.h>

View File

@@ -2,6 +2,7 @@
#include "pmu.h"
#include "util.h"
#include "tests.h"
#include <errno.h>
#include <linux/kernel.h>
/* Simulated format definitions. */

View File

@@ -1,3 +1,4 @@
#include <errno.h>
#include <stdio.h>
#include <sys/epoll.h>
#include <util/util.h>

View File

@@ -1,3 +1,4 @@
#include <errno.h>
#include <inttypes.h>
#include <unistd.h>
#include <stdlib.h>

View File

@@ -1,5 +1,6 @@
#include <sys/time.h>
#include <sys/prctl.h>
#include <errno.h>
#include <time.h>
#include <stdlib.h>

View File

@@ -4,6 +4,7 @@
#include "cpumap.h"
#include "tests.h"
#include <errno.h>
#include <signal.h>
static int exited;