Andrzej Perczak 2a09fecdeb
trace: Introduce minimal tracing for iorapd
Android service iorapd uses mm tracing to check what files are being loaded
by an app during launch. It then compiles the traces to perform madvise
syscalls to speedup app launch. This, however, enforces tracepoints to be
enabled for whole kernel which effects with much larger image size and some
performance penalties.

It turns out that tracing can be disabled by passing NOTRACE flag.
To make use of this flag pass it globally and undef where needed to make tracing
work, also, keep mm tracing in place for iorapd.

Signed-off-by: Andrzej Perczak <linux@andrzejperczak.com>
Signed-off-by: alanndz <alanndz7@gmail.com>
Signed-off-by: azrim <mirzaspc@gmail.com>
2022-04-06 13:17:44 +07:00
..