Lines Matching +full:main +full:- +full:storage
1 // SPDX-License-Identifier: GPL-2.0
15 #define TEST_CGROUP "/test-bpf-cgroup-storage-buf/"
17 int main(int argc, char **argv) in main() function
50 printf("Not enough memory for per-cpu area (%d cpus)\n", nproc); in main()
90 printf("Failed to get the first key in cgroup storage\n"); in main()
95 printf("Failed to lookup cgroup storage 0\n"); in main()
103 printf("Failed to update the data in the cgroup storage\n"); in main()
108 assert(system("ping localhost -c 1 -W 1 -q > /dev/null") == 0); in main()
109 assert(system("ping localhost -c 1 -W 1 -q > /dev/null")); in main()
110 assert(system("ping localhost -c 1 -W 1 -q > /dev/null") == 0); in main()
112 /* Check the counter in the cgroup local storage */ in main()
114 printf("Failed to lookup cgroup storage\n"); in main()
119 printf("Unexpected data in the cgroup storage: %llu\n", value); in main()
123 /* Bump the counter in the cgroup local storage */ in main()
126 printf("Failed to update the data in the cgroup storage\n"); in main()
131 assert(system("ping localhost -c 1 -W 1 -q > /dev/null") == 0); in main()
132 assert(system("ping localhost -c 1 -W 1 -q > /dev/null")); in main()
133 assert(system("ping localhost -c 1 -W 1 -q > /dev/null") == 0); in main()
135 /* Check the final value of the counter in the cgroup local storage */ in main()
137 printf("Failed to lookup the cgroup storage\n"); in main()
142 printf("Unexpected data in the cgroup storage: %llu\n", value); in main()
146 /* Check the final value of the counter in the percpu local storage */ in main()
152 printf("Failed to lookup the per-cpu cgroup storage\n"); in main()
161 printf("Unexpected data in the per-cpu cgroup storage\n"); in main()