libbpf-tools/klockstat: no more rlimit bumping + add comment
authorDave Marchevsky <davemarchevsky@fb.com>
Fri, 7 Jan 2022 03:19:36 +0000 (22:19 -0500)
committerDave Marchevsky <davemarchevsky@fb.com>
Fri, 7 Jan 2022 03:24:41 +0000 (22:24 -0500)
commitf266e634bc5ae6d6871d3b55d432a73f1baed4d4
treef79468f30dff17e1b8841d00c857d0ba791e9c42
parent61d641780c29dbe582e05d0aa3eedb2b91f9f857
libbpf-tools/klockstat: no more rlimit bumping + add comment

The PR adding the libbpf-tools port of klockstat was sitting in a
mergeable state for some time. Meanwhile, libbpf stopped exposing
rlimit_memlock bumping API and now does the rlimit bump automatically if
necessary. So remove the bump_rlimit_memlock call and set libbpf strict
mode for this tool.

Also, add a comment (from @brho's PR summary in #3688) detailing the
differences in default behavior between the libbpf-tools and bcc-python
versions.

Signed-off-by: Dave Marchevsky <davemarchevsky@fb.com>
libbpf-tools/klockstat.c