Commit 88b4130
bpf: Add common attr support for btf_load
The log buffer of common attributes would be confusing with the one in
'union bpf_attr' for BPF_BTF_LOAD.
In order to clarify the usage of these two log buffers, they both can be
used for logging if:
* They are same, including 'log_buf', 'log_level' and 'log_size'.
* One of them is missing, then another one will be used for logging.
If they both have 'log_buf' but they are not same totally, return -EUSERS.
Signed-off-by: Leon Hwang <[email protected]>1 parent e5dff25 commit 88b4130
1 file changed
+32
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6151 | 6151 | | |
6152 | 6152 | | |
6153 | 6153 | | |
6154 | | - | |
| 6154 | + | |
| 6155 | + | |
| 6156 | + | |
| 6157 | + | |
| 6158 | + | |
| 6159 | + | |
| 6160 | + | |
| 6161 | + | |
| 6162 | + | |
| 6163 | + | |
| 6164 | + | |
| 6165 | + | |
| 6166 | + | |
| 6167 | + | |
| 6168 | + | |
| 6169 | + | |
| 6170 | + | |
| 6171 | + | |
| 6172 | + | |
| 6173 | + | |
| 6174 | + | |
| 6175 | + | |
| 6176 | + | |
6155 | 6177 | | |
6156 | 6178 | | |
6157 | 6179 | | |
6158 | 6180 | | |
| 6181 | + | |
| 6182 | + | |
| 6183 | + | |
| 6184 | + | |
6159 | 6185 | | |
6160 | 6186 | | |
6161 | 6187 | | |
| |||
6270 | 6296 | | |
6271 | 6297 | | |
6272 | 6298 | | |
| 6299 | + | |
| 6300 | + | |
| 6301 | + | |
6273 | 6302 | | |
6274 | 6303 | | |
6275 | | - | |
| 6304 | + | |
| 6305 | + | |
6276 | 6306 | | |
6277 | 6307 | | |
6278 | 6308 | | |
| |||
0 commit comments