summaryrefslogtreecommitdiff
path: root/simpleperf/event_type_table.h
diff options
context:
space:
mode:
authorYabin Cui <yabinc@google.com>2017-01-30 11:34:24 -0800
committerYabin Cui <yabinc@google.com>2017-02-03 10:37:38 -0800
commit26968e6c48dea2eaa217991ade5a04e801f1be8f (patch)
tree015ed7af1aed3135a10bc647c0db08ea8759a63a /simpleperf/event_type_table.h
parenta284424d6cf9396e680e01dd86c50864d55365cf (diff)
downloadextras-26968e6c48dea2eaa217991ade5a04e801f1be8f.tar.gz
simpleperf: add inplace-sampler event type.
Add inplace-sampler event type, so it can be used in record/list command. This cl doesn't add code for communicating with profiled process, and fake records in InplaceSamplerClient.cpp for testing purpose. Refactor runtest.py to test inplace-sampler profiling. Bug: http://b/30974760 Test: run runtest.py --inplace-sampler. Change-Id: I92d8b03583c58b3589207f5c655e03853899be3a
Diffstat (limited to 'simpleperf/event_type_table.h')
-rw-r--r--simpleperf/event_type_table.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/simpleperf/event_type_table.h b/simpleperf/event_type_table.h
index a77be0af..123216c9 100644
--- a/simpleperf/event_type_table.h
+++ b/simpleperf/event_type_table.h
@@ -63,3 +63,5 @@
{"node-prefetches", PERF_TYPE_HW_CACHE, ((PERF_COUNT_HW_CACHE_NODE) | (PERF_COUNT_HW_CACHE_OP_PREFETCH << 8) | (PERF_COUNT_HW_CACHE_RESULT_ACCESS << 16))},
{"node-prefetch-misses", PERF_TYPE_HW_CACHE, ((PERF_COUNT_HW_CACHE_NODE) | (PERF_COUNT_HW_CACHE_OP_PREFETCH << 8) | (PERF_COUNT_HW_CACHE_RESULT_MISS << 16))},
+{"inplace-sampler", SIMPLEPERF_TYPE_USER_SPACE_SAMPLERS, SIMPLEPERF_CONFIG_INPLACE_SAMPLER},
+