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 |
5f90908d |
15 | NAME=-2.6.18-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 | |
b05be313 |
37 | FILE=../${PRENAME}${COUNT}${NAME}-debugfs.diff |
6a0dfeb5 |
38 | VALUE=$(( ${VALUE} + 1 )) |
59248316 |
39 | printf -v COUNT "%02d" ${VALUE} |
b05be313 |
40 | |
41 | IN="?_fs_debugfs_inode.c" |
42 | |
43 | for a in $IN; do wr $a $FILE; done |
44 | |
45 | FILE=../${PRENAME}${COUNT}${NAME}-markers.diff |
6a0dfeb5 |
46 | VALUE=$(( ${VALUE} + 1 )) |
59248316 |
47 | printf -v COUNT "%02d" ${VALUE} |
b05be313 |
48 | |
49 | IN="?_include_asm-generic_vmlinux.lds.h |
50 | ?_kernel_Kconfig.marker |
51 | ?_include_linux_module.h |
52 | ?_include_linux_marker.h |
53 | ?_include_asm-arm_marker.h |
54 | ?_include_asm-cris_marker.h |
55 | ?_include_asm-frv_marker.h |
56 | ?_include_asm-generic_marker.h |
57 | ?_include_asm-h8300_marker.h |
58 | ?_include_asm-i386_marker.h |
59 | ?_include_asm-ia64_marker.h |
60 | ?_include_asm-m32r_marker.h |
61 | ?_include_asm-m68k_marker.h |
62 | ?_include_asm-m68knommu_marker.h |
63 | ?_include_asm-mips_marker.h |
64 | ?_include_asm-parisc_marker.h |
65 | ?_include_asm-powerpc_marker.h |
66 | ?_include_asm-ppc64_marker.h |
67 | ?_include_asm-ppc_marker.h |
68 | ?_include_asm-s390_marker.h |
69 | ?_include_asm-sh64_marker.h |
70 | ?_include_asm-sh_marker.h |
71 | ?_include_asm-sparc64_marker.h |
72 | ?_include_asm-sparc_marker.h |
73 | ?_include_asm-um_marker.h |
74 | ?_include_asm-v850_marker.h |
75 | ?_include_asm-x86_64_marker.h |
76 | ?_include_asm-xtensa_marker.h" |
77 | |
78 | for a in $IN; do wr $a $FILE; done |
79 | |
80 | |
81 | FILE=../${PRENAME}${COUNT}${NAME}-facility-core-headers.diff |
6a0dfeb5 |
82 | VALUE=$(( ${VALUE} + 1 )) |
59248316 |
83 | printf -v COUNT "%02d" ${VALUE} |
b05be313 |
84 | |
85 | IN="?_include_ltt_ltt-facility-core.h |
86 | ?_include_ltt_ltt-facility-id-core.h" |
87 | |
88 | for a in $IN; do wr $a $FILE; done |
89 | |
90 | |
91 | FILE=../${PRENAME}${COUNT}${NAME}-facility-loader-core.diff |
6a0dfeb5 |
92 | VALUE=$(( ${VALUE} + 1 )) |
59248316 |
93 | printf -v COUNT "%02d" ${VALUE} |
b05be313 |
94 | |
95 | IN="?_ltt_facilities_ltt-facility-loader-core.c |
96 | ?_ltt_facilities_ltt-facility-loader-core.h |
97 | ?_ltt_facilities_Makefile" |
98 | |
99 | for a in $IN; do wr $a $FILE; done |
100 | |
101 | FILE=../${PRENAME}${COUNT}${NAME}-facilities.diff |
6a0dfeb5 |
102 | VALUE=$(( ${VALUE} + 1 )) |
59248316 |
103 | printf -v COUNT "%02d" ${VALUE} |
b05be313 |
104 | |
105 | IN="?_include_linux_ltt-facilities.h |
106 | ?_ltt_ltt-facilities.c" |
107 | |
108 | for a in $IN; do wr $a $FILE; done |
109 | |
110 | |
111 | FILE=../${PRENAME}${COUNT}${NAME}-timestamp.diff |
6a0dfeb5 |
112 | VALUE=$(( ${VALUE} + 1 )) |
59248316 |
113 | printf -v COUNT "%02d" ${VALUE} |
b05be313 |
114 | |
115 | IN="?_include_asm-alpha_ltt.h |
116 | ?_include_asm-arm26_ltt.h |
117 | ?_include_asm-arm_ltt.h |
118 | ?_include_asm-cris_ltt.h |
119 | ?_include_asm-frv_ltt.h |
120 | ?_include_asm-generic_ltt.h |
121 | ?_include_asm-h8300_ltt.h |
122 | ?_include_asm-i386_ltt.h |
123 | ?_include_asm-ia64_ltt.h |
124 | ?_include_asm-m32r_ltt.h |
125 | ?_include_asm-m68k_ltt.h |
126 | ?_include_asm-m68knommu_ltt.h |
127 | ?_include_asm-mips_ltt.h |
128 | ?_include_asm-mips_mipsregs.h |
129 | ?_include_asm-mips_timex.h |
130 | ?_arch_mips_kernel_time.c |
131 | ?_include_asm-parisc_ltt.h |
132 | ?_include_asm-powerpc_ltt.h |
133 | ?_include_asm-ppc_ltt.h |
134 | ?_include_asm-s390_ltt.h |
135 | ?_include_asm-sh64_ltt.h |
136 | ?_include_asm-sh_ltt.h |
137 | ?_include_asm-sparc64_ltt.h |
138 | ?_include_asm-sparc_ltt.h |
139 | ?_include_asm-um_ltt.h |
140 | ?_include_asm-v850_ltt.h |
141 | ?_include_asm-x86_64_ltt.h |
142 | ?_include_asm-xtensa_ltt.h" |
143 | |
144 | for a in $IN; do wr $a $FILE; done |
145 | |
146 | |
147 | FILE=../${PRENAME}${COUNT}${NAME}-core-header.diff |
6a0dfeb5 |
148 | VALUE=$(( ${VALUE} + 1 )) |
59248316 |
149 | printf -v COUNT "%02d" ${VALUE} |
b05be313 |
150 | |
151 | IN="?_include_linux_ltt-core.h" |
152 | |
153 | for a in $IN; do wr $a $FILE; done |
154 | |
155 | |
156 | FILE=../${PRENAME}${COUNT}${NAME}-core.diff |
6a0dfeb5 |
157 | VALUE=$(( ${VALUE} + 1 )) |
59248316 |
158 | printf -v COUNT "%02d" ${VALUE} |
b05be313 |
159 | |
160 | IN="?_MAINTAINERS |
161 | ?_ltt_ltt-core.c |
162 | ?_ltt_ltt-heartbeat.c" |
163 | |
164 | for a in $IN; do wr $a $FILE; done |
165 | |
166 | FILE=../${PRENAME}${COUNT}${NAME}-tracer-header.diff |
6a0dfeb5 |
167 | VALUE=$(( ${VALUE} + 1 )) |
59248316 |
168 | printf -v COUNT "%02d" ${VALUE} |
b05be313 |
169 | |
170 | IN="?_include_ltt_ltt-tracer.h" |
171 | |
172 | for a in $IN; do wr $a $FILE; done |
173 | |
174 | |
175 | FILE=../${PRENAME}${COUNT}${NAME}-tracer.diff |
6a0dfeb5 |
176 | VALUE=$(( ${VALUE} + 1 )) |
59248316 |
177 | printf -v COUNT "%02d" ${VALUE} |
b05be313 |
178 | |
179 | IN="?_ltt_ltt-tracer.c" |
180 | |
181 | for a in $IN; do wr $a $FILE; done |
182 | |
183 | |
184 | |
185 | FILE=../${PRENAME}${COUNT}${NAME}-transport.diff |
6a0dfeb5 |
186 | VALUE=$(( ${VALUE} + 1 )) |
59248316 |
187 | printf -v COUNT "%02d" ${VALUE} |
b05be313 |
188 | |
189 | IN="?_ltt_ltt-relay.c |
190 | ?_Documentation_ioctl-number.txt" |
191 | |
192 | for a in $IN; do wr $a $FILE; done |
193 | |
194 | |
195 | |
196 | FILE=../${PRENAME}${COUNT}${NAME}-netlink-control.diff |
6a0dfeb5 |
197 | VALUE=$(( ${VALUE} + 1 )) |
59248316 |
198 | printf -v COUNT "%02d" ${VALUE} |
b05be313 |
199 | |
200 | IN="?_ltt_ltt-control.c |
201 | ?_ltt_ltt-control.h |
202 | ?_include_linux_netlink.h" |
203 | |
204 | for a in $IN; do wr $a $FILE; done |
205 | |
206 | |
207 | FILE=../${PRENAME}${COUNT}${NAME}-userspace-tracing.diff |
6a0dfeb5 |
208 | VALUE=$(( ${VALUE} + 1 )) |
59248316 |
209 | printf -v COUNT "%02d" ${VALUE} |
b05be313 |
210 | |
211 | IN="?_include_linux_sched.h |
212 | ?_kernel_sys_ni.c |
213 | ?_ltt_ltt-syscall.c |
214 | ?_kernel_exit.c |
215 | ?_kernel_fork.c |
216 | ?_include_asm-i386_unistd.h |
217 | ?_include_asm-powerpc_unistd.h |
37ad9911 |
218 | ?_include_asm-powerpc_systbl.h |
b05be313 |
219 | ?_include_asm-x86_64_unistd.h" |
220 | |
221 | for a in $IN; do wr $a $FILE; done |
222 | |
223 | FILE=../${PRENAME}${COUNT}${NAME}-instrumentation-arm.diff |
6a0dfeb5 |
224 | VALUE=$(( ${VALUE} + 1 )) |
59248316 |
225 | printf -v COUNT "%02d" ${VALUE} |
b05be313 |
226 | |
227 | IN="?_arch_arm_kernel_calls.S |
228 | ?_arch_arm_kernel_entry-common.S |
b05be313 |
229 | ?_arch_arm_kernel_process.c |
230 | ?_arch_arm_kernel_ptrace.c |
231 | ?_arch_arm_kernel_sys_arm.c |
232 | ?_arch_arm_kernel_time.c |
233 | ?_arch_arm_kernel_traps.c |
c133f16b |
234 | ?_include_asm-arm_thread_info.h" |
b05be313 |
235 | |
236 | for a in $IN; do wr $a $FILE; done |
237 | |
238 | FILE=../${PRENAME}${COUNT}${NAME}-instrumentation-i386.diff |
6a0dfeb5 |
239 | VALUE=$(( ${VALUE} + 1 )) |
59248316 |
240 | printf -v COUNT "%02d" ${VALUE} |
b05be313 |
241 | |
242 | IN="?_arch_i386_kernel_process.c |
243 | ?_arch_i386_kernel_ptrace.c |
244 | ?_arch_i386_kernel_syscall_table.S |
245 | ?_arch_i386_kernel_sys_i386.c |
246 | ?_arch_i386_kernel_time.c |
5f90908d |
247 | ?_arch_i386_kernel_traps.c" |
b05be313 |
248 | |
249 | for a in $IN; do wr $a $FILE; done |
250 | |
251 | FILE=../${PRENAME}${COUNT}${NAME}-instrumentation-mips.diff |
6a0dfeb5 |
252 | VALUE=$(( ${VALUE} + 1 )) |
59248316 |
253 | printf -v COUNT "%02d" ${VALUE} |
b05be313 |
254 | |
8003761f |
255 | IN="?_arch_mips_kernel_process.c |
b05be313 |
256 | ?_arch_mips_kernel_ptrace.c |
b05be313 |
257 | ?_arch_mips_kernel_syscall.c |
258 | ?_arch_mips_kernel_time.c |
259 | ?_arch_mips_kernel_traps.c |
260 | ?_arch_mips_kernel_unaligned.c |
b05be313 |
261 | ?_include_asm-mips_mipsregs.h" |
262 | |
263 | for a in $IN; do wr $a $FILE; done |
264 | |
265 | |
266 | |
267 | FILE=../${PRENAME}${COUNT}${NAME}-instrumentation-powerpc.diff |
6a0dfeb5 |
268 | VALUE=$(( ${VALUE} + 1 )) |
59248316 |
269 | printf -v COUNT "%02d" ${VALUE} |
b05be313 |
270 | |
8003761f |
271 | IN="?_arch_powerpc_kernel_irq.c |
b05be313 |
272 | ?_arch_powerpc_kernel_misc_32.S |
273 | ?_arch_powerpc_kernel_misc_64.S |
274 | ?_arch_powerpc_kernel_ppc_ksyms.c |
275 | ?_arch_powerpc_kernel_process.c |
276 | ?_arch_powerpc_kernel_prom.c |
277 | ?_arch_powerpc_kernel_ptrace.c |
278 | ?_arch_powerpc_kernel_syscalls.c |
b05be313 |
279 | ?_arch_powerpc_kernel_time.c |
8003761f |
280 | ?_arch_powerpc_kernel_traps.c" |
b05be313 |
281 | |
282 | for a in $IN; do wr $a $FILE; done |
283 | |
284 | |
285 | FILE=../${PRENAME}${COUNT}${NAME}-instrumentation-ppc.diff |
6a0dfeb5 |
286 | VALUE=$(( ${VALUE} + 1 )) |
59248316 |
287 | printf -v COUNT "%02d" ${VALUE} |
b05be313 |
288 | |
289 | IN="?_arch_ppc_Kconfig |
290 | ?_arch_ppc_kernel_misc.S |
291 | ?_arch_ppc_kernel_time.c |
8003761f |
292 | ?_arch_ppc_kernel_traps.c" |
b05be313 |
293 | |
294 | |
295 | for a in $IN; do wr $a $FILE; done |
296 | |
297 | |
298 | FILE=../${PRENAME}${COUNT}${NAME}-instrumentation-x86_64.diff |
6a0dfeb5 |
299 | VALUE=$(( ${VALUE} + 1 )) |
59248316 |
300 | printf -v COUNT "%02d" ${VALUE} |
b05be313 |
301 | |
302 | IN="?_arch_x86_64_ia32_ia32entry.S |
303 | ?_arch_x86_64_ia32_ipc32.c |
304 | ?_arch_x86_64_kernel_entry.S |
0207bc6f |
305 | ?_arch_x86_64_kernel_process.c |
b05be313 |
306 | ?_arch_x86_64_kernel_ptrace.c |
307 | ?_arch_x86_64_kernel_time.c |
8003761f |
308 | ?_arch_x86_64_kernel_traps.c" |
b05be313 |
309 | |
310 | for a in $IN; do wr $a $FILE; done |
311 | |
312 | FILE=../${PRENAME}${COUNT}${NAME}-instrumentation.diff |
6a0dfeb5 |
313 | VALUE=$(( ${VALUE} + 1 )) |
59248316 |
314 | printf -v COUNT "%02d" ${VALUE} |
b05be313 |
315 | |
316 | IN="?_fs_buffer.c |
317 | ?_fs_compat.c |
b05be313 |
318 | ?_fs_exec.c |
319 | ?_fs_ioctl.c |
320 | ?_fs_open.c |
321 | ?_fs_read_write.c |
322 | ?_fs_select.c |
323 | ?_ipc_msg.c |
324 | ?_ipc_sem.c |
325 | ?_ipc_shm.c |
326 | ?_kernel_irq_handle.c |
327 | ?_kernel_itimer.c |
328 | ?_kernel_kthread.c |
e551ca2a |
329 | ?_kernel_lockdep.c |
b05be313 |
330 | ?_kernel_module.c |
331 | ?_kernel_printk.c |
332 | ?_kernel_sched.c |
333 | ?_kernel_signal.c |
334 | ?_kernel_softirq.c |
335 | ?_kernel_timer.c |
336 | ?_mm_filemap.c |
337 | ?_mm_memory.c |
338 | ?_mm_page_alloc.c |
339 | ?_mm_page_io.c |
340 | ?_net_core_dev.c |
341 | ?_net_ipv4_devinet.c |
342 | ?_net_socket.c" |
343 | |
344 | for a in $IN; do wr $a $FILE; done |
345 | |
346 | FILE=../${PRENAME}${COUNT}${NAME}-facilities-probes-headers.diff |
6a0dfeb5 |
347 | VALUE=$(( ${VALUE} + 1 )) |
59248316 |
348 | printf -v COUNT "%02d" ${VALUE} |
b05be313 |
349 | |
350 | IN="?_include_ltt_ltt-facility-custom-fs_data.h |
351 | ?_include_ltt_ltt-facility-custom-stack_arch_i386.h |
352 | ?_include_ltt_ltt-facility-custom-stack_arch_x86_64.h |
353 | ?_include_ltt_ltt-facility-custom-stack.h |
354 | ?_include_ltt_ltt-facility-fs_data.h |
355 | ?_include_ltt_ltt-facility-fs.h |
356 | ?_include_ltt_ltt-facility-id-fs_data.h |
357 | ?_include_ltt_ltt-facility-id-fs.h |
358 | ?_include_ltt_ltt-facility-id-ipc.h |
359 | ?_include_ltt_ltt-facility-id-kernel_arch_arm.h |
360 | ?_include_ltt_ltt-facility-id-kernel_arch_i386.h |
361 | ?_include_ltt_ltt-facility-id-kernel_arch_mips.h |
362 | ?_include_ltt_ltt-facility-id-kernel_arch_powerpc.h |
363 | ?_include_ltt_ltt-facility-id-kernel_arch_ppc.h |
364 | ?_include_ltt_ltt-facility-id-kernel_arch_x86_64.h |
365 | ?_include_ltt_ltt-facility-id-kernel.h |
366 | ?_include_ltt_ltt-facility-id-locking.h |
367 | ?_include_ltt_ltt-facility-id-memory.h |
368 | ?_include_ltt_ltt-facility-id-network.h |
369 | ?_include_ltt_ltt-facility-id-network_ip_interface.h |
370 | ?_include_ltt_ltt-facility-id-process.h |
371 | ?_include_ltt_ltt-facility-id-socket.h |
372 | ?_include_ltt_ltt-facility-id-stack_arch_i386.h |
373 | ?_include_ltt_ltt-facility-id-stack.h |
374 | ?_include_ltt_ltt-facility-id-statedump.h |
375 | ?_include_ltt_ltt-facility-id-timer.h |
376 | ?_include_ltt_ltt-facility-ipc.h |
377 | ?_include_ltt_ltt-facility-kernel_arch_arm.h |
378 | ?_include_ltt_ltt-facility-kernel_arch_i386.h |
379 | ?_include_ltt_ltt-facility-kernel_arch_mips.h |
380 | ?_include_ltt_ltt-facility-kernel_arch_powerpc.h |
381 | ?_include_ltt_ltt-facility-kernel_arch_ppc.h |
382 | ?_include_ltt_ltt-facility-kernel_arch_x86_64.h |
383 | ?_include_ltt_ltt-facility-kernel.h |
384 | ?_include_ltt_ltt-facility-locking.h |
385 | ?_include_ltt_ltt-facility-memory.h |
386 | ?_include_ltt_ltt-facility-network.h |
387 | ?_include_ltt_ltt-facility-network_ip_interface.h |
388 | ?_include_ltt_ltt-facility-process.h |
389 | ?_include_ltt_ltt-facility-select-core.h |
390 | ?_include_ltt_ltt-facility-select-default.h |
391 | ?_include_ltt_ltt-facility-select-kernel.h |
392 | ?_include_ltt_ltt-facility-select-network_ip_interface.h |
393 | ?_include_ltt_ltt-facility-select-process.h |
394 | ?_include_ltt_ltt-facility-select-statedump.h |
395 | ?_include_ltt_ltt-facility-socket.h |
396 | ?_include_ltt_ltt-facility-stack.h |
397 | ?_include_ltt_ltt-facility-statedump.h |
967d5617 |
398 | ?_include_ltt_ltt-facility-timer.h |
399 | ?_include_ltt_ltt-stack.h" |
b05be313 |
400 | |
401 | for a in $IN; do wr $a $FILE; done |
402 | |
403 | |
404 | FILE=../${PRENAME}${COUNT}${NAME}-facilities-probes.diff |
6a0dfeb5 |
405 | VALUE=$(( ${VALUE} + 1 )) |
59248316 |
406 | printf -v COUNT "%02d" ${VALUE} |
b05be313 |
407 | |
408 | IN="?_ltt_facilities_ltt-facility-loader-fs.c |
409 | ?_ltt_facilities_ltt-facility-loader-fs_data.c |
410 | ?_ltt_facilities_ltt-facility-loader-fs_data.h |
411 | ?_ltt_facilities_ltt-facility-loader-fs.h |
412 | ?_ltt_facilities_ltt-facility-loader-ipc.c |
413 | ?_ltt_facilities_ltt-facility-loader-ipc.h |
414 | ?_ltt_facilities_ltt-facility-loader-kernel_arch_arm.c |
415 | ?_ltt_facilities_ltt-facility-loader-kernel_arch_arm.h |
416 | ?_ltt_facilities_ltt-facility-loader-kernel_arch_i386.c |
417 | ?_ltt_facilities_ltt-facility-loader-kernel_arch_i386.h |
418 | ?_ltt_facilities_ltt-facility-loader-kernel_arch_mips.c |
419 | ?_ltt_facilities_ltt-facility-loader-kernel_arch_mips.h |
420 | ?_ltt_facilities_ltt-facility-loader-kernel_arch_powerpc.c |
421 | ?_ltt_facilities_ltt-facility-loader-kernel_arch_powerpc.h |
422 | ?_ltt_facilities_ltt-facility-loader-kernel_arch_ppc.c |
423 | ?_ltt_facilities_ltt-facility-loader-kernel_arch_ppc.h |
424 | ?_ltt_facilities_ltt-facility-loader-kernel_arch_x86_64.c |
425 | ?_ltt_facilities_ltt-facility-loader-kernel_arch_x86_64.h |
426 | ?_ltt_facilities_ltt-facility-loader-kernel.c |
427 | ?_ltt_facilities_ltt-facility-loader-kernel.h |
428 | ?_ltt_facilities_ltt-facility-loader-locking.c |
429 | ?_ltt_facilities_ltt-facility-loader-locking.h |
430 | ?_ltt_facilities_ltt-facility-loader-memory.c |
431 | ?_ltt_facilities_ltt-facility-loader-memory.h |
432 | ?_ltt_facilities_ltt-facility-loader-network.c |
433 | ?_ltt_facilities_ltt-facility-loader-network.h |
434 | ?_ltt_facilities_ltt-facility-loader-network_ip_interface.c |
435 | ?_ltt_facilities_ltt-facility-loader-network_ip_interface.h |
436 | ?_ltt_facilities_ltt-facility-loader-process.c |
437 | ?_ltt_facilities_ltt-facility-loader-process.h |
438 | ?_ltt_facilities_ltt-facility-loader-socket.c |
439 | ?_ltt_facilities_ltt-facility-loader-socket.h |
440 | ?_ltt_facilities_ltt-facility-loader-stack_arch_i386.c |
441 | ?_ltt_facilities_ltt-facility-loader-stack_arch_i386.h |
442 | ?_ltt_facilities_ltt-facility-loader-stack.c |
443 | ?_ltt_facilities_ltt-facility-loader-stack.h |
444 | ?_ltt_facilities_ltt-facility-loader-statedump.c |
445 | ?_ltt_facilities_ltt-facility-loader-statedump.h |
446 | ?_ltt_facilities_ltt-facility-loader-timer.c |
967d5617 |
447 | ?_ltt_facilities_ltt-facility-loader-timer.h |
448 | ?_ltt_ltt-stack.c" |
b05be313 |
449 | |
450 | |
451 | for a in $IN; do wr $a $FILE; done |
452 | |
453 | |
454 | FILE=../${PRENAME}${COUNT}${NAME}-probes.diff |
6a0dfeb5 |
455 | VALUE=$(( ${VALUE} + 1 )) |
59248316 |
456 | printf -v COUNT "%02d" ${VALUE} |
b05be313 |
457 | |
458 | IN="?_ltt_probes_ltt-probe-arm.c |
459 | ?_ltt_probes_ltt-probe-fs.c |
460 | ?_ltt_probes_ltt-probe-i386.c |
461 | ?_ltt_probes_ltt-probe-ipc.c |
462 | ?_ltt_probes_ltt-probe-kernel.c |
463 | ?_ltt_probes_ltt-probe-list.c |
e551ca2a |
464 | ?_ltt_probes_ltt-probe-locking.c |
b05be313 |
465 | ?_ltt_probes_ltt-probe-mips.c |
466 | ?_ltt_probes_ltt-probe-mm.c |
467 | ?_ltt_probes_ltt-probe-net.c |
468 | ?_ltt_probes_ltt-probe-powerpc.c |
469 | ?_ltt_probes_ltt-probe-ppc.c |
470 | ?_ltt_probes_ltt-probe-x86_64.c |
471 | ?_ltt_probes_Makefile" |
472 | |
473 | for a in $IN; do wr $a $FILE; done |
474 | |
475 | FILE=../${PRENAME}${COUNT}${NAME}-statedump.diff |
6a0dfeb5 |
476 | VALUE=$(( ${VALUE} + 1 )) |
59248316 |
477 | printf -v COUNT "%02d" ${VALUE} |
b05be313 |
478 | |
479 | IN="?_ltt_ltt-statedump.c" |
480 | |
481 | for a in $IN; do wr $a $FILE; done |
482 | |
483 | |
b05be313 |
484 | FILE=../${PRENAME}${COUNT}${NAME}-build.diff |
6a0dfeb5 |
485 | VALUE=$(( ${VALUE} + 1 )) |
59248316 |
486 | printf -v COUNT "%02d" ${VALUE} |
b05be313 |
487 | |
488 | IN="?_Makefile |
b05be313 |
489 | ?_ltt_Kconfig |
490 | ?_ltt_Makefile |
491 | ?_arch_alpha_Kconfig |
492 | ?_arch_cris_Kconfig |
493 | ?_arch_frv_Kconfig |
494 | ?_arch_h8300_Kconfig |
495 | ?_arch_i386_Kconfig |
496 | ?_arch_ia64_Kconfig |
497 | ?_arch_m32r_Kconfig |
498 | ?_arch_m68k_Kconfig |
499 | ?_arch_m68knommu_Kconfig |
500 | ?_arch_ppc_Kconfig |
501 | ?_arch_powerpc_Kconfig |
502 | ?_arch_parisc_Kconfig |
503 | ?_arch_arm_Kconfig |
504 | ?_arch_arm26_Kconfig |
505 | ?_arch_mips_Kconfig |
506 | ?_arch_s390_Kconfig |
507 | ?_arch_sh64_Kconfig |
508 | ?_arch_sh_Kconfig |
509 | ?_arch_sparc64_Kconfig |
510 | ?_arch_sparc_Kconfig |
511 | ?_arch_um_Kconfig |
512 | ?_arch_v850_Kconfig |
513 | ?_arch_xtensa_Kconfig |
514 | ?_arch_x86_64_Kconfig" |
515 | |
516 | for a in $IN; do wr $a $FILE; done |
517 | |
518 | |
519 | |
520 | cd .. |
521 | |
522 | rm $ALL_NAME |
ff8dd6e5 |
523 | tar cvfj ${PRENAME}${NAME}.tar.bz2 ${PRENAME}*${NAME}-* |
b05be313 |
524 | |