dwarf_loader: Add the cu to the cus list early, remove on LSK_DELETE
commitf632e757f7ba3f2111e785a9408c076a34ee8f0f
authorArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 27 Mar 2024 16:42:37 +0000 (27 13:42 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 15 Apr 2024 17:50:24 +0000 (15 14:50 -0300)
tree3d41ac9ca9ad212283640223d1a6f6e7d6312f27
parent7ddb9cfb91cd3d65d233207c3dde1f78527e2900
dwarf_loader: Add the cu to the cus list early, remove on LSK_DELETE

We want to keep it in the same order as in the original DWARF file we're
loading (e.g. vmlinux), we'll only remove it after we load and process
(e.g. convert to BTF).

Reviewed-by: Alan Maguire <alan.maguire@oracle.com>
Tested-by: Alan Maguire <alan.maguire@oracle.com>
Cc: Kui-Feng Lee <kuifeng@fb.com>
Cc: Thomas Weißschuh <linux@weissschuh.net>
Link: https://lore.kernel.org/lkml/20240412211604.789632-10-acme@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
dwarf_loader.c