aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKalesh Singh <kaleshsingh@google.com>2022-06-15 22:54:20 -0700
committerKalesh Singh <kaleshsingh@google.com>2022-06-22 13:18:26 -0700
commiteee1f322a6eeed46b3d8ef1a08bf40ff85dd3e2a (patch)
treeac234fb8e21fa3580c9fd365368207664d3d2e67
parented805dc1d1d2592be55cfcfeb49cecf62be2a9c2 (diff)
downloadperfetto-eee1f322a6eeed46b3d8ef1a08bf40ff85dd3e2a.tar.gz
perfetto: Add rss_stat.cfg test config
Add a test config for rss_stat/rss_stat_throttled ftrace events. Test: adb push test/configs/rss_stat.cfg /data/local/tmp/ && cf-adb shell 'cat /data/local/tmp/rss_stat.cfg | perfetto --txt -c - -o /data/misc/perfetto-traces/trace Bug: 236172293 Change-Id: Ie2852467c21c6c7bdfa1c75dc60f49f28e6f709f Merged-In: Ie2852467c21c6c7bdfa1c75dc60f49f28e6f709f
-rw-r--r--test/configs/rss_stat.cfg17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/configs/rss_stat.cfg b/test/configs/rss_stat.cfg
new file mode 100644
index 000000000..010aa9746
--- /dev/null
+++ b/test/configs/rss_stat.cfg
@@ -0,0 +1,17 @@
+buffers: {
+ size_kb: 512
+ fill_policy: DISCARD
+}
+
+data_sources: {
+ config {
+ name: "linux.ftrace"
+ ftrace_config {
+ ftrace_events: "sched_switch"
+ ftrace_events: "kmem/rss_stat"
+ throttle_rss_stat: true
+ }
+ }
+}
+
+duration_ms: 10000