~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to include/trace/lockdep.h

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef _LTTNG_TRACE_LOCKDEP_H
2
 
#define _LTTNG_TRACE_LOCKDEP_H
3
 
 
4
 
#include <linux/lockdep.h>
5
 
#include <linux/tracepoint.h>
6
 
 
7
 
/*
8
 
 * lockdep tracing must be very careful with respect to reentrancy.
9
 
 *
10
 
 * It should not use immediate values for activation because it involves
11
 
 * traps called when the code patching is done.
12
 
 */
13
 
DECLARE_TRACE(lockdep_hardirqs_on,
14
 
        TP_PROTO(unsigned long retaddr),
15
 
                TP_ARGS(retaddr));
16
 
DECLARE_TRACE(lockdep_hardirqs_off,
17
 
        TP_PROTO(unsigned long retaddr),
18
 
                TP_ARGS(retaddr));
19
 
DECLARE_TRACE(lockdep_softirqs_on,
20
 
        TP_PROTO(unsigned long retaddr),
21
 
                TP_ARGS(retaddr));
22
 
DECLARE_TRACE(lockdep_softirqs_off,
23
 
        TP_PROTO(unsigned long retaddr),
24
 
                TP_ARGS(retaddr));
25
 
 
26
 
/* FIXME : some duplication with lockdep TRACE EVENTs */
27
 
DECLARE_TRACE(lockdep_lock_acquire,
28
 
        TP_PROTO(unsigned long retaddr, unsigned int subclass,
29
 
                        struct lockdep_map *lock, int trylock, int read,
30
 
                        int hardirqs_off),
31
 
                TP_ARGS(retaddr, subclass, lock, trylock, read, hardirqs_off));
32
 
DECLARE_TRACE(lockdep_lock_release,
33
 
        TP_PROTO(unsigned long retaddr, struct lockdep_map *lock, int nested),
34
 
                TP_ARGS(retaddr, lock, nested));
35
 
 
36
 
 
37
 
#endif /* _LTTNG_TRACE_LOCKDEP_H */