X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=linux_module%2Flockcheck.h;h=d80060bc9af5eff18f51d8a73dc377e89acf5d34;hb=d0aa5bd27c22a33f04f47363910f9773fdeab7eb;hp=2fd2e9267da9fce785dd28df95fe7752aaf8a6b1;hpb=49852ca1e8280641ffb7ef2986c03bd443bd02b8;p=palacios.git diff --git a/linux_module/lockcheck.h b/linux_module/lockcheck.h index 2fd2e92..d80060b 100644 --- a/linux_module/lockcheck.h +++ b/linux_module/lockcheck.h @@ -19,10 +19,14 @@ #define LOCKCHECK_INIT() palacios_lockcheck_init() #define LOCKCHECK_ALLOC(lock) palacios_lockcheck_alloc(lock) #define LOCKCHECK_FREE(lock) palacios_lockcheck_free(lock) -#define LOCKCHECK_LOCK(lock) palacios_lockcheck_lock(lock) -#define LOCKCHECK_UNLOCK(lock) palacios_lockcheck_unlock(lock) -#define LOCKCHECK_LOCK_IRQSAVE(lock, flags) palacios_lockcheck_lock_irqsave(lock,flags) -#define LOCKCHECK_UNLOCK_IRQRESTORE(lock, flags) palacios_lockcheck_unlock_irqrestore(lock,flags) +#define LOCKCHECK_LOCK_PRE(lock) +#define LOCKCHECK_LOCK_POST(lock) palacios_lockcheck_lock(lock) +#define LOCKCHECK_UNLOCK_PRE(lock) palacios_lockcheck_unlock(lock) +#define LOCKCHECK_UNLOCK_POST(lock) +#define LOCKCHECK_LOCK_IRQSAVE_PRE(lock, flags) +#define LOCKCHECK_LOCK_IRQSAVE_POST(lock, flags) palacios_lockcheck_lock_irqsave(lock,flags) +#define LOCKCHECK_UNLOCK_IRQRESTORE_PRE(lock, flags) palacios_lockcheck_unlock_irqrestore_pre(lock,flags) +#define LOCKCHECK_UNLOCK_IRQRESTORE_POST(lock, flags) palacios_lockcheck_unlock_irqrestore_post(lock,flags) #define LOCKCHECK_DEINIT() palacios_lockcheck_deinit() void palacios_lockcheck_init(void); @@ -31,7 +35,8 @@ void palacios_lockcheck_free(void *lock); void palacios_lockcheck_lock(void *lock); void palacios_lockcheck_unlock(void *lock); void palacios_lockcheck_lock_irqsave(void *lock,unsigned long flags); -void palacios_lockcheck_unlock_irqrestore(void *lock,unsigned long flags); +void palacios_lockcheck_unlock_irqrestore_pre(void *lock,unsigned long flags); +void palacios_lockcheck_unlock_irqrestore_post(void *lock,unsigned long flags); void palacios_lockcheck_deinit(void); #else @@ -42,10 +47,14 @@ void palacios_lockcheck_deinit(void); #define LOCKCHECK_INIT() #define LOCKCHECK_ALLOC(lock) #define LOCKCHECK_FREE(lock) -#define LOCKCHECK_LOCK(lock) -#define LOCKCHECK_UNLOCK(lock) -#define LOCKCHECK_LOCK_IRQSAVE(lock, flags) -#define LOCKCHECK_UNLOCK_IRQRESTORE(lock, flags) +#define LOCKCHECK_LOCK_PRE(lock) +#define LOCKCHECK_LOCK_POST(lock) +#define LOCKCHECK_UNLOCK_PRE(lock) +#define LOCKCHECK_UNLOCK_POST(lock) +#define LOCKCHECK_LOCK_IRQSAVE_PRE(lock, flags) +#define LOCKCHECK_LOCK_IRQSAVE_POST(lock, flags) +#define LOCKCHECK_UNLOCK_IRQRESTORE_PRE(lock, flags) +#define LOCKCHECK_UNLOCK_IRQRESTORE_POST(lock, flags) #define LOCKCHECK_DEINIT() #endif