mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 04:24:31 +01:00
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 <joel.granados@kernel.org>
This commit is contained in:
parent
be0aef10dc
commit
e97a96baa5
1 changed files with 8 additions and 0 deletions
|
|
@ -130,6 +130,14 @@ curtable && /\.procname[\t ]*=[\t ]*".+"/ {
|
|||
file[curentry] = FILENAME
|
||||
}
|
||||
|
||||
curtable && /UCOUNT_ENTRY.*/ {
|
||||
match($0, /UCOUNT_ENTRY\("([^"]+)"\)/, names)
|
||||
curentry = names[1]
|
||||
if (debug) print "Adding entry " curentry " to table " curtable
|
||||
entries[curtable][curentry]++
|
||||
file[curentry] = FILENAME
|
||||
}
|
||||
|
||||
/register_sysctl.*/ {
|
||||
match($0, /register_sysctl(|_init|_sz)\("([^"]+)" *, *([^,)]+)/, tables)
|
||||
if (debug) print "Registering table " tables[3] " at " tables[2]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue