Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 305512
b: refs/heads/master
c: 6a11f92
h: refs/heads/master
v: v3
  • Loading branch information
Jiri Olsa authored and Arnaldo Carvalho de Melo committed May 22, 2012
1 parent 7be1809 commit 7a68cab
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 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: e108c66e2c458f89931189a63a67ad16880d7f51
refs/heads/master: 6a11f92ef449bfb87f93e7cc14cb2a717afc7aa3
10 changes: 2 additions & 8 deletions trunk/tools/perf/util/evsel.c
Original file line number Diff line number Diff line change
Expand Up @@ -462,10 +462,7 @@ int perf_event__parse_sample(const union perf_event *event, u64 type,
* used for cross-endian analysis. See git commit 65014ab3
* for why this goofiness is needed.
*/
union {
u64 val64;
u32 val32[2];
} u;
union u64_swap u;

memset(data, 0, sizeof(*data));
data->cpu = data->pid = data->tid = -1;
Expand Down Expand Up @@ -608,10 +605,7 @@ int perf_event__synthesize_sample(union perf_event *event, u64 type,
* used for cross-endian analysis. See git commit 65014ab3
* for why this goofiness is needed.
*/
union {
u64 val64;
u32 val32[2];
} u;
union u64_swap u;

array = event->sample.array;

Expand Down
5 changes: 5 additions & 0 deletions trunk/tools/perf/util/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,9 @@ typedef signed short s16;
typedef unsigned char u8;
typedef signed char s8;

union u64_swap {
u64 val64;
u32 val32[2];
};

#endif /* __PERF_TYPES_H */

0 comments on commit 7a68cab

Please sign in to comment.