OSDN Git Service

simpleperf: check if dwarf callgraph is supported by kernel before testing.
[android-x86/system-extras.git] / simpleperf / event_fd.h
index cc0c061..c1a7d75 100644 (file)
@@ -17,7 +17,6 @@
 #ifndef SIMPLE_PERF_EVENT_FD_H_
 #define SIMPLE_PERF_EVENT_FD_H_
 
-#include <poll.h>
 #include <sys/types.h>
 
 #include <memory>
@@ -35,6 +34,8 @@ struct PerfCounter {
   uint64_t id;            // The id of the perf_event_file.
 };
 
+struct pollfd;
+
 // EventFd represents an opened perf_event_file.
 class EventFd {
  public: