Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 169791
b: refs/heads/master
c: c467307
h: refs/heads/master
i:
  169789: 16d1d8a
  169787: cf27442
  169783: b7cdc55
  169775: c9dc392
  169759: ddfb577
  169727: bee6342
v: v3
  • Loading branch information
Li Zefan authored and Ingo Molnar committed Nov 26, 2009
1 parent 3dd0ad3 commit c3074e2
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 26 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: 53d0422c2d10808fddb2c30859193bfea164c7e3
refs/heads/master: c467307c1a812c3150b27a68c2b2d3397bb40a4f
46 changes: 21 additions & 25 deletions trunk/include/trace/events/irq.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,18 +82,7 @@ TRACE_EVENT(irq_handler_exit,
__entry->irq, __entry->ret ? "handled" : "unhandled")
);

/**
* softirq_entry - called immediately before the softirq handler
* @h: pointer to struct softirq_action
* @vec: pointer to first struct softirq_action in softirq_vec array
*
* The @h parameter, contains a pointer to the struct softirq_action
* which has a pointer to the action handler that is called. By subtracting
* the @vec pointer from the @h pointer, we can determine the softirq
* number. Also, when used in combination with the softirq_exit tracepoint
* we can determine the softirq latency.
*/
TRACE_EVENT(softirq_entry,
DECLARE_EVENT_CLASS(softirq,

TP_PROTO(struct softirq_action *h, struct softirq_action *vec),

Expand All @@ -111,6 +100,24 @@ TRACE_EVENT(softirq_entry,
show_softirq_name(__entry->vec))
);

/**
* softirq_entry - called immediately before the softirq handler
* @h: pointer to struct softirq_action
* @vec: pointer to first struct softirq_action in softirq_vec array
*
* The @h parameter, contains a pointer to the struct softirq_action
* which has a pointer to the action handler that is called. By subtracting
* the @vec pointer from the @h pointer, we can determine the softirq
* number. Also, when used in combination with the softirq_exit tracepoint
* we can determine the softirq latency.
*/
DEFINE_EVENT(softirq, softirq_entry,

TP_PROTO(struct softirq_action *h, struct softirq_action *vec),

TP_ARGS(h, vec)
);

/**
* softirq_exit - called immediately after the softirq handler returns
* @h: pointer to struct softirq_action
Expand All @@ -122,22 +129,11 @@ TRACE_EVENT(softirq_entry,
* combination with the softirq_entry tracepoint we can determine the softirq
* latency.
*/
TRACE_EVENT(softirq_exit,
DEFINE_EVENT(softirq, softirq_exit,

TP_PROTO(struct softirq_action *h, struct softirq_action *vec),

TP_ARGS(h, vec),

TP_STRUCT__entry(
__field( int, vec )
),

TP_fast_assign(
__entry->vec = (int)(h - vec);
),

TP_printk("vec=%d [action=%s]", __entry->vec,
show_softirq_name(__entry->vec))
TP_ARGS(h, vec)
);

#endif /* _TRACE_IRQ_H */
Expand Down

0 comments on commit c3074e2

Please sign in to comment.