diff options
Diffstat (limited to 'simpleperf/event_type.h')
-rw-r--r-- | simpleperf/event_type.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/simpleperf/event_type.h b/simpleperf/event_type.h index a1e401f4..a804b083 100644 --- a/simpleperf/event_type.h +++ b/simpleperf/event_type.h @@ -36,8 +36,10 @@ enum { // the event type is supported by the kernel. struct EventType { - EventType(const std::string& name, uint32_t type, uint64_t config) - : name(name), type(type), config(config) { + EventType(const std::string& name, uint32_t type, uint64_t config, + const std::string& description, const std::string& limited_arch) + : name(name), type(type), config(config), description(description), + limited_arch(limited_arch) { } EventType() : type(0), config(0) { @@ -46,6 +48,8 @@ struct EventType { std::string name; uint32_t type; uint64_t config; + std::string description; + std::string limited_arch; }; const std::vector<EventType>& GetAllEventTypes(); |