# # gdb helper commands and functions for Linux kernel debugging # # list tools # # Copyright (c) Thiebaud Weksteen, 2015 # # Authors: # Thiebaud Weksteen # # This work is licensed under the terms of the GNU GPL version 2. # import gdb from linux import utils list_head = utils.CachedType("struct list_head") def list_check(head): nb = 0 if (head.type == list_head.get_type().pointer()): head = head.dereference() elif (head.type != list_head.get_type()): raise gdb.GdbError('argument must be of type (struct list_head [*])') c = head try: gdb.write("Starting with: {}\n".format(c)) except gdb.MemoryError: gdb.write('head is not accessible\n') return while True: p = c['prev'].dereference() n = c['next'].dereference() try: if p['next'] != c.address: gdb.write('prev.next != current: ' 'current@{current_addr}={current} ' 'prev@{p_addr}={p}\n'.format( current_addr=c.address, current=c, p_addr=p.address, p=p, )) return except gdb.MemoryError: gdb.write('prev is not accessible: ' 'current@{current_addr}={current}\n'.format( current_addr=c.address, current=c )) return try: if n['prev'] != c.address: gdb.write('next.prev != current: ' 'current@{current_addr}={current} ' 'next@{n_addr}={n}\n'.format( current_addr=c.address, current=c, n_addr=n.address, n=n, )) return except gdb.MemoryError: gdb.write('next is not accessible: ' 'current@{current_addr}={current}\n'.format( current_addr=c.address, current=c )) return c = n nb += 1 if c == head: gdb.write("list is consistent: {} node(s)\n".format(nb)) return class LxListChk(gdb.Command): """Verify a list consistency""" def __init__(self): super(LxListChk, self).__init__("lx-list-check", gdb.COMMAND_DATA, gdb.COMPLETE_EXPRESSION) def invoke(self, arg, from_tty): argv = gdb.string_to_argv(arg) if len(argv) != 1: raise gdb.GdbError("lx-list-check takes one argument") list_check(gdb.parse_and_eval(argv[0])) LxListChk() 4.y'>linux-3.14.y Hosts the 0x221E linux distro kernel.Ubuntu
summaryrefslogtreecommitdiff
path: root/drivers/net/usb/asix_devices.c
AgeCommit message (Expand)Author
2021-10-02net: usb: use eth_hw_addr_set()Jakub Kicinski
2021-08-26Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski
2021-08-25net: usb: asix: ax88772: fix boolconv.cocci warningskernel test robot
2021-08-23net: usb: asix: do not call phy_disconnect() for ax88178Oleksij Rempel
2021-08-23net: usb: asix: ax88772: move embedded PHY detection as early as possibleOleksij Rempel
2021-07-27dev_ioctl: split out ndo_eth_ioctlArnd Bergmann
2021-07-22net: usb: asix: ax88772: add missing stopOleksij Rempel
2021-07-22net: usb: asix: ax88772: do not poll for PHY before registering itOleksij Rempel
2021-07-01net: usb: asix: ax88772: suspend PHY on driver probeOleksij Rempel
2021-06-11net: usb: asix: ax88772: manage PHY PM from MACOleksij Rempel
2021-06-09net: usb: asix: Fix less than zero comparison of a u16Colin Ian King
2021-06-07net: usb: asix: ax88772: add generic selftest supportOleksij Rempel
2021-06-07net: usb: asix: ax88772: add phylib supportOleksij Rempel
2021-06-07net: usb: asix: refactor asix_read_phy_addr() and handle errors on returnOleksij Rempel
2021-06-07net: usb: asix: ax88772_bind: use devm_kzalloc() instead of kzalloc()Oleksij Rempel
2021-04-06usbnet: add _mii suffix to usbnet_set/get_link_ksettingsOliver Neukum
2020-11-12net: usb: switch to dev_get_tstats64 and remove usbnet_get_stats64 aliasHeiner Kallweit