mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
perf trace: Remove dead code
Several variables are not used at all, cut'n'paste leftovers. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Frédéric Weisbecker <fweisbec@gmail.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Mike Galbraith <efault@gmx.de> Cc: "H. Peter Anvin" <hpa@zytor.com> LKML-Reference: <20090928200818.GF3361@ghostprotocols.net> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
a80deb622d
commit
cad3071424
1 changed files with 0 additions and 28 deletions
|
@ -53,16 +53,12 @@ process_comm_event(event_t *event, unsigned long offset, unsigned long head)
|
||||||
static int
|
static int
|
||||||
process_sample_event(event_t *event, unsigned long offset, unsigned long head)
|
process_sample_event(event_t *event, unsigned long offset, unsigned long head)
|
||||||
{
|
{
|
||||||
char level;
|
|
||||||
int show = 0;
|
|
||||||
struct dso *dso = NULL;
|
|
||||||
struct thread *thread;
|
struct thread *thread;
|
||||||
u64 ip = event->ip.ip;
|
u64 ip = event->ip.ip;
|
||||||
u64 timestamp = -1;
|
u64 timestamp = -1;
|
||||||
u32 cpu = -1;
|
u32 cpu = -1;
|
||||||
u64 period = 1;
|
u64 period = 1;
|
||||||
void *more_data = event->ip.__more_data;
|
void *more_data = event->ip.__more_data;
|
||||||
int cpumode;
|
|
||||||
|
|
||||||
thread = threads__findnew(event->ip.pid, &threads, &last_match);
|
thread = threads__findnew(event->ip.pid, &threads, &last_match);
|
||||||
|
|
||||||
|
@ -98,30 +94,6 @@ process_sample_event(event_t *event, unsigned long offset, unsigned long head)
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
cpumode = event->header.misc & PERF_RECORD_MISC_CPUMODE_MASK;
|
|
||||||
|
|
||||||
if (cpumode == PERF_RECORD_MISC_KERNEL) {
|
|
||||||
show = SHOW_KERNEL;
|
|
||||||
level = 'k';
|
|
||||||
|
|
||||||
dso = kernel_dso;
|
|
||||||
|
|
||||||
dump_printf(" ...... dso: %s\n", dso->name);
|
|
||||||
|
|
||||||
} else if (cpumode == PERF_RECORD_MISC_USER) {
|
|
||||||
|
|
||||||
show = SHOW_USER;
|
|
||||||
level = '.';
|
|
||||||
|
|
||||||
} else {
|
|
||||||
show = SHOW_HV;
|
|
||||||
level = 'H';
|
|
||||||
|
|
||||||
dso = hypervisor_dso;
|
|
||||||
|
|
||||||
dump_printf(" ...... dso: [hypervisor]\n");
|
|
||||||
}
|
|
||||||
|
|
||||||
if (sample_type & PERF_SAMPLE_RAW) {
|
if (sample_type & PERF_SAMPLE_RAW) {
|
||||||
struct {
|
struct {
|
||||||
u32 size;
|
u32 size;
|
||||||
|
|
Loading…
Reference in a new issue