Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 169793
b: refs/heads/master
c: 7703466
h: refs/heads/master
i:
  169791: c3074e2
v: v3
  • Loading branch information
Li Zefan authored and Ingo Molnar committed Nov 26, 2009
1 parent 87b2aae commit 2260c9d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 22 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: 382ece710bf88b08440b598731361e5a47582b62
refs/heads/master: 7703466b4c0a21b88d701882bef0d45bcb0a0281
36 changes: 15 additions & 21 deletions trunk/include/trace/events/power.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ enum {
};
#endif

TRACE_EVENT(power_start,
DECLARE_EVENT_CLASS(power,

TP_PROTO(unsigned int type, unsigned int state),

Expand All @@ -35,42 +35,36 @@ TRACE_EVENT(power_start,
TP_printk("type=%lu state=%lu", (unsigned long)__entry->type, (unsigned long)__entry->state)
);

TRACE_EVENT(power_end,

TP_PROTO(int dummy),
DEFINE_EVENT(power, power_start,

TP_ARGS(dummy),
TP_PROTO(unsigned int type, unsigned int state),

TP_STRUCT__entry(
__field( u64, dummy )
),
TP_ARGS(type, state)
);

TP_fast_assign(
__entry->dummy = 0xffff;
),
DEFINE_EVENT(power, power_frequency,

TP_printk("dummy=%lu", (unsigned long)__entry->dummy)
TP_PROTO(unsigned int type, unsigned int state),

TP_ARGS(type, state)
);

TRACE_EVENT(power_end,

TRACE_EVENT(power_frequency,

TP_PROTO(unsigned int type, unsigned int state),
TP_PROTO(int dummy),

TP_ARGS(type, state),
TP_ARGS(dummy),

TP_STRUCT__entry(
__field( u64, type )
__field( u64, state )
__field( u64, dummy )
),

TP_fast_assign(
__entry->type = type;
__entry->state = state;
__entry->dummy = 0xffff;
),

TP_printk("type=%lu state=%lu", (unsigned long)__entry->type, (unsigned long) __entry->state)
TP_printk("dummy=%lu", (unsigned long)__entry->dummy)

);

#endif /* _TRACE_POWER_H */
Expand Down

0 comments on commit 2260c9d

Please sign in to comment.