forked from luck/tmp_suning_uos_patched
[S390] s390: remove DEBUG_MALLOC
The kernel now has kmemleak and kmemtrace so there's no reason to keep this ugly s390 hack around. I am not sure how it's supposed to work on SMP anyway as it uses a global variable to temporarily store the return value of all kmalloc() calls: void *b; #define kmalloc(x...) (PRINT_INFO(" kmalloc %p\n",b=kmalloc(x)),b) Cc: <linux-s390@vger.kernel.org> Cc: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
This commit is contained in:
parent
5c0792f692
commit
66d51f3e81
@ -248,14 +248,5 @@ int debug_unregister_view(debug_info_t* id, struct debug_view* view);
|
|||||||
#define PRINT_FATAL(x...) printk ( KERN_DEBUG PRINTK_HEADER x )
|
#define PRINT_FATAL(x...) printk ( KERN_DEBUG PRINTK_HEADER x )
|
||||||
#endif /* DASD_DEBUG */
|
#endif /* DASD_DEBUG */
|
||||||
|
|
||||||
#undef DEBUG_MALLOC
|
|
||||||
#ifdef DEBUG_MALLOC
|
|
||||||
void *b;
|
|
||||||
#define kmalloc(x...) (PRINT_INFO(" kmalloc %p\n",b=kmalloc(x)),b)
|
|
||||||
#define kfree(x) PRINT_INFO(" kfree %p\n",x);kfree(x)
|
|
||||||
#define get_zeroed_page(x...) (PRINT_INFO(" gfp %p\n",b=get_zeroed_page(x)),b)
|
|
||||||
#define __get_free_pages(x...) (PRINT_INFO(" gfps %p\n",b=__get_free_pages(x)),b)
|
|
||||||
#endif /* DEBUG_MALLOC */
|
|
||||||
|
|
||||||
#endif /* __KERNEL__ */
|
#endif /* __KERNEL__ */
|
||||||
#endif /* DEBUG_H */
|
#endif /* DEBUG_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user