Beispiel #1
0
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
Beispiel #2
0
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
Beispiel #3
0
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
Beispiel #4
0
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.")
Beispiel #5
0
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.")
Beispiel #6
0
 def warn(self, msg):
     if not self.warned:
         ucmsg.warning(msg)
         self.warned = True
Beispiel #7
0
 def warn(self, msg):
     if not self.warned:
         ucmsg.warning(msg)
         self.warned = True