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