EventType() : type(0), config(0) {
}
- bool IsSupportedByKernel() const;
-
std::string name;
uint32_t type;
uint64_t config;
const std::vector<EventType>& GetAllEventTypes();
const EventType* FindEventTypeByConfig(uint32_t type, uint64_t config);
+const EventType* FindEventTypeByName(const std::string& name);
struct EventTypeAndModifier {
+ std::string name;
EventType event_type;
+ std::string modifier;
bool exclude_user;
bool exclude_kernel;
bool exclude_hv;
}
};
-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_