Improve the sysctl symbol extraction from the kernel so that it find more
(all?) sysctl's. Previously some where missed, depending on how they were defined.
This commit is contained in:
parent
5b596f0f5f
commit
26da3555ff
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=254073
@ -88,7 +88,7 @@ EOF
|
||||
# tunables in our tunables.mdoc file and generate
|
||||
# the final 'inner circle' of our manual page.
|
||||
markup_create() {
|
||||
sort < _names | \
|
||||
sort -u < _names | \
|
||||
xargs -n 1 /bin/sh ./sysctl.sh \
|
||||
> markup.file \
|
||||
2> tunables.TODO
|
||||
@ -238,9 +238,13 @@ if [ -z "$LOCATION" ] ;
|
||||
&& for x in `find $LOCATION -name '*.kld'` \
|
||||
$LOCATION/kernel; \
|
||||
do nm $x | \
|
||||
grep ' sysctl___' | uniq | \
|
||||
sed 's/sysctl___//g' | sed 's/_/./g' | \
|
||||
awk {'print $3'} > _names;
|
||||
sed -n '/sysctl___/ {
|
||||
's/[\.a-z_]*sysctl___//g'
|
||||
's/_/./g'
|
||||
p
|
||||
}' | \
|
||||
awk {'print $3'} | \
|
||||
sort -u > _names;
|
||||
done;
|
||||
markup_create
|
||||
page_create
|
||||
|
Loading…
Reference in New Issue
Block a user