diff options
Diffstat (limited to 'lib/test_bpf.c')
-rw-r--r-- | lib/test_bpf.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/test_bpf.c b/lib/test_bpf.c index 9e9748089270..f369889e521d 100644 --- a/lib/test_bpf.c +++ b/lib/test_bpf.c | |||
@@ -6250,9 +6250,8 @@ static struct bpf_prog *generate_filter(int which, int *err) | |||
6250 | return NULL; | 6250 | return NULL; |
6251 | } | 6251 | } |
6252 | } | 6252 | } |
6253 | /* We don't expect to fail. */ | ||
6254 | if (*err) { | 6253 | if (*err) { |
6255 | pr_cont("FAIL to attach err=%d len=%d\n", | 6254 | pr_cont("FAIL to prog_create err=%d len=%d\n", |
6256 | *err, fprog.len); | 6255 | *err, fprog.len); |
6257 | return NULL; | 6256 | return NULL; |
6258 | } | 6257 | } |
@@ -6276,6 +6275,10 @@ static struct bpf_prog *generate_filter(int which, int *err) | |||
6276 | * checks. | 6275 | * checks. |
6277 | */ | 6276 | */ |
6278 | fp = bpf_prog_select_runtime(fp, err); | 6277 | fp = bpf_prog_select_runtime(fp, err); |
6278 | if (*err) { | ||
6279 | pr_cont("FAIL to select_runtime err=%d\n", *err); | ||
6280 | return NULL; | ||
6281 | } | ||
6279 | break; | 6282 | break; |
6280 | } | 6283 | } |
6281 | 6284 | ||
@@ -6461,8 +6464,8 @@ static __init int test_bpf(void) | |||
6461 | pass_cnt++; | 6464 | pass_cnt++; |
6462 | continue; | 6465 | continue; |
6463 | } | 6466 | } |
6464 | 6467 | err_cnt++; | |
6465 | return err; | 6468 | continue; |
6466 | } | 6469 | } |
6467 | 6470 | ||
6468 | pr_cont("jited:%u ", fp->jited); | 6471 | pr_cont("jited:%u ", fp->jited); |