btf_loader: Use conf_load->base_btf instead of the global btf_base var

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
Arnaldo Carvalho de Melo 2021-06-02 09:39:07 -03:00
parent 6ee61b161d
commit 0e77be4099
1 changed files with 1 additions and 1 deletions

View File

@ -551,7 +551,7 @@ struct debug_fmt_ops btf_elf__ops;
int btf_elf__load_file(struct cus *cus, struct conf_load *conf, const char *filename)
{
int err = -1;
struct btf_elf *btfe = btf_elf__new(filename, NULL, base_btf);
struct btf_elf *btfe = btf_elf__new(filename, NULL, conf->base_btf);
if (btfe == NULL)
return -1;