def __init__(self, numa=None): BaseTop.__init__(self) specific_options = [ Option('--softnet-stat-file', default='/proc/net/softnet_stat', help='Option for testing on MacOS purpose.'), ] self.numa = numa self.specific_options.extend(specific_options)
def __init__(self, numa=None): BaseTop.__init__(self) specific_options = [ Option('--interrupts-file', default='/proc/interrupts', help='Option for testing on MacOS purpose.') ] self.numa = numa self.specific_options.extend(specific_options)
def __init__(self): BaseTop.__init__(self) self.tops = { 'irqtop': IrqTop(), 'softnet_stat_top': SoftnetStatTop(), 'softirq_top': Softirqs(), 'link-rate': LinkRateTop(), } self.parse_options() self.numa = Numa(fake=self.options.random)
def __init__(self): BaseTop.__init__(self) self.tops = { 'irqtop': IrqTop(), 'softnet_stat_top': SoftnetStatTop(), 'softirq_top': Softirqs(), 'link-rate': LinkRateTop(), } self.parse_options() self.topology = Topology(fake=self.options.random, lscpu_output=self.options.lscpu_output) for top in self.tops.values(): top.topology = self.topology
def __init__(self, numa=None): BaseTop.__init__(self) specific_options = [ Option('--assert', '--assert-mode', default=False, dest='assert_mode', help='Stops running after errors detected.'), Option('--dev', '--devices', default="", dest='devices', help='Comma-separated list of devices to monitor.'), Option('--device-regex', default='^.*$', help="Regex-mask for devices to monitor."), Option('-s', '--simple', default=False, dest='simple_mode', action='store_true', help='Hides different kinds of error, showing only general counters.'), Option('--rx', '--rx-only', dest='rx_only', default=False, action='store_true', help='Hides tx-counters'), Option('--bits', default=False, action='store_true'), Option('--bytes', default=False, action='store_true'), Option('--kbits', default=False, action='store_true'), Option('--mbits', default=True, action='store_true'), ] self.numa = numa self.specific_options.extend(specific_options)
def __init__(self, topology=None): BaseTop.__init__(self) self.topology = topology
def __init__(self, pci=None): BaseTop.__init__(self) self.pci = pci