Skip to content

Commit 27faeeb

Browse files
committed
sparc: Revert unintended perf changes.
Some local debugging hacks accidently slipped into the VDSO commit. Sorry! Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 62d6f3b commit 27faeeb

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

tools/perf/util/event.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1081,7 +1081,6 @@ void *cpu_map_data__alloc(struct cpu_map *map, size_t *size, u16 *type, int *max
10811081
}
10821082

10831083
*size += sizeof(struct cpu_map_data);
1084-
*size = PERF_ALIGN(*size, sizeof(u64));
10851084
return zalloc(*size);
10861085
}
10871086

@@ -1561,9 +1560,7 @@ struct map *thread__find_map(struct thread *thread, u8 cpumode, u64 addr,
15611560

15621561
return NULL;
15631562
}
1564-
#if 0
15651563
try_again:
1566-
#endif
15671564
al->map = map_groups__find(mg, al->addr);
15681565
if (al->map == NULL) {
15691566
/*
@@ -1575,15 +1572,13 @@ struct map *thread__find_map(struct thread *thread, u8 cpumode, u64 addr,
15751572
* "[vdso]" dso, but for now lets use the old trick of looking
15761573
* in the whole kernel symbol list.
15771574
*/
1578-
#if 0
15791575
if (cpumode == PERF_RECORD_MISC_USER && machine &&
15801576
mg != &machine->kmaps &&
15811577
machine__kernel_ip(machine, al->addr)) {
15821578
mg = &machine->kmaps;
15831579
load_map = true;
15841580
goto try_again;
15851581
}
1586-
#endif
15871582
} else {
15881583
/*
15891584
* Kernel maps might be changed when loading symbols so loading

0 commit comments

Comments
 (0)