diff options
| author | Roman Gushchin <[email protected]> | 2020-12-01 21:59:00 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2020-12-03 02:32:47 +0000 |
| commit | 5b0764b2d34510bc87d33a580da98f77789ac36f (patch) | |
| tree | bd80a792599f564fcbcf074a0e7618a9d71b2fd8 /samples/bpf/tracex5_user.c | |
| parent | bpf: Eliminate rlimit-based memory accounting for bpf progs (diff) | |
| download | kernel-5b0764b2d34510bc87d33a580da98f77789ac36f.tar.gz kernel-5b0764b2d34510bc87d33a580da98f77789ac36f.zip | |
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 <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Acked-by: Song Liu <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'samples/bpf/tracex5_user.c')
| -rw-r--r-- | samples/bpf/tracex5_user.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/samples/bpf/tracex5_user.c b/samples/bpf/tracex5_user.c index c17d3fb5fd64..08dfdc77ad2a 100644 --- a/samples/bpf/tracex5_user.c +++ b/samples/bpf/tracex5_user.c @@ -34,7 +34,6 @@ static void install_accept_all_seccomp(void) int main(int ac, char **argv) { - struct rlimit r = {RLIM_INFINITY, RLIM_INFINITY}; struct bpf_link *link = NULL; struct bpf_program *prog; struct bpf_object *obj; @@ -43,8 +42,6 @@ int main(int ac, char **argv) char filename[256]; FILE *f; - setrlimit(RLIMIT_MEMLOCK, &r); - snprintf(filename, sizeof(filename), "%s_kern.o", argv[0]); obj = bpf_object__open_file(filename, NULL); if (libbpf_get_error(obj)) { |
