Skip to content
This repository has been archived by the owner on Sep 30, 2019. It is now read-only.

Commit

Permalink
sparc: Revert unintended perf changes.
Browse files Browse the repository at this point in the history
Some local debugging hacks accidently slipped into the VDSO commit.

Sorry!

Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
davem330 committed Oct 18, 2018
1 parent 62d6f3b commit 27faeeb
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions tools/perf/util/event.c
Original file line number Diff line number Diff line change
Expand Up @@ -1081,7 +1081,6 @@ void *cpu_map_data__alloc(struct cpu_map *map, size_t *size, u16 *type, int *max
}

*size += sizeof(struct cpu_map_data);
*size = PERF_ALIGN(*size, sizeof(u64));
return zalloc(*size);
}

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

return NULL;
}
#if 0
try_again:
#endif
al->map = map_groups__find(mg, al->addr);
if (al->map == NULL) {
/*
Expand All @@ -1575,15 +1572,13 @@ struct map *thread__find_map(struct thread *thread, u8 cpumode, u64 addr,
* "[vdso]" dso, but for now lets use the old trick of looking
* in the whole kernel symbol list.
*/
#if 0
if (cpumode == PERF_RECORD_MISC_USER && machine &&
mg != &machine->kmaps &&
machine__kernel_ip(machine, al->addr)) {
mg = &machine->kmaps;
load_map = true;
goto try_again;
}
#endif
} else {
/*
* Kernel maps might be changed when loading symbols so loading
Expand Down

0 comments on commit 27faeeb

Please sign in to comment.