pahole: Make --find_pointers_to consider unions

I.e.:

  $ pahole --find_pointers_to ehci_qh
  ehci_hcd: qh_scan_next
  ehci_hcd: async
  ehci_hcd: dummy
  $

Wasn't considering:

  $ pahole -C ehci_shadow
  union ehci_shadow {
  	struct ehci_qh *           qh;                 /*     0     8 */
  	struct ehci_itd *          itd;                /*     0     8 */
  	struct ehci_sitd *         sitd;               /*     0     8 */
  	struct ehci_fstn *         fstn;               /*     0     8 */
  	__le32 *                   hw_next;            /*     0     8 */
  	void *                     ptr;                /*     0     8 */
  };
  $

Fix it:

  $ pahole --find_pointers_to ehci_qh
  ehci_hcd: qh_scan_next
  ehci_hcd: async
  ehci_hcd: dummy
  ehci_shadow: qh
  $

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 file changed