diff options
author | Yabin Cui <yabinc@google.com> | 2015-06-25 17:42:23 -0700 |
---|---|---|
committer | Yabin Cui <yabinc@google.com> | 2015-06-29 14:48:38 -0700 |
commit | 9fd3cc1048a3d0338df4a48760dfd655560992a1 (patch) | |
tree | 531ebc2c2aad8a0b0094bba788a06ad96835af07 /simpleperf/event_type.h | |
parent | 19fadc64c50a13a1e65ad43b50cd15ea96263371 (diff) | |
download | extras-9fd3cc1048a3d0338df4a48760dfd655560992a1.tar.gz |
Simpleperf: support build on mac.
Bug: 19483574
Change-Id: I6c28541944bc0a4e6fc07d7ea5a8fb5f71890510
Diffstat (limited to 'simpleperf/event_type.h')
-rw-r--r-- | simpleperf/event_type.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/simpleperf/event_type.h b/simpleperf/event_type.h index 9c365faf..df2f782d 100644 --- a/simpleperf/event_type.h +++ b/simpleperf/event_type.h @@ -35,8 +35,6 @@ struct EventType { EventType() : type(0), config(0) { } - bool IsSupportedByKernel() const; - std::string name; uint32_t type; uint64_t config; @@ -44,6 +42,7 @@ struct EventType { const std::vector<EventType>& GetAllEventTypes(); const EventType* FindEventTypeByConfig(uint32_t type, uint64_t config); +const EventType* FindEventTypeByName(const std::string& name); struct EventTypeAndModifier { EventType event_type; @@ -64,7 +63,6 @@ struct EventTypeAndModifier { } }; -std::unique_ptr<EventTypeAndModifier> ParseEventType(const std::string& event_type_str, - bool report_unsupported_type = true); +std::unique_ptr<EventTypeAndModifier> ParseEventType(const std::string& event_type_str); #endif // SIMPLE_PERF_EVENT_H_ |