Skip to content

Commit 3317dc9

Browse files
captain5050namhyung
authored andcommitted
perf srcline: Lower verbosity on addr2line debug messages
Lower non-error debug messages to verbose 3 or larger. Signed-off-by: Ian Rogers <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Namhyung Kim <[email protected]>
1 parent c833e8c commit 3317dc9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tools/perf/util/srcline.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -524,12 +524,12 @@ static enum a2l_style addr2line_configure(struct child_process *a2l, const char
524524
style = LLVM;
525525
cached = true;
526526
lines = 1;
527-
pr_debug("Detected LLVM addr2line style\n");
527+
pr_debug3("Detected LLVM addr2line style\n");
528528
} else if (ch == '0') {
529529
style = GNU_BINUTILS;
530530
cached = true;
531531
lines = 3;
532-
pr_debug("Detected binutils addr2line style\n");
532+
pr_debug3("Detected binutils addr2line style\n");
533533
} else {
534534
if (!symbol_conf.disable_add2line_warn) {
535535
char *output = NULL;
@@ -595,7 +595,7 @@ static int read_addr2line_record(struct io *io,
595595
if (io__getline(io, &line, &line_len) < 0 || !line_len)
596596
goto error;
597597

598-
pr_debug("%s %s: addr2line read address for sentinel: %s", __func__, dso_name, line);
598+
pr_debug3("%s %s: addr2line read address for sentinel: %s", __func__, dso_name, line);
599599
if (style == LLVM && line_len == 2 && line[0] == ',') {
600600
/* Found the llvm-addr2line sentinel character. */
601601
zfree(&line);
@@ -641,7 +641,7 @@ static int read_addr2line_record(struct io *io,
641641
if (first && (io__getline(io, &line, &line_len) < 0 || !line_len))
642642
goto error;
643643

644-
pr_debug("%s %s: addr2line read line: %s", __func__, dso_name, line);
644+
pr_debug3("%s %s: addr2line read line: %s", __func__, dso_name, line);
645645
if (function != NULL)
646646
*function = strdup(strim(line));
647647

@@ -652,7 +652,7 @@ static int read_addr2line_record(struct io *io,
652652
if (io__getline(io, &line, &line_len) < 0 || !line_len)
653653
goto error;
654654

655-
pr_debug("%s %s: addr2line filename:number : %s", __func__, dso_name, line);
655+
pr_debug3("%s %s: addr2line filename:number : %s", __func__, dso_name, line);
656656
if (filename_split(line, line_nr == NULL ? &dummy_line_nr : line_nr) == 0 &&
657657
style == GNU_BINUTILS) {
658658
ret = 0;

0 commit comments

Comments
 (0)