全部博文(921)
分类: BSD
2006-05-13 23:02:14
c043e9e8 freebsd4_sigcode(): freebsd4_sigcode():
c043e9e8: call *0x10(%esp) | c04431d8: call *0x10(%esp)
c043e9ec: lea 0x14(%esp),%eax | c04431dc: lea 0x14(%esp),%eax
c043e9f0: push %eax | c04431e0: push %eax
c043e9f1: testl $0x20000,0x54(%eax) | c04431e1: testl $0x20000,0x54(%eax)
c043e9f8: jne c043e9fd
c043e9fa: movl 0x14(%eax),%gs | c04431ea: movw 0x14(%eax),%gs
c043e9fd: mov $0x158,%eax | c04431ed: mov $0x158,%eax
c043ea02: push %eax | c04431f2: push %eax
c043ea03: int $0x80 | c04431f3: int $0x80
c043ea05: jmp c043ea05
c043ea07: nop | c04431f7: nop |
freebsd4_sigcode(): | freebsd4_sigcode():
call *{Offset}(%esp) | call *{Offset}(%esp)
lea {Offset}(%esp),%eax | lea {Offset}(%esp),%eax
push %eax | push %eax
testl {Number},{Offset}(%eax) | testl {Number},{Offset}(%eax)
jne
movl {Offset}(%eax),%gs | movw {Offset}(%eax),%gs
mov {Number},%eax | mov {Number},%eax
push %eax | push %eax
int {Number} | int {Number}
jmp
nop | nop |
A->B的相似度 = (b-c) / a |
A-B间的相似度 = max( (b-c) / a, (a-d) / b ) |
原始内核\目标内核 |
汇编行数 |
freebsd_5.0 |
freebsd_5.1 |
freebsd_5.2 |
freebsd_5.2.1 |
freebsd_5.3 |
freebsd_5.4 |
freebsd_5.5.b4 |
freebsd_6.0 |
freebsd_5.0 |
913,353 |
- |
697423 |
712361 |
714811 |
969174 |
1001579 |
1016967 |
1146371 |
freebsd_5.1 |
958,699 |
652223 |
- |
682433 |
681769 |
1029692 |
1002484 |
1034263 |
1112613 |
freebsd_5.2 |
1,048,418 |
572280 |
604662 |
- |
3252 |
817759 |
865407 |
850969 |
1124929 |
freebsd_5.2.1 |
1,049,592 |
493098 |
607199 |
2078 |
- |
816434 |
870479 |
881654 |
1124304 |
freebsd_5.3 |
1,161,593 |
742327 |
762747 |
705826 |
724190 |
- |
35581 |
78219 |
977778 |
freebsd_5.4 |
1,174,287 |
744511 |
811979 |
732332 |
733290 |
22906 |
- |
25985 |
901307 |
freebsd_5.5.b4 |
1,187,447 |
741616 |
783626 |
735617 |
734211 |
40295 |
12975 |
- |
358820 |
freebsd_6.0 |
1,271,723 |
791490 |
805184 |
905427 |
907359 |
753022 |
766311 |
622653 |
- |
原始内核\目的内核 |
汇编行数 |
freebsd_5.0 |
freebsd_5.1 |
freebsd_5.2 |
freebsd_5.2.1 |
freebsd_5.3 |
freebsd_5.4 |
freebsd_5.5.b4 |
freebsd_6.0 |
freebsd_5.0 |
913,353 |
- |
28.61% |
36.79% |
36.65% |
21.07% |
18.91% |
18.67% |
13.72% |
freebsd_5.1 |
958,699 |
27.24% |
- |
38.18% |
38.37% |
13.76% |
17.92% |
15.98% |
16.60% |
freebsd_5.2 |
1,048,418 |
32.53% |
33.77% |
- |
99.80% |
32.80% |
29.46% |
32.09% |
14.00% |
freebsd_5.2.1 |
1,049,592 |
40.04% |
33.49% |
99.69% |
- |
32.89% |
28.95% |
29.13% |
14.05% |
freebsd_5.3 |
1,161,593 |
14.72% |
16.87% |
29.49% |
28.01% |
- |
98.03% |
95.49% |
25.31% |
freebsd_5.4 |
1,174,287 |
14.38% |
12.49% |
26.92% |
26.94% |
96.97% |
- |
98.91% |
31.54% |
freebsd_5.5.b4 |
1,187,447 |
14.46% |
14.74% |
26.34% |
26.56% |
94.43% |
97.80% |
- |
76.88% |
freebsd_6.0 |
1,271,723 |
9.58% |
12.07% |
11.24% |
11.18% |
32.13% |
32.08% |
44.41% |
- |
原始内核\目标内核 |
汇编行数 |
freebsd_5.3 |
freebsd_6.0 |
netbsd_2.1 |
netbsd_3.0 |
openbsd_3.7 |
openbsd_3.8 |
freebsd_5.3 |
1,161,593 |
- |
25.31% |
16.55% |
16.61% |
16.78% |
16.74% |
freebsd_6.0 |
1,271,723 |
32.13% |
- |
16.65% |
16.22% |
15.89% |
16.24% |
netbsd_2.1 |
1,503,585 |
13.08% |
13.68% |
- |
53.35% |
17.53% |
16.72% |
netbsd_3.0 |
1,616,659 |
11.76% |
12.65% |
24.40% |
- |
13.96% |
14.61% |
openbsd_3.7 |
1,228,137 |
15.60% |
16.54% |
20.77% |
18.44% |
- |
88.89% |
openbsd_3.8 |
1,260,707 |
15.26% |
16.52% |
20.65% |
18.47% |
84.56% |
- |
原始内核\目标内核 |
汇编行数 |
fb 5.0 |
fb 5.2 |
fb 6.0 |
k 2-0 |
k 2-14 |
k 2-21 |
k 2-21 lsb |
l 2.6.16 |
nb 2.1 |
nb 3.0 |
ob 3.7 |
ob 3.8 |
os 5.11 |
freebsd_5.0 |
913,353 |
- |
36.79% |
13.72% |
40.53% |
30.43% |
30.43% |
40.53% |
6.46% |
11.24% |
11.37% |
10.91% |
10.87% |
5.02% |
freebsd_5.2 |
1,048,418 |
32.53% |
- |
14.00% |
48.18% |
34.02% |
34.02% |
48.18% |
5.75% |
11.02% |
10.91% |
10.95% |
10.94% |
4.55% |
freebsd_6.0 |
1,271,723 |
9.58% |
11.24% |
- |
12.63% |
13.19% |
13.14% |
12.63% |
6.61% |
16.65% |
16.22% |
15.89% |
16.24% |
5.21% |
kylin_2.0.0 |
1,120,079 |
31.92% |
41.94% |
14.55% |
- |
91.06% |
91.06% |
100.00% |
5.38% |
10.83% |
10.31% |
10.20% |
10.35% |
4.35% |
kylin_2.0.14 |
1,190,443 |
23.55% |
29.98% |
24.61% |
85.60% |
- |
100.00% |
85.60% |
5.04% |
10.63% |
10.64% |
10.30% |
10.44% |
4.06% |
kylin_2.0.21 |
1,190,562 |
23.52% |
29.95% |
21.04% |
85.57% |
99.99% |
- |
85.57% |
5.03% |
10.72% |
10.63% |
10.29% |
10.44% |
4.06% |
kylin_2.0.21_lsb |
1,120,079 |
31.92% |
41.94% |
14.55% |
100.00% |
91.06% |
91.06% |
- |
5.38% |
10.83% |
10.31% |
10.20% |
10.35% |
4.35% |
linux_2.6.16 |
666,204 |
9.47% |
9.71% |
13.13% |
5.38% |
5.38% |
5.39% |
5.38% |
- |
11.89% |
12.09% |
12.21% |
12.07% |
6.30% |
netbsd_2.1 |
1,503,585 |
6.49% |
7.42% |
13.68% |
8.06% |
8.18% |
7.97% |
8.06% |
5.20% |
- |
53.35% |
17.53% |
16.72% |
4.10% |
netbsd_3.0 |
1,616,659 |
6.19% |
7.11% |
12.65% |
7.54% |
7.90% |
7.89% |
7.54% |
4.98% |
24.40% |
- |
13.96% |
14.61% |
3.73% |
openbsd_3.7 |
1,228,137 |
7.95% |
9.58% |
16.54% |
9.27% |
9.97% |
9.71% |
9.27% |
6.43% |
20.77% |
18.44% |
- |
88.89% |
5.20% |
openbsd_3.8 |
1,260,707 |
7.72% |
8.84% |
16.52% |
8.88% |
9.53% |
9.52% |
8.88% |
6.29% |
20.65% |
18.47% |
84.56% |
- |
5.00% |
OpenSolaris_5.11 |
396,534 |
11.87% |
12.00% |
16.84% |
12.50% |
12.46% |
12.46% |
12.50% |
13.37% |
15.90% |
15.82% |
16.66% |
16.49% |
- |
原始内核\目标内核 |
汇编行数 |
kylin_2.0.0 |
kylin_2.0.14 |
kylin_2.0.21 |
kylin_2.0.21_lsb |
kylin_2.0.0 |
1,120,079 |
- |
170,553 |
170,641 |
0 |
kylin_2.0.14 |
1,190,443 |
101,029 |
- |
145 |
101,029 |
kylin_2.0.21 |
1,190,562 |
101,328 |
26 |
- |
101,328 |
kylin_2.0.21_lsb |
1,120,079 |
0 |
170,553 |
170,641 |
- |
原始内核\目标内核 |
汇编行数 |
fb 5.0 |
fb 5.1 |
fb 5.2 |
fb 5.2.1 |
fb 5.3 |
fb 5.4 |
fb 5.5.b4 |
kylin_2.0.0 |
kylin_2.0.21 |
freebsd_5.0 |
913,353 |
- |
28.61% |
36.79% |
36.65% |
21.07% |
18.91% |
18.67% |
40.53% |
30.43% |
freebsd_5.1 |
958,699 |
27.24% |
- |
38.18% |
38.37% |
13.76% |
17.92% |
15.98% |
28.94% |
26.11% |
freebsd_5.2 |
1,048,418 |
32.53% |
33.77% |
- |
99.80% |
32.80% |
29.46% |
32.09% |
48.18% |
34.02% |
freebsd_5.2.1 |
1,049,592 |
40.04% |
33.49% |
99.69% |
- |
32.89% |
28.95% |
29.13% |
48.15% |
34.47% |
freebsd_5.3 |
1,161,593 |
14.72% |
16.87% |
29.49% |
28.01% |
- |
98.03% |
95.49% |
57.94% |
50.48% |
freebsd_5.4 |
1,174,287 |
14.38% |
12.49% |
26.92% |
26.94% |
96.97% |
- |
98.91% |
56.24% |
51.88% |
freebsd_5.5.b4 |
1,187,447 |
14.46% |
14.74% |
26.34% |
26.56% |
94.43% |
97.80% |
- |
39.47% |
50.16% |
kylin_2.0.0 |
1,120,079 |
31.92% |
20.99% |
41.94% |
41.97% |
60.26% |
59.04% |
42.59% |
- |
91.06% |
kylin_2.0.21 |
1,190,562 |
23.52% |
16.68% |
29.95% |
29.93% |
52.04% |
50.87% |
50.35% |
85.57% |
- |
原始内核\目标内核 |
汇编行数 |
freebsd_5.3 |
freebsd_5.3_1 |
freebsd_5.4 |
freebsd_5.4_1 |
kylin_2.0.0 |
kylin_2.0.21 |
freebsd_5.3 |
1,161,593 |
- |
97.47% |
98.03% |
73.12% |
57.94% |
50.48% |
freebsd_5.3_1 |
1,198,401 |
93.78% |
- |
80.82% |
98.07% |
56.49% |
56.64% |
freebsd_5.4 |
1,174,287 |
96.97% |
94.55% |
- |
96.58% |
56.24% |
51.88% |
freebsd_5.4_1 |
1,210,928 |
91.68% |
97.05% |
94.56% |
- |
55.66% |
55.29% |
kylin_2.0.0 |
1,120,079 |
60.26% |
61.19% |
59.04% |
60.17% |
- |
91.06% |
kylin_2.0.21 |
1,190,562 |
52.04% |
57.02% |
50.87% |
54.38% |
85.57% |
- |
原始内核\目标内核 |
汇编行数 |
freebsd_5.3 |
freebsd_5.3_1 |
freebsd_5.3_2 |
freebsd_5.3_3 |
freebsd_5.3 |
1,161,593 |
- |
97.47% |
72.01% |
71.62% |
freebsd_5.3_1 |
1,198,401 |
93.78% |
- |
96.95% |
94.32% |
freebsd_5.3_2 |
1,256,264 |
66.54% |
45.25% |
- |
98.11% |
freebsd_5.3_3 |
1,271,301 |
67.10% |
89.43% |
96.95% |
- |
以及