Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 175395
b: refs/heads/master
c: 028c515
h: refs/heads/master
i:
  175393: af70054
  175391: 82648f9
v: v3
  • Loading branch information
OGAWA Hirofumi authored and Ingo Molnar committed Dec 6, 2009
1 parent 4489026 commit 3fa6222
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: be2bf0a2dfbba785860284968fa055006eb1610e
refs/heads/master: 028c515253761084c6594bf9ac9b194b51d87065
12 changes: 8 additions & 4 deletions trunk/tools/perf/builtin-timechart.c
Original file line number Diff line number Diff line change
Expand Up @@ -302,12 +302,11 @@ process_exit_event(event_t *event)
}

struct trace_entry {
u32 size;
unsigned short type;
unsigned char flags;
unsigned char preempt_count;
int pid;
int tgid;
int lock_depth;
};

struct power_entry {
Expand Down Expand Up @@ -489,6 +488,7 @@ process_sample_event(event_t *event)
u64 stamp = 0;
u32 cpu = 0;
u32 pid = 0;
u32 size, *size_ptr;
struct trace_entry *te;

if (sample_type & PERF_SAMPLE_IP)
Expand Down Expand Up @@ -518,9 +518,13 @@ process_sample_event(event_t *event)
if (sample_type & PERF_SAMPLE_PERIOD)
cursor++;

te = (void *)&event->sample.array[cursor];
size_ptr = (void *)&event->sample.array[cursor];

if (sample_type & PERF_SAMPLE_RAW && te->size > 0) {
size = *size_ptr;
size_ptr++;

te = (void *)size_ptr;
if (sample_type & PERF_SAMPLE_RAW && size > 0) {
char *event_str;
struct power_entry *pe;

Expand Down

0 comments on commit 3fa6222

Please sign in to comment.