| .. | .. |
|---|
| 1 | | -// SPDX-License-Identifier: GPL-2.0+ |
|---|
| 1 | +// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
|---|
| 2 | 2 | // Copyright (C) 2018 Facebook |
|---|
| 3 | 3 | // Author: Yonghong Song <yhs@fb.com> |
|---|
| 4 | 4 | |
|---|
| .. | .. |
|---|
| 13 | 13 | #include <unistd.h> |
|---|
| 14 | 14 | #include <ftw.h> |
|---|
| 15 | 15 | |
|---|
| 16 | | -#include <bpf.h> |
|---|
| 16 | +#include <bpf/bpf.h> |
|---|
| 17 | 17 | |
|---|
| 18 | 18 | #include "main.h" |
|---|
| 19 | 19 | |
|---|
| .. | .. |
|---|
| 104 | 104 | jsonw_string_field(json_wtr, "filename", buf); |
|---|
| 105 | 105 | jsonw_lluint_field(json_wtr, "offset", probe_offset); |
|---|
| 106 | 106 | break; |
|---|
| 107 | + default: |
|---|
| 108 | + break; |
|---|
| 107 | 109 | } |
|---|
| 108 | 110 | jsonw_end_object(json_wtr); |
|---|
| 109 | 111 | } |
|---|
| .. | .. |
|---|
| 139 | 141 | case BPF_FD_TYPE_URETPROBE: |
|---|
| 140 | 142 | printf("uretprobe filename %s offset %llu\n", buf, |
|---|
| 141 | 143 | probe_offset); |
|---|
| 144 | + break; |
|---|
| 145 | + default: |
|---|
| 142 | 146 | break; |
|---|
| 143 | 147 | } |
|---|
| 144 | 148 | } |
|---|
| .. | .. |
|---|
| 227 | 231 | static int do_help(int argc, char **argv) |
|---|
| 228 | 232 | { |
|---|
| 229 | 233 | fprintf(stderr, |
|---|
| 230 | | - "Usage: %s %s { show | list | help }\n" |
|---|
| 234 | + "Usage: %1$s %2$s { show | list | help }\n" |
|---|
| 231 | 235 | "", |
|---|
| 232 | 236 | bin_name, argv[-2]); |
|---|
| 233 | 237 | |
|---|