Skip to contentSkip to conversation

perf powerpc: Don't ignore sym-handling.c file

PATCH In review Ravi Bangoria 5 participants 5 messages May 9, 2020 – May 13, 2020 perf events

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 perf powerpc: Don't ignore sym-handling.c file

Commit 7eec00a74720 ("perf symbols: Consolidate symbol fixup issue") removed powerpc specific sym-handling.c file from Build. This wasn't caught by build CI because all functions in this file are declared as __weak in common code. Fix it.

Fixes 7eec00a74720 ("perf symbols: Consolidate symbol fixup issue")
---
 tools/perf/arch/powerpc/util/Build | 1 +
 1 file changed, 1 insertion(+)
tools/perf/arch/powerpc/util/Build +1 -0
index e5c9504f8586..e86e210bf514 100644
@@ -2,6 +2,7 @@ perf-y += header.o
 perf-y += kvm-stat.o
 perf-y += perf_regs.o
 perf-y += mem-events.o
+perf-y += sym-handling.o
 
 perf-$(CONFIG_DWARF) += dwarf-regs.o
 perf-$(CONFIG_DWARF) += skip-callchain-idx.o
Signature · 1 line
2.21.1
Acked-by on v1 1/1
#1 lore raw
Quoted 18 lines · Ravi Bangoria

Commit 7eec00a74720 ("perf symbols: Consolidate symbol fixup issue") removed powerpc specific sym-handling.c file from Build. This wasn't caught by build CI because all functions in this file are declared as __weak in common code. Fix it.

Fixes 7eec00a74720 ("perf symbols: Consolidate symbol fixup issue")
---
 tools/perf/arch/powerpc/util/Build | 1 +
 1 file changed, 1 insertion(+)
tools/perf/arch/powerpc/util/Build +0 -0
index e5c9504f8586..e86e210bf514 100644

tools/perf/arch/powerpc/util/Build perf-y += header.o · line 8

Quoted 7 lines
tools/perf/arch/powerpc/util/Build +1 -0
@@ -2,6 +2,7 @@ perf-y += header.o
 perf-y += kvm-stat.o
 perf-y += perf_regs.o
 perf-y += mem-events.o
+perf-y += sym-handling.o
 
 perf-$(CONFIG_DWARF) += dwarf-regs.o
 perf-$(CONFIG_DWARF) += skip-callchain-idx.o

Thanks for fixing this!

#2 lore raw

Em Mon, May 11, 2020 at 11:45:09PM +0530, Sandipan Das escreveu:

Quoted 24 lines · Ravi Bangoria
Quoted 22 lines

Commit 7eec00a74720 ("perf symbols: Consolidate symbol fixup issue") removed powerpc specific sym-handling.c file from Build. This wasn't caught by build CI because all functions in this file are declared as __weak in common code. Fix it.

Fixes 7eec00a74720 ("perf symbols: Consolidate symbol fixup issue")
---
 tools/perf/arch/powerpc/util/Build | 1 +
 1 file changed, 1 insertion(+)
tools/perf/arch/powerpc/util/Build +1 -0
index e5c9504f8586..e86e210bf514 100644
@@ -2,6 +2,7 @@ perf-y += header.o
 perf-y += kvm-stat.o
 perf-y += perf_regs.o
 perf-y += mem-events.o
+perf-y += sym-handling.o
 
Quoted 7 lines

tools/perf/arch/powerpc/util/Build perf-y += header.o · line 8

Quoted 3 lines
tools/perf/arch/powerpc/util/Build +0 -0
 perf-$(CONFIG_DWARF) += dwarf-regs.o
 perf-$(CONFIG_DWARF) += skip-callchain-idx.o

Thanks for fixing this!

Leo, Naveen, can you comment on this?

- Arnaldo

Reviewed-by
#3 lore raw
Quoted 31 lines · Arnaldo Carvalho de Melo

Em Mon, May 11, 2020 at 11:45:09PM +0530, Sandipan Das escreveu:

Quoted 30 lines · Ravi Bangoria
Quoted 18 lines

Commit 7eec00a74720 ("perf symbols: Consolidate symbol fixup issue") removed powerpc specific sym-handling.c file from Build. This wasn't caught by build CI because all functions in this file are declared as __weak in common code. Fix it.

Fixes 7eec00a74720 ("perf symbols: Consolidate symbol fixup issue")
---
 tools/perf/arch/powerpc/util/Build | 1 +
 1 file changed, 1 insertion(+)
tools/perf/arch/powerpc/util/Build +0 -0
index e5c9504f8586..e86e210bf514 100644

tools/perf/arch/powerpc/util/Build perf-y += header.o · line 8

Quoted 7 lines
tools/perf/arch/powerpc/util/Build +1 -0
@@ -2,6 +2,7 @@ perf-y += header.o
 perf-y += kvm-stat.o
 perf-y += perf_regs.o
 perf-y += mem-events.o
+perf-y += sym-handling.o
 
 perf-$(CONFIG_DWARF) += dwarf-regs.o
 perf-$(CONFIG_DWARF) += skip-callchain-idx.o

Thanks for fixing this!

Quoted 3 lines
Quoted 1 line

Leo, Naveen, can you comment on this?

Shoot -- this is a bad miss, I should have caught it. FWIW:

Thanks,
Naveen

Reviewed-by on v1 1/1
#4 lore raw
In reply to Ravi Bangoria
Quoted 17 lines · Ravi Bangoria

Commit 7eec00a74720 ("perf symbols: Consolidate symbol fixup issue") removed powerpc specific sym-handling.c file from Build. This wasn't caught by build CI because all functions in this file are declared as __weak in common code. Fix it.

Fixes 7eec00a74720 ("perf symbols: Consolidate symbol fixup issue")
---
 tools/perf/arch/powerpc/util/Build | 1 +
 1 file changed, 1 insertion(+)
tools/perf/arch/powerpc/util/Build +0 -0
index e5c9504f8586..e86e210bf514 100644

tools/perf/arch/powerpc/util/Build perf-y += header.o · line 5

Quoted 4 lines
tools/perf/arch/powerpc/util/Build +1 -0
@@ -2,6 +2,7 @@ perf-y += header.o
 perf-y += kvm-stat.o
 perf-y += perf_regs.o
 perf-y += mem-events.o
+perf-y += sym-handling.o

My bad, thanks for fixing. FWIW:

Quoted 5 lines
tools/perf/arch/powerpc/util/Build +0 -0
 perf-$(CONFIG_DWARF) += dwarf-regs.o
 perf-$(CONFIG_DWARF) += skip-callchain-idx.o
Signature · 1 line
2.21.1