PRENAME=patch
NAME=-2.6.18-lttng-$1
ALL_NAME=${PRENAME}${NAME}-all.diff
-COUNT=1
+VALUE=1
+printf -v COUNT "%02d" ${VALUE}
rm -fr tmppatch
mkdir tmppatch
done
FILE=../${PRENAME}${COUNT}${NAME}-debugfs.diff
-COUNT=$(( ${COUNT} + 1 ))
+VALUE=$(( ${COUNT} + 1 ))
+printf -v COUNT "%02d" ${VALUE}
IN="?_fs_debugfs_inode.c"
for a in $IN; do wr $a $FILE; done
FILE=../${PRENAME}${COUNT}${NAME}-markers.diff
-COUNT=$(( ${COUNT} + 1 ))
+VALUE=$(( ${COUNT} + 1 ))
+printf -v COUNT "%02d" ${VALUE}
IN="?_include_asm-generic_vmlinux.lds.h
?_kernel_Kconfig.marker
FILE=../${PRENAME}${COUNT}${NAME}-facility-core-headers.diff
-COUNT=$(( ${COUNT} + 1 ))
+VALUE=$(( ${COUNT} + 1 ))
+printf -v COUNT "%02d" ${VALUE}
IN="?_include_ltt_ltt-facility-core.h
?_include_ltt_ltt-facility-id-core.h"
FILE=../${PRENAME}${COUNT}${NAME}-facility-loader-core.diff
-COUNT=$(( ${COUNT} + 1 ))
+VALUE=$(( ${COUNT} + 1 ))
+printf -v COUNT "%02d" ${VALUE}
IN="?_ltt_facilities_ltt-facility-loader-core.c
?_ltt_facilities_ltt-facility-loader-core.h
for a in $IN; do wr $a $FILE; done
FILE=../${PRENAME}${COUNT}${NAME}-facilities.diff
-COUNT=$(( ${COUNT} + 1 ))
+VALUE=$(( ${COUNT} + 1 ))
+printf -v COUNT "%02d" ${VALUE}
IN="?_include_linux_ltt-facilities.h
?_ltt_ltt-facilities.c"
FILE=../${PRENAME}${COUNT}${NAME}-timestamp.diff
-COUNT=$(( ${COUNT} + 1 ))
+VALUE=$(( ${COUNT} + 1 ))
+printf -v COUNT "%02d" ${VALUE}
IN="?_include_asm-alpha_ltt.h
?_include_asm-arm26_ltt.h
FILE=../${PRENAME}${COUNT}${NAME}-core-header.diff
-COUNT=$(( ${COUNT} + 1 ))
+VALUE=$(( ${COUNT} + 1 ))
+printf -v COUNT "%02d" ${VALUE}
IN="?_include_linux_ltt-core.h"
FILE=../${PRENAME}${COUNT}${NAME}-core.diff
-COUNT=$(( ${COUNT} + 1 ))
+VALUE=$(( ${COUNT} + 1 ))
+printf -v COUNT "%02d" ${VALUE}
IN="?_MAINTAINERS
?_ltt_ltt-core.c
for a in $IN; do wr $a $FILE; done
FILE=../${PRENAME}${COUNT}${NAME}-tracer-header.diff
-COUNT=$(( ${COUNT} + 1 ))
+VALUE=$(( ${COUNT} + 1 ))
+printf -v COUNT "%02d" ${VALUE}
IN="?_include_ltt_ltt-tracer.h"
FILE=../${PRENAME}${COUNT}${NAME}-tracer.diff
-COUNT=$(( ${COUNT} + 1 ))
+VALUE=$(( ${COUNT} + 1 ))
+printf -v COUNT "%02d" ${VALUE}
IN="?_ltt_ltt-tracer.c"
FILE=../${PRENAME}${COUNT}${NAME}-transport.diff
-COUNT=$(( ${COUNT} + 1 ))
+VALUE=$(( ${COUNT} + 1 ))
+printf -v COUNT "%02d" ${VALUE}
IN="?_ltt_ltt-relay.c
?_Documentation_ioctl-number.txt"
FILE=../${PRENAME}${COUNT}${NAME}-netlink-control.diff
-COUNT=$(( ${COUNT} + 1 ))
+VALUE=$(( ${COUNT} + 1 ))
+printf -v COUNT "%02d" ${VALUE}
IN="?_ltt_ltt-control.c
?_ltt_ltt-control.h
FILE=../${PRENAME}${COUNT}${NAME}-userspace-tracing.diff
-COUNT=$(( ${COUNT} + 1 ))
+VALUE=$(( ${COUNT} + 1 ))
+printf -v COUNT "%02d" ${VALUE}
IN="?_include_linux_sched.h
?_kernel_sys_ni.c
for a in $IN; do wr $a $FILE; done
FILE=../${PRENAME}${COUNT}${NAME}-instrumentation-arm.diff
-COUNT=$(( ${COUNT} + 1 ))
+VALUE=$(( ${COUNT} + 1 ))
+printf -v COUNT "%02d" ${VALUE}
IN="?_arch_arm_kernel_calls.S
?_arch_arm_kernel_entry-common.S
for a in $IN; do wr $a $FILE; done
FILE=../${PRENAME}${COUNT}${NAME}-instrumentation-i386.diff
-COUNT=$(( ${COUNT} + 1 ))
+VALUE=$(( ${COUNT} + 1 ))
+printf -v COUNT "%02d" ${VALUE}
IN="?_arch_i386_kernel_process.c
?_arch_i386_kernel_ptrace.c
for a in $IN; do wr $a $FILE; done
FILE=../${PRENAME}${COUNT}${NAME}-instrumentation-mips.diff
-COUNT=$(( ${COUNT} + 1 ))
+VALUE=$(( ${COUNT} + 1 ))
+printf -v COUNT "%02d" ${VALUE}
IN="?_arch_mips_kernel_irq.c
?_arch_mips_kernel_process.c
FILE=../${PRENAME}${COUNT}${NAME}-instrumentation-powerpc.diff
-COUNT=$(( ${COUNT} + 1 ))
+VALUE=$(( ${COUNT} + 1 ))
+printf -v COUNT "%02d" ${VALUE}
IN="?_arch_powerpc_kernel_entry_32.S
?_arch_powerpc_kernel_irq.c
FILE=../${PRENAME}${COUNT}${NAME}-instrumentation-ppc.diff
-COUNT=$(( ${COUNT} + 1 ))
+VALUE=$(( ${COUNT} + 1 ))
+printf -v COUNT "%02d" ${VALUE}
IN="?_arch_ppc_Kconfig
?_arch_ppc_kernel_misc.S
FILE=../${PRENAME}${COUNT}${NAME}-instrumentation-x86_64.diff
-COUNT=$(( ${COUNT} + 1 ))
+VALUE=$(( ${COUNT} + 1 ))
+printf -v COUNT "%02d" ${VALUE}
IN="?_arch_x86_64_ia32_ia32entry.S
?_arch_x86_64_ia32_ipc32.c
for a in $IN; do wr $a $FILE; done
FILE=../${PRENAME}${COUNT}${NAME}-instrumentation.diff
-COUNT=$(( ${COUNT} + 1 ))
+VALUE=$(( ${COUNT} + 1 ))
+printf -v COUNT "%02d" ${VALUE}
IN="?_fs_buffer.c
?_fs_compat.c
for a in $IN; do wr $a $FILE; done
FILE=../${PRENAME}${COUNT}${NAME}-facilities-probes-headers.diff
-COUNT=$(( ${COUNT} + 1 ))
+VALUE=$(( ${COUNT} + 1 ))
+printf -v COUNT "%02d" ${VALUE}
IN="?_include_ltt_ltt-facility-custom-fs_data.h
?_include_ltt_ltt-facility-custom-stack_arch_i386.h
FILE=../${PRENAME}${COUNT}${NAME}-facilities-probes.diff
-COUNT=$(( ${COUNT} + 1 ))
+VALUE=$(( ${COUNT} + 1 ))
+printf -v COUNT "%02d" ${VALUE}
IN="?_ltt_facilities_ltt-facility-loader-fs.c
?_ltt_facilities_ltt-facility-loader-fs_data.c
FILE=../${PRENAME}${COUNT}${NAME}-probes.diff
-COUNT=$(( ${COUNT} + 1 ))
+VALUE=$(( ${COUNT} + 1 ))
+printf -v COUNT "%02d" ${VALUE}
IN="?_ltt_probes_ltt-probe-arm.c
?_ltt_probes_ltt-probe-fs.c
for a in $IN; do wr $a $FILE; done
FILE=../${PRENAME}${COUNT}${NAME}-statedump.diff
-COUNT=$(( ${COUNT} + 1 ))
+VALUE=$(( ${COUNT} + 1 ))
+printf -v COUNT "%02d" ${VALUE}
IN="?_ltt_ltt-statedump.c"
FILE=../${PRENAME}${COUNT}${NAME}-build.diff
-COUNT=$(( ${COUNT} + 1 ))
+VALUE=$(( ${COUNT} + 1 ))
+printf -v COUNT "%02d" ${VALUE}
IN="?_Makefile
?_kernel_Makefile