| 1 | #!/bin/sh |
| 2 | # LTTng patch creation |
| 3 | # Creates a -all patch, and split it. |
| 4 | # Mathieu Desnoyers, october 2005 |
| 5 | #$1 is the version |
| 6 | |
| 7 | function wr () { |
| 8 | |
| 9 | cat $1 >> $2 |
| 10 | |
| 11 | } |
| 12 | |
| 13 | |
| 14 | PRENAME=patch |
| 15 | NAME=-2.6.20-lttng-$1 |
| 16 | ALL_NAME=${PRENAME}${NAME}-all.diff |
| 17 | VALUE=1 |
| 18 | printf -v COUNT "%02d" ${VALUE} |
| 19 | |
| 20 | rm -fr tmppatch |
| 21 | mkdir tmppatch |
| 22 | |
| 23 | cd tmppatch |
| 24 | |
| 25 | cp ../$ALL_NAME . |
| 26 | |
| 27 | splitdiff -a -d $ALL_NAME |
| 28 | |
| 29 | rm $ALL_NAME |
| 30 | |
| 31 | for a in *; do |
| 32 | cp $a $a.tmp; |
| 33 | grep -v -e "^diff --git " -e "^new file mode " -e "^index " $a.tmp > $a |
| 34 | rm $a.tmp; |
| 35 | done |
| 36 | |
| 37 | #hotfix 2.6.20 |
| 38 | FILE=../${PRENAME}${COUNT}${NAME}-hotfix.diff |
| 39 | VALUE=$(( ${VALUE} + 1 )) |
| 40 | printf -v COUNT "%02d" ${VALUE} |
| 41 | |
| 42 | IN="?_arch_powerpc_kernel_prom_parse.c |
| 43 | ?_include_powerpc_prom.h |
| 44 | ?_include_asm-sparc64_tlb.h |
| 45 | ?_kernel_time_clocksource.c |
| 46 | ?_include_asm-ppc_ocp.h |
| 47 | ?_arch_ppc_kernel_ppc_ksyms.c" |
| 48 | |
| 49 | for a in $IN; do wr $a $FILE; done |
| 50 | |
| 51 | |
| 52 | #for hotplug |
| 53 | FILE=../${PRENAME}${COUNT}${NAME}-relay.diff |
| 54 | VALUE=$(( ${VALUE} + 1 )) |
| 55 | printf -v COUNT "%02d" ${VALUE} |
| 56 | |
| 57 | IN="?_include_linux_relay.h |
| 58 | ?_kernel_relay.c |
| 59 | ?_Documentation_filesystems_relay.txt |
| 60 | ?_block_blktrace.c" |
| 61 | |
| 62 | for a in $IN; do wr $a $FILE; done |
| 63 | |
| 64 | #kprobes |
| 65 | |
| 66 | for a in $IN; do wr $a $FILE; done |
| 67 | |
| 68 | FILE=../${PRENAME}${COUNT}${NAME}-kprobes.diff |
| 69 | VALUE=$(( ${VALUE} + 1 )) |
| 70 | printf -v COUNT "%02d" ${VALUE} |
| 71 | |
| 72 | IN="?_include_linux_kprobes.h |
| 73 | ?_arch_i386_kernel_kprobes.c |
| 74 | ?_kernel_kprobes.c" |
| 75 | |
| 76 | #Markers |
| 77 | |
| 78 | FILE=../${PRENAME}${COUNT}${NAME}-markers-kconfig.part1.diff |
| 79 | VALUE=$(( ${VALUE} + 1 )) |
| 80 | printf -v COUNT "%02d" ${VALUE} |
| 81 | |
| 82 | IN="?_kernel_Kconfig.marker" |
| 83 | |
| 84 | for a in $IN; do wr $a $FILE; done |
| 85 | |
| 86 | |
| 87 | FILE=../${PRENAME}${COUNT}${NAME}-markers-generic.part1.diff |
| 88 | VALUE=$(( ${VALUE} + 1 )) |
| 89 | printf -v COUNT "%02d" ${VALUE} |
| 90 | |
| 91 | IN="?_include_asm-generic_vmlinux.lds.h |
| 92 | ?_include_linux_module.h |
| 93 | ?_include_linux_marker.h" |
| 94 | |
| 95 | for a in $IN; do wr $a $FILE; done |
| 96 | |
| 97 | |
| 98 | FILE=../${PRENAME}${COUNT}${NAME}-markers-i386.diff |
| 99 | VALUE=$(( ${VALUE} + 1 )) |
| 100 | printf -v COUNT "%02d" ${VALUE} |
| 101 | |
| 102 | IN="?_include_asm-i386_marker.h |
| 103 | ?_arch_i386_kernel_marker.c |
| 104 | ?_arch_i386_kernel_Makefile" |
| 105 | |
| 106 | for a in $IN; do wr $a $FILE; done |
| 107 | |
| 108 | |
| 109 | |
| 110 | FILE=../${PRENAME}${COUNT}${NAME}-markers-powerpc.diff |
| 111 | VALUE=$(( ${VALUE} + 1 )) |
| 112 | printf -v COUNT "%02d" ${VALUE} |
| 113 | |
| 114 | IN="?_include_asm-powerpc_marker.h" |
| 115 | |
| 116 | for a in $IN; do wr $a $FILE; done |
| 117 | |
| 118 | |
| 119 | FILE=../${PRENAME}${COUNT}${NAME}-markers-non-opt-arch.diff |
| 120 | VALUE=$(( ${VALUE} + 1 )) |
| 121 | printf -v COUNT "%02d" ${VALUE} |
| 122 | |
| 123 | IN="?_include_asm-arm_marker.h |
| 124 | ?_include_asm-cris_marker.h |
| 125 | ?_include_asm-frv_marker.h |
| 126 | ?_include_asm-generic_marker.h |
| 127 | ?_include_asm-h8300_marker.h |
| 128 | ?_include_asm-ia64_marker.h |
| 129 | ?_include_asm-m32r_marker.h |
| 130 | ?_include_asm-m68k_marker.h |
| 131 | ?_include_asm-m68knommu_marker.h |
| 132 | ?_include_asm-mips_marker.h |
| 133 | ?_include_asm-parisc_marker.h |
| 134 | ?_include_asm-ppc_marker.h |
| 135 | ?_include_asm-s390_marker.h |
| 136 | ?_include_asm-sh64_marker.h |
| 137 | ?_include_asm-sh_marker.h |
| 138 | ?_include_asm-sparc64_marker.h |
| 139 | ?_include_asm-sparc_marker.h |
| 140 | ?_include_asm-um_marker.h |
| 141 | ?_include_asm-v850_marker.h |
| 142 | ?_include_asm-x86_64_marker.h |
| 143 | ?_include_asm-xtensa_marker.h" |
| 144 | |
| 145 | for a in $IN; do wr $a $FILE; done |
| 146 | |
| 147 | |
| 148 | #atomic |
| 149 | |
| 150 | FILE=../${PRENAME}${COUNT}${NAME}-atomic-alpha.diff |
| 151 | VALUE=$(( ${VALUE} + 1 )) |
| 152 | printf -v COUNT "%02d" ${VALUE} |
| 153 | |
| 154 | IN="?_include_asm-alpha_atomic.h" |
| 155 | |
| 156 | for a in $IN; do wr $a $FILE; done |
| 157 | |
| 158 | |
| 159 | FILE=../${PRENAME}${COUNT}${NAME}-atomic-generic-atomic_long.diff |
| 160 | VALUE=$(( ${VALUE} + 1 )) |
| 161 | printf -v COUNT "%02d" ${VALUE} |
| 162 | |
| 163 | IN="?_include_asm-generic_atomic.h" |
| 164 | |
| 165 | for a in $IN; do wr $a $FILE; done |
| 166 | |
| 167 | |
| 168 | FILE=../${PRENAME}${COUNT}${NAME}-atomic-i386.diff |
| 169 | VALUE=$(( ${VALUE} + 1 )) |
| 170 | printf -v COUNT "%02d" ${VALUE} |
| 171 | |
| 172 | IN="?_include_asm-i386_atomic.h" |
| 173 | |
| 174 | for a in $IN; do wr $a $FILE; done |
| 175 | |
| 176 | FILE=../${PRENAME}${COUNT}${NAME}-atomic-ia64.diff |
| 177 | VALUE=$(( ${VALUE} + 1 )) |
| 178 | printf -v COUNT "%02d" ${VALUE} |
| 179 | |
| 180 | IN="?_include_asm-ia64_atomic.h" |
| 181 | |
| 182 | for a in $IN; do wr $a $FILE; done |
| 183 | |
| 184 | |
| 185 | FILE=../${PRENAME}${COUNT}${NAME}-atomic-mips.diff |
| 186 | VALUE=$(( ${VALUE} + 1 )) |
| 187 | printf -v COUNT "%02d" ${VALUE} |
| 188 | |
| 189 | IN="?_include_asm-mips_atomic.h" |
| 190 | |
| 191 | for a in $IN; do wr $a $FILE; done |
| 192 | |
| 193 | |
| 194 | FILE=../${PRENAME}${COUNT}${NAME}-atomic-parisc.diff |
| 195 | VALUE=$(( ${VALUE} + 1 )) |
| 196 | printf -v COUNT "%02d" ${VALUE} |
| 197 | |
| 198 | IN="?_include_asm-parisc_atomic.h" |
| 199 | |
| 200 | for a in $IN; do wr $a $FILE; done |
| 201 | |
| 202 | FILE=../${PRENAME}${COUNT}${NAME}-atomic-powerpc.diff |
| 203 | VALUE=$(( ${VALUE} + 1 )) |
| 204 | printf -v COUNT "%02d" ${VALUE} |
| 205 | |
| 206 | IN="?_include_asm-powerpc_atomic.h |
| 207 | ?_include_asm-powerpc_bitops.h |
| 208 | ?_include_asm-powerpc_system.h" |
| 209 | |
| 210 | for a in $IN; do wr $a $FILE; done |
| 211 | |
| 212 | |
| 213 | FILE=../${PRENAME}${COUNT}${NAME}-atomic-sparc64.diff |
| 214 | VALUE=$(( ${VALUE} + 1 )) |
| 215 | printf -v COUNT "%02d" ${VALUE} |
| 216 | |
| 217 | IN="?_include_asm-sparc64_atomic.h" |
| 218 | |
| 219 | for a in $IN; do wr $a $FILE; done |
| 220 | |
| 221 | FILE=../${PRENAME}${COUNT}${NAME}-atomic-s390.diff |
| 222 | VALUE=$(( ${VALUE} + 1 )) |
| 223 | printf -v COUNT "%02d" ${VALUE} |
| 224 | |
| 225 | IN="?_include_asm-s390_atomic.h" |
| 226 | |
| 227 | for a in $IN; do wr $a $FILE; done |
| 228 | |
| 229 | FILE=../${PRENAME}${COUNT}${NAME}-atomic-x86_64.diff |
| 230 | VALUE=$(( ${VALUE} + 1 )) |
| 231 | printf -v COUNT "%02d" ${VALUE} |
| 232 | |
| 233 | IN="?_include_asm-x86_64_atomic.h" |
| 234 | |
| 235 | for a in $IN; do wr $a $FILE; done |
| 236 | |
| 237 | |
| 238 | |
| 239 | #local |
| 240 | |
| 241 | FILE=../${PRENAME}${COUNT}${NAME}-local-generic.diff |
| 242 | VALUE=$(( ${VALUE} + 1 )) |
| 243 | printf -v COUNT "%02d" ${VALUE} |
| 244 | |
| 245 | IN="?_include_asm-generic_local.h" |
| 246 | |
| 247 | for a in $IN; do wr $a $FILE; done |
| 248 | |
| 249 | |
| 250 | FILE=../${PRENAME}${COUNT}${NAME}-local-alpha.diff |
| 251 | VALUE=$(( ${VALUE} + 1 )) |
| 252 | printf -v COUNT "%02d" ${VALUE} |
| 253 | |
| 254 | IN="?_include_asm-alpha_local.h |
| 255 | ?_include_asm-alpha_system.h" |
| 256 | |
| 257 | for a in $IN; do wr $a $FILE; done |
| 258 | |
| 259 | |
| 260 | FILE=../${PRENAME}${COUNT}${NAME}-local-i386.diff |
| 261 | VALUE=$(( ${VALUE} + 1 )) |
| 262 | printf -v COUNT "%02d" ${VALUE} |
| 263 | |
| 264 | IN="?_include_asm-i386_local.h |
| 265 | ?_include_asm-i386_system.h" |
| 266 | |
| 267 | for a in $IN; do wr $a $FILE; done |
| 268 | |
| 269 | |
| 270 | FILE=../${PRENAME}${COUNT}${NAME}-local-ia64.diff |
| 271 | VALUE=$(( ${VALUE} + 1 )) |
| 272 | printf -v COUNT "%02d" ${VALUE} |
| 273 | |
| 274 | IN="?_include_asm-ia64_local.h" |
| 275 | |
| 276 | for a in $IN; do wr $a $FILE; done |
| 277 | |
| 278 | |
| 279 | FILE=../${PRENAME}${COUNT}${NAME}-local-mips.diff |
| 280 | VALUE=$(( ${VALUE} + 1 )) |
| 281 | printf -v COUNT "%02d" ${VALUE} |
| 282 | |
| 283 | IN="?_include_asm-mips_local.h |
| 284 | ?_include_asm-mips_system.h" |
| 285 | |
| 286 | for a in $IN; do wr $a $FILE; done |
| 287 | |
| 288 | |
| 289 | FILE=../${PRENAME}${COUNT}${NAME}-local-parisc.diff |
| 290 | VALUE=$(( ${VALUE} + 1 )) |
| 291 | printf -v COUNT "%02d" ${VALUE} |
| 292 | |
| 293 | IN="?_include_asm-parisc_local.h" |
| 294 | |
| 295 | for a in $IN; do wr $a $FILE; done |
| 296 | |
| 297 | |
| 298 | FILE=../${PRENAME}${COUNT}${NAME}-local-powerpc.diff |
| 299 | VALUE=$(( ${VALUE} + 1 )) |
| 300 | printf -v COUNT "%02d" ${VALUE} |
| 301 | |
| 302 | IN="?_include_asm-powerpc_local.h |
| 303 | ?_include_asm-powerpc_system.h" |
| 304 | |
| 305 | for a in $IN; do wr $a $FILE; done |
| 306 | |
| 307 | |
| 308 | FILE=../${PRENAME}${COUNT}${NAME}-local-s390.diff |
| 309 | VALUE=$(( ${VALUE} + 1 )) |
| 310 | printf -v COUNT "%02d" ${VALUE} |
| 311 | |
| 312 | IN="?_include_asm-s390_local.h" |
| 313 | |
| 314 | for a in $IN; do wr $a $FILE; done |
| 315 | |
| 316 | |
| 317 | FILE=../${PRENAME}${COUNT}${NAME}-local-sparc64.diff |
| 318 | VALUE=$(( ${VALUE} + 1 )) |
| 319 | printf -v COUNT "%02d" ${VALUE} |
| 320 | |
| 321 | IN="?_include_asm-sparc64_local.h" |
| 322 | |
| 323 | for a in $IN; do wr $a $FILE; done |
| 324 | |
| 325 | |
| 326 | FILE=../${PRENAME}${COUNT}${NAME}-local-x86_64.diff |
| 327 | VALUE=$(( ${VALUE} + 1 )) |
| 328 | printf -v COUNT "%02d" ${VALUE} |
| 329 | |
| 330 | IN="?_include_asm-x86_64_local.h |
| 331 | ?_include_asm-x86_64_system.h" |
| 332 | |
| 333 | |
| 334 | #facilities |
| 335 | |
| 336 | for a in $IN; do wr $a $FILE; done |
| 337 | |
| 338 | FILE=../${PRENAME}${COUNT}${NAME}-facilities.diff |
| 339 | VALUE=$(( ${VALUE} + 1 )) |
| 340 | printf -v COUNT "%02d" ${VALUE} |
| 341 | |
| 342 | IN="?_include_linux_ltt-facilities.h |
| 343 | ?_ltt_ltt-facilities.c" |
| 344 | |
| 345 | for a in $IN; do wr $a $FILE; done |
| 346 | |
| 347 | FILE=../${PRENAME}${COUNT}${NAME}-facility-core-headers.diff |
| 348 | VALUE=$(( ${VALUE} + 1 )) |
| 349 | printf -v COUNT "%02d" ${VALUE} |
| 350 | |
| 351 | IN="?_include_ltt_ltt-facility-core.h |
| 352 | ?_include_ltt_ltt-facility-id-core.h |
| 353 | ?_include_ltt_ltt-facility-select-core.h" |
| 354 | |
| 355 | for a in $IN; do wr $a $FILE; done |
| 356 | |
| 357 | |
| 358 | FILE=../${PRENAME}${COUNT}${NAME}-facility-loader-core.diff |
| 359 | VALUE=$(( ${VALUE} + 1 )) |
| 360 | printf -v COUNT "%02d" ${VALUE} |
| 361 | |
| 362 | IN="?_ltt_facilities_ltt-facility-loader-core.c |
| 363 | ?_ltt_facilities_ltt-facility-loader-core.h |
| 364 | ?_ltt_facilities_Makefile" |
| 365 | |
| 366 | for a in $IN; do wr $a $FILE; done |
| 367 | |
| 368 | |
| 369 | FILE=../${PRENAME}${COUNT}${NAME}-timestamp.diff |
| 370 | VALUE=$(( ${VALUE} + 1 )) |
| 371 | printf -v COUNT "%02d" ${VALUE} |
| 372 | |
| 373 | IN="?_include_asm-alpha_ltt.h |
| 374 | ?_include_asm-arm26_ltt.h |
| 375 | ?_include_asm-arm_ltt.h |
| 376 | ?_include_asm-cris_ltt.h |
| 377 | ?_include_asm-frv_ltt.h |
| 378 | ?_include_asm-generic_ltt.h |
| 379 | ?_include_asm-h8300_ltt.h |
| 380 | ?_include_asm-i386_ltt.h |
| 381 | ?_include_asm-ia64_ltt.h |
| 382 | ?_include_asm-m32r_ltt.h |
| 383 | ?_include_asm-m68k_ltt.h |
| 384 | ?_include_asm-m68knommu_ltt.h |
| 385 | ?_include_asm-mips_ltt.h |
| 386 | ?_include_asm-mips_timex.h |
| 387 | ?_arch_mips_kernel_time.c |
| 388 | ?_include_asm-parisc_ltt.h |
| 389 | ?_include_asm-powerpc_ltt.h |
| 390 | ?_include_asm-ppc_ltt.h |
| 391 | ?_include_asm-s390_ltt.h |
| 392 | ?_include_asm-sh64_ltt.h |
| 393 | ?_include_asm-sh_ltt.h |
| 394 | ?_include_asm-sparc64_ltt.h |
| 395 | ?_include_asm-sparc_ltt.h |
| 396 | ?_include_asm-um_ltt.h |
| 397 | ?_include_asm-v850_ltt.h |
| 398 | ?_include_asm-x86_64_ltt.h |
| 399 | ?_include_asm-xtensa_ltt.h" |
| 400 | |
| 401 | for a in $IN; do wr $a $FILE; done |
| 402 | |
| 403 | |
| 404 | FILE=../${PRENAME}${COUNT}${NAME}-core-header.diff |
| 405 | VALUE=$(( ${VALUE} + 1 )) |
| 406 | printf -v COUNT "%02d" ${VALUE} |
| 407 | |
| 408 | IN="?_include_linux_ltt-core.h" |
| 409 | |
| 410 | for a in $IN; do wr $a $FILE; done |
| 411 | |
| 412 | |
| 413 | FILE=../${PRENAME}${COUNT}${NAME}-core.diff |
| 414 | VALUE=$(( ${VALUE} + 1 )) |
| 415 | printf -v COUNT "%02d" ${VALUE} |
| 416 | |
| 417 | IN="?_MAINTAINERS |
| 418 | ?_ltt_ltt-core.c |
| 419 | ?_ltt_ltt-heartbeat.c" |
| 420 | |
| 421 | for a in $IN; do wr $a $FILE; done |
| 422 | |
| 423 | FILE=../${PRENAME}${COUNT}${NAME}-tracer-header.diff |
| 424 | VALUE=$(( ${VALUE} + 1 )) |
| 425 | printf -v COUNT "%02d" ${VALUE} |
| 426 | |
| 427 | IN="?_include_ltt_ltt-tracer.h" |
| 428 | |
| 429 | for a in $IN; do wr $a $FILE; done |
| 430 | |
| 431 | |
| 432 | FILE=../${PRENAME}${COUNT}${NAME}-tracer.diff |
| 433 | VALUE=$(( ${VALUE} + 1 )) |
| 434 | printf -v COUNT "%02d" ${VALUE} |
| 435 | |
| 436 | IN="?_ltt_ltt-tracer.c" |
| 437 | |
| 438 | for a in $IN; do wr $a $FILE; done |
| 439 | |
| 440 | |
| 441 | |
| 442 | FILE=../${PRENAME}${COUNT}${NAME}-transport.diff |
| 443 | VALUE=$(( ${VALUE} + 1 )) |
| 444 | printf -v COUNT "%02d" ${VALUE} |
| 445 | |
| 446 | IN="?_ltt_ltt-relay.c |
| 447 | ?_Documentation_ioctl-number.txt" |
| 448 | |
| 449 | for a in $IN; do wr $a $FILE; done |
| 450 | |
| 451 | |
| 452 | |
| 453 | FILE=../${PRENAME}${COUNT}${NAME}-netlink-control.diff |
| 454 | VALUE=$(( ${VALUE} + 1 )) |
| 455 | printf -v COUNT "%02d" ${VALUE} |
| 456 | |
| 457 | IN="?_ltt_ltt-control.c |
| 458 | ?_ltt_ltt-control.h |
| 459 | ?_include_linux_netlink.h" |
| 460 | |
| 461 | for a in $IN; do wr $a $FILE; done |
| 462 | |
| 463 | |
| 464 | FILE=../${PRENAME}${COUNT}${NAME}-userspace-tracing.diff |
| 465 | VALUE=$(( ${VALUE} + 1 )) |
| 466 | printf -v COUNT "%02d" ${VALUE} |
| 467 | |
| 468 | IN="?_include_linux_sched.h |
| 469 | ?_kernel_sys_ni.c |
| 470 | ?_ltt_ltt-syscall.c |
| 471 | ?_kernel_exit.c |
| 472 | ?_kernel_fork.c |
| 473 | ?_include_asm-arm_unistd.h |
| 474 | ?_include_asm-i386_unistd.h |
| 475 | ?_include_asm-mips_unistd.h |
| 476 | ?_include_asm-powerpc_unistd.h |
| 477 | ?_include_asm-powerpc_systbl.h |
| 478 | ?_include_asm-x86_64_unistd.h" |
| 479 | |
| 480 | for a in $IN; do wr $a $FILE; done |
| 481 | |
| 482 | FILE=../${PRENAME}${COUNT}${NAME}-instrumentation-arm.diff |
| 483 | VALUE=$(( ${VALUE} + 1 )) |
| 484 | printf -v COUNT "%02d" ${VALUE} |
| 485 | |
| 486 | IN="?_arch_arm_kernel_calls.S |
| 487 | ?_arch_arm_kernel_entry-common.S |
| 488 | ?_arch_arm_kernel_process.c |
| 489 | ?_arch_arm_kernel_ptrace.c |
| 490 | ?_arch_arm_kernel_sys_arm.c |
| 491 | ?_arch_arm_kernel_time.c |
| 492 | ?_arch_arm_kernel_traps.c |
| 493 | ?_include_asm-arm_thread_info.h" |
| 494 | |
| 495 | for a in $IN; do wr $a $FILE; done |
| 496 | |
| 497 | FILE=../${PRENAME}${COUNT}${NAME}-instrumentation-i386.diff |
| 498 | VALUE=$(( ${VALUE} + 1 )) |
| 499 | printf -v COUNT "%02d" ${VALUE} |
| 500 | |
| 501 | IN="?_arch_i386_kernel_process.c |
| 502 | ?_arch_i386_kernel_ptrace.c |
| 503 | ?_arch_i386_kernel_syscall_table.S |
| 504 | ?_arch_i386_kernel_sys_i386.c |
| 505 | ?_arch_i386_kernel_time.c |
| 506 | ?_arch_i386_kernel_traps.c |
| 507 | ?_arch_i386_mm_fault.c" |
| 508 | |
| 509 | for a in $IN; do wr $a $FILE; done |
| 510 | |
| 511 | FILE=../${PRENAME}${COUNT}${NAME}-instrumentation-mips.diff |
| 512 | VALUE=$(( ${VALUE} + 1 )) |
| 513 | printf -v COUNT "%02d" ${VALUE} |
| 514 | |
| 515 | IN="?_arch_mips_kernel_process.c |
| 516 | ?_arch_mips_kernel_ptrace.c |
| 517 | ?_arch_mips_kernel_syscall.c |
| 518 | ?_arch_mips_kernel_traps.c |
| 519 | ?_arch_mips_kernel_unaligned.c |
| 520 | ?_include_asm-mips_mipsregs.h |
| 521 | ?_arch_mips_kernel_scall32-o32.S |
| 522 | ?_arch_mips_kernel_scall64-64.S |
| 523 | ?_arch_mips_kernel_scall64-n32.S |
| 524 | ?_arch_mips_kernel_scall64-o32.S |
| 525 | ?_arch_mips_mm_fault.c" |
| 526 | |
| 527 | for a in $IN; do wr $a $FILE; done |
| 528 | |
| 529 | |
| 530 | |
| 531 | FILE=../${PRENAME}${COUNT}${NAME}-instrumentation-powerpc.diff |
| 532 | VALUE=$(( ${VALUE} + 1 )) |
| 533 | printf -v COUNT "%02d" ${VALUE} |
| 534 | |
| 535 | IN="?_arch_powerpc_kernel_irq.c |
| 536 | ?_arch_powerpc_kernel_misc_32.S |
| 537 | ?_arch_powerpc_kernel_misc_64.S |
| 538 | ?_arch_powerpc_kernel_ppc_ksyms.c |
| 539 | ?_arch_powerpc_kernel_process.c |
| 540 | ?_arch_powerpc_kernel_prom.c |
| 541 | ?_arch_powerpc_kernel_ptrace.c |
| 542 | ?_arch_powerpc_kernel_syscalls.c |
| 543 | ?_arch_powerpc_kernel_time.c |
| 544 | ?_arch_powerpc_kernel_traps.c |
| 545 | ?_arch_powerpc_mm_fault.c" |
| 546 | |
| 547 | for a in $IN; do wr $a $FILE; done |
| 548 | |
| 549 | |
| 550 | FILE=../${PRENAME}${COUNT}${NAME}-instrumentation-ppc.diff |
| 551 | VALUE=$(( ${VALUE} + 1 )) |
| 552 | printf -v COUNT "%02d" ${VALUE} |
| 553 | |
| 554 | IN="?_arch_ppc_kernel_misc.S |
| 555 | ?_arch_ppc_kernel_time.c |
| 556 | ?_arch_ppc_kernel_traps.c |
| 557 | ?_arch_ppc_mm_fault.c" |
| 558 | |
| 559 | |
| 560 | for a in $IN; do wr $a $FILE; done |
| 561 | |
| 562 | |
| 563 | FILE=../${PRENAME}${COUNT}${NAME}-instrumentation-x86_64.diff |
| 564 | VALUE=$(( ${VALUE} + 1 )) |
| 565 | printf -v COUNT "%02d" ${VALUE} |
| 566 | |
| 567 | IN="?_arch_x86_64_ia32_ia32entry.S |
| 568 | ?_arch_x86_64_ia32_ipc32.c |
| 569 | ?_arch_x86_64_kernel_entry.S |
| 570 | ?_arch_x86_64_kernel_process.c |
| 571 | ?_arch_x86_64_kernel_ptrace.c |
| 572 | ?_arch_x86_64_kernel_time.c |
| 573 | ?_arch_x86_64_kernel_traps.c |
| 574 | ?_arch_x86_64_mm_fault.c" |
| 575 | |
| 576 | for a in $IN; do wr $a $FILE; done |
| 577 | |
| 578 | #limited |
| 579 | FILE=../${PRENAME}${COUNT}${NAME}-instrumentation-m68k.diff |
| 580 | VALUE=$(( ${VALUE} + 1 )) |
| 581 | printf -v COUNT "%02d" ${VALUE} |
| 582 | |
| 583 | IN="?_include_asm-m68k_thread_info.h" |
| 584 | |
| 585 | for a in $IN; do wr $a $FILE; done |
| 586 | |
| 587 | #limited |
| 588 | FILE=../${PRENAME}${COUNT}${NAME}-instrumentation-m68knommu.diff |
| 589 | VALUE=$(( ${VALUE} + 1 )) |
| 590 | printf -v COUNT "%02d" ${VALUE} |
| 591 | |
| 592 | IN="?_include_asm-m68knommu_thread_info.h |
| 593 | ?_arch_m68knommu_platform_68328_entry.S" |
| 594 | |
| 595 | for a in $IN; do wr $a $FILE; done |
| 596 | |
| 597 | |
| 598 | #limited |
| 599 | FILE=../${PRENAME}${COUNT}${NAME}-instrumentation-sparc.diff |
| 600 | VALUE=$(( ${VALUE} + 1 )) |
| 601 | printf -v COUNT "%02d" ${VALUE} |
| 602 | |
| 603 | IN="?_include_asm-sparc_thread_info.h |
| 604 | ?_arch_sparc_kernel_entry.S" |
| 605 | |
| 606 | for a in $IN; do wr $a $FILE; done |
| 607 | |
| 608 | #limited |
| 609 | FILE=../${PRENAME}${COUNT}${NAME}-instrumentation-s390.diff |
| 610 | VALUE=$(( ${VALUE} + 1 )) |
| 611 | printf -v COUNT "%02d" ${VALUE} |
| 612 | |
| 613 | IN="?_arch_s390_kernel_traps.c |
| 614 | ?_arch_s390_mm_fault.c" |
| 615 | |
| 616 | for a in $IN; do wr $a $FILE; done |
| 617 | |
| 618 | #limited |
| 619 | FILE=../${PRENAME}${COUNT}${NAME}-instrumentation-sh.diff |
| 620 | VALUE=$(( ${VALUE} + 1 )) |
| 621 | printf -v COUNT "%02d" ${VALUE} |
| 622 | |
| 623 | IN="?_arch_sh_kernel_entry-common.S |
| 624 | ?_arch_sh_kernel_irq.c |
| 625 | ?_arch_sh_kernel_process.c |
| 626 | ?_arch_sh_kernel_sys_sh.c |
| 627 | ?_arch_sh_kernel_traps.c |
| 628 | ?_arch_sh_mm_fault.c |
| 629 | ?_include_asm-sh_thread_info.h" |
| 630 | |
| 631 | for a in $IN; do wr $a $FILE; done |
| 632 | |
| 633 | #limited |
| 634 | FILE=../${PRENAME}${COUNT}${NAME}-instrumentation-sh64.diff |
| 635 | VALUE=$(( ${VALUE} + 1 )) |
| 636 | printf -v COUNT "%02d" ${VALUE} |
| 637 | |
| 638 | IN="?_arch_sh64_kernel_entry.S |
| 639 | ?_include_asm-sh64_thread_info.h" |
| 640 | |
| 641 | for a in $IN; do wr $a $FILE; done |
| 642 | |
| 643 | |
| 644 | FILE=../${PRENAME}${COUNT}${NAME}-instrumentation.diff |
| 645 | VALUE=$(( ${VALUE} + 1 )) |
| 646 | printf -v COUNT "%02d" ${VALUE} |
| 647 | |
| 648 | IN="?_fs_buffer.c |
| 649 | ?_fs_compat.c |
| 650 | ?_fs_exec.c |
| 651 | ?_fs_ioctl.c |
| 652 | ?_fs_open.c |
| 653 | ?_fs_read_write.c |
| 654 | ?_fs_select.c |
| 655 | ?_ipc_msg.c |
| 656 | ?_ipc_sem.c |
| 657 | ?_ipc_shm.c |
| 658 | ?_kernel_irq_handle.c |
| 659 | ?_kernel_itimer.c |
| 660 | ?_kernel_kthread.c |
| 661 | ?_kernel_lockdep.c |
| 662 | ?_kernel_printk.c |
| 663 | ?_kernel_sched.c |
| 664 | ?_kernel_signal.c |
| 665 | ?_kernel_softirq.c |
| 666 | ?_kernel_timer.c |
| 667 | ?_mm_filemap.c |
| 668 | ?_mm_memory.c |
| 669 | ?_mm_page_alloc.c |
| 670 | ?_mm_page_io.c |
| 671 | ?_net_core_dev.c |
| 672 | ?_net_ipv4_devinet.c |
| 673 | ?_net_socket.c" |
| 674 | |
| 675 | for a in $IN; do wr $a $FILE; done |
| 676 | |
| 677 | |
| 678 | FILE=../${PRENAME}${COUNT}${NAME}-instrumentation-markers.tosplit.diff |
| 679 | VALUE=$(( ${VALUE} + 1 )) |
| 680 | printf -v COUNT "%02d" ${VALUE} |
| 681 | |
| 682 | IN="?_kernel_module.c" |
| 683 | |
| 684 | for a in $IN; do wr $a $FILE; done |
| 685 | |
| 686 | |
| 687 | |
| 688 | FILE=../${PRENAME}${COUNT}${NAME}-facilities-probes-headers.diff |
| 689 | VALUE=$(( ${VALUE} + 1 )) |
| 690 | printf -v COUNT "%02d" ${VALUE} |
| 691 | |
| 692 | IN="?_include_ltt_ltt-facility-custom-fs_data.h |
| 693 | ?_include_ltt_ltt-facility-custom-stack_arch_i386.h |
| 694 | ?_include_ltt_ltt-facility-custom-stack_arch_x86_64.h |
| 695 | ?_include_ltt_ltt-facility-custom-stack.h |
| 696 | ?_include_ltt_ltt-facility-fs_data.h |
| 697 | ?_include_ltt_ltt-facility-fs.h |
| 698 | ?_include_ltt_ltt-facility-id-fs_data.h |
| 699 | ?_include_ltt_ltt-facility-id-fs.h |
| 700 | ?_include_ltt_ltt-facility-id-ipc.h |
| 701 | ?_include_ltt_ltt-facility-id-kernel_arch_arm.h |
| 702 | ?_include_ltt_ltt-facility-id-kernel_arch_i386.h |
| 703 | ?_include_ltt_ltt-facility-id-kernel_arch_mips.h |
| 704 | ?_include_ltt_ltt-facility-id-kernel_arch_powerpc.h |
| 705 | ?_include_ltt_ltt-facility-id-kernel_arch_ppc.h |
| 706 | ?_include_ltt_ltt-facility-id-kernel_arch_x86_64.h |
| 707 | ?_include_ltt_ltt-facility-id-kernel.h |
| 708 | ?_include_ltt_ltt-facility-id-locking.h |
| 709 | ?_include_ltt_ltt-facility-id-memory.h |
| 710 | ?_include_ltt_ltt-facility-id-network.h |
| 711 | ?_include_ltt_ltt-facility-id-network_ip_interface.h |
| 712 | ?_include_ltt_ltt-facility-id-process.h |
| 713 | ?_include_ltt_ltt-facility-id-socket.h |
| 714 | ?_include_ltt_ltt-facility-id-stack_arch_i386.h |
| 715 | ?_include_ltt_ltt-facility-id-stack.h |
| 716 | ?_include_ltt_ltt-facility-id-statedump.h |
| 717 | ?_include_ltt_ltt-facility-id-timer.h |
| 718 | ?_include_ltt_ltt-facility-ipc.h |
| 719 | ?_include_ltt_ltt-facility-kernel_arch_arm.h |
| 720 | ?_include_ltt_ltt-facility-kernel_arch_i386.h |
| 721 | ?_include_ltt_ltt-facility-kernel_arch_mips.h |
| 722 | ?_include_ltt_ltt-facility-kernel_arch_powerpc.h |
| 723 | ?_include_ltt_ltt-facility-kernel_arch_ppc.h |
| 724 | ?_include_ltt_ltt-facility-kernel_arch_x86_64.h |
| 725 | ?_include_ltt_ltt-facility-kernel.h |
| 726 | ?_include_ltt_ltt-facility-locking.h |
| 727 | ?_include_ltt_ltt-facility-memory.h |
| 728 | ?_include_ltt_ltt-facility-network.h |
| 729 | ?_include_ltt_ltt-facility-network_ip_interface.h |
| 730 | ?_include_ltt_ltt-facility-process.h |
| 731 | ?_include_ltt_ltt-facility-select-default.h |
| 732 | ?_include_ltt_ltt-facility-select-kernel.h |
| 733 | ?_include_ltt_ltt-facility-select-network_ip_interface.h |
| 734 | ?_include_ltt_ltt-facility-select-process.h |
| 735 | ?_include_ltt_ltt-facility-select-statedump.h |
| 736 | ?_include_ltt_ltt-facility-socket.h |
| 737 | ?_include_ltt_ltt-facility-stack.h |
| 738 | ?_include_ltt_ltt-facility-statedump.h |
| 739 | ?_include_ltt_ltt-facility-timer.h |
| 740 | ?_include_ltt_ltt-stack.h" |
| 741 | |
| 742 | for a in $IN; do wr $a $FILE; done |
| 743 | |
| 744 | |
| 745 | FILE=../${PRENAME}${COUNT}${NAME}-facilities-probes.diff |
| 746 | VALUE=$(( ${VALUE} + 1 )) |
| 747 | printf -v COUNT "%02d" ${VALUE} |
| 748 | |
| 749 | IN="?_ltt_facilities_ltt-facility-loader-fs.c |
| 750 | ?_ltt_facilities_ltt-facility-loader-fs_data.c |
| 751 | ?_ltt_facilities_ltt-facility-loader-fs_data.h |
| 752 | ?_ltt_facilities_ltt-facility-loader-fs.h |
| 753 | ?_ltt_facilities_ltt-facility-loader-ipc.c |
| 754 | ?_ltt_facilities_ltt-facility-loader-ipc.h |
| 755 | ?_ltt_facilities_ltt-facility-loader-kernel_arch_arm.c |
| 756 | ?_ltt_facilities_ltt-facility-loader-kernel_arch_arm.h |
| 757 | ?_ltt_facilities_ltt-facility-loader-kernel_arch_i386.c |
| 758 | ?_ltt_facilities_ltt-facility-loader-kernel_arch_i386.h |
| 759 | ?_ltt_facilities_ltt-facility-loader-kernel_arch_mips.c |
| 760 | ?_ltt_facilities_ltt-facility-loader-kernel_arch_mips.h |
| 761 | ?_ltt_facilities_ltt-facility-loader-kernel_arch_powerpc.c |
| 762 | ?_ltt_facilities_ltt-facility-loader-kernel_arch_powerpc.h |
| 763 | ?_ltt_facilities_ltt-facility-loader-kernel_arch_ppc.c |
| 764 | ?_ltt_facilities_ltt-facility-loader-kernel_arch_ppc.h |
| 765 | ?_ltt_facilities_ltt-facility-loader-kernel_arch_x86_64.c |
| 766 | ?_ltt_facilities_ltt-facility-loader-kernel_arch_x86_64.h |
| 767 | ?_ltt_facilities_ltt-facility-loader-kernel.c |
| 768 | ?_ltt_facilities_ltt-facility-loader-kernel.h |
| 769 | ?_ltt_facilities_ltt-facility-loader-locking.c |
| 770 | ?_ltt_facilities_ltt-facility-loader-locking.h |
| 771 | ?_ltt_facilities_ltt-facility-loader-memory.c |
| 772 | ?_ltt_facilities_ltt-facility-loader-memory.h |
| 773 | ?_ltt_facilities_ltt-facility-loader-network.c |
| 774 | ?_ltt_facilities_ltt-facility-loader-network.h |
| 775 | ?_ltt_facilities_ltt-facility-loader-network_ip_interface.c |
| 776 | ?_ltt_facilities_ltt-facility-loader-network_ip_interface.h |
| 777 | ?_ltt_facilities_ltt-facility-loader-process.c |
| 778 | ?_ltt_facilities_ltt-facility-loader-process.h |
| 779 | ?_ltt_facilities_ltt-facility-loader-socket.c |
| 780 | ?_ltt_facilities_ltt-facility-loader-socket.h |
| 781 | ?_ltt_facilities_ltt-facility-loader-stack.c |
| 782 | ?_ltt_facilities_ltt-facility-loader-stack.h |
| 783 | ?_ltt_facilities_ltt-facility-loader-statedump.c |
| 784 | ?_ltt_facilities_ltt-facility-loader-statedump.h |
| 785 | ?_ltt_facilities_ltt-facility-loader-timer.c |
| 786 | ?_ltt_facilities_ltt-facility-loader-timer.h |
| 787 | ?_ltt_ltt-stack.c" |
| 788 | |
| 789 | |
| 790 | for a in $IN; do wr $a $FILE; done |
| 791 | |
| 792 | |
| 793 | FILE=../${PRENAME}${COUNT}${NAME}-probes.diff |
| 794 | VALUE=$(( ${VALUE} + 1 )) |
| 795 | printf -v COUNT "%02d" ${VALUE} |
| 796 | |
| 797 | IN="?_ltt_probes_ltt-probe-arm.c |
| 798 | ?_ltt_probes_ltt-probe-fs.c |
| 799 | ?_ltt_probes_ltt-probe-i386.c |
| 800 | ?_ltt_probes_ltt-probe-ipc.c |
| 801 | ?_ltt_probes_ltt-probe-kernel.c |
| 802 | ?_ltt_probes_ltt-probe-list.c |
| 803 | ?_ltt_probes_ltt-probe-locking.c |
| 804 | ?_ltt_probes_ltt-probe-mips.c |
| 805 | ?_ltt_probes_ltt-probe-mm.c |
| 806 | ?_ltt_probes_ltt-probe-net.c |
| 807 | ?_ltt_probes_ltt-probe-powerpc.c |
| 808 | ?_ltt_probes_ltt-probe-ppc.c |
| 809 | ?_ltt_probes_ltt-probe-x86_64.c |
| 810 | ?_ltt_probes_Makefile" |
| 811 | |
| 812 | for a in $IN; do wr $a $FILE; done |
| 813 | |
| 814 | FILE=../${PRENAME}${COUNT}${NAME}-statedump.diff |
| 815 | VALUE=$(( ${VALUE} + 1 )) |
| 816 | printf -v COUNT "%02d" ${VALUE} |
| 817 | |
| 818 | IN="?_ltt_ltt-statedump.c" |
| 819 | |
| 820 | for a in $IN; do wr $a $FILE; done |
| 821 | |
| 822 | |
| 823 | FILE=../${PRENAME}${COUNT}${NAME}-build.tosplit.diff |
| 824 | VALUE=$(( ${VALUE} + 1 )) |
| 825 | printf -v COUNT "%02d" ${VALUE} |
| 826 | |
| 827 | IN="?_Makefile |
| 828 | ?_ltt_Kconfig |
| 829 | ?_ltt_Makefile |
| 830 | ?_arch_alpha_Kconfig |
| 831 | ?_arch_arm26_Kconfig |
| 832 | ?_arch_arm_Kconfig |
| 833 | ?_arch_cris_Kconfig |
| 834 | ?_arch_frv_Kconfig |
| 835 | ?_arch_h8300_Kconfig |
| 836 | ?_arch_i386_Kconfig |
| 837 | ?_arch_ia64_Kconfig |
| 838 | ?_arch_m32r_Kconfig |
| 839 | ?_arch_m68k_Kconfig |
| 840 | ?_arch_m68knommu_Kconfig |
| 841 | ?_arch_ppc_Kconfig |
| 842 | ?_arch_powerpc_Kconfig |
| 843 | ?_arch_parisc_Kconfig |
| 844 | ?_arch_mips_Kconfig |
| 845 | ?_arch_s390_Kconfig |
| 846 | ?_arch_sh64_Kconfig |
| 847 | ?_arch_sh_Kconfig |
| 848 | ?_arch_sparc64_Kconfig |
| 849 | ?_arch_sparc_Kconfig |
| 850 | ?_arch_um_Kconfig |
| 851 | ?_arch_v850_Kconfig |
| 852 | ?_arch_xtensa_Kconfig |
| 853 | ?_arch_x86_64_Kconfig" |
| 854 | |
| 855 | for a in $IN; do wr $a $FILE; done |
| 856 | |
| 857 | |
| 858 | |
| 859 | cd .. |
| 860 | |
| 861 | rm $ALL_NAME |
| 862 | tar cvfj ${PRENAME}${NAME}.tar.bz2 ${PRENAME}*${NAME}-* |
| 863 | |