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