diff mbox series

[SRU,X,1/1] Revert "perf report: Add warning when libunwind not compiled in"

Message ID 20200108145945.8915-2-kleber.souza@canonical.com
State New
Headers show
Series [SRU,X,1/1] Revert "perf report: Add warning when libunwind not compiled in" | expand

Commit Message

Kleber Sacilotto de Souza Jan. 8, 2020, 2:59 p.m. UTC
BugLink: https://bugs.launchpad.net/bugs/1858798

This reverts commit 800d3f561659b5436f8c57e7c26dd1f6928b5615 upstream.

This commit introduces a build failure in tools/perf on environments
that don't have libunwind installed.

[...]
builtin-report.c: In function ‘report__setup_sample_type’:
builtin-report.c:289:6: error: ‘dwarf_callchain_users’ undeclared (first
use in this function)
  if (dwarf_callchain_users) {
      ^
[...]

The variable 'dwarf_callchain_users' was introduced by eabad8c6856f
"perf unwind: Do not look just at the global callchain_param.record_mode"
which as of now hasn't been backported to stable linux-4.4.y. So revert
this commit to fix the build failure.

Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
---
 tools/perf/builtin-report.c | 7 -------
 1 file changed, 7 deletions(-)

Comments

Stefan Bader Jan. 8, 2020, 3:09 p.m. UTC | #1
On 08.01.20 15:59, Kleber Sacilotto de Souza wrote:
> BugLink: https://bugs.launchpad.net/bugs/1858798
> 
> This reverts commit 800d3f561659b5436f8c57e7c26dd1f6928b5615 upstream.
> 
> This commit introduces a build failure in tools/perf on environments
> that don't have libunwind installed.
> 
> [...]
> builtin-report.c: In function ‘report__setup_sample_type’:
> builtin-report.c:289:6: error: ‘dwarf_callchain_users’ undeclared (first
> use in this function)
>   if (dwarf_callchain_users) {
>       ^
> [...]
> 
> The variable 'dwarf_callchain_users' was introduced by eabad8c6856f
> "perf unwind: Do not look just at the global callchain_param.record_mode"
> which as of now hasn't been backported to stable linux-4.4.y. So revert
> this commit to fix the build failure.
> 
> Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
> ---
>  tools/perf/builtin-report.c | 7 -------
>  1 file changed, 7 deletions(-)
> 
> diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c
> index 0f7ebac1846b..f256fac1e722 100644
> --- a/tools/perf/builtin-report.c
> +++ b/tools/perf/builtin-report.c
> @@ -285,13 +285,6 @@ static int report__setup_sample_type(struct report *rep)
>  				PERF_SAMPLE_BRANCH_ANY))
>  		rep->nonany_branch_mode = true;
>  
> -#ifndef HAVE_LIBUNWIND_SUPPORT
> -	if (dwarf_callchain_users) {
> -		ui__warning("Please install libunwind development packages "
> -			    "during the perf build.\n");
> -	}
> -#endif
> -
>  	return 0;
>  }
>  
>
diff mbox series

Patch

diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c
index 0f7ebac1846b..f256fac1e722 100644
--- a/tools/perf/builtin-report.c
+++ b/tools/perf/builtin-report.c
@@ -285,13 +285,6 @@  static int report__setup_sample_type(struct report *rep)
 				PERF_SAMPLE_BRANCH_ANY))
 		rep->nonany_branch_mode = true;
 
-#ifndef HAVE_LIBUNWIND_SUPPORT
-	if (dwarf_callchain_users) {
-		ui__warning("Please install libunwind development packages "
-			    "during the perf build.\n");
-	}
-#endif
-
 	return 0;
 }