diff mbox series

btf_encoder: Use better fallback message

Message ID 20201116202458.1228654-1-jolsa@kernel.org (mailing list archive)
State Not Applicable
Delegated to: BPF
Headers show
Series btf_encoder: Use better fallback message | expand

Checks

Context Check Description
netdev/tree_selection success Not a local patch

Commit Message

Jiri Olsa Nov. 16, 2020, 8:24 p.m. UTC
Using more suitable fallback message for the case when the
ftrace filter can't be used because of missing symbols.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
---
 btf_encoder.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Arnaldo Carvalho de Melo Nov. 17, 2020, 6:09 p.m. UTC | #1
Em Mon, Nov 16, 2020 at 09:24:58PM +0100, Jiri Olsa escreveu:
> Using more suitable fallback message for the case when the
> ftrace filter can't be used because of missing symbols.

Thanks, applied.

- Arnaldo

 
> Signed-off-by: Jiri Olsa <jolsa@kernel.org>
> ---
>  btf_encoder.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/btf_encoder.c b/btf_encoder.c
> index 4f856cfd5577..592b31e2cdc9 100644
> --- a/btf_encoder.c
> +++ b/btf_encoder.c
> @@ -510,7 +510,7 @@ static int collect_symbols(struct btf_elf *btfe, bool collect_percpu_vars)
>  			printf("Found %d functions!\n", functions_cnt);
>  	} else {
>  		if (btf_elf__verbose)
> -			printf("vmlinux not detected, falling back to dwarf data\n");
> +			printf("ftrace symbols not detected, falling back to DWARF data\n");
>  		delete_functions();
>  	}
>  
> -- 
> 2.26.2
>
diff mbox series

Patch

diff --git a/btf_encoder.c b/btf_encoder.c
index 4f856cfd5577..592b31e2cdc9 100644
--- a/btf_encoder.c
+++ b/btf_encoder.c
@@ -510,7 +510,7 @@  static int collect_symbols(struct btf_elf *btfe, bool collect_percpu_vars)
 			printf("Found %d functions!\n", functions_cnt);
 	} else {
 		if (btf_elf__verbose)
-			printf("vmlinux not detected, falling back to dwarf data\n");
+			printf("ftrace symbols not detected, falling back to DWARF data\n");
 		delete_functions();
 	}