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