#else
{
/* Guess we need no more than 100 bytes. */
- int n, size = 100;
+ int n, size = 104;
char *p, *np;
va_list ap;
int ret;
+ size += ltt_align(size, sizeof(void*));
if ((p = malloc (size)) == NULL)
return -1;
va_end(ap);
/* If that worked, trace the string. */
if (n > -1 && n < size) {
- ret = trace_user_generic_slow_printf_param_buffer(p, n+1);
+ ret = trace_user_generic_slow_printf_param_buffer(p, n+1+ltt_align(n+1, sizeof(void*)));
free(p);
return ret;
}
size = n+1; /* precisely what is needed */
else /* glibc 2.0 */
size *= 2; /* twice the old size */
+ size += ltt_align(size, sizeof(void*));
if ((np = realloc (p, size)) == NULL) {
free(p);
return -1;
?_include_linux_ltt_ltt-facility-fs.h
?_include_linux_ltt_ltt-facility-fs_data.h
?_include_linux_ltt_ltt-facility-custom-fs_data.h
+?_include_linux_ltt_ltt-facility-custom-stack.h
?_include_linux_ltt_ltt-facility-id-core.h
?_include_linux_ltt_ltt-facility-id-fs.h
?_include_linux_ltt_ltt-facility-id-fs_data.h
?_include_linux_ltt_ltt-facility-id-network_ip_interface.h
?_include_linux_ltt_ltt-facility-id-process.h
?_include_linux_ltt_ltt-facility-id-socket.h
+?_include_linux_ltt_ltt-facility-id-stack.h
?_include_linux_ltt_ltt-facility-id-statedump.h
?_include_linux_ltt_ltt-facility-id-timer.h
?_include_linux_ltt_ltt-facility-ipc.h
?_include_linux_ltt_ltt-facility-network_ip_interface.h
?_include_linux_ltt_ltt-facility-process.h
?_include_linux_ltt_ltt-facility-socket.h
+?_include_linux_ltt_ltt-facility-stack.h
?_include_linux_ltt_ltt-facility-statedump.h
?_include_linux_ltt_ltt-facility-timer.h
?_include_asm-i386_ltt_ltt-facility-id-kernel_arch_i386.h
?_include_asm-i386_ltt_ltt-facility-kernel_arch_i386.h
-?_include_asm-i386_ltt_ltt-facility-custom-stack_arch_i386.h
-?_include_asm-i386_ltt_ltt-facility-id-stack_arch_i386.h
-?_include_asm-i386_ltt_ltt-facility-stack_arch_i386.h
+?_include_asm-i386_ltt_ltt-facility-custom-stack.h
?_include_asm-i386_ltt_ltt-facility-custom-locking.h
?_include_asm-arm_ltt_ltt-facility-id-kernel_arch_arm.h
?_include_asm-arm_ltt_ltt-facility-kernel_arch_arm.h
?_include_asm-ppc_ltt_ltt-facility-kernel_arch_ppc.h
?_include_asm-x86_64_ltt_ltt-facility-id-kernel_arch_x86_64.h
?_include_asm-x86_64_ltt_ltt-facility-kernel_arch_x86_64.h
+?_include_asm-x86_64_ltt_ltt-facility-custom-stack.h
?_include_asm-x86_64_ltt_ltt-facility-custom-locking.h"
for a in $IN; do wr $a $FILE; done
?_ltt_ltt-facility-loader-process.h
?_ltt_ltt-facility-loader-socket.c
?_ltt_ltt-facility-loader-socket.h
+?_ltt_ltt-facility-loader-stack.c
+?_ltt_ltt-facility-loader-stack.h
?_ltt_ltt-facility-loader-statedump.c
?_ltt_ltt-facility-loader-statedump.h
?_ltt_ltt-facility-loader-timer.c
?_ltt_ltt-facility-loader-timer.h
?_ltt_ltt-facility-loader-kernel_arch_i386.c
?_ltt_ltt-facility-loader-kernel_arch_i386.h
-?_ltt_ltt-facility-loader-stack_arch_i386.c
-?_ltt_ltt-facility-loader-stack_arch_i386.h
?_ltt_ltt-facility-loader-kernel_arch_arm.c
?_ltt_ltt-facility-loader-kernel_arch_arm.h
?_ltt_ltt-facility-loader-kernel_arch_mips.c
ifneq ($(KERNELRELEASE),)
ifneq ($(CONFIG_LTT),)
- obj-m += ltt-facility-loader-tests.o
- obj-m += test-time-probe.o
- obj-m += test-time-probe2.o
- obj-m += test-instrument-size-small.o
- obj-m += test-instrument-size-med.o
- obj-m += test-instrument-size-big.o
- obj-m += test-printk-effect.o
+# obj-m += ltt-facility-loader-tests.o
+# obj-m += test-time-probe.o
+# obj-m += test-time-probe2.o
+# obj-m += test-instrument-size-small.o
+# obj-m += test-instrument-size-med.o
+# obj-m += test-instrument-size-big.o
+# obj-m += test-printk-effect.o
endif
obj-m += test-cmpxchg.o
obj-m += test-cmpxchg-nolock.o
obj-m += test-spinlock.o
obj-m += test-inc.o
obj-m += test-inc-nolock.o
-
+ obj-m += test-kmalloc.o
+ obj-m += test-irqdis.o
else
KERNELDIR ?= /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)