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:
@@ -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>
|
||||
|
@@ -8,6 +8,7 @@
|
||||
#include <sys/prctl.h>
|
||||
#include "tests.h"
|
||||
#include "debug.h"
|
||||
#include <errno.h>
|
||||
|
||||
#define NR_ITERS 111
|
||||
|
||||
|
@@ -1,3 +1,4 @@
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
#include <sys/epoll.h>
|
||||
#include <util/util.h>
|
||||
|
@@ -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"
|
||||
|
@@ -1,3 +1,4 @@
|
||||
#include <errno.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/types.h>
|
||||
#include <inttypes.h>
|
||||
|
@@ -1,4 +1,5 @@
|
||||
#include <linux/compiler.h>
|
||||
#include <errno.h>
|
||||
#include <inttypes.h>
|
||||
#include <string.h>
|
||||
#include "tests.h"
|
||||
|
@@ -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)
|
||||
|
@@ -9,6 +9,7 @@
|
||||
#include "thread.h"
|
||||
#include "parse-events.h"
|
||||
#include "hists_common.h"
|
||||
#include <errno.h>
|
||||
#include <linux/kernel.h>
|
||||
|
||||
struct sample {
|
||||
|
@@ -1,3 +1,4 @@
|
||||
#include <errno.h>
|
||||
#include <inttypes.h>
|
||||
/* For the CLR_() macros */
|
||||
#include <pthread.h>
|
||||
|
@@ -1,3 +1,4 @@
|
||||
#include <errno.h>
|
||||
#include <inttypes.h>
|
||||
/* For the CPU_* macros */
|
||||
#include <pthread.h>
|
||||
|
@@ -5,6 +5,7 @@
|
||||
#include "thread_map.h"
|
||||
#include "tests.h"
|
||||
#include "debug.h"
|
||||
#include <errno.h>
|
||||
|
||||
#ifndef O_DIRECTORY
|
||||
#define O_DIRECTORY 00200000
|
||||
|
@@ -1,3 +1,4 @@
|
||||
#include <errno.h>
|
||||
#include <inttypes.h>
|
||||
#include <api/fs/tracing_path.h>
|
||||
#include <linux/err.h>
|
||||
|
@@ -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>
|
||||
|
@@ -1,3 +1,4 @@
|
||||
#include <errno.h>
|
||||
#include <inttypes.h>
|
||||
/* For the CLR_() macros */
|
||||
#include <pthread.h>
|
||||
|
@@ -2,6 +2,7 @@
|
||||
#include "pmu.h"
|
||||
#include "util.h"
|
||||
#include "tests.h"
|
||||
#include <errno.h>
|
||||
#include <linux/kernel.h>
|
||||
|
||||
/* Simulated format definitions. */
|
||||
|
@@ -1,3 +1,4 @@
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
#include <sys/epoll.h>
|
||||
#include <util/util.h>
|
||||
|
@@ -1,3 +1,4 @@
|
||||
#include <errno.h>
|
||||
#include <inttypes.h>
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
|
@@ -1,5 +1,6 @@
|
||||
#include <sys/time.h>
|
||||
#include <sys/prctl.h>
|
||||
#include <errno.h>
|
||||
#include <time.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
|
@@ -4,6 +4,7 @@
|
||||
#include "cpumap.h"
|
||||
#include "tests.h"
|
||||
|
||||
#include <errno.h>
|
||||
#include <signal.h>
|
||||
|
||||
static int exited;
|
||||
|
Reference in New Issue
Block a user