From 806ee9ef52b5e8d29343d6311147a8a5a36d28fe Mon Sep 17 00:00:00 2001 From: Primiano Tucci Date: Mon, 15 Nov 2021 21:08:06 +0000 Subject: atrace: move to rss_stat_throttled rss_stat is now unthrottled and just going to spam the trace. rss_stat_throttled is the equivalent of rss_stat in older kernels. Note: this will not work on older kernels. I am not aware of any active use of rss_stat from atrace (i.e. not going through perfetto) so it's not worth having a fallback path here for a kernel path that is going to disappear over time. Design doc: go/rss-stat-throttled Bug: 145972256 Change-Id: I0912eca3c15e1ff5f2201c2a66261b7a9b7247a4 --- cmds/atrace/atrace.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmds/atrace/atrace.cpp b/cmds/atrace/atrace.cpp index 783a475829..645944340e 100644 --- a/cmds/atrace/atrace.cpp +++ b/cmds/atrace/atrace.cpp @@ -239,7 +239,7 @@ static const TracingCategory k_categories[] = { } }, { "memory", "Memory", 0, { { OPT, "events/mm_event/mm_event_record/enable" }, - { OPT, "events/kmem/rss_stat/enable" }, + { OPT, "events/synthetic/rss_stat_throttled/enable" }, { OPT, "events/kmem/ion_heap_grow/enable" }, { OPT, "events/kmem/ion_heap_shrink/enable" }, { OPT, "events/ion/ion_stat/enable" }, -- cgit v1.2.3-59-g8ed1b