Skip to content

Commit e97a96b

Browse files
committed
docs: Add awk section for ucount sysctl entries
Adjust the sysctl table detection to include the macro pattern used for the ucount ctl_tables. This prevents falsly assigning them as non-documented ctl_tables Signed-off-by: Joel Granados <[email protected]>
1 parent be0aef1 commit e97a96b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

scripts/check-sysctl-docs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,14 @@ curtable && /\.procname[\t ]*=[\t ]*".+"/ {
130130
file[curentry] = FILENAME
131131
}
132132

133+
curtable && /UCOUNT_ENTRY.*/ {
134+
match($0, /UCOUNT_ENTRY\("([^"]+)"\)/, names)
135+
curentry = names[1]
136+
if (debug) print "Adding entry " curentry " to table " curtable
137+
entries[curtable][curentry]++
138+
file[curentry] = FILENAME
139+
}
140+
133141
/register_sysctl.*/ {
134142
match($0, /register_sysctl(|_init|_sz)\("([^"]+)" *, *([^,)]+)/, tables)
135143
if (debug) print "Registering table " tables[3] " at " tables[2]

0 commit comments

Comments
 (0)