mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
bpftool: fix output for skipping kernel config check
When bpftool feature does not find kernel config files under default path or wrong format, do not output CONFIG_XYZ is not set. Skip kernel config check and continue. Signed-off-by: Chethan Suresh <chethan.suresh@sony.com> Signed-off-by: Kenta Tada <Kenta.Tada@sony.com> Acked-by: Quentin Monnet <quentin@isovalent.com> Link: https://lore.kernel.org/r/20230109023742.29657-1-chethan.suresh@sony.com Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
This commit is contained in:
parent
9cb61e50bf
commit
75514e4c66
1 changed files with 4 additions and 4 deletions
|
@ -486,16 +486,16 @@ static void probe_kernel_image_config(const char *define_prefix)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
end_parse:
|
|
||||||
if (file)
|
|
||||||
gzclose(file);
|
|
||||||
|
|
||||||
for (i = 0; i < ARRAY_SIZE(options); i++) {
|
for (i = 0; i < ARRAY_SIZE(options); i++) {
|
||||||
if (define_prefix && !options[i].macro_dump)
|
if (define_prefix && !options[i].macro_dump)
|
||||||
continue;
|
continue;
|
||||||
print_kernel_option(options[i].name, values[i], define_prefix);
|
print_kernel_option(options[i].name, values[i], define_prefix);
|
||||||
free(values[i]);
|
free(values[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
end_parse:
|
||||||
|
if (file)
|
||||||
|
gzclose(file);
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool probe_bpf_syscall(const char *define_prefix)
|
static bool probe_bpf_syscall(const char *define_prefix)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue