man-pages: Improve the --nr_methods/-m pahole man page entry

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
Arnaldo Carvalho de Melo 2021-08-03 17:42:04 -03:00
parent 3895127ce6
commit 7cfc9be1f2
1 changed files with 10 additions and 1 deletions

View File

@ -238,7 +238,16 @@ Show first biggest size base_type member.
.TP
.B \-m, \-\-nr_methods
Show number of methods.
Show number of methods of all classes, i.e. the number of functions have arguments that
are pointers to a given class.
To get the number of methods for an specific class, please use:
$ pahole --nr_methods | grep -w sock
sock 1005
$
In the above example it used the BTF information in /sys/kernel/btf/vmlinux.
.TP
.B \-M, \-\-show_only_data_members