perf kwork: Remove includes not needed in kwork.h

Leave just some forward declarations for pointers, move the includes to
where they are really needed.
Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 9823147d
...@@ -6,10 +6,15 @@ ...@@ -6,10 +6,15 @@
*/ */
#include "builtin.h" #include "builtin.h"
#include "perf.h"
#include "util/data.h" #include "util/data.h"
#include "util/evlist.h"
#include "util/evsel.h"
#include "util/header.h"
#include "util/kwork.h" #include "util/kwork.h"
#include "util/debug.h" #include "util/debug.h"
#include "util/session.h"
#include "util/symbol.h" #include "util/symbol.h"
#include "util/thread.h" #include "util/thread.h"
#include "util/string2.h" #include "util/string2.h"
...@@ -21,6 +26,7 @@ ...@@ -21,6 +26,7 @@
#include <errno.h> #include <errno.h>
#include <inttypes.h> #include <inttypes.h>
#include <signal.h>
#include <linux/err.h> #include <linux/err.h>
#include <linux/time64.h> #include <linux/time64.h>
#include <linux/zalloc.h> #include <linux/zalloc.h>
......
...@@ -7,15 +7,18 @@ ...@@ -7,15 +7,18 @@
#include <time.h> #include <time.h>
#include <fcntl.h> #include <fcntl.h>
#include <signal.h>
#include <stdio.h> #include <stdio.h>
#include <unistd.h> #include <unistd.h>
#include <linux/time64.h> #include <linux/time64.h>
#include "util/debug.h" #include "util/debug.h"
#include "util/evsel.h"
#include "util/kwork.h" #include "util/kwork.h"
#include <bpf/bpf.h> #include <bpf/bpf.h>
#include <perf/cpumap.h>
#include "util/bpf_skel/kwork_trace.skel.h" #include "util/bpf_skel/kwork_trace.skel.h"
......
#ifndef PERF_UTIL_KWORK_H #ifndef PERF_UTIL_KWORK_H
#define PERF_UTIL_KWORK_H #define PERF_UTIL_KWORK_H
#include "perf.h"
#include "util/tool.h" #include "util/tool.h"
#include "util/event.h"
#include "util/evlist.h"
#include "util/session.h"
#include "util/time-utils.h" #include "util/time-utils.h"
#include <linux/list.h>
#include <linux/bitmap.h> #include <linux/bitmap.h>
#include <linux/list.h>
#include <linux/rbtree.h>
#include <linux/types.h>
struct perf_sample;
struct perf_session;
enum kwork_class_type { enum kwork_class_type {
KWORK_CLASS_IRQ, KWORK_CLASS_IRQ,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment