OSDN Git Service

simpleperf: accept different perf_attr sizes.
[android-x86/system-extras.git] / simpleperf / event_type.h
index 9c365fa..4100125 100644 (file)
@@ -35,8 +35,6 @@ struct EventType {
   EventType() : type(0), config(0) {
   }
 
-  bool IsSupportedByKernel() const;
-
   std::string name;
   uint32_t type;
   uint64_t config;
@@ -44,9 +42,12 @@ 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 {
+  std::string name;
   EventType event_type;
+  std::string modifier;
   bool exclude_user;
   bool exclude_kernel;
   bool exclude_hv;
@@ -64,7 +65,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_