5
Line | |
---|
1 | #! /bin/bash |
---|
2 | |
---|
3 | lfile=unprobed_methods.txt |
---|
4 | cpu=arm |
---|
5 | bsp=xilinx_zynq_a9_qemu |
---|
6 | bsp_path=/home/joel/rtems-work/tools/5/bsps/arm-rtems5 |
---|
7 | bsp_flags="-march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard -mtune=cortex-a9" |
---|
8 | |
---|
9 | cat_template() |
---|
10 | { |
---|
11 | cat <<EOF |
---|
12 | void @METHOD@(void); |
---|
13 | |
---|
14 | int main(int argc, char **argv) |
---|
15 | { |
---|
16 | @METHOD@(); |
---|
17 | return 0; |
---|
18 | } |
---|
19 | EOF |
---|
20 | } |
---|
21 | |
---|
22 | gen_prober() |
---|
23 | { |
---|
24 | method=$1 |
---|
25 | mname=`echo ${method} | sed -e 's/[()]//g'` |
---|
26 | cat_template | sed -e "s/@METHOD@/${mname}/g" |
---|
27 | } |
---|
28 | |
---|
29 | cat ${lfile} | while read method |
---|
30 | do |
---|
31 | grep ${method} probe_misses.txt >/dev/null |
---|
32 | if [ $? -eq 0 ] ; then |
---|
33 | echo "${method},HAND-YES" |
---|
34 | continue |
---|
35 | fi |
---|
36 | |
---|
37 | gen_prober ${method} >tmp_probe.c |
---|
38 | ${cpu}-rtems5-gcc \ |
---|
39 | -B${bsp_path}/${bsp}/lib/ -specs bsp_specs -qrtems \ |
---|
40 | ${bsp_flags} \ |
---|
41 | tmp_probe.c >/dev/null 2>&1 |
---|
42 | if [ $? -eq 0 ] ; then |
---|
43 | echo "${method},RT-YES" |
---|
44 | continue |
---|
45 | fi |
---|
46 | echo "${method},RT-NO" |
---|
47 | done |
---|
48 | |
---|
49 | # rm -f tmp_probe.c a.out |
---|
Note: See
TracBrowser
for help on using the repository browser.