def get_vmlinux():
 vmlinux = ('/boot/vmlinux-%s' % os.uname()[2])
 if os.path.isfile(vmlinux):
  return vmlinux
 vmlinux = ('/lib/modules/%s/build/vmlinux' % os.uname()[2])
 if os.path.isfile(vmlinux):
  return vmlinux
 return None

def get_vmlinux ( ) : vmlinux = ( '/boot/vmlinux-%s' % os . uname ( ) [ 2 ] ) if os . path . isfile ( vmlinux ) : return vmlinux vmlinux = ( '/lib/modules/%s/build/vmlinux' % os . uname ( ) [ 2 ] ) if os . path . isfile ( vmlinux ) : return vmlinux return None
return the full path to vmlinux ahem .