Slab
Commands for dealing with Linux kernel slab allocator. Currently, only SLUB is supported.
Some of the code here was inspired from https://github.com/NeatMonster/slabdbg Some of the code here was inspired from https://github.com/osandov/drgn
parser = argparse.ArgumentParser(description='Prints information about the slab allocator')
module-attribute
¶
parser_contains = subparsers.add_parser('contains', prog='slab contains')
module-attribute
¶
parser_info = subparsers.add_parser('info', prog='slab info')
module-attribute
¶
parser_list = subparsers.add_parser('list', prog='slab list')
module-attribute
¶
subparsers = parser.add_subparsers(dest='command')
module-attribute
¶
IndentContextManager
¶
print_cpu_cache(cpu_cache, verbose, indent)
¶
print_node_cache(node_cache, verbose, indent)
¶
print_slab(slab, indent, verbose)
¶
slab(command, filter_=None, names=None, verbose=False, addresses=None)
¶
slab_contains(address)
¶
prints the slab_cache associated with the provided address