perf srcline: Lower verbosity on addr2line debug messages
authorIan Rogers <irogers@google.com>
Mon, 23 Jun 2025 16:19:29 +0000 (09:19 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Tue, 24 Jun 2025 17:27:49 +0000 (10:27 -0700)
Lower non-error debug messages to verbose 3 or larger.

Signed-off-by: Ian Rogers <irogers@google.com>
Link: https://lore.kernel.org/r/20250623161930.1421216-2-irogers@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/util/srcline.c

index f32d0d4f4bc9e659c2e0acb6589e5f4908c4e3ab..3e3449e35dd467d5058f0820cfe89588b07e1d6b 100644 (file)
@@ -524,12 +524,12 @@ static enum a2l_style addr2line_configure(struct child_process *a2l, const char
                        style = LLVM;
                        cached = true;
                        lines = 1;
-                       pr_debug("Detected LLVM addr2line style\n");
+                       pr_debug3("Detected LLVM addr2line style\n");
                } else if (ch == '0') {
                        style = GNU_BINUTILS;
                        cached = true;
                        lines = 3;
-                       pr_debug("Detected binutils addr2line style\n");
+                       pr_debug3("Detected binutils addr2line style\n");
                } else {
                        if (!symbol_conf.disable_add2line_warn) {
                                char *output = NULL;
@@ -595,7 +595,7 @@ static int read_addr2line_record(struct io *io,
        if (io__getline(io, &line, &line_len) < 0 || !line_len)
                goto error;
 
-       pr_debug("%s %s: addr2line read address for sentinel: %s", __func__, dso_name, line);
+       pr_debug3("%s %s: addr2line read address for sentinel: %s", __func__, dso_name, line);
        if (style == LLVM && line_len == 2 && line[0] == ',') {
                /* Found the llvm-addr2line sentinel character. */
                zfree(&line);
@@ -641,7 +641,7 @@ static int read_addr2line_record(struct io *io,
        if (first && (io__getline(io, &line, &line_len) < 0 || !line_len))
                goto error;
 
-       pr_debug("%s %s: addr2line read line: %s", __func__, dso_name, line);
+       pr_debug3("%s %s: addr2line read line: %s", __func__, dso_name, line);
        if (function != NULL)
                *function = strdup(strim(line));
 
@@ -652,7 +652,7 @@ static int read_addr2line_record(struct io *io,
        if (io__getline(io, &line, &line_len) < 0 || !line_len)
                goto error;
 
-       pr_debug("%s %s: addr2line filename:number : %s", __func__, dso_name, line);
+       pr_debug3("%s %s: addr2line filename:number : %s", __func__, dso_name, line);
        if (filename_split(line, line_nr == NULL ? &dummy_line_nr : line_nr) == 0 &&
            style == GNU_BINUTILS) {
                ret = 0;