On my embedded system I'd like to record when the system OOM killer actives, e.g. by setting an env. variable in u-boot. Is there any way to specify a hook function to call on the OOM event?
Asked
Active
Viewed 264 times
3
-
1I believe you will be able to achieve this using [System Tap](https://sourceware.org/systemtap) – Jakuje Jan 05 '16 at 18:59
-
1Also, isn't there usually a log entry when the OOM killer starts blasting away, or did you turn logging off? – thrig Jan 05 '16 at 19:21
-
Logging is still on, but I'd prefer an event based callback. – SeanLabs Jan 05 '16 at 19:36