Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 156639
b: refs/heads/master
c: 304703a
h: refs/heads/master
i:
  156637: d2dd6f9
  156635: 0d9f874
  156631: 20d611b
  156623: 650de98
  156607: 8a41e2a
v: v3
  • Loading branch information
Frederic Weisbecker authored and Ingo Molnar committed Aug 10, 2009
1 parent 83f0fa9 commit e9c1439
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 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: a4e95fc2cbb31d70a65beffeaf8773f881328c34
refs/heads/master: 304703aba31a87903b8c0db8f5e6890cac2d596d
8 changes: 7 additions & 1 deletion trunk/include/trace/ftrace.h
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,12 @@ __attribute__((section("_ftrace_events"))) event_##call = { \
* pc = preempt_count();
*
* __data_size = ftrace_get_offsets_<call>(&__data_offsets, args);
* __entry_size = __data_size + sizeof(*entry);
*
* // Below we want to get the aligned size by taking into account
* // the u32 field that will later store the buffer size
* __entry_size = ALIGN(__data_size + sizeof(*entry) + sizeof(u32),
* sizeof(u64));
* __entry_size -= sizeof(u32);
*
* do {
* char raw_data[__entry_size]; <- allocate our sample in the stack
Expand Down Expand Up @@ -687,6 +692,7 @@ static void ftrace_profile_##call(proto) \
__data_size = ftrace_get_offsets_##call(&__data_offsets, args); \
__entry_size = ALIGN(__data_size + sizeof(*entry) + sizeof(u32),\
sizeof(u64)); \
__entry_size -= sizeof(u32); \
\
do { \
char raw_data[__entry_size]; \
Expand Down

0 comments on commit e9c1439

Please sign in to comment.