diff options
Diffstat (limited to 'tools/perf/builtin-trace.c')
-rw-r--r-- | tools/perf/builtin-trace.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/tools/perf/builtin-trace.c b/tools/perf/builtin-trace.c index e9d256e2f47d..2f938887335a 100644 --- a/tools/perf/builtin-trace.c +++ b/tools/perf/builtin-trace.c | |||
@@ -53,16 +53,12 @@ process_comm_event(event_t *event, unsigned long offset, unsigned long head) | |||
53 | static int | 53 | static int |
54 | process_sample_event(event_t *event, unsigned long offset, unsigned long head) | 54 | process_sample_event(event_t *event, unsigned long offset, unsigned long head) |
55 | { | 55 | { |
56 | char level; | ||
57 | int show = 0; | ||
58 | struct dso *dso = NULL; | ||
59 | struct thread *thread; | 56 | struct thread *thread; |
60 | u64 ip = event->ip.ip; | 57 | u64 ip = event->ip.ip; |
61 | u64 timestamp = -1; | 58 | u64 timestamp = -1; |
62 | u32 cpu = -1; | 59 | u32 cpu = -1; |
63 | u64 period = 1; | 60 | u64 period = 1; |
64 | void *more_data = event->ip.__more_data; | 61 | void *more_data = event->ip.__more_data; |
65 | int cpumode; | ||
66 | 62 | ||
67 | thread = threads__findnew(event->ip.pid, &threads, &last_match); | 63 | thread = threads__findnew(event->ip.pid, &threads, &last_match); |
68 | 64 | ||
@@ -98,30 +94,6 @@ process_sample_event(event_t *event, unsigned long offset, unsigned long head) | |||
98 | return -1; | 94 | return -1; |
99 | } | 95 | } |
100 | 96 | ||
101 | cpumode = event->header.misc & PERF_RECORD_MISC_CPUMODE_MASK; | ||
102 | |||
103 | if (cpumode == PERF_RECORD_MISC_KERNEL) { | ||
104 | show = SHOW_KERNEL; | ||
105 | level = 'k'; | ||
106 | |||
107 | dso = kernel_dso; | ||
108 | |||
109 | dump_printf(" ...... dso: %s\n", dso->name); | ||
110 | |||
111 | } else if (cpumode == PERF_RECORD_MISC_USER) { | ||
112 | |||
113 | show = SHOW_USER; | ||
114 | level = '.'; | ||
115 | |||
116 | } else { | ||
117 | show = SHOW_HV; | ||
118 | level = 'H'; | ||
119 | |||
120 | dso = hypervisor_dso; | ||
121 | |||
122 | dump_printf(" ...... dso: [hypervisor]\n"); | ||
123 | } | ||
124 | |||
125 | if (sample_type & PERF_SAMPLE_RAW) { | 97 | if (sample_type & PERF_SAMPLE_RAW) { |
126 | struct { | 98 | struct { |
127 | u32 size; | 99 | u32 size; |