psi: Introduce ftrace events

Add ftrace events to capture per-zone memory stats when a
trigger threshold is hit.

Change-Id: Ic52a27713acd34090c8f99543408b277877015c7
Signed-off-by: Patrick Daly <[email protected]>
This commit is contained in:
Patrick Daly 2019-04-04 18:55:51 -07:00 • committed by Isaac J. Manjarres
commit 76cf078de1
3 changed files with 113 additions and 0 deletions

View file

@ -588,6 +588,16 @@ config PSI_DEFAULT_DISABLED
Say N if unsure.
config PSI_FTRACE
bool "Insert debug hooks for PSI ftrace events"
default n
depends on PSI
help
If not set, PSI ftrace events will be disabled and
will not incur any performance penalty.
If set, PSI ftrace events may be
enabled.
endmenu # "CPU/Task time and stats accounting"
config CPU_ISOLATION