MAINTAINERS: Add an entry for os noise/latency
[linux-2.6-microblaze.git] / samples / bpf / tracex2_user.c
index 3d6eab7..1626d51 100644 (file)
@@ -116,7 +116,6 @@ static void int_exit(int sig)
 
 int main(int ac, char **argv)
 {
-       struct rlimit r = {RLIM_INFINITY, RLIM_INFINITY};
        long key, next_key, value;
        struct bpf_link *links[2];
        struct bpf_program *prog;
@@ -125,11 +124,6 @@ int main(int ac, char **argv)
        int i, j = 0;
        FILE *f;
 
-       if (setrlimit(RLIMIT_MEMLOCK, &r)) {
-               perror("setrlimit(RLIMIT_MEMLOCK)");
-               return 1;
-       }
-
        snprintf(filename, sizeof(filename), "%s_kern.o", argv[0]);
        obj = bpf_object__open_file(filename, NULL);
        if (libbpf_get_error(obj)) {