Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 182434
b: refs/heads/master
c: 86d8d29
h: refs/heads/master
v: v3
  • Loading branch information
Hitoshi Mitake authored and Ingo Molnar committed Jan 31, 2010
1 parent 944ef4e commit c7a37c7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a8e6f734ce9a79d44ebb296f2a341f435227b34e
refs/heads/master: 86d8d29634de4464d568e7c335c0da6cba64e8ab
9 changes: 9 additions & 0 deletions trunk/tools/perf/util/trace-event-parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -1925,6 +1925,15 @@ void *raw_field_ptr(struct event *event, const char *name, void *data)
if (!field)
return NULL;

if (field->flags & FIELD_IS_STRING) {
int offset;

offset = *(int *)(data + field->offset);
offset &= 0xffff;

return data + offset;
}

return data + field->offset;
}

Expand Down

0 comments on commit c7a37c7

Please sign in to comment.