1 // SPDX-License-Identifier: GPL-2.0
4 #include "util/group.h"
7 * Check whether we can use a group for top down.
8 * Without a group may get bad results due to multiplexing.
10 bool arch_topdown_check_group(bool *warn
)
14 if (sysctl__read_int("kernel/nmi_watchdog", &n
) < 0)
23 void arch_topdown_group_warn(void)
26 "nmi_watchdog enabled with topdown. May give wrong results.\n"
27 "Disable with echo 0 > /proc/sys/kernel/nmi_watchdog\n");