def check_per_socket(s, warned): if (not warned and sorted(map(lambda x: int(x[1:]), s)) != range(0, len(s))): ucmsg.warning("perf --per-socket appears broken. Please update perf.") ucmsg.warning("Data on socket > 0 will be likely incorrect.") return True return warned
def check_per_socket(s, warned): if (not warned and not args.mock and sorted([int(x[1:]) for x in s]) != list(range(0, len(s)))): ucmsg.warning("perf --per-socket appears broken. Please update perf.") ucmsg.warning("Data on socket > 0 will be likely incorrect.") return True return warned
def check_multiplex(): if args.quiet: return found = False for j in glob.iglob("/sys/devices/uncore_*/perf_event_mux_interval_ms"): found = True break if not found: ucmsg.warning("No hrtimer multiplexing support in kernel.") ucmsg.warning("Multiplexed events will be incorrect when not fully busy.")
def warn(self, msg): if not self.warned: ucmsg.warning(msg) self.warned = True