aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/check-perf-trace.py
diff options
context:
space:
mode:
authorMichael Holzheu <[email protected]>2012-01-12 17:20:23 -0800
committerLinus Torvalds <[email protected]>2012-01-12 20:13:11 -0800
commitf5138e42211d4e8bfbd6ac5b3816348da1533433 (patch)
treec9d246be208547ded5dece81c57353f54d61ffd3 /tools/perf/scripts/python/check-perf-trace.py
parent1f536b9e9f85456df93614b3c2f6a1a2b7d7cb9b (diff)
kdump: add udev events for memory online/offline
Currently no udev events for memory hotplug "online" and "offline" are generated: # udevadm monitor # echo offline > /sys/devices/system/memory/memory4/state ==> No event When kdump is loaded, kexec detects the current memory configuration and stores it in the pre-allocated ELF core header. Therefore, for kdump it is necessary to reload the kdump kernel with kexec when the memory configuration changes (e.g. for online/offline hotplug memory). In order to do this automatically, udev rules should be used. This kernel patch adds udev events for "online" and "offline". Together with this kernel patch, the following udev rules for online/offline have to be added to "/etc/udev/rules.d/98-kexec.rules": SUBSYSTEM=="memory", ACTION=="online", PROGRAM="/etc/init.d/kdump restart" SUBSYSTEM=="memory", ACTION=="offline", PROGRAM="/etc/init.d/kdump restart" [[email protected]: fixups for class to subsystem conversion] Signed-off-by: Michael Holzheu <[email protected]> Cc: Heiko Carstens <[email protected]> Cc: Vivek Goyal <[email protected]> Cc: "Eric W. Biederman" <[email protected]> Cc: Kay Sievers <[email protected]> Cc: Dave Hansen <[email protected]> Cc: Martin Schwidefsky <[email protected]> Cc: Greg KH <[email protected]> Signed-off-by: Stephen Rothwell <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions