Page MenuHomeFreeBSD

More restrict on probe function entry. We only check first instruction now. The only expcetion case is when function uses va_args, the first instrction is skipped.
ClosedPublic

Authored by howard0su_gmail.com on Dec 7 2015, 7:00 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 29, 12:53 AM
Unknown Object (File)
Nov 5 2024, 4:54 AM
Unknown Object (File)
Sep 14 2024, 6:13 AM
Unknown Object (File)
Sep 7 2024, 7:03 PM
Unknown Object (File)
Sep 5 2024, 9:37 PM
Unknown Object (File)
Sep 4 2024, 1:39 PM
Unknown Object (File)
Aug 12 2024, 9:37 PM
Unknown Object (File)
Jul 28 2024, 1:25 PM
Subscribers

Details

Summary

with this change, fbt detected 12 less functions. Most are hand write
assembly functions, and some are c functions without stack usage.
< bcopy
< bzero
< copyin
< copyout
< get_pc_str_offset
< insw16
< inswm8
< memcpy
< outsw16
< outswm8
< read_multi_1
< write_multi_1

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

howard0su_gmail.com retitled this revision from to More restrict on probe function entry. We only check first instruction now. The only expcetion case is when function uses va_args, the first instrction is skipped..
howard0su_gmail.com updated this object.
howard0su_gmail.com edited the test plan for this revision. (Show Details)
sys/cddl/dev/fbt/arm/fbt_isa.c
45 ↗(On Diff #10841)

This should be #define<tab>FBT_SUBSP

119 ↗(On Diff #10841)

This mask should become a macro.

123 ↗(On Diff #10841)

why 0x4000?

howard0su_gmail.com edited edge metadata.

Address review comments.

howard0su_gmail.com added inline comments.
sys/cddl/dev/fbt/arm/fbt_isa.c
120 ↗(On Diff #10955)

we have different mask here one is fffff000 the another is 0xffff0000. And below code uses 0xff000000. It is hard to give meaningful names to those masks.

andrew edited edge metadata.
andrew added inline comments.
sys/cddl/dev/fbt/arm/fbt_isa.c
38 ↗(On Diff #10955)

What was this for? It seem unrelated to the change.

This revision is now accepted and ready to land.Dec 15 2015, 1:51 PM
howard0su_gmail.com added inline comments.
sys/cddl/dev/fbt/arm/fbt_isa.c
38 ↗(On Diff #10955)
(*instr & (1 << LR)) == 0)

LR is imported from stack.h

This revision was automatically updated to reflect the committed changes.