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?
Any way to specify process to call on Linux when OOM activates?
linux;memory;out of memory;hook