From: Mathieu Desnoyers This patch also includes marker code for non optimized architectures. Signed-off-by: Mathieu Desnoyers Signed-off-by: Andrew Morton --- include/asm-arm/marker.h | 13 +++++++++++++ include/asm-cris/marker.h | 13 +++++++++++++ include/asm-frv/marker.h | 13 +++++++++++++ include/asm-generic/marker.h | 30 ++++++++++++++++++++++++++++++ include/asm-h8300/marker.h | 13 +++++++++++++ include/asm-ia64/marker.h | 13 +++++++++++++ include/asm-m32r/marker.h | 13 +++++++++++++ include/asm-m68k/marker.h | 13 +++++++++++++ include/asm-m68knommu/marker.h | 13 +++++++++++++ include/asm-mips/marker.h | 13 +++++++++++++ include/asm-parisc/marker.h | 13 +++++++++++++ include/asm-ppc/marker.h | 13 +++++++++++++ include/asm-s390/marker.h | 13 +++++++++++++ include/asm-sh/marker.h | 13 +++++++++++++ include/asm-sh64/marker.h | 13 +++++++++++++ include/asm-sparc/marker.h | 13 +++++++++++++ include/asm-sparc64/marker.h | 13 +++++++++++++ include/asm-um/marker.h | 13 +++++++++++++ include/asm-v850/marker.h | 13 +++++++++++++ include/asm-x86_64/marker.h | 13 +++++++++++++ include/asm-xtensa/marker.h | 13 +++++++++++++ 21 files changed, 290 insertions(+) diff -puN /dev/null include/asm-arm/marker.h --- /dev/null +++ a/include/asm-arm/marker.h @@ -0,0 +1,13 @@ +/* + * marker.h + * + * Code markup for dynamic and static tracing. Architecture specific + * optimisations. + * + * No optimisation implemented. + * + * This file is released under the GPLv2. + * See the file COPYING for more details. + */ + +#include diff -puN /dev/null include/asm-cris/marker.h --- /dev/null +++ a/include/asm-cris/marker.h @@ -0,0 +1,13 @@ +/* + * marker.h + * + * Code markup for dynamic and static tracing. Architecture specific + * optimisations. + * + * No optimisation implemented. + * + * This file is released under the GPLv2. + * See the file COPYING for more details. + */ + +#include diff -puN /dev/null include/asm-frv/marker.h --- /dev/null +++ a/include/asm-frv/marker.h @@ -0,0 +1,13 @@ +/* + * marker.h + * + * Code markup for dynamic and static tracing. Architecture specific + * optimisations. + * + * No optimisation implemented. + * + * This file is released under the GPLv2. + * See the file COPYING for more details. + */ + +#include diff -puN /dev/null include/asm-generic/marker.h --- /dev/null +++ a/include/asm-generic/marker.h @@ -0,0 +1,30 @@ +#ifndef _ASM_GENERIC_MARKER_H +#define _ASM_GENERIC_MARKER_H + +/* + * marker.h + * + * Code markup for dynamic and static tracing. Generic header. + * + * This file is released under the GPLv2. + * See the file COPYING for more details. + * + * Note : the empty asm volatile with read constraint is used here instead of a + * "used" attribute to fix a gcc 4.1.x bug. + */ + +#define _MF_DEFAULT (_MF_LOCKDEP | _MF_PRINTK) + +#define MARK_OPTIMIZED MARK_GENERIC +#define _MARK MARK_GENERIC +#define MARK(format, args...) _MARK(_MF_DEFAULT, format, ## args) + +#define MARK_OPTIMIZED_ENABLE_IMMEDIATE_OFFSET \ + MARK_GENERIC_ENABLE_IMMEDIATE_OFFSET +#define MARK_OPTIMIZED_ENABLE_TYPE MARK_GENERIC_ENABLE_TYPE +/* Dereference enable as lvalue from a pointer to its instruction */ +#define MARK_OPTIMIZED_ENABLE MARK_GENERIC_ENABLE + +#define marker_optimized_set_enable marker_generic_set_enable + +#endif /* _ASM_GENERIC_MARKER_H */ diff -puN /dev/null include/asm-h8300/marker.h --- /dev/null +++ a/include/asm-h8300/marker.h @@ -0,0 +1,13 @@ +/* + * marker.h + * + * Code markup for dynamic and static tracing. Architecture specific + * optimisations. + * + * No optimisation implemented. + * + * This file is released under the GPLv2. + * See the file COPYING for more details. + */ + +#include diff -puN /dev/null include/asm-ia64/marker.h --- /dev/null +++ a/include/asm-ia64/marker.h @@ -0,0 +1,13 @@ +/* + * marker.h + * + * Code markup for dynamic and static tracing. Architecture specific + * optimisations. + * + * No optimisation implemented. + * + * This file is released under the GPLv2. + * See the file COPYING for more details. + */ + +#include diff -puN /dev/null include/asm-m32r/marker.h --- /dev/null +++ a/include/asm-m32r/marker.h @@ -0,0 +1,13 @@ +/* + * marker.h + * + * Code markup for dynamic and static tracing. Architecture specific + * optimisations. + * + * No optimisation implemented. + * + * This file is released under the GPLv2. + * See the file COPYING for more details. + */ + +#include diff -puN /dev/null include/asm-m68k/marker.h --- /dev/null +++ a/include/asm-m68k/marker.h @@ -0,0 +1,13 @@ +/* + * marker.h + * + * Code markup for dynamic and static tracing. Architecture specific + * optimisations. + * + * No optimisation implemented. + * + * This file is released under the GPLv2. + * See the file COPYING for more details. + */ + +#include diff -puN /dev/null include/asm-m68knommu/marker.h --- /dev/null +++ a/include/asm-m68knommu/marker.h @@ -0,0 +1,13 @@ +/* + * marker.h + * + * Code markup for dynamic and static tracing. Architecture specific + * optimisations. + * + * No optimisation implemented. + * + * This file is released under the GPLv2. + * See the file COPYING for more details. + */ + +#include diff -puN /dev/null include/asm-mips/marker.h --- /dev/null +++ a/include/asm-mips/marker.h @@ -0,0 +1,13 @@ +/* + * marker.h + * + * Code markup for dynamic and static tracing. Architecture specific + * optimisations. + * + * No optimisation implemented. + * + * This file is released under the GPLv2. + * See the file COPYING for more details. + */ + +#include diff -puN /dev/null include/asm-parisc/marker.h --- /dev/null +++ a/include/asm-parisc/marker.h @@ -0,0 +1,13 @@ +/* + * marker.h + * + * Code markup for dynamic and static tracing. Architecture specific + * optimisations. + * + * No optimisation implemented. + * + * This file is released under the GPLv2. + * See the file COPYING for more details. + */ + +#include diff -puN /dev/null include/asm-ppc/marker.h --- /dev/null +++ a/include/asm-ppc/marker.h @@ -0,0 +1,13 @@ +/* + * marker.h + * + * Code markup for dynamic and static tracing. Architecture specific + * optimisations. + * + * No optimisation implemented. + * + * This file is released under the GPLv2. + * See the file COPYING for more details. + */ + +#include diff -puN /dev/null include/asm-s390/marker.h --- /dev/null +++ a/include/asm-s390/marker.h @@ -0,0 +1,13 @@ +/* + * marker.h + * + * Code markup for dynamic and static tracing. Architecture specific + * optimisations. + * + * No optimisation implemented. + * + * This file is released under the GPLv2. + * See the file COPYING for more details. + */ + +#include diff -puN /dev/null include/asm-sh/marker.h --- /dev/null +++ a/include/asm-sh/marker.h @@ -0,0 +1,13 @@ +/* + * marker.h + * + * Code markup for dynamic and static tracing. Architecture specific + * optimisations. + * + * No optimisation implemented. + * + * This file is released under the GPLv2. + * See the file COPYING for more details. + */ + +#include diff -puN /dev/null include/asm-sh64/marker.h --- /dev/null +++ a/include/asm-sh64/marker.h @@ -0,0 +1,13 @@ +/* + * marker.h + * + * Code markup for dynamic and static tracing. Architecture specific + * optimisations. + * + * No optimisation implemented. + * + * This file is released under the GPLv2. + * See the file COPYING for more details. + */ + +#include diff -puN /dev/null include/asm-sparc/marker.h --- /dev/null +++ a/include/asm-sparc/marker.h @@ -0,0 +1,13 @@ +/* + * marker.h + * + * Code markup for dynamic and static tracing. Architecture specific + * optimisations. + * + * No optimisation implemented. + * + * This file is released under the GPLv2. + * See the file COPYING for more details. + */ + +#include diff -puN /dev/null include/asm-sparc64/marker.h --- /dev/null +++ a/include/asm-sparc64/marker.h @@ -0,0 +1,13 @@ +/* + * marker.h + * + * Code markup for dynamic and static tracing. Architecture specific + * optimisations. + * + * No optimisation implemented. + * + * This file is released under the GPLv2. + * See the file COPYING for more details. + */ + +#include diff -puN /dev/null include/asm-um/marker.h --- /dev/null +++ a/include/asm-um/marker.h @@ -0,0 +1,13 @@ +/* + * marker.h + * + * Code markup for dynamic and static tracing. Architecture specific + * optimisations. + * + * No optimisation implemented. + * + * This file is released under the GPLv2. + * See the file COPYING for more details. + */ + +#include diff -puN /dev/null include/asm-v850/marker.h --- /dev/null +++ a/include/asm-v850/marker.h @@ -0,0 +1,13 @@ +/* + * marker.h + * + * Code markup for dynamic and static tracing. Architecture specific + * optimisations. + * + * No optimisation implemented. + * + * This file is released under the GPLv2. + * See the file COPYING for more details. + */ + +#include diff -puN /dev/null include/asm-x86_64/marker.h --- /dev/null +++ a/include/asm-x86_64/marker.h @@ -0,0 +1,13 @@ +/* + * marker.h + * + * Code markup for dynamic and static tracing. Architecture specific + * optimisations. + * + * No optimisation implemented. + * + * This file is released under the GPLv2. + * See the file COPYING for more details. + */ + +#include diff -puN /dev/null include/asm-xtensa/marker.h --- /dev/null +++ a/include/asm-xtensa/marker.h @@ -0,0 +1,13 @@ +/* + * marker.h + * + * Code markup for dynamic and static tracing. Architecture specific + * optimisations. + * + * No optimisation implemented. + * + * This file is released under the GPLv2. + * See the file COPYING for more details. + */ + +#include _