summaryrefslogtreecommitdiff
path: root/simpleperf/event_type.h
diff options
context:
space:
mode:
authorYabin Cui <yabinc@google.com>2017-07-31 15:08:27 -0700
committerYabin Cui <yabinc@google.com>2017-08-03 16:04:57 -0700
commit20663f5fece4082531567d5268130186e40e7f9a (patch)
tree83f8f0509b29027bfabeab3a85c6043a6ddf464a /simpleperf/event_type.h
parent2ad09b2ffda41e7974666bbed848ee32fdbbee81 (diff)
downloadextras-20663f5fece4082531567d5268130186e40e7f9a.tar.gz
simpleperf: export meta info in report_sample.proto.
To support perf.data generated with --trace-offcpu option, update interface in report_sample.proto: 1. Add meta info to show all event types. 2. Add event_type_id in each sample to show which even type it belongs to. Bug: http://b/37572306 Test: run simpleperf_unit_test. Change-Id: I2878979ec2023904df1006ce353dcf233b6a2642
Diffstat (limited to 'simpleperf/event_type.h')
-rw-r--r--simpleperf/event_type.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/simpleperf/event_type.h b/simpleperf/event_type.h
index 1dd7f39f..727f75ff 100644
--- a/simpleperf/event_type.h
+++ b/simpleperf/event_type.h
@@ -68,7 +68,7 @@ class ScopedEventTypes {
};
const std::vector<EventType>& GetAllEventTypes();
-const EventType* FindEventTypeByName(const std::string& name);
+const EventType* FindEventTypeByName(const std::string& name, bool report_error = true);
struct EventTypeAndModifier {
std::string name;