Lines Matching defs:prog
44 struct bpf_insn prog[] = {
50 fd = bpf_test_load_program(type, prog, ARRAY_SIZE(prog), "GPL", 0, NULL, 0);
57 static __u32 query_prog_id(int prog)
63 err = bpf_prog_get_info_by_fd(prog, &info, &info_len);
159 /* Expect failure creating link when prog attached */
186 /* Expect failure attaching prog when link exists */
209 /* Expect failure detaching prog when link exists */
237 /* Expect no prog attached after successful detach */
254 /* Expect no prog attached after closing last link FD */
271 /* Expect success replacing the prog when old prog not specified */
296 /* Expect success F_REPLACE and old prog specified to succeed */
321 /* Expect success updating the prog with the same one */
346 /* Expect update to fail w/ old prog FD but w/o F_REPLACE*/
357 /* Expect update to fail on old prog FD mismatch */
368 /* Expect update to fail for invalid old prog FD */
406 /* Expect failure when new prog FD is not valid */
421 /* Expect failure when new prog FD type doesn't match */
507 /* Expect link info to be sane and match prog and netns details */
531 /* Expect no info change after update except in prog id */
578 { "prog attach, prog attach",
582 { "prog attach, link create",
584 { "link create, prog attach",
586 { "link create, prog detach",
588 { "prog attach, detach, query",
592 { "link update no old prog",
594 { "link update with replace old prog",
596 { "link update with same prog",
600 { "link update invalid prog",