bpf: samples: Do not touch RLIMIT_MEMLOCK
[linux-2.6-microblaze.git] / samples / bpf / map_perf_test_user.c
index 8b13230..9db9492 100644 (file)
@@ -421,7 +421,6 @@ static void fixup_map(struct bpf_object *obj)
 
 int main(int argc, char **argv)
 {
-       struct rlimit r = {RLIM_INFINITY, RLIM_INFINITY};
        int nr_cpus = sysconf(_SC_NPROCESSORS_ONLN);
        struct bpf_link *links[8];
        struct bpf_program *prog;
@@ -430,11 +429,6 @@ int main(int argc, char **argv)
        char filename[256];
        int i = 0;
 
-       if (setrlimit(RLIMIT_MEMLOCK, &r)) {
-               perror("setrlimit(RLIMIT_MEMLOCK)");
-               return 1;
-       }
-
        if (argc > 1)
                test_flags = atoi(argv[1]) ? : test_flags;