diff options
author | Roman Gushchin <guro@fb.com> | 2020-12-02 00:59:00 +0300 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2020-12-03 05:32:47 +0300 |
commit | 5b0764b2d34510bc87d33a580da98f77789ac36f (patch) | |
tree | bd80a792599f564fcbcf074a0e7618a9d71b2fd8 /samples/bpf/offwaketime_user.c | |
parent | 3ac1f01b43b6e2759cc34d3a715ba5eed04c5805 (diff) | |
download | linux-5b0764b2d34510bc87d33a580da98f77789ac36f.tar.xz |
bpf: samples: Do not touch RLIMIT_MEMLOCK
Since bpf is not using rlimit memlock for the memory accounting
and control, do not change the limit in sample applications.
Signed-off-by: Roman Gushchin <guro@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Song Liu <songliubraving@fb.com>
Link: https://lore.kernel.org/bpf/20201201215900.3569844-35-guro@fb.com
Diffstat (limited to 'samples/bpf/offwaketime_user.c')
-rw-r--r-- | samples/bpf/offwaketime_user.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/samples/bpf/offwaketime_user.c b/samples/bpf/offwaketime_user.c index 5734cfdaaacb..73a986876c1a 100644 --- a/samples/bpf/offwaketime_user.c +++ b/samples/bpf/offwaketime_user.c @@ -95,18 +95,12 @@ static void int_exit(int sig) int main(int argc, char **argv) { - struct rlimit r = {RLIM_INFINITY, RLIM_INFINITY}; struct bpf_object *obj = NULL; struct bpf_link *links[2]; struct bpf_program *prog; int delay = 1, i = 0; char filename[256]; - if (setrlimit(RLIMIT_MEMLOCK, &r)) { - perror("setrlimit(RLIMIT_MEMLOCK)"); - return 1; - } - if (load_kallsyms()) { printf("failed to process /proc/kallsyms\n"); return 2; |