.. | .. |
---|
13 | 13 | #include <sys/resource.h> |
---|
14 | 14 | #include <sys/types.h> |
---|
15 | 15 | #include <sys/stat.h> |
---|
| 16 | +#include <linux/perf_event.h> |
---|
16 | 17 | |
---|
17 | | -#include "libbpf.h" |
---|
| 18 | +#include <bpf/libbpf.h> |
---|
18 | 19 | #include "bpf_load.h" |
---|
19 | 20 | #include "bpf_util.h" |
---|
20 | 21 | #include "perf-sys.h" |
---|
.. | .. |
---|
289 | 290 | |
---|
290 | 291 | int main(int argc, char **argv) |
---|
291 | 292 | { |
---|
292 | | - struct rlimit r = {1024*1024, RLIM_INFINITY}; |
---|
| 293 | + struct rlimit r = {RLIM_INFINITY, RLIM_INFINITY}; |
---|
293 | 294 | extern char __executable_start; |
---|
294 | 295 | char filename[256], buf[256]; |
---|
295 | 296 | __u64 uprobe_file_offset; |
---|
.. | .. |
---|
311 | 312 | } |
---|
312 | 313 | |
---|
313 | 314 | /* test two functions in the corresponding *_kern.c file */ |
---|
314 | | - CHECK_AND_RET(test_debug_fs_kprobe(0, "blk_start_request", |
---|
| 315 | + CHECK_AND_RET(test_debug_fs_kprobe(0, "blk_mq_start_request", |
---|
315 | 316 | BPF_FD_TYPE_KPROBE)); |
---|
316 | | - CHECK_AND_RET(test_debug_fs_kprobe(1, "blk_account_io_completion", |
---|
| 317 | + CHECK_AND_RET(test_debug_fs_kprobe(1, "blk_account_io_done", |
---|
317 | 318 | BPF_FD_TYPE_KRETPROBE)); |
---|
318 | 319 | |
---|
319 | 320 | /* test nondebug fs kprobe */ |
---|