• Peter Zijlstra's avatar
    perf: Stop all counters on reboot · c277443c
    Peter Zijlstra authored
    Use the reboot notifier to detach all running counters on reboot, this
    solves a problem with kexec where the new kernel doesn't expect
    running counters (rightly so).
    
    It will however decrease the coverage of the NMI watchdog. Making a
    kexec specific reboot notifier callback would be best, however that
    would require touching all notifier callback handlers as they are not
    properly structured to deal with new state.
    
    As a compromise, place the perf reboot notifier at the very last
    position in the list.
    Reported-by: default avatarYinghai Lu <yinghai@kernel.org>
    Signed-off-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
    Cc: Vivek Goyal <vgoyal@redhat.com>
    Cc: Eric W. Biederman <ebiederm@xmission.com>
    Cc: Jason Wessel <jason.wessel@windriver.com>
    Cc: Don Zickus <dzickus@redhat.com>
    LKML-Reference: <new-submission>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    c277443c
perf_event.c 149 KB