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