diff options
author | Yabin Cui <yabinc@google.com> | 2016-03-10 11:49:57 -0800 |
---|---|---|
committer | Yabin Cui <yabinc@google.com> | 2016-03-10 13:54:12 -0800 |
commit | 0356f47c4faf6075348ce340ca0b0cc46cee060f (patch) | |
tree | 3aa5556a0b3a3f90a6e31cef56a86b6b5e826ae6 /simpleperf/event_fd.h | |
parent | 9627638747d7418dc3be9617a99a33c688e3bf87 (diff) | |
download | extras-0356f47c4faf6075348ce340ca0b0cc46cee060f.tar.gz |
simpleperf: check if dwarf callgraph is supported by kernel before testing.
Move inclusion of poll.h from header files to source files,
as event_selection_set.h is used by cmd_report_test.cpp, which
can be built on windows.
Bug: 27590546
Change-Id: Ic6b141a93d96610f911ab52da1d927b7f619ccb2
(cherry picked from commit 19e6b6d372a1244189dc2df62313085a61ed1a80)
Diffstat (limited to 'simpleperf/event_fd.h')
-rw-r--r-- | simpleperf/event_fd.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/simpleperf/event_fd.h b/simpleperf/event_fd.h index cc0c0618..c1a7d753 100644 --- a/simpleperf/event_fd.h +++ b/simpleperf/event_fd.h @@ -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: |