Skip to contentSkip to conversation

btf_encoder: Use better fallback message

PATCH Applied Jiri Olsa 2 participants 2 messages Nov 16, 2020 – Nov 17, 2020 BPF

lore
Share & tools
lore

Jiri Olsa

author reviewer
#0 lore raw

PATCH 1/1 btf_encoder: Use better fallback message

Using more suitable fallback message for the case when the ftrace filter can't be used because of missing symbols.

---
 btf_encoder.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
btf_encoder.c +1 -1
index 4f856cfd5577..592b31e2cdc9 100644
@@ -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();
 	}
 
Signature · 1 line
2.26.2
#1 lore raw

Em Mon, Nov 16, 2020 at 09:24:58PM +0100, Jiri Olsa escreveu:

Quoted 2 lines

Using more suitable fallback message for the case when the ftrace filter can't be used because of missing symbols.

Thanks, applied.

- Arnaldo

Quoted 21 lines
---
 btf_encoder.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
btf_encoder.c +1 -1
index 4f856cfd5577..592b31e2cdc9 100644
@@ -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();
 	}
 
Signature · 1 line
2.26.2
Signature · 1 line
- Arnaldo