X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=scripts%2Flttng-6-split-script.sh;h=9877910f779b12099330b7e801a115f4133404d8;hb=b903145cd6c85dedd3dc7f6bbd58389694a05abc;hp=8a2738abe715080d3af5437f2c1d41797dac3cb6;hpb=8110caff4c78ada3e51e0c35b7495443830d4a37;p=lttv.git diff --git a/scripts/lttng-6-split-script.sh b/scripts/lttng-6-split-script.sh index 8a2738ab..9877910f 100755 --- a/scripts/lttng-6-split-script.sh +++ b/scripts/lttng-6-split-script.sh @@ -12,7 +12,7 @@ function wr () { PRENAME=patch -NAME=-2.6.18-lttng-$1 +NAME=-2.6.20-rc6-lttng-$1 ALL_NAME=${PRENAME}${NAME}-all.diff VALUE=1 printf -v COUNT "%02d" ${VALUE} @@ -34,36 +34,87 @@ for a in *; do rm $a.tmp; done -FILE=../${PRENAME}${COUNT}${NAME}-debugfs.diff +#for hotplug +FILE=../${PRENAME}${COUNT}${NAME}-relay.diff VALUE=$(( ${VALUE} + 1 )) printf -v COUNT "%02d" ${VALUE} -IN="?_fs_debugfs_inode.c" +IN="?_include_linux_relay.h +?_kernel_relay.c +?_Documentation_filesystems_relay.txt +?_block_blktrace.c" for a in $IN; do wr $a $FILE; done -FILE=../${PRENAME}${COUNT}${NAME}-markers.diff +#kprobes + +for a in $IN; do wr $a $FILE; done + +FILE=../${PRENAME}${COUNT}${NAME}-kprobes.diff +VALUE=$(( ${VALUE} + 1 )) +printf -v COUNT "%02d" ${VALUE} + +IN="?_include_linux_kprobes.h +?_arch_i386_kernel_kprobes.c +?_kernel_kprobes.c" + +#Markers + +FILE=../${PRENAME}${COUNT}${NAME}-markers-kconfig.part1.diff +VALUE=$(( ${VALUE} + 1 )) +printf -v COUNT "%02d" ${VALUE} + +IN="?_kernel_Kconfig.marker" + +for a in $IN; do wr $a $FILE; done + + +FILE=../${PRENAME}${COUNT}${NAME}-markers-generic.part1.diff VALUE=$(( ${VALUE} + 1 )) printf -v COUNT "%02d" ${VALUE} IN="?_include_asm-generic_vmlinux.lds.h -?_kernel_Kconfig.marker ?_include_linux_module.h -?_include_linux_marker.h -?_include_asm-arm_marker.h +?_include_linux_marker.h" + +for a in $IN; do wr $a $FILE; done + + +FILE=../${PRENAME}${COUNT}${NAME}-markers-i386.diff +VALUE=$(( ${VALUE} + 1 )) +printf -v COUNT "%02d" ${VALUE} + +IN="?_include_asm-i386_marker.h +?_arch_i386_kernel_marker.c" + +for a in $IN; do wr $a $FILE; done + + + +FILE=../${PRENAME}${COUNT}${NAME}-markers-powerpc.diff +VALUE=$(( ${VALUE} + 1 )) +printf -v COUNT "%02d" ${VALUE} + +IN="?_include_asm-powerpc_marker.h" + +for a in $IN; do wr $a $FILE; done + + +FILE=../${PRENAME}${COUNT}${NAME}-markers-non-opt-arch.diff +VALUE=$(( ${VALUE} + 1 )) +printf -v COUNT "%02d" ${VALUE} + +IN="?_include_asm-arm_marker.h ?_include_asm-cris_marker.h ?_include_asm-frv_marker.h ?_include_asm-generic_marker.h ?_include_asm-h8300_marker.h -?_include_asm-i386_marker.h ?_include_asm-ia64_marker.h ?_include_asm-m32r_marker.h ?_include_asm-m68k_marker.h ?_include_asm-m68knommu_marker.h ?_include_asm-mips_marker.h ?_include_asm-parisc_marker.h -?_include_asm-powerpc_marker.h -?_include_asm-ppc64_marker.h ?_include_asm-ppc_marker.h ?_include_asm-s390_marker.h ?_include_asm-sh64_marker.h @@ -78,23 +129,185 @@ IN="?_include_asm-generic_vmlinux.lds.h for a in $IN; do wr $a $FILE; done -FILE=../${PRENAME}${COUNT}${NAME}-facility-core-headers.diff + +#atomic + +FILE=../${PRENAME}${COUNT}${NAME}-atomic-alpha.diff VALUE=$(( ${VALUE} + 1 )) printf -v COUNT "%02d" ${VALUE} -IN="?_include_ltt_ltt-facility-core.h -?_include_ltt_ltt-facility-id-core.h" +IN="?_include_asm-alpha_atomic.h" for a in $IN; do wr $a $FILE; done -FILE=../${PRENAME}${COUNT}${NAME}-facility-loader-core.diff +FILE=../${PRENAME}${COUNT}${NAME}-atomic-generic-atomic_long.diff VALUE=$(( ${VALUE} + 1 )) printf -v COUNT "%02d" ${VALUE} -IN="?_ltt_facilities_ltt-facility-loader-core.c -?_ltt_facilities_ltt-facility-loader-core.h -?_ltt_facilities_Makefile" +IN="?_include_asm-generic_atomic.h" + +for a in $IN; do wr $a $FILE; done + + +FILE=../${PRENAME}${COUNT}${NAME}-atomic-i386.diff +VALUE=$(( ${VALUE} + 1 )) +printf -v COUNT "%02d" ${VALUE} + +IN="?_include_asm-i386_atomic.h" + +for a in $IN; do wr $a $FILE; done + +FILE=../${PRENAME}${COUNT}${NAME}-atomic-ia64.diff +VALUE=$(( ${VALUE} + 1 )) +printf -v COUNT "%02d" ${VALUE} + +IN="?_include_asm-ia64_atomic.h" + +for a in $IN; do wr $a $FILE; done + + +FILE=../${PRENAME}${COUNT}${NAME}-atomic-mips.diff +VALUE=$(( ${VALUE} + 1 )) +printf -v COUNT "%02d" ${VALUE} + +IN="?_include_asm-mips_atomic.h" + +for a in $IN; do wr $a $FILE; done + + +FILE=../${PRENAME}${COUNT}${NAME}-atomic-parisc.diff +VALUE=$(( ${VALUE} + 1 )) +printf -v COUNT "%02d" ${VALUE} + +IN="?_include_asm-parisc_atomic.h" + +for a in $IN; do wr $a $FILE; done + +FILE=../${PRENAME}${COUNT}${NAME}-atomic-powerpc.diff +VALUE=$(( ${VALUE} + 1 )) +printf -v COUNT "%02d" ${VALUE} + +IN="?_include_asm-powerpc_atomic.h" + +for a in $IN; do wr $a $FILE; done + + +FILE=../${PRENAME}${COUNT}${NAME}-atomic-sparc64.diff +VALUE=$(( ${VALUE} + 1 )) +printf -v COUNT "%02d" ${VALUE} + +IN="?_include_asm-sparc64_atomic.h" + +for a in $IN; do wr $a $FILE; done + + +FILE=../${PRENAME}${COUNT}${NAME}-atomic-x86_64.diff +VALUE=$(( ${VALUE} + 1 )) +printf -v COUNT "%02d" ${VALUE} + +IN="?_include_asm-x86_64_atomic.h" + +for a in $IN; do wr $a $FILE; done + + + +#local + +FILE=../${PRENAME}${COUNT}${NAME}-local-generic.diff +VALUE=$(( ${VALUE} + 1 )) +printf -v COUNT "%02d" ${VALUE} + +IN="?_include_asm-generic_local.h" + +for a in $IN; do wr $a $FILE; done + + +FILE=../${PRENAME}${COUNT}${NAME}-local-alpha.diff +VALUE=$(( ${VALUE} + 1 )) +printf -v COUNT "%02d" ${VALUE} + +IN="?_include_asm-alpha_local.h +?_include_asm-alpha_system.h" + +for a in $IN; do wr $a $FILE; done + + +FILE=../${PRENAME}${COUNT}${NAME}-local-i386.diff +VALUE=$(( ${VALUE} + 1 )) +printf -v COUNT "%02d" ${VALUE} + +IN="?_include_asm-i386_local.h +?_include_asm-i386_system.h" + +for a in $IN; do wr $a $FILE; done + + +FILE=../${PRENAME}${COUNT}${NAME}-local-ia64.diff +VALUE=$(( ${VALUE} + 1 )) +printf -v COUNT "%02d" ${VALUE} + +IN="?_include_asm-ia64_local.h" + +for a in $IN; do wr $a $FILE; done + + +FILE=../${PRENAME}${COUNT}${NAME}-local-mips.diff +VALUE=$(( ${VALUE} + 1 )) +printf -v COUNT "%02d" ${VALUE} + +IN="?_include_asm-mips_local.h +?_include_asm-mips_system.h" + +for a in $IN; do wr $a $FILE; done + + +FILE=../${PRENAME}${COUNT}${NAME}-local-parisc.diff +VALUE=$(( ${VALUE} + 1 )) +printf -v COUNT "%02d" ${VALUE} + +IN="?_include_asm-parisc_local.h" + +for a in $IN; do wr $a $FILE; done + + +FILE=../${PRENAME}${COUNT}${NAME}-local-powerpc.diff +VALUE=$(( ${VALUE} + 1 )) +printf -v COUNT "%02d" ${VALUE} + +IN="?_include_asm-powerpc_local.h +?_include_asm-powerpc_system.h" + +for a in $IN; do wr $a $FILE; done + + +FILE=../${PRENAME}${COUNT}${NAME}-local-s390.diff +VALUE=$(( ${VALUE} + 1 )) +printf -v COUNT "%02d" ${VALUE} + +IN="?_include_asm-s390_local.h" + +for a in $IN; do wr $a $FILE; done + + +FILE=../${PRENAME}${COUNT}${NAME}-local-sparc64.diff +VALUE=$(( ${VALUE} + 1 )) +printf -v COUNT "%02d" ${VALUE} + +IN="?_include_asm-sparc64_local.h" + +for a in $IN; do wr $a $FILE; done + + +FILE=../${PRENAME}${COUNT}${NAME}-local-x86_64.diff +VALUE=$(( ${VALUE} + 1 )) +printf -v COUNT "%02d" ${VALUE} + +IN="?_include_asm-x86_64_local.h +?_include_asm-x86_64_system.h" + + +#facilities for a in $IN; do wr $a $FILE; done @@ -107,6 +320,27 @@ IN="?_include_linux_ltt-facilities.h for a in $IN; do wr $a $FILE; done +FILE=../${PRENAME}${COUNT}${NAME}-facility-core-headers.diff +VALUE=$(( ${VALUE} + 1 )) +printf -v COUNT "%02d" ${VALUE} + +IN="?_include_ltt_ltt-facility-core.h +?_include_ltt_ltt-facility-id-core.h +?_include_ltt_ltt-facility-select-core.h" + +for a in $IN; do wr $a $FILE; done + + +FILE=../${PRENAME}${COUNT}${NAME}-facility-loader-core.diff +VALUE=$(( ${VALUE} + 1 )) +printf -v COUNT "%02d" ${VALUE} + +IN="?_ltt_facilities_ltt-facility-loader-core.c +?_ltt_facilities_ltt-facility-loader-core.h +?_ltt_facilities_Makefile" + +for a in $IN; do wr $a $FILE; done + FILE=../${PRENAME}${COUNT}${NAME}-timestamp.diff VALUE=$(( ${VALUE} + 1 )) @@ -125,7 +359,6 @@ IN="?_include_asm-alpha_ltt.h ?_include_asm-m68k_ltt.h ?_include_asm-m68knommu_ltt.h ?_include_asm-mips_ltt.h -?_include_asm-mips_mipsregs.h ?_include_asm-mips_timex.h ?_arch_mips_kernel_time.c ?_include_asm-parisc_ltt.h @@ -213,9 +446,11 @@ IN="?_include_linux_sched.h ?_ltt_ltt-syscall.c ?_kernel_exit.c ?_kernel_fork.c +?_include_asm-arm_unistd.h ?_include_asm-i386_unistd.h +?_include_asm-mips_unistd.h ?_include_asm-powerpc_unistd.h -?_include_asm-x86_64_ia32_unistd.h +?_include_asm-powerpc_systbl.h ?_include_asm-x86_64_unistd.h" for a in $IN; do wr $a $FILE; done @@ -244,7 +479,8 @@ IN="?_arch_i386_kernel_process.c ?_arch_i386_kernel_syscall_table.S ?_arch_i386_kernel_sys_i386.c ?_arch_i386_kernel_time.c -?_arch_i386_kernel_traps.c" +?_arch_i386_kernel_traps.c +?_arch_i386_mm_fault.c" for a in $IN; do wr $a $FILE; done @@ -252,15 +488,17 @@ FILE=../${PRENAME}${COUNT}${NAME}-instrumentation-mips.diff VALUE=$(( ${VALUE} + 1 )) printf -v COUNT "%02d" ${VALUE} -IN="?_arch_mips_kernel_irq.c -?_arch_mips_kernel_process.c +IN="?_arch_mips_kernel_process.c ?_arch_mips_kernel_ptrace.c ?_arch_mips_kernel_syscall.c -?_arch_mips_kernel_time.c ?_arch_mips_kernel_traps.c ?_arch_mips_kernel_unaligned.c -?_arch_mips_mm_fault.c -?_include_asm-mips_mipsregs.h" +?_include_asm-mips_mipsregs.h +?_arch_mips_kernel_scall32-o32.S +?_arch_mips_kernel_scall64-64.S +?_arch_mips_kernel_scall64-n32.S +?_arch_mips_kernel_scall64-o32.S +?_arch_mips_mm_fault.c" for a in $IN; do wr $a $FILE; done @@ -270,8 +508,7 @@ FILE=../${PRENAME}${COUNT}${NAME}-instrumentation-powerpc.diff VALUE=$(( ${VALUE} + 1 )) printf -v COUNT "%02d" ${VALUE} -IN="?_arch_powerpc_kernel_entry_32.S -?_arch_powerpc_kernel_irq.c +IN="?_arch_powerpc_kernel_irq.c ?_arch_powerpc_kernel_misc_32.S ?_arch_powerpc_kernel_misc_64.S ?_arch_powerpc_kernel_ppc_ksyms.c @@ -279,7 +516,6 @@ IN="?_arch_powerpc_kernel_entry_32.S ?_arch_powerpc_kernel_prom.c ?_arch_powerpc_kernel_ptrace.c ?_arch_powerpc_kernel_syscalls.c -?_arch_powerpc_kernel_systbl.S ?_arch_powerpc_kernel_time.c ?_arch_powerpc_kernel_traps.c ?_arch_powerpc_mm_fault.c" @@ -291,8 +527,7 @@ FILE=../${PRENAME}${COUNT}${NAME}-instrumentation-ppc.diff VALUE=$(( ${VALUE} + 1 )) printf -v COUNT "%02d" ${VALUE} -IN="?_arch_ppc_Kconfig -?_arch_ppc_kernel_misc.S +IN="?_arch_ppc_kernel_misc.S ?_arch_ppc_kernel_time.c ?_arch_ppc_kernel_traps.c ?_arch_ppc_mm_fault.c" @@ -308,6 +543,7 @@ printf -v COUNT "%02d" ${VALUE} IN="?_arch_x86_64_ia32_ia32entry.S ?_arch_x86_64_ia32_ipc32.c ?_arch_x86_64_kernel_entry.S +?_arch_x86_64_kernel_process.c ?_arch_x86_64_kernel_ptrace.c ?_arch_x86_64_kernel_time.c ?_arch_x86_64_kernel_traps.c @@ -315,6 +551,7 @@ IN="?_arch_x86_64_ia32_ia32entry.S for a in $IN; do wr $a $FILE; done + FILE=../${PRENAME}${COUNT}${NAME}-instrumentation.diff VALUE=$(( ${VALUE} + 1 )) printf -v COUNT "%02d" ${VALUE} @@ -332,9 +569,7 @@ IN="?_fs_buffer.c ?_kernel_irq_handle.c ?_kernel_itimer.c ?_kernel_kthread.c -?_kernel_Makefile ?_kernel_lockdep.c -?_kernel_module.c ?_kernel_printk.c ?_kernel_sched.c ?_kernel_signal.c @@ -350,6 +585,17 @@ IN="?_fs_buffer.c for a in $IN; do wr $a $FILE; done + +FILE=../${PRENAME}${COUNT}${NAME}-instrumentation-markers.tosplit.diff +VALUE=$(( ${VALUE} + 1 )) +printf -v COUNT "%02d" ${VALUE} + +IN="?_kernel_module.c" + +for a in $IN; do wr $a $FILE; done + + + FILE=../${PRENAME}${COUNT}${NAME}-facilities-probes-headers.diff VALUE=$(( ${VALUE} + 1 )) printf -v COUNT "%02d" ${VALUE} @@ -393,7 +639,6 @@ IN="?_include_ltt_ltt-facility-custom-fs_data.h ?_include_ltt_ltt-facility-network.h ?_include_ltt_ltt-facility-network_ip_interface.h ?_include_ltt_ltt-facility-process.h -?_include_ltt_ltt-facility-select-core.h ?_include_ltt_ltt-facility-select-default.h ?_include_ltt_ltt-facility-select-kernel.h ?_include_ltt_ltt-facility-select-network_ip_interface.h @@ -402,7 +647,8 @@ IN="?_include_ltt_ltt-facility-custom-fs_data.h ?_include_ltt_ltt-facility-socket.h ?_include_ltt_ltt-facility-stack.h ?_include_ltt_ltt-facility-statedump.h -?_include_ltt_ltt-facility-timer.h" +?_include_ltt_ltt-facility-timer.h +?_include_ltt_ltt-stack.h" for a in $IN; do wr $a $FILE; done @@ -443,14 +689,13 @@ IN="?_ltt_facilities_ltt-facility-loader-fs.c ?_ltt_facilities_ltt-facility-loader-process.h ?_ltt_facilities_ltt-facility-loader-socket.c ?_ltt_facilities_ltt-facility-loader-socket.h -?_ltt_facilities_ltt-facility-loader-stack_arch_i386.c -?_ltt_facilities_ltt-facility-loader-stack_arch_i386.h ?_ltt_facilities_ltt-facility-loader-stack.c ?_ltt_facilities_ltt-facility-loader-stack.h ?_ltt_facilities_ltt-facility-loader-statedump.c ?_ltt_facilities_ltt-facility-loader-statedump.h ?_ltt_facilities_ltt-facility-loader-timer.c -?_ltt_facilities_ltt-facility-loader-timer.h" +?_ltt_facilities_ltt-facility-loader-timer.h +?_ltt_ltt-stack.c" for a in $IN; do wr $a $FILE; done @@ -486,12 +731,11 @@ IN="?_ltt_ltt-statedump.c" for a in $IN; do wr $a $FILE; done -FILE=../${PRENAME}${COUNT}${NAME}-build.diff +FILE=../${PRENAME}${COUNT}${NAME}-build.tosplit.diff VALUE=$(( ${VALUE} + 1 )) printf -v COUNT "%02d" ${VALUE} IN="?_Makefile -?_kernel_Makefile ?_ltt_Kconfig ?_ltt_Makefile ?_arch_alpha_Kconfig