Re: [PATCH 2/2] scripts/gdb: add helpers to find and list devices

2019-06-25 Thread Stephen Boyd
Quoting Leonard Crestez (2019-06-25 13:05:12) > Add helper commands and functions for finding pointers to struct device > by enumerating linux device bus/class infrastructure. This can be used > to fetch subsystem and driver-specific structs: > > (gdb) p

[PATCH 2/2] scripts/gdb: add helpers to find and list devices

2019-06-25 Thread Leonard Crestez
Add helper commands and functions for finding pointers to struct device by enumerating linux device bus/class infrastructure. This can be used to fetch subsystem and driver-specific structs: (gdb) p *$container_of($lx_device_find_by_class_name("net", "eth0"), "struct net_device", "dev") (gdb) p