prog              189 arch/arm/net/bpf_jit_32.c 	const struct bpf_prog *prog;
prog              349 arch/arm/net/bpf_jit_32.c #define _STACK_SIZE	(ctx->prog->aux->stack_depth + SCRATCH_SIZE)
prog              375 arch/arm/net/bpf_jit_32.c 	offset =  ctx->offsets[ctx->prog->len - 1] * 4;
prog              736 arch/arm/net/bpf_jit_32.c 		if (!ctx->prog->aux->verifier_zext)
prog              759 arch/arm/net/bpf_jit_32.c 		if (!ctx->prog->aux->verifier_zext)
prog             1078 arch/arm/net/bpf_jit_32.c 		if (!ctx->prog->aux->verifier_zext)
prog             1084 arch/arm/net/bpf_jit_32.c 		if (!ctx->prog->aux->verifier_zext)
prog             1090 arch/arm/net/bpf_jit_32.c 		if (!ctx->prog->aux->verifier_zext)
prog             1354 arch/arm/net/bpf_jit_32.c 	const int i = insn - ctx->prog->insnsi;
prog             1464 arch/arm/net/bpf_jit_32.c 		if (!ctx->prog->aux->verifier_zext)
prog             1480 arch/arm/net/bpf_jit_32.c 		if (!ctx->prog->aux->verifier_zext)
prog             1516 arch/arm/net/bpf_jit_32.c 		if (!ctx->prog->aux->verifier_zext)
prog             1573 arch/arm/net/bpf_jit_32.c 			if (!ctx->prog->aux->verifier_zext)
prog             1578 arch/arm/net/bpf_jit_32.c 			if (!ctx->prog->aux->verifier_zext)
prog             1799 arch/arm/net/bpf_jit_32.c 		if (i == ctx->prog->len - 1)
prog             1825 arch/arm/net/bpf_jit_32.c 	const struct bpf_prog *prog = ctx->prog;
prog             1828 arch/arm/net/bpf_jit_32.c 	for (i = 0; i < prog->len; i++) {
prog             1829 arch/arm/net/bpf_jit_32.c 		const struct bpf_insn *insn = &(prog->insnsi[i]);
prog             1864 arch/arm/net/bpf_jit_32.c void bpf_jit_compile(struct bpf_prog *prog)
prog             1874 arch/arm/net/bpf_jit_32.c struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *prog)
prog             1876 arch/arm/net/bpf_jit_32.c 	struct bpf_prog *tmp, *orig_prog = prog;
prog             1887 arch/arm/net/bpf_jit_32.c 	if (!prog->jit_requested)
prog             1894 arch/arm/net/bpf_jit_32.c 	tmp = bpf_jit_blind_constants(prog);
prog             1898 arch/arm/net/bpf_jit_32.c 	if (tmp != prog) {
prog             1900 arch/arm/net/bpf_jit_32.c 		prog = tmp;
prog             1904 arch/arm/net/bpf_jit_32.c 	ctx.prog = prog;
prog             1910 arch/arm/net/bpf_jit_32.c 	ctx.offsets = kcalloc(prog->len, sizeof(int), GFP_KERNEL);
prog             1912 arch/arm/net/bpf_jit_32.c 		prog = orig_prog;
prog             1927 arch/arm/net/bpf_jit_32.c 		prog = orig_prog;
prog             1946 arch/arm/net/bpf_jit_32.c 			prog = orig_prog;
prog             1971 arch/arm/net/bpf_jit_32.c 		prog = orig_prog;
prog             1987 arch/arm/net/bpf_jit_32.c 		prog = orig_prog;
prog             1996 arch/arm/net/bpf_jit_32.c 		prog = orig_prog;
prog             2003 arch/arm/net/bpf_jit_32.c 		bpf_jit_dump(prog->len, image_size, 2, ctx.target);
prog             2006 arch/arm/net/bpf_jit_32.c 	prog->bpf_func = (void *)ctx.target;
prog             2007 arch/arm/net/bpf_jit_32.c 	prog->jited = 1;
prog             2008 arch/arm/net/bpf_jit_32.c 	prog->jited_len = image_size;
prog             2019 arch/arm/net/bpf_jit_32.c 		bpf_jit_prog_release_other(prog, prog == orig_prog ?
prog             2021 arch/arm/net/bpf_jit_32.c 	return prog;
prog               55 arch/arm64/net/bpf_jit_comp.c 	const struct bpf_prog *prog;
prog              178 arch/arm64/net/bpf_jit_comp.c 	const struct bpf_prog *prog = ctx->prog;
prog              235 arch/arm64/net/bpf_jit_comp.c 	ctx->stack_size = STACK_ALIGN(prog->aux->stack_depth);
prog              353 arch/arm64/net/bpf_jit_comp.c 	const int i = insn - ctx->prog->insnsi;
prog              642 arch/arm64/net/bpf_jit_comp.c 		ret = bpf_jit_get_func_addr(ctx->prog, insn, extra_pass,
prog              660 arch/arm64/net/bpf_jit_comp.c 		if (i == ctx->prog->len - 1)
prog              780 arch/arm64/net/bpf_jit_comp.c 	const struct bpf_prog *prog = ctx->prog;
prog              783 arch/arm64/net/bpf_jit_comp.c 	for (i = 0; i < prog->len; i++) {
prog              784 arch/arm64/net/bpf_jit_comp.c 		const struct bpf_insn *insn = &prog->insnsi[i];
prog              828 arch/arm64/net/bpf_jit_comp.c struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *prog)
prog              830 arch/arm64/net/bpf_jit_comp.c 	struct bpf_prog *tmp, *orig_prog = prog;
prog              833 arch/arm64/net/bpf_jit_comp.c 	bool was_classic = bpf_prog_was_classic(prog);
prog              840 arch/arm64/net/bpf_jit_comp.c 	if (!prog->jit_requested)
prog              843 arch/arm64/net/bpf_jit_comp.c 	tmp = bpf_jit_blind_constants(prog);
prog              849 arch/arm64/net/bpf_jit_comp.c 	if (tmp != prog) {
prog              851 arch/arm64/net/bpf_jit_comp.c 		prog = tmp;
prog              854 arch/arm64/net/bpf_jit_comp.c 	jit_data = prog->aux->jit_data;
prog              858 arch/arm64/net/bpf_jit_comp.c 			prog = orig_prog;
prog              861 arch/arm64/net/bpf_jit_comp.c 		prog->aux->jit_data = jit_data;
prog              872 arch/arm64/net/bpf_jit_comp.c 	ctx.prog = prog;
prog              874 arch/arm64/net/bpf_jit_comp.c 	ctx.offset = kcalloc(prog->len, sizeof(int), GFP_KERNEL);
prog              876 arch/arm64/net/bpf_jit_comp.c 		prog = orig_prog;
prog              884 arch/arm64/net/bpf_jit_comp.c 		prog = orig_prog;
prog              889 arch/arm64/net/bpf_jit_comp.c 		prog = orig_prog;
prog              901 arch/arm64/net/bpf_jit_comp.c 		prog = orig_prog;
prog              915 arch/arm64/net/bpf_jit_comp.c 		prog = orig_prog;
prog              924 arch/arm64/net/bpf_jit_comp.c 		prog = orig_prog;
prog              930 arch/arm64/net/bpf_jit_comp.c 		bpf_jit_dump(prog->len, image_size, 2, ctx.image);
prog              934 arch/arm64/net/bpf_jit_comp.c 	if (!prog->is_func || extra_pass) {
prog              939 arch/arm64/net/bpf_jit_comp.c 			prog->bpf_func = NULL;
prog              940 arch/arm64/net/bpf_jit_comp.c 			prog->jited = 0;
prog              949 arch/arm64/net/bpf_jit_comp.c 	prog->bpf_func = (void *)ctx.image;
prog              950 arch/arm64/net/bpf_jit_comp.c 	prog->jited = 1;
prog              951 arch/arm64/net/bpf_jit_comp.c 	prog->jited_len = image_size;
prog              953 arch/arm64/net/bpf_jit_comp.c 	if (!prog->is_func || extra_pass) {
prog              954 arch/arm64/net/bpf_jit_comp.c 		bpf_prog_fill_jited_linfo(prog, ctx.offset);
prog              958 arch/arm64/net/bpf_jit_comp.c 		prog->aux->jit_data = NULL;
prog              962 arch/arm64/net/bpf_jit_comp.c 		bpf_jit_prog_release_other(prog, prog == orig_prog ?
prog              964 arch/arm64/net/bpf_jit_comp.c 	return prog;
prog              245 arch/mips/include/asm/octeon/cvmx-lmcx-defs.h 		uint64_t prog:8;
prog              249 arch/mips/include/asm/octeon/cvmx-lmcx-defs.h 		uint64_t prog:8;
prog              262 arch/mips/include/asm/octeon/cvmx-lmcx-defs.h 		uint64_t prog:8;
prog              266 arch/mips/include/asm/octeon/cvmx-lmcx-defs.h 		uint64_t prog:8;
prog             2194 arch/mips/include/asm/octeon/cvmx-mio-defs.h 		uint64_t prog:1;
prog             2196 arch/mips/include/asm/octeon/cvmx-mio-defs.h 		uint64_t prog:1;
prog             2204 arch/mips/include/asm/octeon/cvmx-mio-defs.h 		uint64_t prog:1;
prog             2206 arch/mips/include/asm/octeon/cvmx-mio-defs.h 		uint64_t prog:1;
prog              354 arch/mips/net/ebpf_jit.c 	const struct bpf_prog *prog = ctx->skf;
prog              362 arch/mips/net/ebpf_jit.c 		td = get_reg_val_type(ctx, prog->len, BPF_REG_0);
prog             1520 arch/mips/net/ebpf_jit.c 	const struct bpf_prog *prog = ctx->skf;
prog             1524 arch/mips/net/ebpf_jit.c 	for (i = 0; i < prog->len; ) {
prog             1525 arch/mips/net/ebpf_jit.c 		insn = prog->insnsi + i;
prog             1535 arch/mips/net/ebpf_jit.c 		r = build_one_insn(insn, ctx, i, prog->len);
prog             1550 arch/mips/net/ebpf_jit.c 		for (i = 0; i < prog->len; i++) {
prog             1551 arch/mips/net/ebpf_jit.c 			insn = prog->insnsi + i;
prog             1562 arch/mips/net/ebpf_jit.c 	const struct bpf_prog *prog = ctx->skf;
prog             1569 arch/mips/net/ebpf_jit.c 	for (idx = start_idx; idx < prog->len; idx++) {
prog             1571 arch/mips/net/ebpf_jit.c 		insn = prog->insnsi + idx;
prog             1681 arch/mips/net/ebpf_jit.c 				rvt[prog->len] = exit_rvt;
prog             1738 arch/mips/net/ebpf_jit.c 	const struct bpf_prog *prog = ctx->skf;
prog             1765 arch/mips/net/ebpf_jit.c 	for (i = 0; i < prog->len; i++) {
prog             1797 arch/mips/net/ebpf_jit.c struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *prog)
prog             1799 arch/mips/net/ebpf_jit.c 	struct bpf_prog *orig_prog = prog;
prog             1807 arch/mips/net/ebpf_jit.c 	if (!prog->jit_requested)
prog             1808 arch/mips/net/ebpf_jit.c 		return prog;
prog             1810 arch/mips/net/ebpf_jit.c 	tmp = bpf_jit_blind_constants(prog);
prog             1816 arch/mips/net/ebpf_jit.c 	if (tmp != prog) {
prog             1818 arch/mips/net/ebpf_jit.c 		prog = tmp;
prog             1836 arch/mips/net/ebpf_jit.c 	ctx.offsets = kcalloc(prog->len + 1, sizeof(*ctx.offsets), GFP_KERNEL);
prog             1840 arch/mips/net/ebpf_jit.c 	ctx.reg_val_types = kcalloc(prog->len + 1, sizeof(*ctx.reg_val_types), GFP_KERNEL);
prog             1844 arch/mips/net/ebpf_jit.c 	ctx.skf = prog;
prog             1910 arch/mips/net/ebpf_jit.c 		bpf_jit_dump(prog->len, image_size, 2, ctx.target);
prog             1913 arch/mips/net/ebpf_jit.c 	prog->bpf_func = (void *)ctx.target;
prog             1914 arch/mips/net/ebpf_jit.c 	prog->jited = 1;
prog             1915 arch/mips/net/ebpf_jit.c 	prog->jited_len = image_size;
prog             1918 arch/mips/net/ebpf_jit.c 		bpf_jit_prog_release_other(prog, prog == orig_prog ?
prog             1923 arch/mips/net/ebpf_jit.c 	return prog;
prog             1926 arch/mips/net/ebpf_jit.c 	prog = orig_prog;
prog               77 arch/riscv/net/bpf_jit_comp.c 	struct bpf_prog *prog;
prog              740 arch/riscv/net/bpf_jit_comp.c 	struct bpf_prog_aux *aux = ctx->prog->aux;
prog              741 arch/riscv/net/bpf_jit_comp.c 	int rvoff, i = insn - ctx->prog->insnsi;
prog             1220 arch/riscv/net/bpf_jit_comp.c 		ret = bpf_jit_get_func_addr(ctx->prog, insn, extra_pass, &addr,
prog             1248 arch/riscv/net/bpf_jit_comp.c 		if (i == ctx->prog->len - 1)
prog             1435 arch/riscv/net/bpf_jit_comp.c 	bpf_stack_adjust = round_up(ctx->prog->aux->stack_depth, 16);
prog             1519 arch/riscv/net/bpf_jit_comp.c 	const struct bpf_prog *prog = ctx->prog;
prog             1522 arch/riscv/net/bpf_jit_comp.c 	for (i = 0; i < prog->len; i++) {
prog             1523 arch/riscv/net/bpf_jit_comp.c 		const struct bpf_insn *insn = &prog->insnsi[i];
prog             1556 arch/riscv/net/bpf_jit_comp.c struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *prog)
prog             1559 arch/riscv/net/bpf_jit_comp.c 	struct bpf_prog *tmp, *orig_prog = prog;
prog             1564 arch/riscv/net/bpf_jit_comp.c 	if (!prog->jit_requested)
prog             1567 arch/riscv/net/bpf_jit_comp.c 	tmp = bpf_jit_blind_constants(prog);
prog             1570 arch/riscv/net/bpf_jit_comp.c 	if (tmp != prog) {
prog             1572 arch/riscv/net/bpf_jit_comp.c 		prog = tmp;
prog             1575 arch/riscv/net/bpf_jit_comp.c 	jit_data = prog->aux->jit_data;
prog             1579 arch/riscv/net/bpf_jit_comp.c 			prog = orig_prog;
prog             1582 arch/riscv/net/bpf_jit_comp.c 		prog->aux->jit_data = jit_data;
prog             1593 arch/riscv/net/bpf_jit_comp.c 	ctx->prog = prog;
prog             1594 arch/riscv/net/bpf_jit_comp.c 	ctx->offset = kcalloc(prog->len, sizeof(int), GFP_KERNEL);
prog             1596 arch/riscv/net/bpf_jit_comp.c 		prog = orig_prog;
prog             1602 arch/riscv/net/bpf_jit_comp.c 		prog = orig_prog;
prog             1615 arch/riscv/net/bpf_jit_comp.c 		prog = orig_prog;
prog             1627 arch/riscv/net/bpf_jit_comp.c 		prog = orig_prog;
prog             1633 arch/riscv/net/bpf_jit_comp.c 		bpf_jit_dump(prog->len, image_size, 2, ctx->insns);
prog             1635 arch/riscv/net/bpf_jit_comp.c 	prog->bpf_func = (void *)ctx->insns;
prog             1636 arch/riscv/net/bpf_jit_comp.c 	prog->jited = 1;
prog             1637 arch/riscv/net/bpf_jit_comp.c 	prog->jited_len = image_size;
prog             1641 arch/riscv/net/bpf_jit_comp.c 	if (!prog->is_func || extra_pass) {
prog             1645 arch/riscv/net/bpf_jit_comp.c 		prog->aux->jit_data = NULL;
prog             1649 arch/riscv/net/bpf_jit_comp.c 		bpf_jit_prog_release_other(prog, prog == orig_prog ?
prog             1651 arch/riscv/net/bpf_jit_comp.c 	return prog;
prog              108 arch/sparc/net/bpf_jit_comp_32.c 	*prog++ = SETHI(0, G0);	\
prog              113 arch/sparc/net/bpf_jit_comp_32.c 	*prog++ = SUB | RS1(G0) | RS2(r_A) | RD(r_A);	\
prog              118 arch/sparc/net/bpf_jit_comp_32.c 	*prog++ = OR | RS1(G0) | RS2(FROM) | RD(TO);	\
prog              123 arch/sparc/net/bpf_jit_comp_32.c 	*prog++ = OR | RS1(G0) | RS2(G0) | RD(REG);	\
prog              128 arch/sparc/net/bpf_jit_comp_32.c 	*prog++ = SETHI(K, REG);				\
prog              130 arch/sparc/net/bpf_jit_comp_32.c 	*prog++ = OR_LO(K, REG);				\
prog              140 arch/sparc/net/bpf_jit_comp_32.c 	*prog++ = OPCODE | RS1(r_A) | RS2(r_X) | RD(r_A);	\
prog              163 arch/sparc/net/bpf_jit_comp_32.c 			*prog++ = _insn | IMMED | S13(K);	\
prog              166 arch/sparc/net/bpf_jit_comp_32.c 			*prog++ = _insn | RS2(r_TMP);		\
prog              175 arch/sparc/net/bpf_jit_comp_32.c 		*prog++ = OR | IMMED | RS1(G0) | S13(K) | RD(DEST);	\
prog              184 arch/sparc/net/bpf_jit_comp_32.c 	*prog++ = LDPTRI | RS1(BASE) | S13(_off) | RD(DEST);		\
prog              190 arch/sparc/net/bpf_jit_comp_32.c 	*prog++ = LD32I | RS1(BASE) | S13(_off) | RD(DEST);		\
prog              196 arch/sparc/net/bpf_jit_comp_32.c 	*prog++ = LD16I | RS1(BASE) | S13(_off) | RD(DEST);		\
prog              201 arch/sparc/net/bpf_jit_comp_32.c 	*prog++ = LD8I | RS1(BASE) | S13(_off) | RD(DEST);		\
prog              212 arch/sparc/net/bpf_jit_comp_32.c do {	*prog++ = LD32I | RS1(SP) | S13(BIAS - (OFF)) | RD(DEST);	\
prog              216 arch/sparc/net/bpf_jit_comp_32.c do {	*prog++ = ST32I | RS1(SP) | S13(BIAS - (OFF)) | RD(SRC);	\
prog              238 arch/sparc/net/bpf_jit_comp_32.c 	*prog++ = (JMPL | IMMED | RS1(BASE) | S13(IMM_OFF) | RD(LREG))
prog              243 arch/sparc/net/bpf_jit_comp_32.c 	*prog++ = CALL | (((_off) >> 2) & 0x3fffffff);	\
prog              249 arch/sparc/net/bpf_jit_comp_32.c 	*prog++ = BR_OPC | WDISP22((DEST) - _here);	\
prog              253 arch/sparc/net/bpf_jit_comp_32.c do {	*prog++ = BR_OPC | WDISP22(OFF);		\
prog              258 arch/sparc/net/bpf_jit_comp_32.c #define emit_read_y(REG)	*prog++ = RD_Y | RD(REG)
prog              259 arch/sparc/net/bpf_jit_comp_32.c #define emit_write_y(REG)	*prog++ = WR_Y | IMMED | RS1(REG) | S13(0)
prog              262 arch/sparc/net/bpf_jit_comp_32.c 	*prog++ = (SUBCC | RS1(R1) | RS2(R2) | RD(G0))
prog              265 arch/sparc/net/bpf_jit_comp_32.c 	*prog++ = (SUBCC | IMMED | RS1(R1) | S13(IMM) | RD(G0));
prog              268 arch/sparc/net/bpf_jit_comp_32.c 	*prog++ = (ANDCC | RS1(R1) | RS2(R2) | RD(G0))
prog              271 arch/sparc/net/bpf_jit_comp_32.c 	*prog++ = (ANDCC | IMMED | RS1(R1) | S13(IMM) | RD(G0));
prog              274 arch/sparc/net/bpf_jit_comp_32.c 	*prog++ = (SUB | RS1(R1) | RS2(R2) | RD(R3))
prog              277 arch/sparc/net/bpf_jit_comp_32.c 	*prog++ = (SUB | IMMED | RS1(R1) | S13(IMM) | RD(R3))
prog              280 arch/sparc/net/bpf_jit_comp_32.c 	*prog++ = (ADD | RS1(R1) | RS2(R2) | RD(R3))
prog              283 arch/sparc/net/bpf_jit_comp_32.c 	*prog++ = (ADD | IMMED | RS1(R1) | S13(IMM) | RD(R3))
prog              286 arch/sparc/net/bpf_jit_comp_32.c 	*prog++ = (AND | RS1(R1) | RS2(R2) | RD(R3))
prog              289 arch/sparc/net/bpf_jit_comp_32.c 	*prog++ = (AND | IMMED | RS1(R1) | S13(IMM) | RD(R3))
prog              292 arch/sparc/net/bpf_jit_comp_32.c 	*prog++ = (SUB | IMMED | RS1(SP) | S13(SZ) | RD(SP))
prog              295 arch/sparc/net/bpf_jit_comp_32.c 	*prog++ = (ADD | IMMED | RS1(SP) | S13(SZ) | RD(SP))
prog              329 arch/sparc/net/bpf_jit_comp_32.c 	u32 temp[8], *prog, *func, seen = 0, pass;
prog              356 arch/sparc/net/bpf_jit_comp_32.c 		prog = temp;
prog              711 arch/sparc/net/bpf_jit_comp_32.c 			ilen = (void *) prog - (void *) temp;
prog              723 arch/sparc/net/bpf_jit_comp_32.c 			prog = temp;
prog              190 arch/sparc/net/bpf_jit_comp_64.c 	struct bpf_prog		*prog;
prog              802 arch/sparc/net/bpf_jit_comp_64.c 		struct bpf_prog *prog = ctx->prog;
prog              805 arch/sparc/net/bpf_jit_comp_64.c 		stack_depth = prog->aux->stack_depth;
prog              900 arch/sparc/net/bpf_jit_comp_64.c 	const int i = insn - ctx->prog->insnsi;
prog             1010 arch/sparc/net/bpf_jit_comp_64.c 			if (!ctx->prog->aux->verifier_zext)
prog             1165 arch/sparc/net/bpf_jit_comp_64.c 		    !ctx->prog->aux->verifier_zext)
prog             1236 arch/sparc/net/bpf_jit_comp_64.c 		if (i == ctx->prog->len - 1)
prog             1426 arch/sparc/net/bpf_jit_comp_64.c 	const struct bpf_prog *prog = ctx->prog;
prog             1429 arch/sparc/net/bpf_jit_comp_64.c 	for (i = 0; i < prog->len; i++) {
prog             1430 arch/sparc/net/bpf_jit_comp_64.c 		const struct bpf_insn *insn = &prog->insnsi[i];
prog             1466 arch/sparc/net/bpf_jit_comp_64.c struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *prog)
prog             1468 arch/sparc/net/bpf_jit_comp_64.c 	struct bpf_prog *tmp, *orig_prog = prog;
prog             1478 arch/sparc/net/bpf_jit_comp_64.c 	if (!prog->jit_requested)
prog             1481 arch/sparc/net/bpf_jit_comp_64.c 	tmp = bpf_jit_blind_constants(prog);
prog             1487 arch/sparc/net/bpf_jit_comp_64.c 	if (tmp != prog) {
prog             1489 arch/sparc/net/bpf_jit_comp_64.c 		prog = tmp;
prog             1492 arch/sparc/net/bpf_jit_comp_64.c 	jit_data = prog->aux->jit_data;
prog             1496 arch/sparc/net/bpf_jit_comp_64.c 			prog = orig_prog;
prog             1499 arch/sparc/net/bpf_jit_comp_64.c 		prog->aux->jit_data = jit_data;
prog             1513 arch/sparc/net/bpf_jit_comp_64.c 	ctx.prog = prog;
prog             1515 arch/sparc/net/bpf_jit_comp_64.c 	ctx.offset = kmalloc_array(prog->len, sizeof(unsigned int), GFP_KERNEL);
prog             1517 arch/sparc/net/bpf_jit_comp_64.c 		prog = orig_prog;
prog             1524 arch/sparc/net/bpf_jit_comp_64.c 	for (i = 0; i < prog->len; i++)
prog             1533 arch/sparc/net/bpf_jit_comp_64.c 			prog = orig_prog;
prog             1559 arch/sparc/net/bpf_jit_comp_64.c 		prog = orig_prog;
prog             1571 arch/sparc/net/bpf_jit_comp_64.c 		prog = orig_prog;
prog             1581 arch/sparc/net/bpf_jit_comp_64.c 		prog = orig_prog;
prog             1586 arch/sparc/net/bpf_jit_comp_64.c 		bpf_jit_dump(prog->len, image_size, pass, ctx.image);
prog             1590 arch/sparc/net/bpf_jit_comp_64.c 	if (!prog->is_func || extra_pass) {
prog             1598 arch/sparc/net/bpf_jit_comp_64.c 	prog->bpf_func = (void *)ctx.image;
prog             1599 arch/sparc/net/bpf_jit_comp_64.c 	prog->jited = 1;
prog             1600 arch/sparc/net/bpf_jit_comp_64.c 	prog->jited_len = image_size;
prog             1602 arch/sparc/net/bpf_jit_comp_64.c 	if (!prog->is_func || extra_pass) {
prog             1603 arch/sparc/net/bpf_jit_comp_64.c 		bpf_prog_fill_jited_linfo(prog, ctx.offset);
prog             1607 arch/sparc/net/bpf_jit_comp_64.c 		prog->aux->jit_data = NULL;
prog             1611 arch/sparc/net/bpf_jit_comp_64.c 		bpf_jit_prog_release_other(prog, prog == orig_prog ?
prog             1613 arch/sparc/net/bpf_jit_comp_64.c 	return prog;
prog               30 arch/x86/net/bpf_jit_comp.c 	do { prog = emit_code(prog, bytes, len); cnt += len; } while (0)
prog              210 arch/x86/net/bpf_jit_comp.c 	u8 *prog = *pprog;
prog              226 arch/x86/net/bpf_jit_comp.c 	*pprog = prog;
prog              245 arch/x86/net/bpf_jit_comp.c 	u8 *prog = *pprog;
prog              307 arch/x86/net/bpf_jit_comp.c 	*pprog = prog;
prog              313 arch/x86/net/bpf_jit_comp.c 	u8 *prog = *pprog;
prog              348 arch/x86/net/bpf_jit_comp.c 	*pprog = prog;
prog              354 arch/x86/net/bpf_jit_comp.c 	u8 *prog = *pprog;
prog              364 arch/x86/net/bpf_jit_comp.c 		emit_mov_imm32(&prog, false, dst_reg, imm32_lo);
prog              372 arch/x86/net/bpf_jit_comp.c 	*pprog = prog;
prog              377 arch/x86/net/bpf_jit_comp.c 	u8 *prog = *pprog;
prog              390 arch/x86/net/bpf_jit_comp.c 	*pprog = prog;
prog              402 arch/x86/net/bpf_jit_comp.c 	u8 *prog = temp;
prog              404 arch/x86/net/bpf_jit_comp.c 	emit_prologue(&prog, bpf_prog->aux->stack_depth,
prog              406 arch/x86/net/bpf_jit_comp.c 	addrs[0] = prog - temp;
prog              446 arch/x86/net/bpf_jit_comp.c 			emit_mov_reg(&prog,
prog              513 arch/x86/net/bpf_jit_comp.c 			emit_mov_imm32(&prog, BPF_CLASS(insn->code) == BPF_ALU64,
prog              518 arch/x86/net/bpf_jit_comp.c 			emit_mov_imm64(&prog, dst_reg, insn[1].imm, insn[0].imm);
prog              588 arch/x86/net/bpf_jit_comp.c 				emit_mov_reg(&prog, is64, BPF_REG_0, src_reg);
prog              590 arch/x86/net/bpf_jit_comp.c 				emit_mov_imm32(&prog, is64, BPF_REG_0, imm32);
prog              852 arch/x86/net/bpf_jit_comp.c 			emit_bpf_tail_call(&prog);
prog             1046 arch/x86/net/bpf_jit_comp.c 		ilen = prog - temp;
prog             1061 arch/x86/net/bpf_jit_comp.c 		prog = temp;
prog             1074 arch/x86/net/bpf_jit_comp.c struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *prog)
prog             1077 arch/x86/net/bpf_jit_comp.c 	struct bpf_prog *tmp, *orig_prog = prog;
prog             1088 arch/x86/net/bpf_jit_comp.c 	if (!prog->jit_requested)
prog             1091 arch/x86/net/bpf_jit_comp.c 	tmp = bpf_jit_blind_constants(prog);
prog             1098 arch/x86/net/bpf_jit_comp.c 	if (tmp != prog) {
prog             1100 arch/x86/net/bpf_jit_comp.c 		prog = tmp;
prog             1103 arch/x86/net/bpf_jit_comp.c 	jit_data = prog->aux->jit_data;
prog             1107 arch/x86/net/bpf_jit_comp.c 			prog = orig_prog;
prog             1110 arch/x86/net/bpf_jit_comp.c 		prog->aux->jit_data = jit_data;
prog             1121 arch/x86/net/bpf_jit_comp.c 	addrs = kmalloc_array(prog->len + 1, sizeof(*addrs), GFP_KERNEL);
prog             1123 arch/x86/net/bpf_jit_comp.c 		prog = orig_prog;
prog             1131 arch/x86/net/bpf_jit_comp.c 	for (proglen = 0, i = 0; i <= prog->len; i++) {
prog             1145 arch/x86/net/bpf_jit_comp.c 		proglen = do_jit(prog, addrs, image, oldproglen, &ctx);
prog             1151 arch/x86/net/bpf_jit_comp.c 			prog = orig_prog;
prog             1166 arch/x86/net/bpf_jit_comp.c 				prog = orig_prog;
prog             1175 arch/x86/net/bpf_jit_comp.c 		bpf_jit_dump(prog->len, proglen, pass + 1, image);
prog             1178 arch/x86/net/bpf_jit_comp.c 		if (!prog->is_func || extra_pass) {
prog             1187 arch/x86/net/bpf_jit_comp.c 		prog->bpf_func = (void *)image;
prog             1188 arch/x86/net/bpf_jit_comp.c 		prog->jited = 1;
prog             1189 arch/x86/net/bpf_jit_comp.c 		prog->jited_len = proglen;
prog             1191 arch/x86/net/bpf_jit_comp.c 		prog = orig_prog;
prog             1194 arch/x86/net/bpf_jit_comp.c 	if (!image || !prog->is_func || extra_pass) {
prog             1196 arch/x86/net/bpf_jit_comp.c 			bpf_prog_fill_jited_linfo(prog, addrs + 1);
prog             1200 arch/x86/net/bpf_jit_comp.c 		prog->aux->jit_data = NULL;
prog             1204 arch/x86/net/bpf_jit_comp.c 		bpf_jit_prog_release_other(prog, prog == orig_prog ?
prog             1206 arch/x86/net/bpf_jit_comp.c 	return prog;
prog               64 arch/x86/net/bpf_jit_comp32.c 	do { prog = emit_code(prog, bytes, len); cnt += len; } while (0)
prog              208 arch/x86/net/bpf_jit_comp32.c 	u8 *prog = *pprog;
prog              229 arch/x86/net/bpf_jit_comp32.c 	*pprog = prog;
prog              236 arch/x86/net/bpf_jit_comp32.c 	u8 *prog = *pprog;
prog              250 arch/x86/net/bpf_jit_comp32.c 	*pprog = prog;
prog              287 arch/x86/net/bpf_jit_comp32.c 	u8 *prog = *pprog;
prog              313 arch/x86/net/bpf_jit_comp32.c 	*pprog = prog;
prog              320 arch/x86/net/bpf_jit_comp32.c 	u8 *prog = *pprog;
prog              361 arch/x86/net/bpf_jit_comp32.c 	*pprog = prog;
prog              368 arch/x86/net/bpf_jit_comp32.c 	u8 *prog = *pprog;
prog              427 arch/x86/net/bpf_jit_comp32.c 	*pprog = prog;
prog              437 arch/x86/net/bpf_jit_comp32.c 	u8 *prog = *pprog;
prog              474 arch/x86/net/bpf_jit_comp32.c 	*pprog = prog;
prog              484 arch/x86/net/bpf_jit_comp32.c 	u8 *prog = *pprog;
prog              515 arch/x86/net/bpf_jit_comp32.c 	*pprog = prog;
prog              526 arch/x86/net/bpf_jit_comp32.c 	u8 *prog = *pprog;
prog              572 arch/x86/net/bpf_jit_comp32.c 	*pprog = prog;
prog              581 arch/x86/net/bpf_jit_comp32.c 	u8 *prog = *pprog;
prog              583 arch/x86/net/bpf_jit_comp32.c 	emit_ia32_alu_r(is64, false, op, dst_lo, src_lo, dstk, sstk, &prog);
prog              586 arch/x86/net/bpf_jit_comp32.c 				&prog);
prog              588 arch/x86/net/bpf_jit_comp32.c 		emit_ia32_mov_i(dst_hi, 0, dstk, &prog);
prog              589 arch/x86/net/bpf_jit_comp32.c 	*pprog = prog;
prog              600 arch/x86/net/bpf_jit_comp32.c 	u8 *prog = *pprog;
prog              672 arch/x86/net/bpf_jit_comp32.c 	*pprog = prog;
prog              681 arch/x86/net/bpf_jit_comp32.c 	u8 *prog = *pprog;
prog              687 arch/x86/net/bpf_jit_comp32.c 	emit_ia32_alu_i(is64, false, op, dst_lo, val, dstk, &prog);
prog              689 arch/x86/net/bpf_jit_comp32.c 		emit_ia32_alu_i(is64, true, op, dst_hi, hi, dstk, &prog);
prog              691 arch/x86/net/bpf_jit_comp32.c 		emit_ia32_mov_i(dst_hi, 0, dstk, &prog);
prog              693 arch/x86/net/bpf_jit_comp32.c 	*pprog = prog;
prog              699 arch/x86/net/bpf_jit_comp32.c 	u8 *prog = *pprog;
prog              726 arch/x86/net/bpf_jit_comp32.c 	*pprog = prog;
prog              733 arch/x86/net/bpf_jit_comp32.c 	u8 *prog = *pprog;
prog              779 arch/x86/net/bpf_jit_comp32.c 	*pprog = prog;
prog              786 arch/x86/net/bpf_jit_comp32.c 	u8 *prog = *pprog;
prog              832 arch/x86/net/bpf_jit_comp32.c 	*pprog = prog;
prog              839 arch/x86/net/bpf_jit_comp32.c 	u8 *prog = *pprog;
prog              885 arch/x86/net/bpf_jit_comp32.c 	*pprog = prog;
prog              892 arch/x86/net/bpf_jit_comp32.c 	u8 *prog = *pprog;
prog              933 arch/x86/net/bpf_jit_comp32.c 	*pprog = prog;
prog              940 arch/x86/net/bpf_jit_comp32.c 	u8 *prog = *pprog;
prog              982 arch/x86/net/bpf_jit_comp32.c 	*pprog = prog;
prog              989 arch/x86/net/bpf_jit_comp32.c 	u8 *prog = *pprog;
prog             1031 arch/x86/net/bpf_jit_comp32.c 	*pprog = prog;
prog             1037 arch/x86/net/bpf_jit_comp32.c 	u8 *prog = *pprog;
prog             1108 arch/x86/net/bpf_jit_comp32.c 	*pprog = prog;
prog             1114 arch/x86/net/bpf_jit_comp32.c 	u8 *prog = *pprog;
prog             1168 arch/x86/net/bpf_jit_comp32.c 	*pprog = prog;
prog             1201 arch/x86/net/bpf_jit_comp32.c 	u8 *prog = *pprog;
prog             1240 arch/x86/net/bpf_jit_comp32.c 	*pprog = prog;
prog             1246 arch/x86/net/bpf_jit_comp32.c 	u8 *prog = *pprog;
prog             1267 arch/x86/net/bpf_jit_comp32.c 	*pprog = prog;
prog             1285 arch/x86/net/bpf_jit_comp32.c 	u8 *prog = *pprog;
prog             1371 arch/x86/net/bpf_jit_comp32.c 	*pprog = prog;
prog             1377 arch/x86/net/bpf_jit_comp32.c 	u8 *prog = *pprog;
prog             1390 arch/x86/net/bpf_jit_comp32.c 	*pprog = prog;
prog             1471 arch/x86/net/bpf_jit_comp32.c 	u8 *prog = temp;
prog             1473 arch/x86/net/bpf_jit_comp32.c 	emit_prologue(&prog, bpf_prog->aux->stack_depth);
prog             1500 arch/x86/net/bpf_jit_comp32.c 					emit_ia32_mov_i(dst_hi, 0, dstk, &prog);
prog             1504 arch/x86/net/bpf_jit_comp32.c 						  &prog, bpf_prog->aux);
prog             1509 arch/x86/net/bpf_jit_comp32.c 						  dstk, &prog);
prog             1544 arch/x86/net/bpf_jit_comp32.c 						  src, dstk, sstk, &prog,
prog             1549 arch/x86/net/bpf_jit_comp32.c 						  imm32, dstk, &prog,
prog             1559 arch/x86/net/bpf_jit_comp32.c 						sstk, &prog);
prog             1566 arch/x86/net/bpf_jit_comp32.c 						false, &prog);
prog             1570 arch/x86/net/bpf_jit_comp32.c 				emit_ia32_mov_i(dst_hi, 0, dstk, &prog);
prog             1579 arch/x86/net/bpf_jit_comp32.c 						  dstk, sstk, &prog);
prog             1587 arch/x86/net/bpf_jit_comp32.c 						  &prog);
prog             1591 arch/x86/net/bpf_jit_comp32.c 				emit_ia32_mov_i(dst_hi, 0, dstk, &prog);
prog             1602 arch/x86/net/bpf_jit_comp32.c 						    src_lo, dstk, sstk, &prog);
prog             1610 arch/x86/net/bpf_jit_comp32.c 						    &prog);
prog             1614 arch/x86/net/bpf_jit_comp32.c 				emit_ia32_mov_i(dst_hi, 0, dstk, &prog);
prog             1630 arch/x86/net/bpf_jit_comp32.c 					  false, &prog);
prog             1632 arch/x86/net/bpf_jit_comp32.c 				emit_ia32_mov_i(dst_hi, 0, dstk, &prog);
prog             1638 arch/x86/net/bpf_jit_comp32.c 			emit_ia32_lsh_i64(dst, imm32, dstk, &prog);
prog             1644 arch/x86/net/bpf_jit_comp32.c 			emit_ia32_rsh_i64(dst, imm32, dstk, &prog);
prog             1648 arch/x86/net/bpf_jit_comp32.c 			emit_ia32_lsh_r64(dst, src, dstk, sstk, &prog);
prog             1652 arch/x86/net/bpf_jit_comp32.c 			emit_ia32_rsh_r64(dst, src, dstk, sstk, &prog);
prog             1656 arch/x86/net/bpf_jit_comp32.c 			emit_ia32_arsh_r64(dst, src, dstk, sstk, &prog);
prog             1662 arch/x86/net/bpf_jit_comp32.c 			emit_ia32_arsh_i64(dst, imm32, dstk, &prog);
prog             1667 arch/x86/net/bpf_jit_comp32.c 					dst_lo, 0, dstk, &prog);
prog             1669 arch/x86/net/bpf_jit_comp32.c 				emit_ia32_mov_i(dst_hi, 0, dstk, &prog);
prog             1673 arch/x86/net/bpf_jit_comp32.c 			emit_ia32_neg64(dst, dstk, &prog);
prog             1680 arch/x86/net/bpf_jit_comp32.c 				emit_ia32_mul_r64(dst, src, dstk, sstk, &prog);
prog             1683 arch/x86/net/bpf_jit_comp32.c 				emit_ia32_mul_i64(dst, imm32, dstk, &prog);
prog             1689 arch/x86/net/bpf_jit_comp32.c 			emit_ia32_to_le_r64(dst, imm32, dstk, &prog,
prog             1694 arch/x86/net/bpf_jit_comp32.c 			emit_ia32_to_be_r64(dst, imm32, dstk, &prog,
prog             1702 arch/x86/net/bpf_jit_comp32.c 			emit_ia32_mov_i(dst_lo, lo, dstk, &prog);
prog             1703 arch/x86/net/bpf_jit_comp32.c 			emit_ia32_mov_i(dst_hi, hi, dstk, &prog);
prog             1907 arch/x86/net/bpf_jit_comp32.c 			emit_push_r64(r5, &prog);
prog             1908 arch/x86/net/bpf_jit_comp32.c 			emit_push_r64(r4, &prog);
prog             1909 arch/x86/net/bpf_jit_comp32.c 			emit_push_r64(r3, &prog);
prog             1910 arch/x86/net/bpf_jit_comp32.c 			emit_push_r64(r2, &prog);
prog             1926 arch/x86/net/bpf_jit_comp32.c 			emit_bpf_tail_call(&prog);
prog             2259 arch/x86/net/bpf_jit_comp32.c 			emit_epilogue(&prog, bpf_prog->aux->stack_depth);
prog             2274 arch/x86/net/bpf_jit_comp32.c 		ilen = prog - temp;
prog             2289 arch/x86/net/bpf_jit_comp32.c 		prog = temp;
prog             2299 arch/x86/net/bpf_jit_comp32.c struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *prog)
prog             2302 arch/x86/net/bpf_jit_comp32.c 	struct bpf_prog *tmp, *orig_prog = prog;
prog             2311 arch/x86/net/bpf_jit_comp32.c 	if (!prog->jit_requested)
prog             2314 arch/x86/net/bpf_jit_comp32.c 	tmp = bpf_jit_blind_constants(prog);
prog             2321 arch/x86/net/bpf_jit_comp32.c 	if (tmp != prog) {
prog             2323 arch/x86/net/bpf_jit_comp32.c 		prog = tmp;
prog             2326 arch/x86/net/bpf_jit_comp32.c 	addrs = kmalloc_array(prog->len, sizeof(*addrs), GFP_KERNEL);
prog             2328 arch/x86/net/bpf_jit_comp32.c 		prog = orig_prog;
prog             2336 arch/x86/net/bpf_jit_comp32.c 	for (proglen = 0, i = 0; i < prog->len; i++) {
prog             2349 arch/x86/net/bpf_jit_comp32.c 		proglen = do_jit(prog, addrs, image, oldproglen, &ctx);
prog             2355 arch/x86/net/bpf_jit_comp32.c 			prog = orig_prog;
prog             2370 arch/x86/net/bpf_jit_comp32.c 				prog = orig_prog;
prog             2379 arch/x86/net/bpf_jit_comp32.c 		bpf_jit_dump(prog->len, proglen, pass + 1, image);
prog             2383 arch/x86/net/bpf_jit_comp32.c 		prog->bpf_func = (void *)image;
prog             2384 arch/x86/net/bpf_jit_comp32.c 		prog->jited = 1;
prog             2385 arch/x86/net/bpf_jit_comp32.c 		prog->jited_len = proglen;
prog             2387 arch/x86/net/bpf_jit_comp32.c 		prog = orig_prog;
prog             2394 arch/x86/net/bpf_jit_comp32.c 		bpf_jit_prog_release_other(prog, prog == orig_prog ?
prog             2396 arch/x86/net/bpf_jit_comp32.c 	return prog;
prog               28 arch/x86/tools/insn_decoder_test.c const char *prog;
prog               35 arch/x86/tools/insn_decoder_test.c 		" | %s [-y|-n] [-v]\n", prog);
prog               45 arch/x86/tools/insn_decoder_test.c 		prog, line_nr, line);
prog               53 arch/x86/tools/insn_decoder_test.c 	fprintf(stderr, "%s: warning: ", prog);
prog               91 arch/x86/tools/insn_decoder_test.c 	prog = argv[0];
prog              170 arch/x86/tools/insn_decoder_test.c 			" instructions\n", prog, insns);
prog               34 arch/x86/tools/insn_sanity.c static const char	*prog;		/* Program name */
prog               45 arch/x86/tools/insn_sanity.c 		fprintf(stderr, "%s: Error: %s\n\n", prog, err);
prog               46 arch/x86/tools/insn_sanity.c 	fprintf(stderr, "Usage: %s [-y|-n|-v] [-s seed[,no]] [-m max] [-i input]\n", prog);
prog              100 arch/x86/tools/insn_sanity.c 	fprintf(fp, " | %s -i -\n", prog);
prog              105 arch/x86/tools/insn_sanity.c 		fprintf(fp, " $ %s -s 0x%x,%lu\n", prog, seed, nr_iter);
prog              168 arch/x86/tools/insn_sanity.c 	prog = argv[0];
prog              261 arch/x86/tools/insn_sanity.c 		prog,
prog               33 drivers/clk/at91/clk-programmable.c 	struct clk_programmable *prog = to_clk_programmable(hw);
prog               34 drivers/clk/at91/clk-programmable.c 	const struct clk_programmable_layout *layout = prog->layout;
prog               38 drivers/clk/at91/clk-programmable.c 	regmap_read(prog->regmap, AT91_PMC_PCKR(prog->id), &pckr);
prog               51 drivers/clk/at91/clk-programmable.c 	struct clk_programmable *prog = to_clk_programmable(hw);
prog               52 drivers/clk/at91/clk-programmable.c 	const struct clk_programmable_layout *layout = prog->layout;
prog              103 drivers/clk/at91/clk-programmable.c 	struct clk_programmable *prog = to_clk_programmable(hw);
prog              104 drivers/clk/at91/clk-programmable.c 	const struct clk_programmable_layout *layout = prog->layout;
prog              118 drivers/clk/at91/clk-programmable.c 	regmap_update_bits(prog->regmap, AT91_PMC_PCKR(prog->id), mask, pckr);
prog              125 drivers/clk/at91/clk-programmable.c 	struct clk_programmable *prog = to_clk_programmable(hw);
prog              126 drivers/clk/at91/clk-programmable.c 	const struct clk_programmable_layout *layout = prog->layout;
prog              130 drivers/clk/at91/clk-programmable.c 	regmap_read(prog->regmap, AT91_PMC_PCKR(prog->id), &pckr);
prog              143 drivers/clk/at91/clk-programmable.c 	struct clk_programmable *prog = to_clk_programmable(hw);
prog              144 drivers/clk/at91/clk-programmable.c 	const struct clk_programmable_layout *layout = prog->layout;
prog              166 drivers/clk/at91/clk-programmable.c 	regmap_update_bits(prog->regmap, AT91_PMC_PCKR(prog->id),
prog              187 drivers/clk/at91/clk-programmable.c 	struct clk_programmable *prog;
prog              195 drivers/clk/at91/clk-programmable.c 	prog = kzalloc(sizeof(*prog), GFP_KERNEL);
prog              196 drivers/clk/at91/clk-programmable.c 	if (!prog)
prog              205 drivers/clk/at91/clk-programmable.c 	prog->id = id;
prog              206 drivers/clk/at91/clk-programmable.c 	prog->layout = layout;
prog              207 drivers/clk/at91/clk-programmable.c 	prog->hw.init = &init;
prog              208 drivers/clk/at91/clk-programmable.c 	prog->regmap = regmap;
prog              210 drivers/clk/at91/clk-programmable.c 	hw = &prog->hw;
prog              211 drivers/clk/at91/clk-programmable.c 	ret = clk_hw_register(NULL, &prog->hw);
prog              213 drivers/clk/at91/clk-programmable.c 		kfree(prog);
prog              157 drivers/gpu/drm/nouveau/include/nvkm/subdev/fb.h 	int (*prog)(struct nvkm_ram *);
prog              195 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c 		ret = clk->func->prog(clk);
prog              289 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c 				ret = ram->func->prog(ram);
prog               30 drivers/gpu/drm/nouveau/nvkm/subdev/clk/g84.c 	.prog = nv50_clk_prog,
prog              452 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gf100.c 	.prog = gf100_clk_prog,
prog              489 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gk104.c 	.prog = gk104_clk_prog,
prog              586 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gk20a.c 	ret = base->func->prog(&clk->base);
prog              601 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gk20a.c 	.prog = gk20a_clk_prog,
prog              580 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gm20b.c 		goto prog;
prog              629 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gm20b.c prog:
prog              866 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gm20b.c 	ret = base->func->prog(base);
prog              881 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gm20b.c 	.prog = gk20a_clk_prog,
prog              899 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gm20b.c 	.prog = gm20b_clk_prog,
prog              524 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gt215.c 	.prog = gt215_clk_prog,
prog              402 drivers/gpu/drm/nouveau/nvkm/subdev/clk/mcp77.c 	.prog = mcp77_clk_prog,
prog              208 drivers/gpu/drm/nouveau/nvkm/subdev/clk/nv40.c 	.prog = nv40_clk_prog,
prog              545 drivers/gpu/drm/nouveau/nvkm/subdev/clk/nv50.c 	.prog = nv50_clk_prog,
prog               12 drivers/gpu/drm/nouveau/nvkm/subdev/clk/priv.h 	int (*prog)(struct nvkm_clk *);
prog               51 drivers/gpu/drm/nouveau/nvkm/subdev/fb/base.c 	if (fb->func->tile.prog) {
prog               52 drivers/gpu/drm/nouveau/nvkm/subdev/fb/base.c 		fb->func->tile.prog(fb, region, tile);
prog              141 drivers/gpu/drm/nouveau/nvkm/subdev/fb/base.c 		fb->func->tile.prog(fb, i, &fb->tile.region[i]);
prog               62 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv10.c 	.tile.prog = nv10_fb_tile_prog,
prog               34 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv1a.c 	.tile.prog = nv10_fb_tile_prog,
prog               94 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv20.c 	.tile.prog = nv20_fb_tile_prog,
prog               52 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv25.c 	.tile.prog = nv20_fb_tile_prog,
prog              125 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv30.c 	.tile.prog = nv20_fb_tile_prog,
prog               54 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv35.c 	.tile.prog = nv20_fb_tile_prog,
prog               54 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv36.c 	.tile.prog = nv20_fb_tile_prog,
prog               60 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv40.c 	.tile.prog = nv20_fb_tile_prog,
prog               54 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv41.c 	.tile.prog = nv41_fb_tile_prog,
prog               63 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv44.c 	.tile.prog = nv44_fb_tile_prog,
prog               49 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv46.c 	.tile.prog = nv44_fb_tile_prog,
prog               37 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv47.c 	.tile.prog = nv41_fb_tile_prog,
prog               37 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv49.c 	.tile.prog = nv41_fb_tile_prog,
prog               35 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv4e.c 	.tile.prog = nv44_fb_tile_prog,
prog               26 drivers/gpu/drm/nouveau/nvkm/subdev/fb/priv.h 		void (*prog)(struct nvkm_fb *, int i, struct nvkm_fb_tile *);
prog              664 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c 	.prog = gf100_ram_prog,
prog               52 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf108.c 	.prog = gf100_ram_prog,
prog             1708 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c 	.prog = gk104_ram_prog,
prog               43 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgm107.c 	.prog = gk104_ram_prog,
prog               58 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgm200.c 	.prog = gk104_ram_prog,
prog              935 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c 	.prog = gt215_ram_prog,
prog              186 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv40.c 	.prog = nv40_ram_prog,
prog              499 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c 	.prog = nv50_ram_prog,
prog               89 drivers/hwmon/thmc50.c 		int prog = i2c_smbus_read_byte_data(client, THMC50_REG_CONF);
prog               91 drivers/hwmon/thmc50.c 		prog &= THMC50_REG_CONF_PROGRAMMED;
prog              102 drivers/hwmon/thmc50.c 					prog ? THMC50_REG_TEMP_CRITICAL[i]
prog               88 drivers/media/rc/bpf-lirc.c lirc_mode2_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog)
prog              126 drivers/media/rc/bpf-lirc.c 				       const struct bpf_prog *prog,
prog              140 drivers/media/rc/bpf-lirc.c static int lirc_bpf_attach(struct rc_dev *rcdev, struct bpf_prog *prog)
prog              166 drivers/media/rc/bpf-lirc.c 	ret = bpf_prog_array_copy(old_array, NULL, prog, &new_array);
prog              178 drivers/media/rc/bpf-lirc.c static int lirc_bpf_detach(struct rc_dev *rcdev, struct bpf_prog *prog)
prog              199 drivers/media/rc/bpf-lirc.c 	ret = bpf_prog_array_copy(old_array, prog, NULL, &new_array);
prog              210 drivers/media/rc/bpf-lirc.c 	bpf_prog_put(prog);
prog              241 drivers/media/rc/bpf-lirc.c 	for (item = array->items; item->prog; item++)
prog              242 drivers/media/rc/bpf-lirc.c 		bpf_prog_put(item->prog);
prog              247 drivers/media/rc/bpf-lirc.c int lirc_prog_attach(const union bpf_attr *attr, struct bpf_prog *prog)
prog              259 drivers/media/rc/bpf-lirc.c 	ret = lirc_bpf_attach(rcdev, prog);
prog              268 drivers/media/rc/bpf-lirc.c 	struct bpf_prog *prog;
prog              275 drivers/media/rc/bpf-lirc.c 	prog = bpf_prog_get_type(attr->attach_bpf_fd,
prog              277 drivers/media/rc/bpf-lirc.c 	if (IS_ERR(prog))
prog              278 drivers/media/rc/bpf-lirc.c 		return PTR_ERR(prog);
prog              282 drivers/media/rc/bpf-lirc.c 		bpf_prog_put(prog);
prog              286 drivers/media/rc/bpf-lirc.c 	ret = lirc_bpf_detach(rcdev, prog);
prog              288 drivers/media/rc/bpf-lirc.c 	bpf_prog_put(prog);
prog              379 drivers/media/usb/as102/as10x_cmd.c 	pcmd->header.prog = cpu_to_le16(SERVICE_PROG_ID);
prog              364 drivers/media/usb/as102/as10x_cmd.h 	__le16 prog;
prog             1284 drivers/mtd/nand/raw/nand_base.c 				  unsigned int len, bool prog)
prog             1319 drivers/mtd/nand/raw/nand_base.c 	if (!prog) {
prog             1347 drivers/mtd/nand/raw/nand_base.c 	if (!prog || ret)
prog              265 drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c static int bnxt_xdp_set(struct bnxt *bp, struct bpf_prog *prog)
prog              271 drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c 	if (prog && bp->dev->mtu > BNXT_MAX_PAGE_MODE_MTU) {
prog              280 drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c 	if (prog)
prog              295 drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c 	old = xchg(&bp->xdp_prog, prog);
prog              299 drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c 	if (prog) {
prog              330 drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c 		rc = bnxt_xdp_set(bp, xdp->prog);
prog              530 drivers/net/ethernet/cavium/thunder/nicvf_main.c static inline bool nicvf_xdp_rx(struct nicvf *nic, struct bpf_prog *prog,
prog              559 drivers/net/ethernet/cavium/thunder/nicvf_main.c 	action = bpf_prog_run_xdp(prog, &xdp);
prog              599 drivers/net/ethernet/cavium/thunder/nicvf_main.c 		trace_xdp_exception(nic->netdev, prog, action);
prog             1838 drivers/net/ethernet/cavium/thunder/nicvf_main.c static int nicvf_xdp_setup(struct nicvf *nic, struct bpf_prog *prog)
prog             1849 drivers/net/ethernet/cavium/thunder/nicvf_main.c 	if (prog && dev->mtu > MAX_XDP_MTU) {
prog             1872 drivers/net/ethernet/cavium/thunder/nicvf_main.c 	old_prog = xchg(&nic->xdp_prog, prog);
prog             1913 drivers/net/ethernet/cavium/thunder/nicvf_main.c 		return nicvf_xdp_setup(nic, xdp->prog);
prog              291 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 	xdp_prog = READ_ONCE(ch->xdp.prog);
prog             1764 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c static int setup_xdp(struct net_device *dev, struct bpf_prog *prog)
prog             1772 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 	if (prog && !xdp_mtu_valid(priv, dev->mtu))
prog             1775 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 	if (prog) {
prog             1776 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 		prog = bpf_prog_add(prog, priv->num_channels);
prog             1777 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 		if (IS_ERR(prog))
prog             1778 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 			return PTR_ERR(prog);
prog             1782 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 	need_update = (!!priv->xdp_prog != !!prog);
prog             1793 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 		err = set_rx_mfl(priv, dev->mtu, !!prog);
prog             1796 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 		err = update_rx_buffer_headroom(priv, !!prog);
prog             1801 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 	old = xchg(&priv->xdp_prog, prog);
prog             1807 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 		old = xchg(&ch->xdp.prog, prog);
prog             1821 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 	if (prog)
prog             1822 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 		bpf_prog_sub(prog, priv->num_channels);
prog             1835 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 		return setup_xdp(dev, xdp->prog);
prog              322 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.h 	struct bpf_prog *prog;
prog             12507 drivers/net/ethernet/intel/i40e/i40e_main.c 			  struct bpf_prog *prog)
prog             12519 drivers/net/ethernet/intel/i40e/i40e_main.c 	if (!i40e_enabled_xdp_vsi(vsi) && !prog)
prog             12523 drivers/net/ethernet/intel/i40e/i40e_main.c 	need_reset = (i40e_enabled_xdp_vsi(vsi) != !!prog);
prog             12528 drivers/net/ethernet/intel/i40e/i40e_main.c 	old_prog = xchg(&vsi->xdp_prog, prog);
prog             12531 drivers/net/ethernet/intel/i40e/i40e_main.c 		if (!prog)
prog             12546 drivers/net/ethernet/intel/i40e/i40e_main.c 	if (need_reset && prog)
prog             12826 drivers/net/ethernet/intel/i40e/i40e_main.c 		return i40e_xdp_setup(vsi, xdp->prog);
prog             10236 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c static int ixgbe_xdp_setup(struct net_device *dev, struct bpf_prog *prog)
prog             10263 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c 	old_prog = xchg(&adapter->xdp_prog, prog);
prog             10264 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c 	need_reset = (!!prog != !!old_prog);
prog             10270 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c 		if (!prog)
prog             10291 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c 	if (need_reset && prog)
prog             10306 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c 		return ixgbe_xdp_setup(dev, xdp->prog);
prog             4445 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c static int ixgbevf_xdp_setup(struct net_device *dev, struct bpf_prog *prog)
prog             4459 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c 	old_prog = xchg(&adapter->xdp_prog, prog);
prog             4462 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c 	if (!!prog != !!old_prog) {
prog             4492 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c 		return ixgbevf_xdp_setup(dev, xdp->prog);
prog             2775 drivers/net/ethernet/mellanox/mlx4/en_netdev.c static int mlx4_xdp_set(struct net_device *dev, struct bpf_prog *prog)
prog             2788 drivers/net/ethernet/mellanox/mlx4/en_netdev.c 	xdp_ring_num = prog ? priv->rx_ring_num : 0;
prog             2794 drivers/net/ethernet/mellanox/mlx4/en_netdev.c 		if (prog) {
prog             2795 drivers/net/ethernet/mellanox/mlx4/en_netdev.c 			prog = bpf_prog_add(prog, priv->rx_ring_num - 1);
prog             2796 drivers/net/ethernet/mellanox/mlx4/en_netdev.c 			if (IS_ERR(prog))
prog             2797 drivers/net/ethernet/mellanox/mlx4/en_netdev.c 				return PTR_ERR(prog);
prog             2804 drivers/net/ethernet/mellanox/mlx4/en_netdev.c 			rcu_assign_pointer(priv->rx_ring[i]->xdp_prog, prog);
prog             2819 drivers/net/ethernet/mellanox/mlx4/en_netdev.c 	if (prog) {
prog             2820 drivers/net/ethernet/mellanox/mlx4/en_netdev.c 		prog = bpf_prog_add(prog, priv->rx_ring_num - 1);
prog             2821 drivers/net/ethernet/mellanox/mlx4/en_netdev.c 		if (IS_ERR(prog)) {
prog             2822 drivers/net/ethernet/mellanox/mlx4/en_netdev.c 			err = PTR_ERR(prog);
prog             2840 drivers/net/ethernet/mellanox/mlx4/en_netdev.c 		if (prog)
prog             2841 drivers/net/ethernet/mellanox/mlx4/en_netdev.c 			bpf_prog_sub(prog, priv->rx_ring_num - 1);
prog             2858 drivers/net/ethernet/mellanox/mlx4/en_netdev.c 		rcu_assign_pointer(priv->rx_ring[i]->xdp_prog, prog);
prog             2904 drivers/net/ethernet/mellanox/mlx4/en_netdev.c 		return mlx4_xdp_set(dev, xdp->prog);
prog              124 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c 	struct bpf_prog *prog = READ_ONCE(rq->xdp_prog);
prog              130 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c 	if (!prog)
prog              141 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c 	act = bpf_prog_run_xdp(prog, &xdp);
prog              159 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c 		err = xdp_do_redirect(rq->netdev, &xdp, prog);
prog              173 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c 		trace_xdp_exception(rq->netdev, prog, act);
prog             4383 drivers/net/ethernet/mellanox/mlx5/core/en_main.c static int mlx5e_xdp_allowed(struct mlx5e_priv *priv, struct bpf_prog *prog)
prog             4399 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 	new_channels.params.xdp_prog = prog;
prog             4414 drivers/net/ethernet/mellanox/mlx5/core/en_main.c static int mlx5e_xdp_set(struct net_device *netdev, struct bpf_prog *prog)
prog             4424 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 	if (prog) {
prog             4425 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 		err = mlx5e_xdp_allowed(priv, prog);
prog             4432 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 	reset = (!priv->channels.params.xdp_prog || !prog);
prog             4438 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 		prog = bpf_prog_add(prog, priv->channels.num);
prog             4439 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 		if (IS_ERR(prog)) {
prog             4440 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 			err = PTR_ERR(prog);
prog             4449 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 		new_channels.params.xdp_prog = prog;
prog             4460 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 		old_prog = xchg(&priv->channels.params.xdp_prog, prog);
prog             4485 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 		old_prog = xchg(&c->rq.xdp_prog, prog);
prog             4490 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 			old_prog = xchg(&c->xskrq.xdp_prog, prog);
prog             4526 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 		return mlx5e_xdp_set(dev, xdp->prog);
prog               56 drivers/net/ethernet/netronome/nfp/bpf/jit.c 	nfp_prog->prog[nfp_prog->prog_len] = insn;
prog              175 drivers/net/ethernet/netronome/nfp/bpf/jit.c 	nfp_prog->prog[nfp_prog->prog_len - 1] |=
prog              229 drivers/net/ethernet/netronome/nfp/bpf/jit.c 	nfp_prog->prog[nfp_prog->prog_len - 1] |=
prog              643 drivers/net/ethernet/netronome/nfp/bpf/jit.c 	nfp_prog->prog[nfp_prog->prog_len - 1] |=
prog             3538 drivers/net/ethernet/netronome/nfp/bpf/jit.c 	if (immed_get_value(nfp_prog->prog[br_idx + 1])) {
prog             3543 drivers/net/ethernet/netronome/nfp/bpf/jit.c 	immed_set_value(&nfp_prog->prog[br_idx + 1], jmp_dst->off);
prog             3578 drivers/net/ethernet/netronome/nfp/bpf/jit.c 		if (!nfp_is_br(nfp_prog->prog[br_idx])) {
prog             3580 drivers/net/ethernet/netronome/nfp/bpf/jit.c 			       br_idx, meta->insn.code, nfp_prog->prog[br_idx]);
prog             3588 drivers/net/ethernet/netronome/nfp/bpf/jit.c 		if (FIELD_GET(OP_RELO_TYPE, nfp_prog->prog[br_idx]) !=
prog             3612 drivers/net/ethernet/netronome/nfp/bpf/jit.c 		if (FIELD_GET(OP_RELO_TYPE, nfp_prog->prog[br_idx]) !=
prog             3617 drivers/net/ethernet/netronome/nfp/bpf/jit.c 			if (!nfp_is_br(nfp_prog->prog[idx]))
prog             3619 drivers/net/ethernet/netronome/nfp/bpf/jit.c 			br_set_offset(&nfp_prog->prog[idx], jmp_dst->off);
prog             4429 drivers/net/ethernet/netronome/nfp/bpf/jit.c static int nfp_bpf_ustore_calc(u64 *prog, unsigned int len)
prog             4431 drivers/net/ethernet/netronome/nfp/bpf/jit.c 	__le64 *ustore = (__force __le64 *)prog;
prog             4437 drivers/net/ethernet/netronome/nfp/bpf/jit.c 		err = nfp_ustore_check_valid_no_ecc(prog[i]);
prog             4441 drivers/net/ethernet/netronome/nfp/bpf/jit.c 		ustore[i] = cpu_to_le64(nfp_ustore_calc_ecc_insn(prog[i]));
prog             4449 drivers/net/ethernet/netronome/nfp/bpf/jit.c 	void *prog;
prog             4451 drivers/net/ethernet/netronome/nfp/bpf/jit.c 	prog = kvmalloc_array(nfp_prog->prog_len, sizeof(u64), GFP_KERNEL);
prog             4452 drivers/net/ethernet/netronome/nfp/bpf/jit.c 	if (!prog)
prog             4456 drivers/net/ethernet/netronome/nfp/bpf/jit.c 	memcpy(prog, nfp_prog->prog, nfp_prog->__prog_alloc_len);
prog             4457 drivers/net/ethernet/netronome/nfp/bpf/jit.c 	kvfree(nfp_prog->prog);
prog             4458 drivers/net/ethernet/netronome/nfp/bpf/jit.c 	nfp_prog->prog = prog;
prog             4531 drivers/net/ethernet/netronome/nfp/bpf/jit.c 	u64 *prog;
prog             4534 drivers/net/ethernet/netronome/nfp/bpf/jit.c 	prog = kmemdup(nfp_prog->prog, nfp_prog->prog_len * sizeof(u64),
prog             4536 drivers/net/ethernet/netronome/nfp/bpf/jit.c 	if (!prog)
prog             4544 drivers/net/ethernet/netronome/nfp/bpf/jit.c 		special = FIELD_GET(OP_RELO_TYPE, prog[i]);
prog             4549 drivers/net/ethernet/netronome/nfp/bpf/jit.c 			br_add_offset(&prog[i], bv->start_off);
prog             4552 drivers/net/ethernet/netronome/nfp/bpf/jit.c 			br_set_offset(&prog[i],
prog             4556 drivers/net/ethernet/netronome/nfp/bpf/jit.c 			br_set_offset(&prog[i],
prog             4566 drivers/net/ethernet/netronome/nfp/bpf/jit.c 			br_set_offset(&prog[i], off);
prog             4575 drivers/net/ethernet/netronome/nfp/bpf/jit.c 			br_set_offset(&prog[i], off);
prog             4578 drivers/net/ethernet/netronome/nfp/bpf/jit.c 			br_set_offset(&prog[i], bv->tgt_done);
prog             4581 drivers/net/ethernet/netronome/nfp/bpf/jit.c 			val = br_get_offset(prog[i]);
prog             4602 drivers/net/ethernet/netronome/nfp/bpf/jit.c 			br_set_offset(&prog[i], val);
prog             4605 drivers/net/ethernet/netronome/nfp/bpf/jit.c 			immed_add_value(&prog[i], bv->start_off);
prog             4609 drivers/net/ethernet/netronome/nfp/bpf/jit.c 		prog[i] &= ~OP_RELO_TYPE;
prog             4612 drivers/net/ethernet/netronome/nfp/bpf/jit.c 	err = nfp_bpf_ustore_calc(prog, nfp_prog->prog_len);
prog             4616 drivers/net/ethernet/netronome/nfp/bpf/jit.c 	return prog;
prog             4619 drivers/net/ethernet/netronome/nfp/bpf/jit.c 	kfree(prog);
prog               39 drivers/net/ethernet/netronome/nfp/bpf/main.c 		    struct bpf_prog *prog, struct netlink_ext_ack *extack)
prog               47 drivers/net/ethernet/netronome/nfp/bpf/main.c 	xdp_running = running && nn->xdp_hw.prog;
prog               49 drivers/net/ethernet/netronome/nfp/bpf/main.c 	if (!prog && !xdp_running)
prog               51 drivers/net/ethernet/netronome/nfp/bpf/main.c 	if (prog && running && !xdp_running)
prog               54 drivers/net/ethernet/netronome/nfp/bpf/main.c 	return nfp_net_bpf_offload(nn, prog, running, extack);
prog              149 drivers/net/ethernet/netronome/nfp/bpf/main.c 		if (!cls_bpf->prog)
prog              153 drivers/net/ethernet/netronome/nfp/bpf/main.c 	err = nfp_net_bpf_offload(nn, cls_bpf->prog, oldprog,
prog              158 drivers/net/ethernet/netronome/nfp/bpf/main.c 	bv->tc_prog = cls_bpf->prog;
prog              516 drivers/net/ethernet/netronome/nfp/bpf/main.h 	u64 *prog;
prog              561 drivers/net/ethernet/netronome/nfp/bpf/main.h int nfp_bpf_jit(struct nfp_prog *prog);
prog              580 drivers/net/ethernet/netronome/nfp/bpf/main.h int nfp_net_bpf_offload(struct nfp_net *nn, struct bpf_prog *prog,
prog              114 drivers/net/ethernet/netronome/nfp/bpf/offload.c 		    struct bpf_prog *prog)
prog              120 drivers/net/ethernet/netronome/nfp/bpf/offload.c 	for (i = 0; i < prog->aux->used_map_cnt; i++)
prog              121 drivers/net/ethernet/netronome/nfp/bpf/offload.c 		if (bpf_map_offload_neutral(prog->aux->used_maps[i]))
prog              132 drivers/net/ethernet/netronome/nfp/bpf/offload.c 	for (i = 0; i < prog->aux->used_map_cnt; i++)
prog              133 drivers/net/ethernet/netronome/nfp/bpf/offload.c 		if (bpf_map_offload_neutral(prog->aux->used_maps[i])) {
prog              135 drivers/net/ethernet/netronome/nfp/bpf/offload.c 						 prog->aux->used_maps[i]);
prog              147 drivers/net/ethernet/netronome/nfp/bpf/offload.c nfp_prog_prepare(struct nfp_prog *nfp_prog, const struct bpf_insn *prog,
prog              158 drivers/net/ethernet/netronome/nfp/bpf/offload.c 		meta->insn = prog[i];
prog              187 drivers/net/ethernet/netronome/nfp/bpf/offload.c static int nfp_bpf_verifier_prep(struct bpf_prog *prog)
prog              195 drivers/net/ethernet/netronome/nfp/bpf/offload.c 	prog->aux->offload->dev_priv = nfp_prog;
prog              198 drivers/net/ethernet/netronome/nfp/bpf/offload.c 	nfp_prog->type = prog->type;
prog              199 drivers/net/ethernet/netronome/nfp/bpf/offload.c 	nfp_prog->bpf = bpf_offload_dev_priv(prog->aux->offload->offdev);
prog              201 drivers/net/ethernet/netronome/nfp/bpf/offload.c 	ret = nfp_prog_prepare(nfp_prog, prog->insnsi, prog->len);
prog              215 drivers/net/ethernet/netronome/nfp/bpf/offload.c static int nfp_bpf_translate(struct bpf_prog *prog)
prog              217 drivers/net/ethernet/netronome/nfp/bpf/offload.c 	struct nfp_net *nn = netdev_priv(prog->aux->offload->netdev);
prog              218 drivers/net/ethernet/netronome/nfp/bpf/offload.c 	struct nfp_prog *nfp_prog = prog->aux->offload->dev_priv;
prog              223 drivers/net/ethernet/netronome/nfp/bpf/offload.c 	if (prog->aux->offload->opt_failed)
prog              229 drivers/net/ethernet/netronome/nfp/bpf/offload.c 	nfp_prog->prog = kvmalloc(nfp_prog->__prog_alloc_len, GFP_KERNEL);
prog              230 drivers/net/ethernet/netronome/nfp/bpf/offload.c 	if (!nfp_prog->prog)
prog              237 drivers/net/ethernet/netronome/nfp/bpf/offload.c 	prog->aux->offload->jited_len = nfp_prog->prog_len * sizeof(u64);
prog              238 drivers/net/ethernet/netronome/nfp/bpf/offload.c 	prog->aux->offload->jited_image = nfp_prog->prog;
prog              240 drivers/net/ethernet/netronome/nfp/bpf/offload.c 	return nfp_map_ptrs_record(nfp_prog->bpf, nfp_prog, prog);
prog              243 drivers/net/ethernet/netronome/nfp/bpf/offload.c static void nfp_bpf_destroy(struct bpf_prog *prog)
prog              245 drivers/net/ethernet/netronome/nfp/bpf/offload.c 	struct nfp_prog *nfp_prog = prog->aux->offload->dev_priv;
prog              247 drivers/net/ethernet/netronome/nfp/bpf/offload.c 	kvfree(nfp_prog->prog);
prog              481 drivers/net/ethernet/netronome/nfp/bpf/offload.c nfp_net_bpf_load(struct nfp_net *nn, struct bpf_prog *prog,
prog              484 drivers/net/ethernet/netronome/nfp/bpf/offload.c 	struct nfp_prog *nfp_prog = prog->aux->offload->dev_priv;
prog              491 drivers/net/ethernet/netronome/nfp/bpf/offload.c 	pkt_off = min(prog->aux->max_pkt_offset, nn->dp.netdev->mtu);
prog              562 drivers/net/ethernet/netronome/nfp/bpf/offload.c int nfp_net_bpf_offload(struct nfp_net *nn, struct bpf_prog *prog,
prog              567 drivers/net/ethernet/netronome/nfp/bpf/offload.c 	if (prog && !bpf_offload_dev_match(prog, nn->dp.netdev))
prog              570 drivers/net/ethernet/netronome/nfp/bpf/offload.c 	if (prog && old_prog) {
prog              585 drivers/net/ethernet/netronome/nfp/bpf/offload.c 	if (old_prog && !prog)
prog              588 drivers/net/ethernet/netronome/nfp/bpf/offload.c 	err = nfp_net_bpf_load(nn, prog, extack);
prog              629 drivers/net/ethernet/netronome/nfp/bpf/verifier.c 	struct nfp_prog *nfp_prog = env->prog->aux->offload->dev_priv;
prog              766 drivers/net/ethernet/netronome/nfp/bpf/verifier.c 	nfp_prog = env->prog->aux->offload->dev_priv;
prog              789 drivers/net/ethernet/netronome/nfp/bpf/verifier.c 	nn = netdev_priv(env->prog->aux->offload->netdev);
prog              805 drivers/net/ethernet/netronome/nfp/bpf/verifier.c 	struct nfp_prog *nfp_prog = env->prog->aux->offload->dev_priv;
prog              838 drivers/net/ethernet/netronome/nfp/bpf/verifier.c 	struct nfp_prog *nfp_prog = env->prog->aux->offload->dev_priv;
prog              138 drivers/net/ethernet/netronome/nfp/nfp_app.h 			   struct bpf_prog *prog,
prog              329 drivers/net/ethernet/netronome/nfp/nfp_app.h 				      struct bpf_prog *prog,
prog              334 drivers/net/ethernet/netronome/nfp/nfp_app.h 	return app->type->xdp_offload(app, nn, prog, extack);
prog             3646 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 	struct bpf_prog *prog = bpf->prog;
prog             3653 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 	if (!prog == !nn->dp.xdp_prog) {
prog             3654 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 		WRITE_ONCE(nn->dp.xdp_prog, prog);
prog             3663 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 	dp->xdp_prog = prog;
prog             3664 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 	dp->num_tx_rings += prog ? nn->dp.num_rx_rings : -nn->dp.num_rx_rings;
prog             3665 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 	dp->rx_dma_dir = prog ? DMA_BIDIRECTIONAL : DMA_FROM_DEVICE;
prog             3666 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 	dp->rx_dma_off = prog ? XDP_PACKET_HEADROOM - nn->dp.rx_offset : 0;
prog             3684 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 	err = nfp_app_xdp_offload(nn->app, nn, bpf->prog, bpf->extack);
prog             1102 drivers/net/ethernet/qlogic/qede/qede_filter.c static int qede_xdp_set(struct qede_dev *edev, struct bpf_prog *prog)
prog             1108 drivers/net/ethernet/qlogic/qede/qede_filter.c 	args.u.new_prog = prog;
prog             1120 drivers/net/ethernet/qlogic/qede/qede_filter.c 		return qede_xdp_set(edev, xdp->prog);
prog             1056 drivers/net/ethernet/qlogic/qede/qede_fp.c 			struct bpf_prog *prog,
prog             1075 drivers/net/ethernet/qlogic/qede/qede_fp.c 	act = bpf_prog_run_xdp(prog, &xdp);
prog             1093 drivers/net/ethernet/qlogic/qede/qede_fp.c 			trace_xdp_exception(edev->ndev, prog, act);
prog             1104 drivers/net/ethernet/qlogic/qede/qede_fp.c 			trace_xdp_exception(edev->ndev, prog, act);
prog             1115 drivers/net/ethernet/qlogic/qede/qede_fp.c 		trace_xdp_exception(edev->ndev, prog, act);
prog              882 drivers/net/ethernet/socionext/netsec.c static u32 netsec_run_xdp(struct netsec_priv *priv, struct bpf_prog *prog,
prog              889 drivers/net/ethernet/socionext/netsec.c 	act = bpf_prog_run_xdp(prog, xdp);
prog              901 drivers/net/ethernet/socionext/netsec.c 		err = xdp_do_redirect(priv->ndev, xdp, prog);
prog              913 drivers/net/ethernet/socionext/netsec.c 		trace_xdp_exception(priv->ndev, prog, act);
prog             1773 drivers/net/ethernet/socionext/netsec.c static int netsec_xdp_setup(struct netsec_priv *priv, struct bpf_prog *prog,
prog             1780 drivers/net/ethernet/socionext/netsec.c 	if (prog && dev->mtu > 1500) {
prog             1789 drivers/net/ethernet/socionext/netsec.c 	old_prog = xchg(&priv->xdp_prog, prog);
prog             1805 drivers/net/ethernet/socionext/netsec.c 		return netsec_xdp_setup(priv, xdp->prog, xdp->extack);
prog              495 drivers/net/ethernet/ti/cpsw.c 	struct bpf_prog *prog;
prog              500 drivers/net/ethernet/ti/cpsw.c 	prog = READ_ONCE(priv->xdp_prog);
prog              501 drivers/net/ethernet/ti/cpsw.c 	if (!prog) {
prog              506 drivers/net/ethernet/ti/cpsw.c 	act = bpf_prog_run_xdp(prog, xdp);
prog              519 drivers/net/ethernet/ti/cpsw.c 		if (xdp_do_redirect(ndev, xdp, prog))
prog              533 drivers/net/ethernet/ti/cpsw.c 		trace_xdp_exception(ndev, prog, act);
prog             2343 drivers/net/ethernet/ti/cpsw.c 	struct bpf_prog *prog = bpf->prog;
prog             2345 drivers/net/ethernet/ti/cpsw.c 	if (!priv->xdpi.prog && !prog)
prog             2351 drivers/net/ethernet/ti/cpsw.c 	WRITE_ONCE(priv->xdp_prog, prog);
prog               31 drivers/net/netdevsim/bpf.c 	struct bpf_prog *prog;
prog               67 drivers/net/netdevsim/bpf.c 	state = env->prog->aux->offload->dev_priv;
prog               71 drivers/net/netdevsim/bpf.c 	if (insn_idx == env->prog->len - 1)
prog               84 drivers/net/netdevsim/bpf.c 	return ns->xdp_hw.prog;
prog               87 drivers/net/netdevsim/bpf.c static void nsim_prog_set_loaded(struct bpf_prog *prog, bool loaded)
prog               91 drivers/net/netdevsim/bpf.c 	if (!prog || !prog->aux->offload)
prog               94 drivers/net/netdevsim/bpf.c 	state = prog->aux->offload->dev_priv;
prog               99 drivers/net/netdevsim/bpf.c nsim_bpf_offload(struct netdevsim *ns, struct bpf_prog *prog, bool oldprog)
prog              106 drivers/net/netdevsim/bpf.c 	ns->bpf_offloaded = prog;
prog              107 drivers/net/netdevsim/bpf.c 	ns->bpf_offloaded_id = prog ? prog->aux->id : 0;
prog              108 drivers/net/netdevsim/bpf.c 	nsim_prog_set_loaded(prog, true);
prog              117 drivers/net/netdevsim/bpf.c 	struct bpf_prog *prog = cls_bpf->prog;
prog              142 drivers/net/netdevsim/bpf.c 	if (prog && !prog->aux->offload && !ns->bpf_tc_non_bound_accept) {
prog              156 drivers/net/netdevsim/bpf.c 		if (!cls_bpf->prog)
prog              165 drivers/net/netdevsim/bpf.c 	return nsim_bpf_offload(ns, cls_bpf->prog, oldprog);
prog              177 drivers/net/netdevsim/bpf.c 	if (!nsim_xdp_offload_active(ns) && !bpf->prog)
prog              179 drivers/net/netdevsim/bpf.c 	if (!nsim_xdp_offload_active(ns) && bpf->prog && ns->bpf_offloaded) {
prog              184 drivers/net/netdevsim/bpf.c 	return nsim_bpf_offload(ns, bpf->prog, nsim_xdp_offload_active(ns));
prog              217 drivers/net/netdevsim/bpf.c 				struct bpf_prog *prog)
prog              227 drivers/net/netdevsim/bpf.c 	state->prog = prog;
prog              238 drivers/net/netdevsim/bpf.c 	debugfs_create_u32("id", 0400, state->ddir, &prog->aux->id);
prog              245 drivers/net/netdevsim/bpf.c 	prog->aux->offload->dev_priv = state;
prog              250 drivers/net/netdevsim/bpf.c static int nsim_bpf_verifier_prep(struct bpf_prog *prog)
prog              253 drivers/net/netdevsim/bpf.c 			bpf_offload_dev_priv(prog->aux->offload->offdev);
prog              258 drivers/net/netdevsim/bpf.c 	return nsim_bpf_create_prog(nsim_dev, prog);
prog              261 drivers/net/netdevsim/bpf.c static int nsim_bpf_translate(struct bpf_prog *prog)
prog              263 drivers/net/netdevsim/bpf.c 	struct nsim_bpf_bound_prog *state = prog->aux->offload->dev_priv;
prog              269 drivers/net/netdevsim/bpf.c static void nsim_bpf_destroy_prog(struct bpf_prog *prog)
prog              273 drivers/net/netdevsim/bpf.c 	state = prog->aux->offload->dev_priv;
prog              291 drivers/net/netdevsim/bpf.c 	if (bpf->prog && bpf->prog->aux->offload) {
prog              307 drivers/net/netdevsim/bpf.c 	if (!bpf->prog)
prog              310 drivers/net/netdevsim/bpf.c 	if (!bpf->prog->aux->offload) {
prog              314 drivers/net/netdevsim/bpf.c 	if (!bpf_offload_dev_match(bpf->prog, ns->netdev)) {
prog              319 drivers/net/netdevsim/bpf.c 	state = bpf->prog->aux->offload->dev_priv;
prog              647 drivers/net/netdevsim/bpf.c 	WARN_ON(ns->xdp.prog);
prog              648 drivers/net/netdevsim/bpf.c 	WARN_ON(ns->xdp_hw.prog);
prog               54 drivers/net/netdevsim/netdev.c 	if (ns->xdp.prog && new_mtu > NSIM_XDP_MAX_MTU)
prog              202 drivers/net/tun.c 	struct bpf_prog *prog;
prog              588 drivers/net/tun.c 	struct tun_prog *prog;
prog              596 drivers/net/tun.c 	prog = rcu_dereference(tun->steering_prog);
prog              597 drivers/net/tun.c 	if (prog)
prog              598 drivers/net/tun.c 		ret = bpf_prog_run_clear_cb(prog->prog, skb);
prog             1053 drivers/net/tun.c 	struct tun_prog *prog = rcu_dereference(tun->filter_prog);
prog             1055 drivers/net/tun.c 	if (prog)
prog             1056 drivers/net/tun.c 		len = bpf_prog_run_clear_cb(prog->prog, skb);
prog             1191 drivers/net/tun.c static int tun_xdp_set(struct net_device *dev, struct bpf_prog *prog,
prog             1200 drivers/net/tun.c 	rcu_assign_pointer(tun->xdp_prog, prog);
prog             1206 drivers/net/tun.c 		if (prog)
prog             1212 drivers/net/tun.c 		if (prog)
prog             1237 drivers/net/tun.c 		return tun_xdp_set(dev, xdp->prog, xdp->extack);
prog             2270 drivers/net/tun.c 	struct tun_prog *prog = container_of(rcu, struct tun_prog, rcu);
prog             2272 drivers/net/tun.c 	bpf_prog_destroy(prog->prog);
prog             2273 drivers/net/tun.c 	kfree(prog);
prog             2278 drivers/net/tun.c 			  struct bpf_prog *prog)
prog             2282 drivers/net/tun.c 	if (prog) {
prog             2286 drivers/net/tun.c 		new->prog = prog;
prog             3021 drivers/net/tun.c 	struct bpf_prog *prog;
prog             3028 drivers/net/tun.c 		prog = NULL;
prog             3030 drivers/net/tun.c 		prog = bpf_prog_get_type(fd, BPF_PROG_TYPE_SOCKET_FILTER);
prog             3031 drivers/net/tun.c 		if (IS_ERR(prog))
prog             3032 drivers/net/tun.c 			return PTR_ERR(prog);
prog             3035 drivers/net/tun.c 	return __tun_set_ebpf(tun, prog_p, prog);
prog             1065 drivers/net/veth.c static int veth_xdp_set(struct net_device *dev, struct bpf_prog *prog,
prog             1075 drivers/net/veth.c 	priv->_xdp_prog = prog;
prog             1078 drivers/net/veth.c 	if (prog) {
prog             1115 drivers/net/veth.c 		if (!prog) {
prog             1127 drivers/net/veth.c 	if ((!!old_prog ^ !!prog) && peer)
prog             1153 drivers/net/veth.c 		return veth_xdp_set(dev, xdp->prog, xdp->extack);
prog             2404 drivers/net/virtio_net.c static int virtnet_xdp_set(struct net_device *dev, struct bpf_prog *prog,
prog             2435 drivers/net/virtio_net.c 	if (prog)
prog             2447 drivers/net/virtio_net.c 	if (!prog && !old_prog)
prog             2450 drivers/net/virtio_net.c 	if (prog) {
prog             2451 drivers/net/virtio_net.c 		prog = bpf_prog_add(prog, vi->max_queue_pairs - 1);
prog             2452 drivers/net/virtio_net.c 		if (IS_ERR(prog))
prog             2453 drivers/net/virtio_net.c 			return PTR_ERR(prog);
prog             2464 drivers/net/virtio_net.c 	if (!prog) {
prog             2466 drivers/net/virtio_net.c 			rcu_assign_pointer(vi->rq[i].xdp_prog, prog);
prog             2479 drivers/net/virtio_net.c 	if (prog) {
prog             2481 drivers/net/virtio_net.c 			rcu_assign_pointer(vi->rq[i].xdp_prog, prog);
prog             2500 drivers/net/virtio_net.c 	if (!prog) {
prog             2513 drivers/net/virtio_net.c 	if (prog)
prog             2514 drivers/net/virtio_net.c 		bpf_prog_sub(prog, vi->max_queue_pairs - 1);
prog             2536 drivers/net/virtio_net.c 		return virtnet_xdp_set(dev, xdp->prog, xdp->extack);
prog              435 drivers/parisc/superio.c 	u8 prog;
prog              440 drivers/parisc/superio.c 	pci_read_config_byte(pdev, PCI_CLASS_PROG, &prog);
prog              441 drivers/parisc/superio.c 	printk("PCI: Enabled native mode for NS87415 (pif=0x%x)\n", prog);
prog             1314 drivers/pci/quirks.c 	u8 prog;
prog             1315 drivers/pci/quirks.c 	pci_read_config_byte(pdev, PCI_CLASS_PROG, &prog);
prog             1316 drivers/pci/quirks.c 	if (prog & 5) {
prog             1317 drivers/pci/quirks.c 		prog &= ~5;
prog             1319 drivers/pci/quirks.c 		pci_write_config_byte(pdev, PCI_CLASS_PROG, prog);
prog             1328 drivers/pci/quirks.c 	u8 prog;
prog             1330 drivers/pci/quirks.c 	pci_read_config_byte(pdev, PCI_CLASS_PROG, &prog);
prog             1332 drivers/pci/quirks.c 	if (((prog & 1) && !(prog & 4)) || ((prog & 4) && !(prog & 1))) {
prog             1334 drivers/pci/quirks.c 		prog &= ~5;
prog             1336 drivers/pci/quirks.c 		pci_write_config_byte(pdev, PCI_CLASS_PROG, prog);
prog              178 drivers/scsi/aic94xx/aic94xx_seq.c 	const u32 *prog = (u32 *) _prog;
prog              181 drivers/scsi/aic94xx/aic94xx_seq.c 	for (i = 0; i < size; i += 4, prog++, addr += 4) {
prog              184 drivers/scsi/aic94xx/aic94xx_seq.c 		if (le32_to_cpu(*prog) != val) {
prog              188 drivers/scsi/aic94xx/aic94xx_seq.c 				   i, val, le32_to_cpu(*prog));
prog              214 drivers/scsi/aic94xx/aic94xx_seq.c 	const u32 *prog = (u32 *) _prog;
prog              222 drivers/scsi/aic94xx/aic94xx_seq.c 		     i += 4, prog++, size-=4) {
prog              226 drivers/scsi/aic94xx/aic94xx_seq.c 			if (le32_to_cpu(*prog) != val) {
prog              236 drivers/scsi/aic94xx/aic94xx_seq.c 		    (int)((u8 *)prog-_prog));
prog              249 drivers/scsi/aic94xx/aic94xx_seq.c static int asd_verify_seq(struct asd_ha_struct *asd_ha, const u8 *prog,
prog              253 drivers/scsi/aic94xx/aic94xx_seq.c 		return asd_verify_cseq(asd_ha, prog, size);
prog              258 drivers/scsi/aic94xx/aic94xx_seq.c 			err = asd_verify_lseq(asd_ha, prog, size, lseq);
prog              271 drivers/scsi/aic94xx/aic94xx_seq.c 			    const u8 * const prog, u32 size, u8 lseq_mask)
prog              309 drivers/scsi/aic94xx/aic94xx_seq.c 		memcpy(token->vaddr, prog + page*MAX_DMA_OVLY_COUNT, left);
prog              338 drivers/scsi/aic94xx/aic94xx_seq.c 	return err ? : asd_verify_seq(asd_ha, prog, size, lseq_mask);
prog              346 drivers/scsi/aic94xx/aic94xx_seq.c 	const u32 *prog = (u32 *) _prog;
prog              365 drivers/scsi/aic94xx/aic94xx_seq.c 	for (i = 0; i < size; i += 4, prog++)
prog              366 drivers/scsi/aic94xx/aic94xx_seq.c 		asd_write_reg_dword(asd_ha, SPIODATA, *prog);
prog             2126 drivers/scsi/megaraid/megaraid_sas.h 			struct megasas_progress prog;
prog             2160 drivers/scsi/megaraid/megaraid_sas.h 			struct megasas_progress prog;
prog               41 fs/lockd/mon.c 	u32			prog;		/* RPC callback info */
prog               98 fs/lockd/mon.c 		.prog		= NLM_PROGRAM,
prog              453 fs/lockd/mon.c 	*p++ = cpu_to_be32(argp->prog);
prog               56 include/linux/bpf-cgroup.h 	struct bpf_prog *prog;
prog               87 include/linux/bpf-cgroup.h int __cgroup_bpf_attach(struct cgroup *cgrp, struct bpf_prog *prog,
prog               89 include/linux/bpf-cgroup.h int __cgroup_bpf_detach(struct cgroup *cgrp, struct bpf_prog *prog,
prog               95 include/linux/bpf-cgroup.h int cgroup_bpf_attach(struct cgroup *cgrp, struct bpf_prog *prog,
prog               97 include/linux/bpf-cgroup.h int cgroup_bpf_detach(struct cgroup *cgrp, struct bpf_prog *prog,
prog              153 include/linux/bpf-cgroup.h struct bpf_cgroup_storage *bpf_cgroup_storage_alloc(struct bpf_prog *prog,
prog              160 include/linux/bpf-cgroup.h int bpf_cgroup_storage_assign(struct bpf_prog *prog, struct bpf_map *map);
prog              161 include/linux/bpf-cgroup.h void bpf_cgroup_storage_release(struct bpf_prog *prog, struct bpf_map *map);
prog              330 include/linux/bpf-cgroup.h 			   enum bpf_prog_type ptype, struct bpf_prog *prog);
prog              344 include/linux/bpf-cgroup.h 					 struct bpf_prog *prog)
prog              363 include/linux/bpf-cgroup.h static inline int bpf_cgroup_storage_assign(struct bpf_prog *prog,
prog              365 include/linux/bpf-cgroup.h static inline void bpf_cgroup_storage_release(struct bpf_prog *prog,
prog              368 include/linux/bpf-cgroup.h 	struct bpf_prog *prog, enum bpf_cgroup_storage_type stype) { return NULL; }
prog              301 include/linux/bpf.h 	int (*test_run)(struct bpf_prog *prog, const union bpf_attr *kattr,
prog              309 include/linux/bpf.h 			  const struct bpf_prog *prog);
prog              315 include/linux/bpf.h 				const struct bpf_prog *prog,
prog              318 include/linux/bpf.h 			    const struct bpf_prog *prog);
prog              324 include/linux/bpf.h 				  struct bpf_prog *prog, u32 *target_size);
prog              337 include/linux/bpf.h 	int (*prepare)(struct bpf_prog *prog);
prog              338 include/linux/bpf.h 	int (*translate)(struct bpf_prog *prog);
prog              339 include/linux/bpf.h 	void (*destroy)(struct bpf_prog *prog);
prog              343 include/linux/bpf.h 	struct bpf_prog		*prog;
prog              386 include/linux/bpf.h 	struct bpf_prog *prog;
prog              493 include/linux/bpf.h 					struct bpf_prog *prog,
prog              512 include/linux/bpf.h 	struct bpf_prog *prog;
prog              550 include/linux/bpf.h 		while ((_prog = READ_ONCE(_item->prog))) {		\
prog              595 include/linux/bpf.h 		while ((_prog = READ_ONCE(_item->prog))) {		\
prog              639 include/linux/bpf.h struct bpf_prog * __must_check bpf_prog_add(struct bpf_prog *prog, int i);
prog              640 include/linux/bpf.h void bpf_prog_sub(struct bpf_prog *prog, int i);
prog              641 include/linux/bpf.h struct bpf_prog * __must_check bpf_prog_inc(struct bpf_prog *prog);
prog              642 include/linux/bpf.h struct bpf_prog * __must_check bpf_prog_inc_not_zero(struct bpf_prog *prog);
prog              643 include/linux/bpf.h void bpf_prog_put(struct bpf_prog *prog);
prog              647 include/linux/bpf.h void bpf_prog_free_id(struct bpf_prog *prog, bool do_idr_lock);
prog              670 include/linux/bpf.h int bpf_prog_new_fd(struct bpf_prog *prog);
prog              743 include/linux/bpf.h int bpf_prog_test_run_xdp(struct bpf_prog *prog, const union bpf_attr *kattr,
prog              745 include/linux/bpf.h int bpf_prog_test_run_skb(struct bpf_prog *prog, const union bpf_attr *kattr,
prog              747 include/linux/bpf.h int bpf_prog_test_run_flow_dissector(struct bpf_prog *prog,
prog              763 include/linux/bpf.h static inline struct bpf_prog * __must_check bpf_prog_add(struct bpf_prog *prog,
prog              769 include/linux/bpf.h static inline void bpf_prog_sub(struct bpf_prog *prog, int i)
prog              773 include/linux/bpf.h static inline void bpf_prog_put(struct bpf_prog *prog)
prog              777 include/linux/bpf.h static inline struct bpf_prog * __must_check bpf_prog_inc(struct bpf_prog *prog)
prog              783 include/linux/bpf.h bpf_prog_inc_not_zero(struct bpf_prog *prog)
prog              860 include/linux/bpf.h static inline int bpf_prog_test_run_xdp(struct bpf_prog *prog,
prog              867 include/linux/bpf.h static inline int bpf_prog_test_run_skb(struct bpf_prog *prog,
prog              874 include/linux/bpf.h static inline int bpf_prog_test_run_flow_dissector(struct bpf_prog *prog,
prog              890 include/linux/bpf.h int bpf_prog_offload_compile(struct bpf_prog *prog);
prog              891 include/linux/bpf.h void bpf_prog_offload_destroy(struct bpf_prog *prog);
prog              893 include/linux/bpf.h 			       struct bpf_prog *prog);
prog              904 include/linux/bpf.h bool bpf_offload_prog_map_match(struct bpf_prog *prog, struct bpf_map *map);
prog              914 include/linux/bpf.h bool bpf_offload_dev_match(struct bpf_prog *prog, struct net_device *netdev);
prog              917 include/linux/bpf.h int bpf_prog_offload_init(struct bpf_prog *prog, union bpf_attr *attr);
prog              932 include/linux/bpf.h static inline int bpf_prog_offload_init(struct bpf_prog *prog,
prog              959 include/linux/bpf.h int sock_map_prog_update(struct bpf_map *map, struct bpf_prog *prog, u32 which);
prog              960 include/linux/bpf.h int sock_map_get_from_fd(const union bpf_attr *attr, struct bpf_prog *prog);
prog              963 include/linux/bpf.h 				       struct bpf_prog *prog, u32 which)
prog              969 include/linux/bpf.h 				       struct bpf_prog *prog)
prog             1072 include/linux/bpf.h 				struct bpf_prog *prog,
prog             1090 include/linux/bpf.h 					      struct bpf_prog *prog,
prog             1104 include/linux/bpf.h 				    struct bpf_prog *prog,
prog             1113 include/linux/bpf.h 				    struct bpf_prog *prog,
prog             1126 include/linux/bpf.h 						  struct bpf_prog *prog,
prog             1141 include/linux/bpf.h 						  struct bpf_prog *prog,
prog                8 include/linux/bpf_lirc.h int lirc_prog_attach(const union bpf_attr *attr, struct bpf_prog *prog);
prog               13 include/linux/bpf_lirc.h 				   struct bpf_prog *prog)
prog              353 include/linux/bpf_verifier.h 	struct bpf_prog *prog;		/* eBPF program being verified */
prog              413 include/linux/bpf_verifier.h int bpf_prog_offload_verifier_prep(struct bpf_prog *prog);
prog              551 include/linux/filter.h 	struct bpf_prog	*prog;
prog              556 include/linux/filter.h #define BPF_PROG_RUN(prog, ctx)	({				\
prog              562 include/linux/filter.h 		ret = (*(prog)->bpf_func)(ctx, (prog)->insnsi);	\
prog              563 include/linux/filter.h 		stats = this_cpu_ptr(prog->aux->stats);		\
prog              569 include/linux/filter.h 		ret = (*(prog)->bpf_func)(ctx, (prog)->insnsi);	\
prog              650 include/linux/filter.h static inline u32 __bpf_prog_run_save_cb(const struct bpf_prog *prog,
prog              657 include/linux/filter.h 	if (unlikely(prog->cb_access)) {
prog              662 include/linux/filter.h 	res = BPF_PROG_RUN(prog, skb);
prog              664 include/linux/filter.h 	if (unlikely(prog->cb_access))
prog              670 include/linux/filter.h static inline u32 bpf_prog_run_save_cb(const struct bpf_prog *prog,
prog              676 include/linux/filter.h 	res = __bpf_prog_run_save_cb(prog, skb);
prog              681 include/linux/filter.h static inline u32 bpf_prog_run_clear_cb(const struct bpf_prog *prog,
prog              687 include/linux/filter.h 	if (unlikely(prog->cb_access))
prog              691 include/linux/filter.h 	res = BPF_PROG_RUN(prog, skb);
prog              696 include/linux/filter.h static __always_inline u32 bpf_prog_run_xdp(const struct bpf_prog *prog,
prog              705 include/linux/filter.h 	return BPF_PROG_RUN(prog, xdp);
prog              708 include/linux/filter.h static inline u32 bpf_prog_insn_size(const struct bpf_prog *prog)
prog              710 include/linux/filter.h 	return prog->len * sizeof(struct bpf_insn);
prog              713 include/linux/filter.h static inline u32 bpf_prog_tag_scratch_size(const struct bpf_prog *prog)
prog              715 include/linux/filter.h 	return round_up(bpf_prog_insn_size(prog) +
prog              725 include/linux/filter.h static inline bool bpf_prog_was_classic(const struct bpf_prog *prog)
prog              732 include/linux/filter.h 	return prog->type == BPF_PROG_TYPE_UNSPEC;
prog              808 include/linux/filter.h void bpf_prog_free_linfo(struct bpf_prog *prog);
prog              809 include/linux/filter.h void bpf_prog_fill_jited_linfo(struct bpf_prog *prog,
prog              811 include/linux/filter.h int bpf_prog_alloc_jited_linfo(struct bpf_prog *prog);
prog              812 include/linux/filter.h void bpf_prog_free_jited_linfo(struct bpf_prog *prog);
prog              813 include/linux/filter.h void bpf_prog_free_unused_jited_linfo(struct bpf_prog *prog);
prog              838 include/linux/filter.h void sk_reuseport_prog_free(struct bpf_prog *prog);
prog              851 include/linux/filter.h struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *prog);
prog              852 include/linux/filter.h void bpf_jit_compile(struct bpf_prog *prog);
prog              864 include/linux/filter.h struct bpf_prog *bpf_patch_insn_single(struct bpf_prog *prog, u32 off,
prog              866 include/linux/filter.h int bpf_remove_insns(struct bpf_prog *prog, u32 off, u32 cnt);
prog              913 include/linux/filter.h 			    struct xdp_buff *xdp, struct bpf_prog *prog);
prog              916 include/linux/filter.h 		    struct bpf_prog *prog);
prog              923 include/linux/filter.h 				  struct bpf_prog *prog, struct sk_buff *skb,
prog              928 include/linux/filter.h 		     struct bpf_prog *prog, struct sk_buff *skb,
prog              953 include/linux/filter.h int bpf_jit_get_func_addr(const struct bpf_prog *prog,
prog              990 include/linux/filter.h static inline bool bpf_jit_blinding_enabled(struct bpf_prog *prog)
prog              998 include/linux/filter.h 	if (!prog->jit_requested)
prog             1042 include/linux/filter.h void bpf_get_prog_name(const struct bpf_prog *prog, char *sym);
prog             1099 include/linux/filter.h static inline void bpf_get_prog_name(const struct bpf_prog *prog, char *sym)
prog             1814 include/linux/lsm_hooks.h 	int (*bpf_prog)(struct bpf_prog *prog);
prog              886 include/linux/netdevice.h 			struct bpf_prog *prog;
prog              709 include/linux/perf_event.h 	struct bpf_prog			*prog;
prog             1174 include/linux/perf_event.h extern void perf_event_bpf_event(struct bpf_prog *prog,
prog             1402 include/linux/perf_event.h static inline void perf_event_bpf_event(struct bpf_prog *prog,
prog             1860 include/linux/security.h extern int security_bpf_prog(struct bpf_prog *prog);
prog             1877 include/linux/security.h static inline int security_bpf_prog(struct bpf_prog *prog)
prog             1258 include/linux/skbuff.h 				       struct bpf_prog *prog);
prog             1269 include/linux/skbuff.h 						     struct bpf_prog *prog)
prog             1281 include/linux/skbuff.h bool bpf_flow_dissect(struct bpf_prog *prog, struct bpf_flow_dissector *ctx,
prog              446 include/linux/skmsg.h 				  struct bpf_prog *prog)
prog              448 include/linux/skmsg.h 	prog = xchg(pprog, prog);
prog              449 include/linux/skmsg.h 	if (prog)
prog              450 include/linux/skmsg.h 		bpf_prog_put(prog);
prog              478 include/linux/trace_events.h int perf_event_attach_bpf_prog(struct perf_event *event, struct bpf_prog *prog);
prog              481 include/linux/trace_events.h int bpf_probe_register(struct bpf_raw_event_map *btp, struct bpf_prog *prog);
prog              482 include/linux/trace_events.h int bpf_probe_unregister(struct bpf_raw_event_map *btp, struct bpf_prog *prog);
prog              495 include/linux/trace_events.h perf_event_attach_bpf_prog(struct perf_event *event, struct bpf_prog *prog)
prog              605 include/linux/trace_events.h void bpf_trace_run1(struct bpf_prog *prog, u64 arg1);
prog              606 include/linux/trace_events.h void bpf_trace_run2(struct bpf_prog *prog, u64 arg1, u64 arg2);
prog              607 include/linux/trace_events.h void bpf_trace_run3(struct bpf_prog *prog, u64 arg1, u64 arg2,
prog              609 include/linux/trace_events.h void bpf_trace_run4(struct bpf_prog *prog, u64 arg1, u64 arg2,
prog              611 include/linux/trace_events.h void bpf_trace_run5(struct bpf_prog *prog, u64 arg1, u64 arg2,
prog              613 include/linux/trace_events.h void bpf_trace_run6(struct bpf_prog *prog, u64 arg1, u64 arg2,
prog              615 include/linux/trace_events.h void bpf_trace_run7(struct bpf_prog *prog, u64 arg1, u64 arg2,
prog              617 include/linux/trace_events.h void bpf_trace_run8(struct bpf_prog *prog, u64 arg1, u64 arg2,
prog              620 include/linux/trace_events.h void bpf_trace_run9(struct bpf_prog *prog, u64 arg1, u64 arg2,
prog              623 include/linux/trace_events.h void bpf_trace_run10(struct bpf_prog *prog, u64 arg1, u64 arg2,
prog              626 include/linux/trace_events.h void bpf_trace_run11(struct bpf_prog *prog, u64 arg1, u64 arg2,
prog              629 include/linux/trace_events.h void bpf_trace_run12(struct bpf_prog *prog, u64 arg1, u64 arg2,
prog              664 include/net/pkt_cls.h 	struct bpf_prog *prog;
prog               26 include/net/sock_reuseport.h 	struct bpf_prog __rcu	*prog;		/* optional BPF sock selector */
prog               38 include/net/sock_reuseport.h extern int reuseport_attach_prog(struct sock *sk, struct bpf_prog *prog);
prog              172 include/net/xdp.h 	struct bpf_prog *prog;
prog              253 include/sound/opl3.h 	unsigned char prog;
prog              363 include/sound/opl3.h 			int prog, int bank, int type,
prog              367 include/sound/opl3.h struct fm_patch *snd_opl3_find_patch(struct snd_opl3 *opl3, int prog, int bank,
prog               63 include/trace/bpf_probe.h 	struct bpf_prog *prog = __data;					\
prog               64 include/trace/bpf_probe.h 	CONCATENATE(bpf_trace_run, COUNT_ARGS(args))(prog, CAST_TO_U64(args));	\
prog              127 include/uapi/sound/asound_fm.h 	unsigned char prog;
prog              572 kernel/bpf/arraymap.c 	struct bpf_prog *prog = bpf_prog_get(fd);
prog              574 kernel/bpf/arraymap.c 	if (IS_ERR(prog))
prog              575 kernel/bpf/arraymap.c 		return prog;
prog              577 kernel/bpf/arraymap.c 	if (!bpf_prog_array_compatible(array, prog)) {
prog              578 kernel/bpf/arraymap.c 		bpf_prog_put(prog);
prog              582 kernel/bpf/arraymap.c 	return prog;
prog               52 kernel/bpf/cgroup.c 			bpf_prog_put(pl->prog);
prog               97 kernel/bpf/cgroup.c 		if (!pl->prog)
prog              167 kernel/bpf/cgroup.c 			if (!pl->prog)
prog              170 kernel/bpf/cgroup.c 			progs->items[cnt].prog = pl->prog;
prog              301 kernel/bpf/cgroup.c int __cgroup_bpf_attach(struct cgroup *cgrp, struct bpf_prog *prog,
prog              331 kernel/bpf/cgroup.c 		storage[stype] = bpf_cgroup_storage_alloc(prog, stype);
prog              342 kernel/bpf/cgroup.c 			if (pl->prog == prog) {
prog              358 kernel/bpf/cgroup.c 		pl->prog = prog;
prog              374 kernel/bpf/cgroup.c 			old_prog = pl->prog;
prog              381 kernel/bpf/cgroup.c 		pl->prog = prog;
prog              408 kernel/bpf/cgroup.c 	pl->prog = old_prog;
prog              430 kernel/bpf/cgroup.c int __cgroup_bpf_detach(struct cgroup *cgrp, struct bpf_prog *prog,
prog              441 kernel/bpf/cgroup.c 		if (!prog)
prog              455 kernel/bpf/cgroup.c 			if (pl->prog != prog)
prog              457 kernel/bpf/cgroup.c 			old_prog = prog;
prog              461 kernel/bpf/cgroup.c 			pl->prog = NULL;
prog              471 kernel/bpf/cgroup.c 		old_prog = pl->prog;
prog              472 kernel/bpf/cgroup.c 		pl->prog = NULL;
prog              496 kernel/bpf/cgroup.c 	pl->prog = old_prog;
prog              539 kernel/bpf/cgroup.c 			id = pl->prog->aux->id;
prog              550 kernel/bpf/cgroup.c 			   enum bpf_prog_type ptype, struct bpf_prog *prog)
prog              559 kernel/bpf/cgroup.c 	ret = cgroup_bpf_attach(cgrp, prog, attr->attach_type,
prog              567 kernel/bpf/cgroup.c 	struct bpf_prog *prog;
prog              575 kernel/bpf/cgroup.c 	prog = bpf_prog_get_type(attr->attach_bpf_fd, ptype);
prog              576 kernel/bpf/cgroup.c 	if (IS_ERR(prog))
prog              577 kernel/bpf/cgroup.c 		prog = NULL;
prog              579 kernel/bpf/cgroup.c 	ret = cgroup_bpf_detach(cgrp, prog, attr->attach_type, 0);
prog              580 kernel/bpf/cgroup.c 	if (prog)
prog              581 kernel/bpf/cgroup.c 		bpf_prog_put(prog);
prog              786 kernel/bpf/cgroup.c cgroup_base_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog)
prog              817 kernel/bpf/cgroup.c cgroup_dev_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog)
prog              819 kernel/bpf/cgroup.c 	return cgroup_base_func_proto(func_id, prog);
prog              824 kernel/bpf/cgroup.c 				       const struct bpf_prog *prog,
prog             1294 kernel/bpf/cgroup.c sysctl_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog)
prog             1310 kernel/bpf/cgroup.c 		return cgroup_base_func_proto(func_id, prog);
prog             1315 kernel/bpf/cgroup.c 				   const struct bpf_prog *prog,
prog             1344 kernel/bpf/cgroup.c 				     struct bpf_prog *prog, u32 *target_size)
prog             1413 kernel/bpf/cgroup.c cg_sockopt_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog)
prog             1427 kernel/bpf/cgroup.c 		return cgroup_base_func_proto(func_id, prog);
prog             1433 kernel/bpf/cgroup.c 				       const struct bpf_prog *prog,
prog             1449 kernel/bpf/cgroup.c 			return prog->expected_attach_type ==
prog             1456 kernel/bpf/cgroup.c 			return prog->expected_attach_type ==
prog             1484 kernel/bpf/cgroup.c 		return prog->expected_attach_type == BPF_CGROUP_GETSOCKOPT;
prog             1501 kernel/bpf/cgroup.c 					 struct bpf_prog *prog,
prog             1547 kernel/bpf/cgroup.c 				   const struct bpf_prog *prog)
prog               96 kernel/bpf/core.c 	fp->aux->prog = fp;
prog              107 kernel/bpf/core.c 	struct bpf_prog *prog;
prog              110 kernel/bpf/core.c 	prog = bpf_prog_alloc_no_stats(size, gfp_extra_flags);
prog              111 kernel/bpf/core.c 	if (!prog)
prog              114 kernel/bpf/core.c 	prog->aux->stats = alloc_percpu_gfp(struct bpf_prog_stats, gfp_flags);
prog              115 kernel/bpf/core.c 	if (!prog->aux->stats) {
prog              116 kernel/bpf/core.c 		kfree(prog->aux);
prog              117 kernel/bpf/core.c 		vfree(prog);
prog              124 kernel/bpf/core.c 		pstats = per_cpu_ptr(prog->aux->stats, cpu);
prog              127 kernel/bpf/core.c 	return prog;
prog              131 kernel/bpf/core.c int bpf_prog_alloc_jited_linfo(struct bpf_prog *prog)
prog              133 kernel/bpf/core.c 	if (!prog->aux->nr_linfo || !prog->jit_requested)
prog              136 kernel/bpf/core.c 	prog->aux->jited_linfo = kcalloc(prog->aux->nr_linfo,
prog              137 kernel/bpf/core.c 					 sizeof(*prog->aux->jited_linfo),
prog              139 kernel/bpf/core.c 	if (!prog->aux->jited_linfo)
prog              145 kernel/bpf/core.c void bpf_prog_free_jited_linfo(struct bpf_prog *prog)
prog              147 kernel/bpf/core.c 	kfree(prog->aux->jited_linfo);
prog              148 kernel/bpf/core.c 	prog->aux->jited_linfo = NULL;
prog              151 kernel/bpf/core.c void bpf_prog_free_unused_jited_linfo(struct bpf_prog *prog)
prog              153 kernel/bpf/core.c 	if (prog->aux->jited_linfo && !prog->aux->jited_linfo[0])
prog              154 kernel/bpf/core.c 		bpf_prog_free_jited_linfo(prog);
prog              181 kernel/bpf/core.c void bpf_prog_fill_jited_linfo(struct bpf_prog *prog,
prog              188 kernel/bpf/core.c 	if (!prog->aux->jited_linfo)
prog              192 kernel/bpf/core.c 	linfo_idx = prog->aux->linfo_idx;
prog              193 kernel/bpf/core.c 	linfo = &prog->aux->linfo[linfo_idx];
prog              195 kernel/bpf/core.c 	insn_end = insn_start + prog->len;
prog              197 kernel/bpf/core.c 	jited_linfo = &prog->aux->jited_linfo[linfo_idx];
prog              198 kernel/bpf/core.c 	jited_linfo[0] = prog->bpf_func;
prog              200 kernel/bpf/core.c 	nr_linfo = prog->aux->nr_linfo - linfo_idx;
prog              206 kernel/bpf/core.c 		jited_linfo[i] = prog->bpf_func +
prog              210 kernel/bpf/core.c void bpf_prog_free_linfo(struct bpf_prog *prog)
prog              212 kernel/bpf/core.c 	bpf_prog_free_jited_linfo(prog);
prog              213 kernel/bpf/core.c 	kvfree(prog->aux->linfo);
prog              242 kernel/bpf/core.c 		fp->aux->prog = fp;
prog              372 kernel/bpf/core.c static int bpf_adj_branches(struct bpf_prog *prog, u32 pos, s32 end_old,
prog              375 kernel/bpf/core.c 	u32 i, insn_cnt = prog->len + (probe_pass ? end_new - end_old : 0);
prog              376 kernel/bpf/core.c 	struct bpf_insn *insn = prog->insnsi;
prog              388 kernel/bpf/core.c 			insn = prog->insnsi + end_old;
prog              412 kernel/bpf/core.c static void bpf_adj_linfo(struct bpf_prog *prog, u32 off, u32 delta)
prog              417 kernel/bpf/core.c 	nr_linfo = prog->aux->nr_linfo;
prog              421 kernel/bpf/core.c 	linfo = prog->aux->linfo;
prog              432 kernel/bpf/core.c struct bpf_prog *bpf_patch_insn_single(struct bpf_prog *prog, u32 off,
prog              442 kernel/bpf/core.c 		memcpy(prog->insnsi + off, patch, sizeof(*patch));
prog              443 kernel/bpf/core.c 		return prog;
prog              446 kernel/bpf/core.c 	insn_adj_cnt = prog->len + insn_delta;
prog              454 kernel/bpf/core.c 	    (err = bpf_adj_branches(prog, off, off + 1, off + len, true)))
prog              461 kernel/bpf/core.c 	prog_adj = bpf_prog_realloc(prog, bpf_prog_size(insn_adj_cnt),
prog              493 kernel/bpf/core.c int bpf_remove_insns(struct bpf_prog *prog, u32 off, u32 cnt)
prog              498 kernel/bpf/core.c 	memmove(prog->insnsi + off, prog->insnsi + off + cnt,
prog              499 kernel/bpf/core.c 		sizeof(struct bpf_insn) * (prog->len - off - cnt));
prog              500 kernel/bpf/core.c 	prog->len -= cnt;
prog              502 kernel/bpf/core.c 	return WARN_ON_ONCE(bpf_adj_branches(prog, off, off + cnt, off, false));
prog              527 kernel/bpf/core.c bpf_get_prog_addr_region(const struct bpf_prog *prog,
prog              531 kernel/bpf/core.c 	const struct bpf_binary_header *hdr = bpf_jit_binary_hdr(prog);
prog              534 kernel/bpf/core.c 	WARN_ON_ONCE(!bpf_prog_ebpf_jited(prog));
prog              540 kernel/bpf/core.c void bpf_get_prog_name(const struct bpf_prog *prog, char *sym)
prog              547 kernel/bpf/core.c 		     sizeof(prog->tag) * 2 +
prog              555 kernel/bpf/core.c 		     sizeof(prog->aux->name) > KSYM_NAME_LEN);
prog              558 kernel/bpf/core.c 	sym  = bin2hex(sym, prog->tag, sizeof(prog->tag));
prog              561 kernel/bpf/core.c 	if (prog->aux->func_info_cnt) {
prog              562 kernel/bpf/core.c 		type = btf_type_by_id(prog->aux->btf,
prog              563 kernel/bpf/core.c 				      prog->aux->func_info[prog->aux->func_idx].type_id);
prog              564 kernel/bpf/core.c 		func_name = btf_name_by_offset(prog->aux->btf, type->name_off);
prog              569 kernel/bpf/core.c 	if (prog->aux->name[0])
prog              570 kernel/bpf/core.c 		snprintf(sym, (size_t)(end - sym), "_%s", prog->aux->name);
prog              582 kernel/bpf/core.c 	bpf_get_prog_addr_region(aux->prog, &symbol_start, &symbol_end);
prog              600 kernel/bpf/core.c 	bpf_get_prog_addr_region(aux->prog, &symbol_start, &symbol_end);
prog              676 kernel/bpf/core.c 	       container_of(n, struct bpf_prog_aux, ksym_tnode)->prog :
prog              684 kernel/bpf/core.c 	struct bpf_prog *prog;
prog              688 kernel/bpf/core.c 	prog = bpf_prog_kallsyms_find(addr);
prog              689 kernel/bpf/core.c 	if (prog) {
prog              690 kernel/bpf/core.c 		bpf_get_prog_addr_region(prog, &symbol_start, &symbol_end);
prog              691 kernel/bpf/core.c 		bpf_get_prog_name(prog, sym);
prog              730 kernel/bpf/core.c 		bpf_get_prog_name(aux->prog, sym);
prog              732 kernel/bpf/core.c 		*value = (unsigned long)aux->prog->bpf_func;
prog              857 kernel/bpf/core.c int bpf_jit_get_func_addr(const struct bpf_prog *prog,
prog              873 kernel/bpf/core.c 		else if (prog->aux->func &&
prog              874 kernel/bpf/core.c 			 off >= 0 && off < prog->aux->func_cnt)
prog              875 kernel/bpf/core.c 			addr = (u8 *)prog->aux->func[off]->bpf_func;
prog             1063 kernel/bpf/core.c 	fp->aux->prog = fp;
prog             1067 kernel/bpf/core.c struct bpf_prog *bpf_jit_blind_constants(struct bpf_prog *prog)
prog             1075 kernel/bpf/core.c 	if (!bpf_jit_blinding_enabled(prog) || prog->blinded)
prog             1076 kernel/bpf/core.c 		return prog;
prog             1078 kernel/bpf/core.c 	clone = bpf_prog_clone_create(prog, GFP_USER);
prog             1105 kernel/bpf/core.c 			bpf_jit_prog_release_other(prog, clone);
prog             1461 kernel/bpf/core.c 		struct bpf_prog *prog;
prog             1471 kernel/bpf/core.c 		prog = READ_ONCE(array->ptrs[index]);
prog             1472 kernel/bpf/core.c 		if (!prog)
prog             1480 kernel/bpf/core.c 		insn = prog->insnsi;
prog             1766 kernel/bpf/core.c 	struct bpf_prog prog;
prog             1768 kernel/bpf/core.c 	.prog = {
prog             1809 kernel/bpf/core.c 	for (item = array->items; item->prog; item++)
prog             1810 kernel/bpf/core.c 		if (item->prog != &dummy_bpf_prog.prog)
prog             1819 kernel/bpf/core.c 	for (item = array->items; item->prog; item++)
prog             1820 kernel/bpf/core.c 		if (item->prog != &dummy_bpf_prog.prog)
prog             1832 kernel/bpf/core.c 	for (item = array->items; item->prog; item++) {
prog             1833 kernel/bpf/core.c 		if (item->prog == &dummy_bpf_prog.prog)
prog             1835 kernel/bpf/core.c 		prog_ids[i] = item->prog->aux->id;
prog             1842 kernel/bpf/core.c 	return !!(item->prog);
prog             1876 kernel/bpf/core.c 	for (item = array->items; item->prog; item++)
prog             1877 kernel/bpf/core.c 		if (item->prog == old_prog) {
prog             1878 kernel/bpf/core.c 			WRITE_ONCE(item->prog, &dummy_bpf_prog.prog);
prog             1899 kernel/bpf/core.c 		for (; existing->prog; existing++) {
prog             1900 kernel/bpf/core.c 			if (existing->prog == exclude_prog) {
prog             1904 kernel/bpf/core.c 			if (existing->prog != &dummy_bpf_prog.prog)
prog             1906 kernel/bpf/core.c 			if (existing->prog == include_prog)
prog             1933 kernel/bpf/core.c 		for (; existing->prog; existing++)
prog             1934 kernel/bpf/core.c 			if (existing->prog != exclude_prog &&
prog             1935 kernel/bpf/core.c 			    existing->prog != &dummy_bpf_prog.prog) {
prog             1936 kernel/bpf/core.c 				array->items[new_prog_idx++].prog =
prog             1937 kernel/bpf/core.c 					existing->prog;
prog             1941 kernel/bpf/core.c 		array->items[new_prog_idx++].prog = include_prog;
prog             1942 kernel/bpf/core.c 	array->items[new_prog_idx].prog = NULL;
prog             1974 kernel/bpf/core.c 		bpf_prog_offload_destroy(aux->prog);
prog             1976 kernel/bpf/core.c 	if (aux->prog->has_callchain_buf)
prog             1983 kernel/bpf/core.c 		bpf_prog_unlock_free(aux->prog);
prog             1985 kernel/bpf/core.c 		bpf_jit_free(aux->prog);
prog             2073 kernel/bpf/core.c struct bpf_prog * __weak bpf_int_jit_compile(struct bpf_prog *prog)
prog             2075 kernel/bpf/core.c 	return prog;
prog             2081 kernel/bpf/core.c void __weak bpf_jit_compile(struct bpf_prog *prog)
prog              517 kernel/bpf/inode.c 	struct bpf_prog *prog;
prog              527 kernel/bpf/inode.c 	prog = inode->i_private;
prog              529 kernel/bpf/inode.c 	ret = security_bpf_prog(prog);
prog              533 kernel/bpf/inode.c 	if (!bpf_prog_get_ok(prog, &type, false))
prog              536 kernel/bpf/inode.c 	return bpf_prog_inc(prog);
prog              541 kernel/bpf/inode.c 	struct bpf_prog *prog;
prog              546 kernel/bpf/inode.c 	prog = __get_prog_inode(d_backing_inode(path.dentry), type);
prog              547 kernel/bpf/inode.c 	if (!IS_ERR(prog))
prog              550 kernel/bpf/inode.c 	return prog;
prog               23 kernel/bpf/local_storage.c 	struct bpf_prog *prog;
prog              423 kernel/bpf/local_storage.c int bpf_cgroup_storage_assign(struct bpf_prog *prog, struct bpf_map *_map)
prog              431 kernel/bpf/local_storage.c 	if (map->prog && map->prog != prog)
prog              433 kernel/bpf/local_storage.c 	if (prog->aux->cgroup_storage[stype] &&
prog              434 kernel/bpf/local_storage.c 	    prog->aux->cgroup_storage[stype] != _map)
prog              437 kernel/bpf/local_storage.c 	map->prog = prog;
prog              438 kernel/bpf/local_storage.c 	prog->aux->cgroup_storage[stype] = _map;
prog              446 kernel/bpf/local_storage.c void bpf_cgroup_storage_release(struct bpf_prog *prog, struct bpf_map *_map)
prog              452 kernel/bpf/local_storage.c 	if (map->prog == prog) {
prog              453 kernel/bpf/local_storage.c 		WARN_ON(prog->aux->cgroup_storage[stype] != _map);
prog              454 kernel/bpf/local_storage.c 		map->prog = NULL;
prog              455 kernel/bpf/local_storage.c 		prog->aux->cgroup_storage[stype] = NULL;
prog              477 kernel/bpf/local_storage.c struct bpf_cgroup_storage *bpf_cgroup_storage_alloc(struct bpf_prog *prog,
prog              486 kernel/bpf/local_storage.c 	map = prog->aux->cgroup_storage[stype];
prog               80 kernel/bpf/offload.c int bpf_prog_offload_init(struct bpf_prog *prog, union bpf_attr *attr)
prog               97 kernel/bpf/offload.c 	offload->prog = prog;
prog              112 kernel/bpf/offload.c 	prog->aux->offload = offload;
prog              127 kernel/bpf/offload.c int bpf_prog_offload_verifier_prep(struct bpf_prog *prog)
prog              133 kernel/bpf/offload.c 	offload = prog->aux->offload;
prog              135 kernel/bpf/offload.c 		ret = offload->offdev->ops->prepare(prog);
prog              150 kernel/bpf/offload.c 	offload = env->prog->aux->offload;
prog              165 kernel/bpf/offload.c 	offload = env->prog->aux->offload;
prog              186 kernel/bpf/offload.c 	offload = env->prog->aux->offload;
prog              203 kernel/bpf/offload.c 	offload = env->prog->aux->offload;
prog              212 kernel/bpf/offload.c static void __bpf_prog_offload_destroy(struct bpf_prog *prog)
prog              214 kernel/bpf/offload.c 	struct bpf_prog_offload *offload = prog->aux->offload;
prog              217 kernel/bpf/offload.c 		offload->offdev->ops->destroy(prog);
prog              220 kernel/bpf/offload.c 	bpf_prog_free_id(prog, true);
prog              224 kernel/bpf/offload.c 	prog->aux->offload = NULL;
prog              227 kernel/bpf/offload.c void bpf_prog_offload_destroy(struct bpf_prog *prog)
prog              230 kernel/bpf/offload.c 	if (prog->aux->offload)
prog              231 kernel/bpf/offload.c 		__bpf_prog_offload_destroy(prog);
prog              235 kernel/bpf/offload.c static int bpf_prog_offload_translate(struct bpf_prog *prog)
prog              241 kernel/bpf/offload.c 	offload = prog->aux->offload;
prog              243 kernel/bpf/offload.c 		ret = offload->offdev->ops->translate(prog);
prog              256 kernel/bpf/offload.c int bpf_prog_offload_compile(struct bpf_prog *prog)
prog              258 kernel/bpf/offload.c 	prog->bpf_func = bpf_prog_warn_on_exec;
prog              260 kernel/bpf/offload.c 	return bpf_prog_offload_translate(prog);
prog              264 kernel/bpf/offload.c 	struct bpf_prog *prog;
prog              271 kernel/bpf/offload.c 	struct bpf_prog_aux *aux = args->prog->aux;
prog              295 kernel/bpf/offload.c 			       struct bpf_prog *prog)
prog              298 kernel/bpf/offload.c 		.prog	= prog,
prog              301 kernel/bpf/offload.c 	struct bpf_prog_aux *aux = prog->aux;
prog              546 kernel/bpf/offload.c static bool __bpf_offload_dev_match(struct bpf_prog *prog,
prog              552 kernel/bpf/offload.c 	if (!bpf_prog_is_dev_bound(prog->aux))
prog              555 kernel/bpf/offload.c 	offload = prog->aux->offload;
prog              567 kernel/bpf/offload.c bool bpf_offload_dev_match(struct bpf_prog *prog, struct net_device *netdev)
prog              572 kernel/bpf/offload.c 	ret = __bpf_offload_dev_match(prog, netdev);
prog              579 kernel/bpf/offload.c bool bpf_offload_prog_map_match(struct bpf_prog *prog, struct bpf_map *map)
prog              589 kernel/bpf/offload.c 	ret = __bpf_offload_dev_match(prog, offmap->netdev);
prog              659 kernel/bpf/offload.c 			__bpf_prog_offload_destroy(offload->prog);
prog             1204 kernel/bpf/syscall.c static int find_prog_type(enum bpf_prog_type type, struct bpf_prog *prog)
prog             1215 kernel/bpf/syscall.c 	if (!bpf_prog_is_dev_bound(prog->aux))
prog             1216 kernel/bpf/syscall.c 		prog->aux->ops = ops;
prog             1218 kernel/bpf/syscall.c 		prog->aux->ops = &bpf_offload_prog_ops;
prog             1219 kernel/bpf/syscall.c 	prog->type = type;
prog             1232 kernel/bpf/syscall.c 		bpf_cgroup_storage_release(aux->prog,
prog             1264 kernel/bpf/syscall.c static int bpf_prog_charge_memlock(struct bpf_prog *prog)
prog             1269 kernel/bpf/syscall.c 	ret = __bpf_prog_charge(user, prog->pages);
prog             1275 kernel/bpf/syscall.c 	prog->aux->user = user;
prog             1279 kernel/bpf/syscall.c static void bpf_prog_uncharge_memlock(struct bpf_prog *prog)
prog             1281 kernel/bpf/syscall.c 	struct user_struct *user = prog->aux->user;
prog             1283 kernel/bpf/syscall.c 	__bpf_prog_uncharge(user, prog->pages);
prog             1287 kernel/bpf/syscall.c static int bpf_prog_alloc_id(struct bpf_prog *prog)
prog             1293 kernel/bpf/syscall.c 	id = idr_alloc_cyclic(&prog_idr, prog, 1, INT_MAX, GFP_ATOMIC);
prog             1295 kernel/bpf/syscall.c 		prog->aux->id = id;
prog             1306 kernel/bpf/syscall.c void bpf_prog_free_id(struct bpf_prog *prog, bool do_idr_lock)
prog             1313 kernel/bpf/syscall.c 	if (!prog->aux->id)
prog             1321 kernel/bpf/syscall.c 	idr_remove(&prog_idr, prog->aux->id);
prog             1322 kernel/bpf/syscall.c 	prog->aux->id = 0;
prog             1336 kernel/bpf/syscall.c 	bpf_prog_uncharge_memlock(aux->prog);
prog             1338 kernel/bpf/syscall.c 	bpf_prog_free(aux->prog);
prog             1341 kernel/bpf/syscall.c static void __bpf_prog_put_noref(struct bpf_prog *prog, bool deferred)
prog             1343 kernel/bpf/syscall.c 	bpf_prog_kallsyms_del_all(prog);
prog             1344 kernel/bpf/syscall.c 	btf_put(prog->aux->btf);
prog             1345 kernel/bpf/syscall.c 	bpf_prog_free_linfo(prog);
prog             1348 kernel/bpf/syscall.c 		call_rcu(&prog->aux->rcu, __bpf_prog_put_rcu);
prog             1350 kernel/bpf/syscall.c 		__bpf_prog_put_rcu(&prog->aux->rcu);
prog             1353 kernel/bpf/syscall.c static void __bpf_prog_put(struct bpf_prog *prog, bool do_idr_lock)
prog             1355 kernel/bpf/syscall.c 	if (atomic_dec_and_test(&prog->aux->refcnt)) {
prog             1356 kernel/bpf/syscall.c 		perf_event_bpf_event(prog, PERF_BPF_EVENT_PROG_UNLOAD, 0);
prog             1358 kernel/bpf/syscall.c 		bpf_prog_free_id(prog, do_idr_lock);
prog             1359 kernel/bpf/syscall.c 		__bpf_prog_put_noref(prog, true);
prog             1363 kernel/bpf/syscall.c void bpf_prog_put(struct bpf_prog *prog)
prog             1365 kernel/bpf/syscall.c 	__bpf_prog_put(prog, true);
prog             1371 kernel/bpf/syscall.c 	struct bpf_prog *prog = filp->private_data;
prog             1373 kernel/bpf/syscall.c 	bpf_prog_put(prog);
prog             1377 kernel/bpf/syscall.c static void bpf_prog_get_stats(const struct bpf_prog *prog,
prog             1388 kernel/bpf/syscall.c 		st = per_cpu_ptr(prog->aux->stats, cpu);
prog             1404 kernel/bpf/syscall.c 	const struct bpf_prog *prog = filp->private_data;
prog             1405 kernel/bpf/syscall.c 	char prog_tag[sizeof(prog->tag) * 2 + 1] = { };
prog             1408 kernel/bpf/syscall.c 	bpf_prog_get_stats(prog, &stats);
prog             1409 kernel/bpf/syscall.c 	bin2hex(prog_tag, prog->tag, sizeof(prog->tag));
prog             1418 kernel/bpf/syscall.c 		   prog->type,
prog             1419 kernel/bpf/syscall.c 		   prog->jited,
prog             1421 kernel/bpf/syscall.c 		   prog->pages * 1ULL << PAGE_SHIFT,
prog             1422 kernel/bpf/syscall.c 		   prog->aux->id,
prog             1437 kernel/bpf/syscall.c int bpf_prog_new_fd(struct bpf_prog *prog)
prog             1441 kernel/bpf/syscall.c 	ret = security_bpf_prog(prog);
prog             1445 kernel/bpf/syscall.c 	return anon_inode_getfd("bpf-prog", &bpf_prog_fops, prog,
prog             1461 kernel/bpf/syscall.c struct bpf_prog *bpf_prog_add(struct bpf_prog *prog, int i)
prog             1463 kernel/bpf/syscall.c 	if (atomic_add_return(i, &prog->aux->refcnt) > BPF_MAX_REFCNT) {
prog             1464 kernel/bpf/syscall.c 		atomic_sub(i, &prog->aux->refcnt);
prog             1467 kernel/bpf/syscall.c 	return prog;
prog             1471 kernel/bpf/syscall.c void bpf_prog_sub(struct bpf_prog *prog, int i)
prog             1478 kernel/bpf/syscall.c 	WARN_ON(atomic_sub_return(i, &prog->aux->refcnt) == 0);
prog             1482 kernel/bpf/syscall.c struct bpf_prog *bpf_prog_inc(struct bpf_prog *prog)
prog             1484 kernel/bpf/syscall.c 	return bpf_prog_add(prog, 1);
prog             1489 kernel/bpf/syscall.c struct bpf_prog *bpf_prog_inc_not_zero(struct bpf_prog *prog)
prog             1493 kernel/bpf/syscall.c 	refold = atomic_fetch_add_unless(&prog->aux->refcnt, 1, 0);
prog             1496 kernel/bpf/syscall.c 		__bpf_prog_put(prog, false);
prog             1503 kernel/bpf/syscall.c 	return prog;
prog             1507 kernel/bpf/syscall.c bool bpf_prog_get_ok(struct bpf_prog *prog,
prog             1514 kernel/bpf/syscall.c 	if (prog->type != *attach_type)
prog             1516 kernel/bpf/syscall.c 	if (bpf_prog_is_dev_bound(prog->aux) && !attach_drv)
prog             1526 kernel/bpf/syscall.c 	struct bpf_prog *prog;
prog             1528 kernel/bpf/syscall.c 	prog = ____bpf_prog_get(f);
prog             1529 kernel/bpf/syscall.c 	if (IS_ERR(prog))
prog             1530 kernel/bpf/syscall.c 		return prog;
prog             1531 kernel/bpf/syscall.c 	if (!bpf_prog_get_ok(prog, attach_type, attach_drv)) {
prog             1532 kernel/bpf/syscall.c 		prog = ERR_PTR(-EINVAL);
prog             1536 kernel/bpf/syscall.c 	prog = bpf_prog_inc(prog);
prog             1539 kernel/bpf/syscall.c 	return prog;
prog             1635 kernel/bpf/syscall.c 	struct bpf_prog *prog;
prog             1676 kernel/bpf/syscall.c 	prog = bpf_prog_alloc(bpf_prog_size(attr->insn_cnt), GFP_USER);
prog             1677 kernel/bpf/syscall.c 	if (!prog)
prog             1680 kernel/bpf/syscall.c 	prog->expected_attach_type = attr->expected_attach_type;
prog             1682 kernel/bpf/syscall.c 	prog->aux->offload_requested = !!attr->prog_ifindex;
prog             1684 kernel/bpf/syscall.c 	err = security_bpf_prog_alloc(prog->aux);
prog             1688 kernel/bpf/syscall.c 	err = bpf_prog_charge_memlock(prog);
prog             1692 kernel/bpf/syscall.c 	prog->len = attr->insn_cnt;
prog             1695 kernel/bpf/syscall.c 	if (copy_from_user(prog->insns, u64_to_user_ptr(attr->insns),
prog             1696 kernel/bpf/syscall.c 			   bpf_prog_insn_size(prog)) != 0)
prog             1699 kernel/bpf/syscall.c 	prog->orig_prog = NULL;
prog             1700 kernel/bpf/syscall.c 	prog->jited = 0;
prog             1702 kernel/bpf/syscall.c 	atomic_set(&prog->aux->refcnt, 1);
prog             1703 kernel/bpf/syscall.c 	prog->gpl_compatible = is_gpl ? 1 : 0;
prog             1705 kernel/bpf/syscall.c 	if (bpf_prog_is_dev_bound(prog->aux)) {
prog             1706 kernel/bpf/syscall.c 		err = bpf_prog_offload_init(prog, attr);
prog             1712 kernel/bpf/syscall.c 	err = find_prog_type(type, prog);
prog             1716 kernel/bpf/syscall.c 	prog->aux->load_time = ktime_get_boottime_ns();
prog             1717 kernel/bpf/syscall.c 	err = bpf_obj_name_cpy(prog->aux->name, attr->prog_name);
prog             1722 kernel/bpf/syscall.c 	err = bpf_check(&prog, attr, uattr);
prog             1726 kernel/bpf/syscall.c 	prog = bpf_prog_select_runtime(prog, &err);
prog             1730 kernel/bpf/syscall.c 	err = bpf_prog_alloc_id(prog);
prog             1748 kernel/bpf/syscall.c 	bpf_prog_kallsyms_add(prog);
prog             1749 kernel/bpf/syscall.c 	perf_event_bpf_event(prog, PERF_BPF_EVENT_PROG_LOAD, 0);
prog             1751 kernel/bpf/syscall.c 	err = bpf_prog_new_fd(prog);
prog             1753 kernel/bpf/syscall.c 		bpf_prog_put(prog);
prog             1761 kernel/bpf/syscall.c 	__bpf_prog_put_noref(prog, prog->aux->func_cnt);
prog             1764 kernel/bpf/syscall.c 	bpf_prog_uncharge_memlock(prog);
prog             1766 kernel/bpf/syscall.c 	security_bpf_prog_free(prog->aux);
prog             1768 kernel/bpf/syscall.c 	bpf_prog_free(prog);
prog             1794 kernel/bpf/syscall.c 	struct bpf_prog *prog;
prog             1801 kernel/bpf/syscall.c 	if (raw_tp->prog) {
prog             1802 kernel/bpf/syscall.c 		bpf_probe_unregister(raw_tp->btp, raw_tp->prog);
prog             1803 kernel/bpf/syscall.c 		bpf_prog_put(raw_tp->prog);
prog             1822 kernel/bpf/syscall.c 	struct bpf_prog *prog;
prog             1842 kernel/bpf/syscall.c 	prog = bpf_prog_get(attr->raw_tracepoint.prog_fd);
prog             1843 kernel/bpf/syscall.c 	if (IS_ERR(prog)) {
prog             1844 kernel/bpf/syscall.c 		err = PTR_ERR(prog);
prog             1847 kernel/bpf/syscall.c 	if (prog->type != BPF_PROG_TYPE_RAW_TRACEPOINT &&
prog             1848 kernel/bpf/syscall.c 	    prog->type != BPF_PROG_TYPE_RAW_TRACEPOINT_WRITABLE) {
prog             1853 kernel/bpf/syscall.c 	err = bpf_probe_register(raw_tp->btp, prog);
prog             1857 kernel/bpf/syscall.c 	raw_tp->prog = prog;
prog             1861 kernel/bpf/syscall.c 		bpf_probe_unregister(raw_tp->btp, prog);
prog             1868 kernel/bpf/syscall.c 	bpf_prog_put(prog);
prog             1876 kernel/bpf/syscall.c static int bpf_prog_attach_check_attach_type(const struct bpf_prog *prog,
prog             1879 kernel/bpf/syscall.c 	switch (prog->type) {
prog             1883 kernel/bpf/syscall.c 		return attach_type == prog->expected_attach_type ? 0 : -EINVAL;
prog             1885 kernel/bpf/syscall.c 		return prog->enforce_expected_attach_type &&
prog             1886 kernel/bpf/syscall.c 			prog->expected_attach_type != attach_type ?
prog             1901 kernel/bpf/syscall.c 	struct bpf_prog *prog;
prog             1963 kernel/bpf/syscall.c 	prog = bpf_prog_get_type(attr->attach_bpf_fd, ptype);
prog             1964 kernel/bpf/syscall.c 	if (IS_ERR(prog))
prog             1965 kernel/bpf/syscall.c 		return PTR_ERR(prog);
prog             1967 kernel/bpf/syscall.c 	if (bpf_prog_attach_check_attach_type(prog, attr->attach_type)) {
prog             1968 kernel/bpf/syscall.c 		bpf_prog_put(prog);
prog             1975 kernel/bpf/syscall.c 		ret = sock_map_get_from_fd(attr, prog);
prog             1978 kernel/bpf/syscall.c 		ret = lirc_prog_attach(attr, prog);
prog             1981 kernel/bpf/syscall.c 		ret = skb_flow_dissector_bpf_prog_attach(attr, prog);
prog             1984 kernel/bpf/syscall.c 		ret = cgroup_bpf_prog_attach(attr, ptype, prog);
prog             1988 kernel/bpf/syscall.c 		bpf_prog_put(prog);
prog             2101 kernel/bpf/syscall.c 	struct bpf_prog *prog;
prog             2117 kernel/bpf/syscall.c 	prog = bpf_prog_get(attr->test.prog_fd);
prog             2118 kernel/bpf/syscall.c 	if (IS_ERR(prog))
prog             2119 kernel/bpf/syscall.c 		return PTR_ERR(prog);
prog             2121 kernel/bpf/syscall.c 	if (prog->aux->ops->test_run)
prog             2122 kernel/bpf/syscall.c 		ret = prog->aux->ops->test_run(prog, attr, uattr);
prog             2124 kernel/bpf/syscall.c 	bpf_prog_put(prog);
prog             2160 kernel/bpf/syscall.c 	struct bpf_prog *prog;
prog             2171 kernel/bpf/syscall.c 	prog = idr_find(&prog_idr, id);
prog             2172 kernel/bpf/syscall.c 	if (prog)
prog             2173 kernel/bpf/syscall.c 		prog = bpf_prog_inc_not_zero(prog);
prog             2175 kernel/bpf/syscall.c 		prog = ERR_PTR(-ENOENT);
prog             2178 kernel/bpf/syscall.c 	if (IS_ERR(prog))
prog             2179 kernel/bpf/syscall.c 		return PTR_ERR(prog);
prog             2181 kernel/bpf/syscall.c 	fd = bpf_prog_new_fd(prog);
prog             2183 kernel/bpf/syscall.c 		bpf_prog_put(prog);
prog             2226 kernel/bpf/syscall.c static const struct bpf_map *bpf_map_from_imm(const struct bpf_prog *prog,
prog             2233 kernel/bpf/syscall.c 	for (i = 0, *off = 0; i < prog->aux->used_map_cnt; i++) {
prog             2234 kernel/bpf/syscall.c 		map = prog->aux->used_maps[i];
prog             2250 kernel/bpf/syscall.c static struct bpf_insn *bpf_insn_prepare_dump(const struct bpf_prog *prog)
prog             2258 kernel/bpf/syscall.c 	insns = kmemdup(prog->insnsi, bpf_prog_insn_size(prog),
prog             2263 kernel/bpf/syscall.c 	for (i = 0; i < prog->len; i++) {
prog             2282 kernel/bpf/syscall.c 		map = bpf_map_from_imm(prog, imm, &off, &type);
prog             2325 kernel/bpf/syscall.c static int bpf_prog_get_info_by_fd(struct bpf_prog *prog,
prog             2346 kernel/bpf/syscall.c 	info.type = prog->type;
prog             2347 kernel/bpf/syscall.c 	info.id = prog->aux->id;
prog             2348 kernel/bpf/syscall.c 	info.load_time = prog->aux->load_time;
prog             2350 kernel/bpf/syscall.c 					       prog->aux->user->uid);
prog             2351 kernel/bpf/syscall.c 	info.gpl_compatible = prog->gpl_compatible;
prog             2353 kernel/bpf/syscall.c 	memcpy(info.tag, prog->tag, sizeof(prog->tag));
prog             2354 kernel/bpf/syscall.c 	memcpy(info.name, prog->aux->name, sizeof(prog->aux->name));
prog             2357 kernel/bpf/syscall.c 	info.nr_map_ids = prog->aux->used_map_cnt;
prog             2364 kernel/bpf/syscall.c 			if (put_user(prog->aux->used_maps[i]->id,
prog             2373 kernel/bpf/syscall.c 	bpf_prog_get_stats(prog, &stats);
prog             2389 kernel/bpf/syscall.c 	info.xlated_prog_len = bpf_prog_insn_size(prog);
prog             2394 kernel/bpf/syscall.c 		if (prog->blinded && !bpf_dump_raw_ok()) {
prog             2398 kernel/bpf/syscall.c 		insns_sanitized = bpf_insn_prepare_dump(prog);
prog             2409 kernel/bpf/syscall.c 	if (bpf_prog_is_dev_bound(prog->aux)) {
prog             2410 kernel/bpf/syscall.c 		err = bpf_prog_offload_info_fill(&info, prog);
prog             2421 kernel/bpf/syscall.c 	if (prog->aux->func_cnt) {
prog             2425 kernel/bpf/syscall.c 		for (i = 0; i < prog->aux->func_cnt; i++)
prog             2426 kernel/bpf/syscall.c 			info.jited_prog_len += prog->aux->func[i]->jited_len;
prog             2428 kernel/bpf/syscall.c 		info.jited_prog_len = prog->jited_len;
prog             2439 kernel/bpf/syscall.c 			if (prog->aux->func_cnt) {
prog             2444 kernel/bpf/syscall.c 				for (i = 0; i < prog->aux->func_cnt; i++) {
prog             2445 kernel/bpf/syscall.c 					len = prog->aux->func[i]->jited_len;
prog             2447 kernel/bpf/syscall.c 					img = (u8 *) prog->aux->func[i]->bpf_func;
prog             2456 kernel/bpf/syscall.c 				if (copy_to_user(uinsns, prog->bpf_func, ulen))
prog             2465 kernel/bpf/syscall.c 	info.nr_jited_ksyms = prog->aux->func_cnt ? : 1;
prog             2477 kernel/bpf/syscall.c 			if (prog->aux->func_cnt) {
prog             2480 kernel/bpf/syscall.c 						prog->aux->func[i]->bpf_func;
prog             2486 kernel/bpf/syscall.c 				ksym_addr = (unsigned long) prog->bpf_func;
prog             2496 kernel/bpf/syscall.c 	info.nr_jited_func_lens = prog->aux->func_cnt ? : 1;
prog             2505 kernel/bpf/syscall.c 			if (prog->aux->func_cnt) {
prog             2508 kernel/bpf/syscall.c 						prog->aux->func[i]->jited_len;
prog             2513 kernel/bpf/syscall.c 				func_len = prog->jited_len;
prog             2522 kernel/bpf/syscall.c 	if (prog->aux->btf)
prog             2523 kernel/bpf/syscall.c 		info.btf_id = btf_id(prog->aux->btf);
prog             2526 kernel/bpf/syscall.c 	info.nr_func_info = prog->aux->func_info_cnt;
prog             2532 kernel/bpf/syscall.c 		if (copy_to_user(user_finfo, prog->aux->func_info,
prog             2538 kernel/bpf/syscall.c 	info.nr_line_info = prog->aux->nr_linfo;
prog             2544 kernel/bpf/syscall.c 		if (copy_to_user(user_linfo, prog->aux->linfo,
prog             2550 kernel/bpf/syscall.c 	if (prog->aux->jited_linfo)
prog             2551 kernel/bpf/syscall.c 		info.nr_jited_line_info = prog->aux->nr_linfo;
prog             2562 kernel/bpf/syscall.c 				if (put_user((__u64)(long)prog->aux->jited_linfo[i],
prog             2572 kernel/bpf/syscall.c 	info.nr_prog_tags = prog->aux->func_cnt ? : 1;
prog             2579 kernel/bpf/syscall.c 		if (prog->aux->func_cnt) {
prog             2582 kernel/bpf/syscall.c 						 prog->aux->func[i]->tag,
prog             2588 kernel/bpf/syscall.c 					 prog->tag, BPF_TAG_SIZE))
prog             2811 kernel/bpf/syscall.c 					     raw_tp->prog->aux->id,
prog              215 kernel/bpf/verifier.c 	const struct bpf_prog *prog;
prog              218 kernel/bpf/verifier.c 	prog = env->prog;
prog              219 kernel/bpf/verifier.c 	nr_linfo = prog->aux->nr_linfo;
prog              221 kernel/bpf/verifier.c 	if (!nr_linfo || insn_off >= prog->len)
prog              224 kernel/bpf/verifier.c 	linfo = prog->aux->linfo;
prog              312 kernel/bpf/verifier.c 		ltrim(btf_name_by_offset(env->prog->aux->btf,
prog             1101 kernel/bpf/verifier.c 	int insn_cnt = env->prog->len;
prog             1125 kernel/bpf/verifier.c 	struct bpf_insn *insn = env->prog->insnsi;
prog             1126 kernel/bpf/verifier.c 	int insn_cnt = env->prog->len;
prog             1363 kernel/bpf/verifier.c 	struct bpf_insn *insn = env->prog->insnsi + env->insn_idx;
prog             1449 kernel/bpf/verifier.c 	struct bpf_insn *insn = env->prog->insnsi + idx;
prog             1742 kernel/bpf/verifier.c 			if (i >= env->prog->len) {
prog             1899 kernel/bpf/verifier.c 	u32 dst_reg = env->prog->insnsi[insn_idx].dst_reg;
prog             2261 kernel/bpf/verifier.c 	switch (env->prog->type) {
prog             2344 kernel/bpf/verifier.c 	env->prog->aux->max_pkt_offset =
prog             2345 kernel/bpf/verifier.c 		max_t(u32, env->prog->aux->max_pkt_offset,
prog             2360 kernel/bpf/verifier.c 	    env->ops->is_valid_access(off, size, t, env->prog, &info)) {
prog             2372 kernel/bpf/verifier.c 		if (env->prog->aux->max_ctx_offset < off + size)
prog             2373 kernel/bpf/verifier.c 			env->prog->aux->max_ctx_offset = off + size;
prog             2610 kernel/bpf/verifier.c 	struct bpf_insn *insn = env->prog->insnsi;
prog             2722 kernel/bpf/verifier.c 	if (off + size > env->prog->aux->max_tp_access)
prog             2723 kernel/bpf/verifier.c 		env->prog->aux->max_tp_access = off + size;
prog             3988 kernel/bpf/verifier.c 		fn = env->ops->get_func_proto(func_id, env->prog);
prog             3996 kernel/bpf/verifier.c 	if (!env->prog->gpl_compatible && fn->gpl_only) {
prog             4154 kernel/bpf/verifier.c 	if (func_id == BPF_FUNC_get_stack && !env->prog->has_callchain_buf) {
prog             4169 kernel/bpf/verifier.c 		env->prog->has_callchain_buf = true;
prog             6103 kernel/bpf/verifier.c 	if (!may_access_skb(env->prog->type)) {
prog             6191 kernel/bpf/verifier.c 	switch (env->prog->type) {
prog             6193 kernel/bpf/verifier.c 		if (env->prog->expected_attach_type == BPF_CGROUP_UDP4_RECVMSG ||
prog             6194 kernel/bpf/verifier.c 		    env->prog->expected_attach_type == BPF_CGROUP_UDP6_RECVMSG)
prog             6198 kernel/bpf/verifier.c 		if (env->prog->expected_attach_type == BPF_CGROUP_INET_EGRESS) {
prog             6237 kernel/bpf/verifier.c 		env->prog->enforce_expected_attach_type = 1;
prog             6283 kernel/bpf/verifier.c 	return env->prog->len;
prog             6318 kernel/bpf/verifier.c 	if (w < 0 || w >= env->prog->len) {
prog             6332 kernel/bpf/verifier.c 		if (env->cfg.cur_stack >= env->prog->len)
prog             6358 kernel/bpf/verifier.c 	struct bpf_insn *insns = env->prog->insnsi;
prog             6359 kernel/bpf/verifier.c 	int insn_cnt = env->prog->len;
prog             6492 kernel/bpf/verifier.c 	struct bpf_prog *prog;
prog             6515 kernel/bpf/verifier.c 	prog = env->prog;
prog             6516 kernel/bpf/verifier.c 	btf = prog->aux->btf;
prog             6580 kernel/bpf/verifier.c 	prog->aux->func_info = krecord;
prog             6581 kernel/bpf/verifier.c 	prog->aux->func_info_cnt = nfuncs;
prog             6593 kernel/bpf/verifier.c 	if (!env->prog->aux->func_info)
prog             6597 kernel/bpf/verifier.c 		env->prog->aux->func_info[i].insn_off = env->subprog_info[i].start;
prog             6611 kernel/bpf/verifier.c 	struct bpf_prog *prog;
prog             6634 kernel/bpf/verifier.c 	prog = env->prog;
prog             6635 kernel/bpf/verifier.c 	btf = prog->aux->btf;
prog             6671 kernel/bpf/verifier.c 		    linfo[i].insn_off >= prog->len) {
prog             6674 kernel/bpf/verifier.c 				prog->len);
prog             6679 kernel/bpf/verifier.c 		if (!prog->insnsi[linfo[i].insn_off].code) {
prog             6716 kernel/bpf/verifier.c 	prog->aux->linfo = linfo;
prog             6717 kernel/bpf/verifier.c 	prog->aux->nr_linfo = nr_linfo;
prog             6739 kernel/bpf/verifier.c 	env->prog->aux->btf = btf;
prog             7552 kernel/bpf/verifier.c 	struct bpf_insn *insns = env->prog->insnsi;
prog             7554 kernel/bpf/verifier.c 	int insn_cnt = env->prog->len;
prog             7646 kernel/bpf/verifier.c 		if (bpf_prog_is_dev_bound(env->prog->aux)) {
prog             7902 kernel/bpf/verifier.c 	env->prog->aux->stack_depth = env->subprog_info[0].stack_depth;
prog             7929 kernel/bpf/verifier.c 					struct bpf_prog *prog)
prog             7937 kernel/bpf/verifier.c 	if (prog->type == BPF_PROG_TYPE_PERF_EVENT) {
prog             7949 kernel/bpf/verifier.c 	if ((is_tracing_prog_type(prog->type) ||
prog             7950 kernel/bpf/verifier.c 	     prog->type == BPF_PROG_TYPE_SOCKET_FILTER) &&
prog             7956 kernel/bpf/verifier.c 	if ((bpf_prog_is_dev_bound(prog->aux) || bpf_map_is_dev_bound(map)) &&
prog             7957 kernel/bpf/verifier.c 	    !bpf_offload_prog_map_match(prog, map)) {
prog             7976 kernel/bpf/verifier.c 	struct bpf_insn *insn = env->prog->insnsi;
prog             7977 kernel/bpf/verifier.c 	int insn_cnt = env->prog->len;
prog             7980 kernel/bpf/verifier.c 	err = bpf_prog_calc_tag(env->prog);
prog             8035 kernel/bpf/verifier.c 			err = check_map_prog_compatibility(env, map, env->prog);
prog             8103 kernel/bpf/verifier.c 			    bpf_cgroup_storage_assign(env->prog, map)) {
prog             8137 kernel/bpf/verifier.c 		if (!env->prog->aux->cgroup_storage[stype])
prog             8139 kernel/bpf/verifier.c 		bpf_cgroup_storage_release(env->prog,
prog             8140 kernel/bpf/verifier.c 			env->prog->aux->cgroup_storage[stype]);
prog             8150 kernel/bpf/verifier.c 	struct bpf_insn *insn = env->prog->insnsi;
prog             8151 kernel/bpf/verifier.c 	int insn_cnt = env->prog->len;
prog             8215 kernel/bpf/verifier.c 	new_prog = bpf_patch_insn_single(env->prog, off, patch, len);
prog             8249 kernel/bpf/verifier.c 		struct bpf_prog_aux *aux = env->prog->aux;
prog             8288 kernel/bpf/verifier.c 	struct bpf_prog *prog = env->prog;
prog             8292 kernel/bpf/verifier.c 	nr_linfo = prog->aux->nr_linfo;
prog             8296 kernel/bpf/verifier.c 	linfo = prog->aux->linfo;
prog             8315 kernel/bpf/verifier.c 	if (prog->len != off && l_cnt &&
prog             8326 kernel/bpf/verifier.c 		prog->aux->nr_linfo -= l_cnt;
prog             8327 kernel/bpf/verifier.c 		nr_linfo = prog->aux->nr_linfo;
prog             8352 kernel/bpf/verifier.c 	unsigned int orig_prog_len = env->prog->len;
prog             8355 kernel/bpf/verifier.c 	if (bpf_prog_is_dev_bound(env->prog->aux))
prog             8358 kernel/bpf/verifier.c 	err = bpf_remove_insns(env->prog, off, cnt);
prog             8391 kernel/bpf/verifier.c 	struct bpf_insn *insn = env->prog->insnsi;
prog             8392 kernel/bpf/verifier.c 	const int insn_cnt = env->prog->len;
prog             8420 kernel/bpf/verifier.c 	struct bpf_insn *insn = env->prog->insnsi;
prog             8421 kernel/bpf/verifier.c 	const int insn_cnt = env->prog->len;
prog             8435 kernel/bpf/verifier.c 		if (bpf_prog_is_dev_bound(env->prog->aux))
prog             8445 kernel/bpf/verifier.c 	int insn_cnt = env->prog->len;
prog             8460 kernel/bpf/verifier.c 		insn_cnt = env->prog->len;
prog             8469 kernel/bpf/verifier.c 	struct bpf_insn *insn = env->prog->insnsi;
prog             8470 kernel/bpf/verifier.c 	int insn_cnt = env->prog->len;
prog             8492 kernel/bpf/verifier.c 	int i, patch_len, delta = 0, len = env->prog->len;
prog             8493 kernel/bpf/verifier.c 	struct bpf_insn *insns = env->prog->insnsi;
prog             8556 kernel/bpf/verifier.c 		env->prog = new_prog;
prog             8574 kernel/bpf/verifier.c 	const int insn_cnt = env->prog->len;
prog             8587 kernel/bpf/verifier.c 					env->prog);
prog             8596 kernel/bpf/verifier.c 			env->prog = new_prog;
prog             8601 kernel/bpf/verifier.c 	if (bpf_prog_is_dev_bound(env->prog->aux))
prog             8604 kernel/bpf/verifier.c 	insn = env->prog->insnsi + delta;
prog             8645 kernel/bpf/verifier.c 			env->prog = new_prog;
prog             8700 kernel/bpf/verifier.c 		cnt = convert_ctx_access(type, insn, insn_buf, env->prog,
prog             8735 kernel/bpf/verifier.c 		env->prog = new_prog;
prog             8744 kernel/bpf/verifier.c 	struct bpf_prog *prog = env->prog, **func, *tmp;
prog             8753 kernel/bpf/verifier.c 	for (i = 0, insn = prog->insnsi; i < prog->len; i++, insn++) {
prog             8779 kernel/bpf/verifier.c 	err = bpf_prog_alloc_jited_linfo(prog);
prog             8784 kernel/bpf/verifier.c 	func = kcalloc(env->subprog_cnt, sizeof(prog), GFP_KERNEL);
prog             8801 kernel/bpf/verifier.c 		memcpy(func[i]->insnsi, &prog->insnsi[subprog_start],
prog             8803 kernel/bpf/verifier.c 		func[i]->type = prog->type;
prog             8810 kernel/bpf/verifier.c 		func[i]->aux->btf = prog->aux->btf;
prog             8811 kernel/bpf/verifier.c 		func[i]->aux->func_info = prog->aux->func_info;
prog             8819 kernel/bpf/verifier.c 		func[i]->aux->linfo = prog->aux->linfo;
prog             8820 kernel/bpf/verifier.c 		func[i]->aux->nr_linfo = prog->aux->nr_linfo;
prog             8821 kernel/bpf/verifier.c 		func[i]->aux->jited_linfo = prog->aux->jited_linfo;
prog             8882 kernel/bpf/verifier.c 	for (i = 0, insn = prog->insnsi; i < prog->len; i++, insn++) {
prog             8891 kernel/bpf/verifier.c 	prog->jited = 1;
prog             8892 kernel/bpf/verifier.c 	prog->bpf_func = func[0]->bpf_func;
prog             8893 kernel/bpf/verifier.c 	prog->aux->func = func;
prog             8894 kernel/bpf/verifier.c 	prog->aux->func_cnt = env->subprog_cnt;
prog             8895 kernel/bpf/verifier.c 	bpf_prog_free_unused_jited_linfo(prog);
prog             8904 kernel/bpf/verifier.c 	prog->jit_requested = 0;
prog             8905 kernel/bpf/verifier.c 	for (i = 0, insn = prog->insnsi; i < prog->len; i++, insn++) {
prog             8912 kernel/bpf/verifier.c 	bpf_prog_free_jited_linfo(prog);
prog             8919 kernel/bpf/verifier.c 	struct bpf_prog *prog = env->prog;
prog             8920 kernel/bpf/verifier.c 	struct bpf_insn *insn = prog->insnsi;
prog             8925 kernel/bpf/verifier.c 	if (env->prog->jit_requested &&
prog             8926 kernel/bpf/verifier.c 	    !bpf_prog_is_dev_bound(env->prog->aux)) {
prog             8934 kernel/bpf/verifier.c 	for (i = 0; i < prog->len; i++, insn++) {
prog             8955 kernel/bpf/verifier.c 	struct bpf_prog *prog = env->prog;
prog             8956 kernel/bpf/verifier.c 	struct bpf_insn *insn = prog->insnsi;
prog             8958 kernel/bpf/verifier.c 	const int insn_cnt = prog->len;
prog             9002 kernel/bpf/verifier.c 			env->prog = prog = new_prog;
prog             9021 kernel/bpf/verifier.c 			env->prog = prog = new_prog;
prog             9073 kernel/bpf/verifier.c 			env->prog = prog = new_prog;
prog             9084 kernel/bpf/verifier.c 			prog->dst_needed = 1;
prog             9088 kernel/bpf/verifier.c 			prog->kprobe_override = 1;
prog             9095 kernel/bpf/verifier.c 			prog->cb_access = 1;
prog             9096 kernel/bpf/verifier.c 			env->prog->aux->stack_depth = MAX_BPF_STACK;
prog             9097 kernel/bpf/verifier.c 			env->prog->aux->max_pkt_offset = MAX_PACKET_OFF;
prog             9136 kernel/bpf/verifier.c 			env->prog = prog = new_prog;
prog             9145 kernel/bpf/verifier.c 		if (prog->jit_requested && BITS_PER_LONG == 64 &&
prog             9172 kernel/bpf/verifier.c 				env->prog = prog = new_prog;
prog             9223 kernel/bpf/verifier.c 		fn = env->ops->get_func_proto(insn->imm, env->prog);
prog             9293 kernel/bpf/verifier.c int bpf_check(struct bpf_prog **prog, union bpf_attr *attr,
prog             9314 kernel/bpf/verifier.c 	len = (*prog)->len;
prog             9322 kernel/bpf/verifier.c 	env->prog = *prog;
prog             9323 kernel/bpf/verifier.c 	env->ops = bpf_verifier_ops[env->prog->type];
prog             9360 kernel/bpf/verifier.c 	if (bpf_prog_is_dev_bound(env->prog->aux)) {
prog             9361 kernel/bpf/verifier.c 		ret = bpf_prog_offload_verifier_prep(env->prog);
prog             9391 kernel/bpf/verifier.c 	if (ret == 0 && bpf_prog_is_dev_bound(env->prog->aux))
prog             9424 kernel/bpf/verifier.c 	if (ret == 0 && !bpf_prog_is_dev_bound(env->prog->aux)) {
prog             9426 kernel/bpf/verifier.c 		env->prog->aux->verifier_zext = bpf_jit_needs_zext() ? !ret
prog             9445 kernel/bpf/verifier.c 		env->prog->aux->used_maps = kmalloc_array(env->used_map_cnt,
prog             9449 kernel/bpf/verifier.c 		if (!env->prog->aux->used_maps) {
prog             9454 kernel/bpf/verifier.c 		memcpy(env->prog->aux->used_maps, env->used_maps,
prog             9456 kernel/bpf/verifier.c 		env->prog->aux->used_map_cnt = env->used_map_cnt;
prog             9468 kernel/bpf/verifier.c 	if (!env->prog->aux->used_maps)
prog             9473 kernel/bpf/verifier.c 	*prog = env->prog;
prog             6429 kernel/cgroup/cgroup.c int cgroup_bpf_attach(struct cgroup *cgrp, struct bpf_prog *prog,
prog             6435 kernel/cgroup/cgroup.c 	ret = __cgroup_bpf_attach(cgrp, prog, type, flags);
prog             6439 kernel/cgroup/cgroup.c int cgroup_bpf_detach(struct cgroup *cgrp, struct bpf_prog *prog,
prog             6445 kernel/cgroup/cgroup.c 	ret = __cgroup_bpf_detach(cgrp, prog, type);
prog             7991 kernel/events/core.c 	struct bpf_prog	*prog;
prog             8029 kernel/events/core.c static void perf_event_bpf_emit_ksymbols(struct bpf_prog *prog,
prog             8036 kernel/events/core.c 	if (prog->aux->func_cnt == 0) {
prog             8037 kernel/events/core.c 		bpf_get_prog_name(prog, sym);
prog             8039 kernel/events/core.c 				   (u64)(unsigned long)prog->bpf_func,
prog             8040 kernel/events/core.c 				   prog->jited_len, unregister, sym);
prog             8042 kernel/events/core.c 		for (i = 0; i < prog->aux->func_cnt; i++) {
prog             8043 kernel/events/core.c 			struct bpf_prog *subprog = prog->aux->func[i];
prog             8054 kernel/events/core.c void perf_event_bpf_event(struct bpf_prog *prog,
prog             8068 kernel/events/core.c 			perf_event_bpf_emit_ksymbols(prog, type);
prog             8078 kernel/events/core.c 		.prog = prog,
prog             8086 kernel/events/core.c 			.id = prog->aux->id,
prog             8092 kernel/events/core.c 	memcpy(bpf_event.event_id.tag, prog->tag, BPF_TAG_SIZE);
prog             8988 kernel/events/core.c 	ret = BPF_PROG_RUN(event->prog, &ctx);
prog             9001 kernel/events/core.c 	struct bpf_prog *prog;
prog             9007 kernel/events/core.c 	if (event->prog)
prog             9010 kernel/events/core.c 	prog = bpf_prog_get_type(prog_fd, BPF_PROG_TYPE_PERF_EVENT);
prog             9011 kernel/events/core.c 	if (IS_ERR(prog))
prog             9012 kernel/events/core.c 		return PTR_ERR(prog);
prog             9014 kernel/events/core.c 	event->prog = prog;
prog             9022 kernel/events/core.c 	struct bpf_prog *prog = event->prog;
prog             9024 kernel/events/core.c 	if (!prog)
prog             9028 kernel/events/core.c 	event->prog = NULL;
prog             9029 kernel/events/core.c 	bpf_prog_put(prog);
prog             9063 kernel/events/core.c 	struct bpf_prog *prog;
prog             9076 kernel/events/core.c 	prog = bpf_prog_get(prog_fd);
prog             9077 kernel/events/core.c 	if (IS_ERR(prog))
prog             9078 kernel/events/core.c 		return PTR_ERR(prog);
prog             9080 kernel/events/core.c 	if ((is_kprobe && prog->type != BPF_PROG_TYPE_KPROBE) ||
prog             9081 kernel/events/core.c 	    (is_tracepoint && prog->type != BPF_PROG_TYPE_TRACEPOINT) ||
prog             9082 kernel/events/core.c 	    (is_syscall_tp && prog->type != BPF_PROG_TYPE_TRACEPOINT)) {
prog             9084 kernel/events/core.c 		bpf_prog_put(prog);
prog             9089 kernel/events/core.c 	if (prog->kprobe_override &&
prog             9091 kernel/events/core.c 		bpf_prog_put(prog);
prog             9098 kernel/events/core.c 		if (prog->aux->max_ctx_offset > off) {
prog             9099 kernel/events/core.c 			bpf_prog_put(prog);
prog             9104 kernel/events/core.c 	ret = perf_event_attach_bpf_prog(event, prog);
prog             9106 kernel/events/core.c 		bpf_prog_put(prog);
prog             10501 kernel/events/core.c 			struct bpf_prog *prog = bpf_prog_inc(parent_event->prog);
prog             10503 kernel/events/core.c 			if (IS_ERR(prog)) {
prog             10504 kernel/events/core.c 				err = PTR_ERR(prog);
prog             10507 kernel/events/core.c 			event->prog = prog;
prog              132 kernel/seccomp.c 	struct bpf_prog *prog;
prog              272 kernel/seccomp.c 		u32 cur_ret = BPF_PROG_RUN(f->prog, sd);
prog              458 kernel/seccomp.c 	ret = bpf_prog_create_from_user(&sfilter->prog, fprog,
prog              519 kernel/seccomp.c 	total_insns = filter->prog->len;
prog              521 kernel/seccomp.c 		total_insns += walker->prog->len + 4;  /* 4 instr penalty */
prog              569 kernel/seccomp.c 		bpf_prog_destroy(filter->prog);
prog             1516 kernel/seccomp.c 	fprog = filter->prog->orig_prog;
prog              685 kernel/trace/bpf_trace.c tracing_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog)
prog              742 kernel/trace/bpf_trace.c kprobe_prog_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog)
prog              758 kernel/trace/bpf_trace.c 		return tracing_func_proto(func_id, prog);
prog              764 kernel/trace/bpf_trace.c 					const struct bpf_prog *prog,
prog              858 kernel/trace/bpf_trace.c tp_prog_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog)
prog              868 kernel/trace/bpf_trace.c 		return tracing_func_proto(func_id, prog);
prog              873 kernel/trace/bpf_trace.c 				    const struct bpf_prog *prog,
prog              922 kernel/trace/bpf_trace.c pe_prog_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog)
prog              934 kernel/trace/bpf_trace.c 		return tracing_func_proto(func_id, prog);
prog             1049 kernel/trace/bpf_trace.c raw_tp_prog_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog)
prog             1059 kernel/trace/bpf_trace.c 		return tracing_func_proto(func_id, prog);
prog             1065 kernel/trace/bpf_trace.c 					const struct bpf_prog *prog,
prog             1088 kernel/trace/bpf_trace.c 						 const struct bpf_prog *prog,
prog             1096 kernel/trace/bpf_trace.c 	return raw_tp_prog_is_valid_access(off, size, type, prog, info);
prog             1108 kernel/trace/bpf_trace.c 				    const struct bpf_prog *prog,
prog             1148 kernel/trace/bpf_trace.c 				      struct bpf_prog *prog, u32 *target_size)
prog             1195 kernel/trace/bpf_trace.c 			       struct bpf_prog *prog)
prog             1205 kernel/trace/bpf_trace.c 	if (prog->kprobe_override &&
prog             1212 kernel/trace/bpf_trace.c 	if (event->prog)
prog             1222 kernel/trace/bpf_trace.c 	ret = bpf_prog_array_copy(old_array, NULL, prog, &new_array);
prog             1227 kernel/trace/bpf_trace.c 	event->prog = prog;
prog             1244 kernel/trace/bpf_trace.c 	if (!event->prog)
prog             1248 kernel/trace/bpf_trace.c 	ret = bpf_prog_array_copy(old_array, event->prog, NULL, &new_array);
prog             1252 kernel/trace/bpf_trace.c 		bpf_prog_array_delete_safe(old_array, event->prog);
prog             1258 kernel/trace/bpf_trace.c 	bpf_prog_put(event->prog);
prog             1259 kernel/trace/bpf_trace.c 	event->prog = NULL;
prog             1330 kernel/trace/bpf_trace.c void __bpf_trace_run(struct bpf_prog *prog, u64 *args)
prog             1334 kernel/trace/bpf_trace.c 	(void) BPF_PROG_RUN(prog, args);
prog             1363 kernel/trace/bpf_trace.c 	void bpf_trace_run##x(struct bpf_prog *prog,			\
prog             1368 kernel/trace/bpf_trace.c 		__bpf_trace_run(prog, args);				\
prog             1384 kernel/trace/bpf_trace.c static int __bpf_probe_register(struct bpf_raw_event_map *btp, struct bpf_prog *prog)
prog             1392 kernel/trace/bpf_trace.c 	if (prog->aux->max_ctx_offset > btp->num_args * sizeof(u64))
prog             1395 kernel/trace/bpf_trace.c 	if (prog->aux->max_tp_access > btp->writable_size)
prog             1398 kernel/trace/bpf_trace.c 	return tracepoint_probe_register(tp, (void *)btp->bpf_func, prog);
prog             1401 kernel/trace/bpf_trace.c int bpf_probe_register(struct bpf_raw_event_map *btp, struct bpf_prog *prog)
prog             1403 kernel/trace/bpf_trace.c 	return __bpf_probe_register(btp, prog);
prog             1406 kernel/trace/bpf_trace.c int bpf_probe_unregister(struct bpf_raw_event_map *btp, struct bpf_prog *prog)
prog             1408 kernel/trace/bpf_trace.c 	return tracepoint_probe_unregister(btp->tp, (void *)btp->bpf_func, prog);
prog             1416 kernel/trace/bpf_trace.c 	struct bpf_prog *prog;
prog             1419 kernel/trace/bpf_trace.c 	prog = event->prog;
prog             1420 kernel/trace/bpf_trace.c 	if (!prog)
prog             1424 kernel/trace/bpf_trace.c 	if (prog->type == BPF_PROG_TYPE_PERF_EVENT)
prog             1427 kernel/trace/bpf_trace.c 	*prog_id = prog->aux->id;
prog             1350 kernel/trace/trace.h 	struct prog_entry __rcu	*prog;
prog              117 kernel/trace/trace_events_filter.c static void update_preds(struct prog_entry *prog, int N, int invert)
prog              121 kernel/trace/trace_events_filter.c 	t = prog[N].target;
prog              122 kernel/trace/trace_events_filter.c 	s = prog[t].target;
prog              123 kernel/trace/trace_events_filter.c 	prog[t].when_to_branch = invert;
prog              124 kernel/trace/trace_events_filter.c 	prog[t].target = N;
prog              125 kernel/trace/trace_events_filter.c 	prog[N].target = s;
prog              415 kernel/trace/trace_events_filter.c 	struct prog_entry *prog;
prog              443 kernel/trace/trace_events_filter.c 	prog = prog_stack;
prog              474 kernel/trace/trace_events_filter.c 		prog[N].target = N-1;
prog              476 kernel/trace/trace_events_filter.c 		len = parse_pred(next, data, ptr - str, pe, &prog[N].pred);
prog              512 kernel/trace/trace_events_filter.c 				update_preds(prog, N - 1, invert);
prog              520 kernel/trace/trace_events_filter.c 				update_preds(prog, N - 1, !invert);
prog              553 kernel/trace/trace_events_filter.c 	prog[N].pred = NULL;					/* #13 */
prog              554 kernel/trace/trace_events_filter.c 	prog[N].target = 1;		/* TRUE */
prog              555 kernel/trace/trace_events_filter.c 	prog[N+1].pred = NULL;
prog              556 kernel/trace/trace_events_filter.c 	prog[N+1].target = 0;		/* FALSE */
prog              557 kernel/trace/trace_events_filter.c 	prog[N-1].target = N;
prog              558 kernel/trace/trace_events_filter.c 	prog[N-1].when_to_branch = false;
prog              562 kernel/trace/trace_events_filter.c 		int target = prog[i].target;
prog              563 kernel/trace/trace_events_filter.c 		if (prog[i].when_to_branch == prog[target].when_to_branch)
prog              564 kernel/trace/trace_events_filter.c 			prog[i].target = prog[target].target;
prog              569 kernel/trace/trace_events_filter.c 		invert = inverts[i] ^ prog[i].when_to_branch;
prog              570 kernel/trace/trace_events_filter.c 		prog[i].when_to_branch = invert;
prog              572 kernel/trace/trace_events_filter.c 		if (WARN_ON(prog[i].target <= i)) {
prog              580 kernel/trace/trace_events_filter.c 	return prog;
prog              898 kernel/trace/trace_events_filter.c 	struct prog_entry *prog;
prog              906 kernel/trace/trace_events_filter.c 	prog = rcu_dereference_raw(filter->prog);
prog              907 kernel/trace/trace_events_filter.c 	if (!prog)
prog              910 kernel/trace/trace_events_filter.c 	for (i = 0; prog[i].pred; i++) {
prog              911 kernel/trace/trace_events_filter.c 		struct filter_pred *pred = prog[i].pred;
prog              913 kernel/trace/trace_events_filter.c 		if (match == prog[i].when_to_branch)
prog              914 kernel/trace/trace_events_filter.c 			i = prog[i].target;
prog              916 kernel/trace/trace_events_filter.c 	return prog[i].target;
prog             1008 kernel/trace/trace_events_filter.c 	struct prog_entry *prog;
prog             1011 kernel/trace/trace_events_filter.c 	prog = rcu_access_pointer(filter->prog);
prog             1012 kernel/trace/trace_events_filter.c 	if (!prog)
prog             1015 kernel/trace/trace_events_filter.c 	for (i = 0; prog[i].pred; i++)
prog             1016 kernel/trace/trace_events_filter.c 		kfree(prog[i].pred);
prog             1017 kernel/trace/trace_events_filter.c 	kfree(prog);
prog             1510 kernel/trace/trace_events_filter.c 	struct prog_entry *prog;
prog             1534 kernel/trace/trace_events_filter.c 	prog = predicate_parse(filter_string, nr_parens, nr_preds,
prog             1536 kernel/trace/trace_events_filter.c 	if (IS_ERR(prog))
prog             1537 kernel/trace/trace_events_filter.c 		return PTR_ERR(prog);
prog             1539 kernel/trace/trace_events_filter.c 	rcu_assign_pointer(filter->prog, prog);
prog             2007 kernel/trace/trace_events_filter.c static bool is_or(struct prog_entry *prog, int i)
prog             2016 kernel/trace/trace_events_filter.c 	target = prog[i].target + 1;
prog             2018 kernel/trace/trace_events_filter.c 	if (prog[target].pred)
prog             2022 kernel/trace/trace_events_filter.c 	return prog[i].when_to_branch == prog[target].target;
prog             2028 kernel/trace/trace_events_filter.c 	struct prog_entry *prog = rcu_dereference_protected(filter->prog,
prog             2037 kernel/trace/trace_events_filter.c 	for (i = 0; prog[i].pred; i++) {
prog             2038 kernel/trace/trace_events_filter.c 		struct filter_pred *pred = prog[i].pred;
prog             2040 kernel/trace/trace_events_filter.c 		if (!is_or(prog, i))
prog             2191 kernel/trace/trace_events_filter.c 	struct prog_entry *prog = rcu_dereference_protected(filter->prog,
prog             2195 kernel/trace/trace_events_filter.c 	for (i = 0; prog[i].pred; i++) {
prog             2196 kernel/trace/trace_events_filter.c 		struct filter_pred *pred = prog[i].pred;
prog               17 net/bpf/test_run.c static int bpf_test_run(struct bpf_prog *prog, void *ctx, u32 repeat,
prog               27 net/bpf/test_run.c 		storage[stype] = bpf_cgroup_storage_alloc(prog, stype);
prog               44 net/bpf/test_run.c 		*retval = BPF_PROG_RUN(prog, ctx);
prog              241 net/bpf/test_run.c int bpf_prog_test_run_skb(struct bpf_prog *prog, const union bpf_attr *kattr,
prog              266 net/bpf/test_run.c 	switch (prog->type) {
prog              310 net/bpf/test_run.c 	ret = bpf_test_run(prog, skb, repeat, &retval, &duration);
prog              342 net/bpf/test_run.c int bpf_prog_test_run_xdp(struct bpf_prog *prog, const union bpf_attr *kattr,
prog              368 net/bpf/test_run.c 	ret = bpf_test_run(prog, &xdp, repeat, &retval, &duration);
prog              396 net/bpf/test_run.c int bpf_prog_test_run_flow_dissector(struct bpf_prog *prog,
prog              413 net/bpf/test_run.c 	if (prog->type != BPF_PROG_TYPE_FLOW_DISSECTOR)
prog              448 net/bpf/test_run.c 		retval = bpf_flow_dissect(prog, &ctx, eth->h_proto, ETH_HLEN,
prog             5075 net/core/dev.c 	struct bpf_prog *new = xdp->prog;
prog             8328 net/core/dev.c 			   struct bpf_prog *prog)
prog             8339 net/core/dev.c 	xdp.prog = prog;
prog             8386 net/core/dev.c 	struct bpf_prog *prog = NULL;
prog             8420 net/core/dev.c 		prog = bpf_prog_get_type_dev(fd, BPF_PROG_TYPE_XDP,
prog             8422 net/core/dev.c 		if (IS_ERR(prog))
prog             8423 net/core/dev.c 			return PTR_ERR(prog);
prog             8425 net/core/dev.c 		if (!offload && bpf_prog_is_dev_bound(prog->aux)) {
prog             8427 net/core/dev.c 			bpf_prog_put(prog);
prog             8432 net/core/dev.c 		if (prog->aux->id && prog->aux->id == prog_id) {
prog             8433 net/core/dev.c 			bpf_prog_put(prog);
prog             8441 net/core/dev.c 	err = dev_xdp_install(dev, bpf_op, extack, flags, prog);
prog             8442 net/core/dev.c 	if (err < 0 && prog)
prog             8443 net/core/dev.c 		bpf_prog_put(prog);
prog              119 net/core/filter.c 		pkt_len = bpf_prog_run_save_cb(filter->prog, skb);
prog              536 net/core/filter.c static int bpf_convert_filter(struct sock_filter *prog, int len,
prog              562 net/core/filter.c 	fp = prog;
prog             1143 net/core/filter.c static void __bpf_prog_release(struct bpf_prog *prog)
prog             1145 net/core/filter.c 	if (prog->type == BPF_PROG_TYPE_SOCKET_FILTER) {
prog             1146 net/core/filter.c 		bpf_prog_put(prog);
prog             1148 net/core/filter.c 		bpf_release_orig_filter(prog);
prog             1149 net/core/filter.c 		bpf_prog_free(prog);
prog             1155 net/core/filter.c 	__bpf_prog_release(fp->prog);
prog             1184 net/core/filter.c 	u32 filter_size = bpf_prog_size(fp->prog->len);
prog             1195 net/core/filter.c 	u32 filter_size = bpf_prog_size(fp->prog->len);
prog             1432 net/core/filter.c static int __sk_attach_prog(struct bpf_prog *prog, struct sock *sk)
prog             1440 net/core/filter.c 	fp->prog = prog;
prog             1462 net/core/filter.c 	struct bpf_prog *prog;
prog             1472 net/core/filter.c 	prog = bpf_prog_alloc(bpf_prog_size(fprog->len), 0);
prog             1473 net/core/filter.c 	if (!prog)
prog             1476 net/core/filter.c 	if (copy_from_user(prog->insns, fprog->filter, fsize)) {
prog             1477 net/core/filter.c 		__bpf_prog_free(prog);
prog             1481 net/core/filter.c 	prog->len = fprog->len;
prog             1483 net/core/filter.c 	err = bpf_prog_store_orig_filter(prog, fprog);
prog             1485 net/core/filter.c 		__bpf_prog_free(prog);
prog             1492 net/core/filter.c 	return bpf_prepare_filter(prog, NULL);
prog             1507 net/core/filter.c 	struct bpf_prog *prog = __get_filter(fprog, sk);
prog             1510 net/core/filter.c 	if (IS_ERR(prog))
prog             1511 net/core/filter.c 		return PTR_ERR(prog);
prog             1513 net/core/filter.c 	err = __sk_attach_prog(prog, sk);
prog             1515 net/core/filter.c 		__bpf_prog_release(prog);
prog             1525 net/core/filter.c 	struct bpf_prog *prog = __get_filter(fprog, sk);
prog             1528 net/core/filter.c 	if (IS_ERR(prog))
prog             1529 net/core/filter.c 		return PTR_ERR(prog);
prog             1531 net/core/filter.c 	if (bpf_prog_size(prog->len) > sysctl_optmem_max)
prog             1534 net/core/filter.c 		err = reuseport_attach_prog(sk, prog);
prog             1537 net/core/filter.c 		__bpf_prog_release(prog);
prog             1552 net/core/filter.c 	struct bpf_prog *prog = __get_bpf(ufd, sk);
prog             1555 net/core/filter.c 	if (IS_ERR(prog))
prog             1556 net/core/filter.c 		return PTR_ERR(prog);
prog             1558 net/core/filter.c 	err = __sk_attach_prog(prog, sk);
prog             1560 net/core/filter.c 		bpf_prog_put(prog);
prog             1569 net/core/filter.c 	struct bpf_prog *prog;
prog             1575 net/core/filter.c 	prog = bpf_prog_get_type(ufd, BPF_PROG_TYPE_SOCKET_FILTER);
prog             1576 net/core/filter.c 	if (IS_ERR(prog) && PTR_ERR(prog) == -EINVAL)
prog             1577 net/core/filter.c 		prog = bpf_prog_get_type(ufd, BPF_PROG_TYPE_SK_REUSEPORT);
prog             1578 net/core/filter.c 	if (IS_ERR(prog))
prog             1579 net/core/filter.c 		return PTR_ERR(prog);
prog             1581 net/core/filter.c 	if (prog->type == BPF_PROG_TYPE_SK_REUSEPORT) {
prog             1598 net/core/filter.c 		if (bpf_prog_size(prog->len) > sysctl_optmem_max) {
prog             1604 net/core/filter.c 	err = reuseport_attach_prog(sk, prog);
prog             1607 net/core/filter.c 		bpf_prog_put(prog);
prog             1612 net/core/filter.c void sk_reuseport_prog_free(struct bpf_prog *prog)
prog             1614 net/core/filter.c 	if (!prog)
prog             1617 net/core/filter.c 	if (prog->type == BPF_PROG_TYPE_SK_REUSEPORT)
prog             1618 net/core/filter.c 		bpf_prog_put(prog);
prog             1620 net/core/filter.c 		bpf_prog_destroy(prog);
prog             5574 net/core/filter.c 				    struct bpf_prog *prog, u32 *target_size)
prog             5765 net/core/filter.c 				    struct bpf_prog *prog, u32 *target_size)
prog             6012 net/core/filter.c sock_filter_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog)
prog             6028 net/core/filter.c sock_addr_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog)
prog             6037 net/core/filter.c 		switch (prog->expected_attach_type) {
prog             6068 net/core/filter.c sk_filter_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog)
prog             6090 net/core/filter.c cg_skb_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog)
prog             6116 net/core/filter.c 		return sk_filter_func_proto(func_id, prog);
prog             6121 net/core/filter.c tc_cls_act_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog)
prog             6228 net/core/filter.c xdp_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog)
prog             6272 net/core/filter.c sock_ops_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog)
prog             6308 net/core/filter.c sk_msg_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog)
prog             6334 net/core/filter.c sk_skb_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog)
prog             6373 net/core/filter.c flow_dissector_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog)
prog             6384 net/core/filter.c lwt_out_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog)
prog             6411 net/core/filter.c lwt_in_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog)
prog             6417 net/core/filter.c 		return lwt_out_func_proto(func_id, prog);
prog             6422 net/core/filter.c lwt_xmit_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog)
prog             6454 net/core/filter.c 		return lwt_out_func_proto(func_id, prog);
prog             6459 net/core/filter.c lwt_seg6local_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog)
prog             6471 net/core/filter.c 		return lwt_out_func_proto(func_id, prog);
prog             6476 net/core/filter.c 				    const struct bpf_prog *prog,
prog             6531 net/core/filter.c 				      const struct bpf_prog *prog,
prog             6554 net/core/filter.c 	return bpf_skb_is_valid_access(off, size, type, prog, info);
prog             6559 net/core/filter.c 				   const struct bpf_prog *prog,
prog             6598 net/core/filter.c 	return bpf_skb_is_valid_access(off, size, type, prog, info);
prog             6603 net/core/filter.c 				const struct bpf_prog *prog,
prog             6635 net/core/filter.c 	return bpf_skb_is_valid_access(off, size, type, prog, info);
prog             6724 net/core/filter.c 					const struct bpf_prog *prog,
prog             6730 net/core/filter.c 					       prog->expected_attach_type);
prog             6734 net/core/filter.c 			     const struct bpf_prog *prog)
prog             6743 net/core/filter.c 				const struct bpf_prog *prog, int drop_verdict)
prog             6776 net/core/filter.c 	*insn++ = prog->insnsi[0];
prog             6817 net/core/filter.c 			       const struct bpf_prog *prog)
prog             6819 net/core/filter.c 	return bpf_unclone_prologue(insn_buf, direct_write, prog, TC_ACT_SHOT);
prog             6824 net/core/filter.c 				       const struct bpf_prog *prog,
prog             6856 net/core/filter.c 	return bpf_skb_is_valid_access(off, size, type, prog, info);
prog             6873 net/core/filter.c 				const struct bpf_prog *prog,
prog             6877 net/core/filter.c 		if (bpf_prog_is_dev_bound(prog->aux)) {
prog             6913 net/core/filter.c 				      const struct bpf_prog *prog,
prog             6928 net/core/filter.c 		switch (prog->expected_attach_type) {
prog             6939 net/core/filter.c 		switch (prog->expected_attach_type) {
prog             6950 net/core/filter.c 		switch (prog->expected_attach_type) {
prog             6959 net/core/filter.c 		switch (prog->expected_attach_type) {
prog             7029 net/core/filter.c 				     const struct bpf_prog *prog,
prog             7074 net/core/filter.c 			   const struct bpf_prog *prog)
prog             7076 net/core/filter.c 	return bpf_unclone_prologue(insn_buf, direct_write, prog, SK_DROP);
prog             7081 net/core/filter.c 				   const struct bpf_prog *prog,
prog             7113 net/core/filter.c 	return bpf_skb_is_valid_access(off, size, type, prog, info);
prog             7118 net/core/filter.c 				   const struct bpf_prog *prog,
prog             7157 net/core/filter.c 					   const struct bpf_prog *prog,
prog             7192 net/core/filter.c 					     struct bpf_prog *prog,
prog             7224 net/core/filter.c 				  struct bpf_prog *prog, u32 *target_size)
prog             7340 net/core/filter.c 		prog->cb_access = 1;
prog             7587 net/core/filter.c 				struct bpf_prog *prog, u32 *target_size)
prog             7745 net/core/filter.c 					 struct bpf_prog *prog, u32 *target_size)
prog             7759 net/core/filter.c 		return bpf_convert_ctx_access(type, si, insn_buf, prog,
prog             7769 net/core/filter.c 				  struct bpf_prog *prog, u32 *target_size)
prog             7885 net/core/filter.c 					struct bpf_prog *prog, u32 *target_size)
prog             7979 net/core/filter.c 				       struct bpf_prog *prog,
prog             8310 net/core/filter.c 				     struct bpf_prog *prog, u32 *target_size)
prog             8325 net/core/filter.c 		return bpf_convert_ctx_access(type, si, insn_buf, prog,
prog             8335 net/core/filter.c 				     struct bpf_prog *prog, u32 *target_size)
prog             8648 net/core/filter.c 	fprog = filter->prog->orig_prog;
prog             8700 net/core/filter.c 				  struct bpf_prog *prog, struct sk_buff *skb,
prog             8707 net/core/filter.c 	action = BPF_PROG_RUN(prog, &reuse_kern);
prog             8808 net/core/filter.c 			const struct bpf_prog *prog)
prog             8825 net/core/filter.c 			     const struct bpf_prog *prog,
prog             8885 net/core/filter.c 					   struct bpf_prog *prog,
prog              113 net/core/flow_dissector.c 				       struct bpf_prog *prog)
prog              127 net/core/flow_dissector.c 	rcu_assign_pointer(net->flow_dissector_prog, prog);
prog              843 net/core/flow_dissector.c bool bpf_flow_dissect(struct bpf_prog *prog, struct bpf_flow_dissector *ctx,
prog              864 net/core/flow_dissector.c 	result = BPF_PROG_RUN(prog, ctx);
prog               16 net/core/lwt_bpf.c 	struct bpf_prog *prog;
prog               49 net/core/lwt_bpf.c 	ret = bpf_prog_run_save_cb(lwt->prog, skb);
prog              122 net/core/lwt_bpf.c 	if (bpf->in.prog) {
prog              145 net/core/lwt_bpf.c 	if (bpf->out.prog) {
prog              275 net/core/lwt_bpf.c 	if (bpf->xmit.prog) {
prog              310 net/core/lwt_bpf.c static void bpf_lwt_prog_destroy(struct bpf_lwt_prog *prog)
prog              312 net/core/lwt_bpf.c 	if (prog->prog)
prog              313 net/core/lwt_bpf.c 		bpf_prog_put(prog->prog);
prog              315 net/core/lwt_bpf.c 	kfree(prog->name);
prog              333 net/core/lwt_bpf.c static int bpf_parse_prog(struct nlattr *attr, struct bpf_lwt_prog *prog,
prog              349 net/core/lwt_bpf.c 	prog->name = nla_memdup(tb[LWT_BPF_PROG_NAME], GFP_ATOMIC);
prog              350 net/core/lwt_bpf.c 	if (!prog->name)
prog              358 net/core/lwt_bpf.c 	prog->prog = p;
prog              445 net/core/lwt_bpf.c 			     struct bpf_lwt_prog *prog)
prog              449 net/core/lwt_bpf.c 	if (!prog->prog)
prog              456 net/core/lwt_bpf.c 	if (prog->name &&
prog              457 net/core/lwt_bpf.c 	    nla_put_string(skb, LWT_BPF_PROG_NAME, prog->name))
prog              628 net/core/skmsg.c 	struct bpf_prog *prog;
prog              633 net/core/skmsg.c 	prog = READ_ONCE(psock->progs.msg_parser);
prog              634 net/core/skmsg.c 	if (unlikely(!prog)) {
prog              641 net/core/skmsg.c 	ret = BPF_PROG_RUN(prog, msg);
prog              661 net/core/skmsg.c static int sk_psock_bpf_run(struct sk_psock *psock, struct bpf_prog *prog,
prog              669 net/core/skmsg.c 	ret = BPF_PROG_RUN(prog, skb);
prog              744 net/core/skmsg.c 	struct bpf_prog *prog;
prog              748 net/core/skmsg.c 	prog = READ_ONCE(psock->progs.skb_verdict);
prog              749 net/core/skmsg.c 	if (likely(prog)) {
prog              752 net/core/skmsg.c 		ret = sk_psock_bpf_run(psock, prog, skb);
prog              767 net/core/skmsg.c 	struct bpf_prog *prog;
prog              771 net/core/skmsg.c 	prog = READ_ONCE(psock->progs.skb_parser);
prog              772 net/core/skmsg.c 	if (likely(prog))
prog              773 net/core/skmsg.c 		ret = sk_psock_bpf_run(psock, prog, skb);
prog               89 net/core/sock_diag.c 	fprog = filter->prog->orig_prog;
prog               63 net/core/sock_map.c int sock_map_get_from_fd(const union bpf_attr *attr, struct bpf_prog *prog)
prog               74 net/core/sock_map.c 	ret = sock_map_prog_update(map, prog, attr->attach_type);
prog              993 net/core/sock_map.c int sock_map_prog_update(struct bpf_map *map, struct bpf_prog *prog,
prog             1003 net/core/sock_map.c 		psock_set_prog(&progs->msg_parser, prog);
prog             1006 net/core/sock_map.c 		psock_set_prog(&progs->skb_parser, prog);
prog             1009 net/core/sock_map.c 		psock_set_prog(&progs->skb_verdict, prog);
prog               51 net/core/sock_reuseport.c 	RCU_INIT_POINTER(reuse->prog, NULL);
prog              112 net/core/sock_reuseport.c 	more_reuse->prog = reuse->prog;
prog              137 net/core/sock_reuseport.c 	sk_reuseport_prog_free(rcu_dereference_protected(reuse->prog, 1));
prog              226 net/core/sock_reuseport.c 				   struct bpf_prog *prog, struct sk_buff *skb,
prog              244 net/core/sock_reuseport.c 	index = bpf_prog_run_save_cb(prog, skb);
prog              271 net/core/sock_reuseport.c 	struct bpf_prog *prog;
prog              282 net/core/sock_reuseport.c 	prog = rcu_dereference(reuse->prog);
prog              288 net/core/sock_reuseport.c 		if (!prog || !skb)
prog              291 net/core/sock_reuseport.c 		if (prog->type == BPF_PROG_TYPE_SK_REUSEPORT)
prog              292 net/core/sock_reuseport.c 			sk2 = bpf_run_sk_reuseport(reuse, sk, prog, skb, hash);
prog              294 net/core/sock_reuseport.c 			sk2 = run_bpf_filter(reuse, socks, prog, skb, hdr_len);
prog              319 net/core/sock_reuseport.c int reuseport_attach_prog(struct sock *sk, struct bpf_prog *prog)
prog              337 net/core/sock_reuseport.c 	old_prog = rcu_dereference_protected(reuse->prog,
prog              339 net/core/sock_reuseport.c 	rcu_assign_pointer(reuse->prog, prog);
prog              359 net/core/sock_reuseport.c 	rcu_swap_protected(reuse->prog, old_prog,
prog              439 net/core/xdp.c 	bpf->prog_id = info->prog ? info->prog->aux->id : 0;
prog              440 net/core/xdp.c 	bpf->prog_flags = info->prog ? info->flags : 0;
prog              448 net/core/xdp.c 	if (info->prog && (bpf->flags ^ info->flags) & XDP_FLAGS_MODES) {
prog              460 net/core/xdp.c 	if (info->prog)
prog              461 net/core/xdp.c 		bpf_prog_put(info->prog);
prog              462 net/core/xdp.c 	info->prog = bpf->prog;
prog               44 net/ipv6/seg6_local.c 	struct bpf_prog *prog;
prog              518 net/ipv6/seg6_local.c 	ret = bpf_prog_run_save_cb(slwt->bpf.prog, skb);
prog              854 net/ipv6/seg6_local.c 	slwt->bpf.prog = p;
prog              862 net/ipv6/seg6_local.c 	if (!slwt->bpf.prog)
prog              869 net/ipv6/seg6_local.c 	if (nla_put_u32(skb, SEG6_LOCAL_BPF_PROG, slwt->bpf.prog->aux->id))
prog             1013 net/ipv6/seg6_local.c 		bpf_prog_put(slwt->bpf.prog);
prog              380 net/kcm/kcmsock.c 	struct bpf_prog *prog = psock->bpf_prog;
prog              384 net/kcm/kcmsock.c 	res = BPF_PROG_RUN(prog, skb);
prog             1372 net/kcm/kcmsock.c 		      struct bpf_prog *prog)
prog             1414 net/kcm/kcmsock.c 	psock->bpf_prog = prog;
prog             1478 net/kcm/kcmsock.c 	struct bpf_prog *prog;
prog             1485 net/kcm/kcmsock.c 	prog = bpf_prog_get_type(info->bpf_fd, BPF_PROG_TYPE_SOCKET_FILTER);
prog             1486 net/kcm/kcmsock.c 	if (IS_ERR(prog)) {
prog             1487 net/kcm/kcmsock.c 		err = PTR_ERR(prog);
prog             1491 net/kcm/kcmsock.c 	err = kcm_attach(sock, csock, prog);
prog             1493 net/kcm/kcmsock.c 		bpf_prog_put(prog);
prog               45 net/netfilter/xt_bpf.c 	struct bpf_prog *prog;
prog               47 net/netfilter/xt_bpf.c 	prog = bpf_prog_get_type(fd, BPF_PROG_TYPE_SOCKET_FILTER);
prog               48 net/netfilter/xt_bpf.c 	if (IS_ERR(prog))
prog               49 net/netfilter/xt_bpf.c 		return PTR_ERR(prog);
prog               51 net/netfilter/xt_bpf.c 	*ret = prog;
prog             1397 net/packet/af_packet.c 	struct bpf_prog *prog;
prog             1401 net/packet/af_packet.c 	prog = rcu_dereference(f->bpf_prog);
prog             1402 net/packet/af_packet.c 	if (prog)
prog             1403 net/packet/af_packet.c 		ret = bpf_prog_run_clear_cb(prog, skb) % num;
prog             2011 net/packet/af_packet.c 		res = bpf_prog_run_clear_cb(filter->prog, skb);
prog               38 net/sched/act_bpf.c 	struct tcf_bpf *prog = to_bpf(act);
prog               42 net/sched/act_bpf.c 	tcf_lastuse_update(&prog->tcf_tm);
prog               43 net/sched/act_bpf.c 	bstats_cpu_update(this_cpu_ptr(prog->common.cpu_bstats), skb);
prog               46 net/sched/act_bpf.c 	filter = rcu_dereference(prog->filter);
prog               77 net/sched/act_bpf.c 		qstats_drop_inc(this_cpu_ptr(prog->common.cpu_qstats));
prog               80 net/sched/act_bpf.c 		action = prog->tcf_action;
prog               90 net/sched/act_bpf.c static bool tcf_bpf_is_ebpf(const struct tcf_bpf *prog)
prog               92 net/sched/act_bpf.c 	return !prog->bpf_ops;
prog               95 net/sched/act_bpf.c static int tcf_bpf_dump_bpf_info(const struct tcf_bpf *prog,
prog              100 net/sched/act_bpf.c 	if (nla_put_u16(skb, TCA_ACT_BPF_OPS_LEN, prog->bpf_num_ops))
prog              103 net/sched/act_bpf.c 	nla = nla_reserve(skb, TCA_ACT_BPF_OPS, prog->bpf_num_ops *
prog              108 net/sched/act_bpf.c 	memcpy(nla_data(nla), prog->bpf_ops, nla_len(nla));
prog              113 net/sched/act_bpf.c static int tcf_bpf_dump_ebpf_info(const struct tcf_bpf *prog,
prog              118 net/sched/act_bpf.c 	if (prog->bpf_name &&
prog              119 net/sched/act_bpf.c 	    nla_put_string(skb, TCA_ACT_BPF_NAME, prog->bpf_name))
prog              122 net/sched/act_bpf.c 	if (nla_put_u32(skb, TCA_ACT_BPF_ID, prog->filter->aux->id))
prog              125 net/sched/act_bpf.c 	nla = nla_reserve(skb, TCA_ACT_BPF_TAG, sizeof(prog->filter->tag));
prog              129 net/sched/act_bpf.c 	memcpy(nla_data(nla), prog->filter->tag, nla_len(nla));
prog              138 net/sched/act_bpf.c 	struct tcf_bpf *prog = to_bpf(act);
prog              140 net/sched/act_bpf.c 		.index   = prog->tcf_index,
prog              141 net/sched/act_bpf.c 		.refcnt  = refcount_read(&prog->tcf_refcnt) - ref,
prog              142 net/sched/act_bpf.c 		.bindcnt = atomic_read(&prog->tcf_bindcnt) - bind,
prog              147 net/sched/act_bpf.c 	spin_lock_bh(&prog->tcf_lock);
prog              148 net/sched/act_bpf.c 	opt.action = prog->tcf_action;
prog              152 net/sched/act_bpf.c 	if (tcf_bpf_is_ebpf(prog))
prog              153 net/sched/act_bpf.c 		ret = tcf_bpf_dump_ebpf_info(prog, skb);
prog              155 net/sched/act_bpf.c 		ret = tcf_bpf_dump_bpf_info(prog, skb);
prog              159 net/sched/act_bpf.c 	tcf_tm_dump(&tm, &prog->tcf_tm);
prog              164 net/sched/act_bpf.c 	spin_unlock_bh(&prog->tcf_lock);
prog              168 net/sched/act_bpf.c 	spin_unlock_bh(&prog->tcf_lock);
prog              262 net/sched/act_bpf.c static void tcf_bpf_prog_fill_cfg(const struct tcf_bpf *prog,
prog              265 net/sched/act_bpf.c 	cfg->is_ebpf = tcf_bpf_is_ebpf(prog);
prog              269 net/sched/act_bpf.c 	cfg->filter = rcu_dereference_protected(prog->filter, 1);
prog              271 net/sched/act_bpf.c 	cfg->bpf_ops = prog->bpf_ops;
prog              272 net/sched/act_bpf.c 	cfg->bpf_name = prog->bpf_name;
prog              285 net/sched/act_bpf.c 	struct tcf_bpf *prog;
prog              345 net/sched/act_bpf.c 	prog = to_bpf(*act);
prog              347 net/sched/act_bpf.c 	spin_lock_bh(&prog->tcf_lock);
prog              349 net/sched/act_bpf.c 		tcf_bpf_prog_fill_cfg(prog, &old);
prog              351 net/sched/act_bpf.c 	prog->bpf_ops = cfg.bpf_ops;
prog              352 net/sched/act_bpf.c 	prog->bpf_name = cfg.bpf_name;
prog              355 net/sched/act_bpf.c 		prog->bpf_num_ops = cfg.bpf_num_ops;
prog              358 net/sched/act_bpf.c 	rcu_assign_pointer(prog->filter, cfg.filter);
prog              359 net/sched/act_bpf.c 	spin_unlock_bh(&prog->tcf_lock);
prog               85 net/sched/cls_bpf.c 	struct cls_bpf_prog *prog;
prog               90 net/sched/cls_bpf.c 	list_for_each_entry_rcu(prog, &head->plist, link) {
prog               93 net/sched/cls_bpf.c 		qdisc_skb_cb(skb)->tc_classid = prog->res.classid;
prog               95 net/sched/cls_bpf.c 		if (tc_skip_sw(prog->gen_flags)) {
prog               96 net/sched/cls_bpf.c 			filter_res = prog->exts_integrated ? TC_ACT_UNSPEC : 0;
prog              101 net/sched/cls_bpf.c 			filter_res = BPF_PROG_RUN(prog->filter, skb);
prog              105 net/sched/cls_bpf.c 			filter_res = BPF_PROG_RUN(prog->filter, skb);
prog              108 net/sched/cls_bpf.c 		if (prog->exts_integrated) {
prog              110 net/sched/cls_bpf.c 			res->classid = TC_H_MAJ(prog->res.classid) |
prog              125 net/sched/cls_bpf.c 			*res = prog->res;
prog              128 net/sched/cls_bpf.c 		ret = tcf_exts_exec(skb, &prog->exts, res);
prog              139 net/sched/cls_bpf.c static bool cls_bpf_is_ebpf(const struct cls_bpf_prog *prog)
prog              141 net/sched/cls_bpf.c 	return !prog->bpf_ops;
prog              144 net/sched/cls_bpf.c static int cls_bpf_offload_cmd(struct tcf_proto *tp, struct cls_bpf_prog *prog,
prog              154 net/sched/cls_bpf.c 	skip_sw = prog && tc_skip_sw(prog->gen_flags);
prog              155 net/sched/cls_bpf.c 	obj = prog ?: oldprog;
prog              160 net/sched/cls_bpf.c 	cls_bpf.prog = prog ? prog->filter : NULL;
prog              165 net/sched/cls_bpf.c 	if (oldprog && prog)
prog              169 net/sched/cls_bpf.c 					  &prog->gen_flags, &prog->in_hw_count,
prog              171 net/sched/cls_bpf.c 	else if (prog)
prog              173 net/sched/cls_bpf.c 				      skip_sw, &prog->gen_flags,
prog              174 net/sched/cls_bpf.c 				      &prog->in_hw_count, true);
prog              180 net/sched/cls_bpf.c 	if (prog && err) {
prog              181 net/sched/cls_bpf.c 		cls_bpf_offload_cmd(tp, oldprog, prog, extack);
prog              185 net/sched/cls_bpf.c 	if (prog && skip_sw && !(prog->gen_flags & TCA_CLS_FLAGS_IN_HW))
prog              196 net/sched/cls_bpf.c static int cls_bpf_offload(struct tcf_proto *tp, struct cls_bpf_prog *prog,
prog              200 net/sched/cls_bpf.c 	if (prog && oldprog &&
prog              201 net/sched/cls_bpf.c 	    cls_bpf_flags(prog->gen_flags) !=
prog              205 net/sched/cls_bpf.c 	if (prog && tc_skip_hw(prog->gen_flags))
prog              206 net/sched/cls_bpf.c 		prog = NULL;
prog              209 net/sched/cls_bpf.c 	if (!prog && !oldprog)
prog              212 net/sched/cls_bpf.c 	return cls_bpf_offload_cmd(tp, prog, oldprog, extack);
prog              216 net/sched/cls_bpf.c 				 struct cls_bpf_prog *prog,
prog              221 net/sched/cls_bpf.c 	err = cls_bpf_offload_cmd(tp, NULL, prog, extack);
prog              227 net/sched/cls_bpf.c 					 struct cls_bpf_prog *prog)
prog              232 net/sched/cls_bpf.c 	tc_cls_common_offload_init(&cls_bpf.common, tp, prog->gen_flags, NULL);
prog              234 net/sched/cls_bpf.c 	cls_bpf.exts = &prog->exts;
prog              235 net/sched/cls_bpf.c 	cls_bpf.prog = prog->filter;
prog              236 net/sched/cls_bpf.c 	cls_bpf.name = prog->bpf_name;
prog              237 net/sched/cls_bpf.c 	cls_bpf.exts_integrated = prog->exts_integrated;
prog              257 net/sched/cls_bpf.c static void cls_bpf_free_parms(struct cls_bpf_prog *prog)
prog              259 net/sched/cls_bpf.c 	if (cls_bpf_is_ebpf(prog))
prog              260 net/sched/cls_bpf.c 		bpf_prog_put(prog->filter);
prog              262 net/sched/cls_bpf.c 		bpf_prog_destroy(prog->filter);
prog              264 net/sched/cls_bpf.c 	kfree(prog->bpf_name);
prog              265 net/sched/cls_bpf.c 	kfree(prog->bpf_ops);
prog              268 net/sched/cls_bpf.c static void __cls_bpf_delete_prog(struct cls_bpf_prog *prog)
prog              270 net/sched/cls_bpf.c 	tcf_exts_destroy(&prog->exts);
prog              271 net/sched/cls_bpf.c 	tcf_exts_put_net(&prog->exts);
prog              273 net/sched/cls_bpf.c 	cls_bpf_free_parms(prog);
prog              274 net/sched/cls_bpf.c 	kfree(prog);
prog              279 net/sched/cls_bpf.c 	struct cls_bpf_prog *prog = container_of(to_rcu_work(work),
prog              283 net/sched/cls_bpf.c 	__cls_bpf_delete_prog(prog);
prog              287 net/sched/cls_bpf.c static void __cls_bpf_delete(struct tcf_proto *tp, struct cls_bpf_prog *prog,
prog              292 net/sched/cls_bpf.c 	idr_remove(&head->handle_idr, prog->handle);
prog              293 net/sched/cls_bpf.c 	cls_bpf_stop_offload(tp, prog, extack);
prog              294 net/sched/cls_bpf.c 	list_del_rcu(&prog->link);
prog              295 net/sched/cls_bpf.c 	tcf_unbind_filter(tp, &prog->res);
prog              296 net/sched/cls_bpf.c 	if (tcf_exts_get_net(&prog->exts))
prog              297 net/sched/cls_bpf.c 		tcf_queue_work(&prog->rwork, cls_bpf_delete_prog_work);
prog              299 net/sched/cls_bpf.c 		__cls_bpf_delete_prog(prog);
prog              316 net/sched/cls_bpf.c 	struct cls_bpf_prog *prog, *tmp;
prog              318 net/sched/cls_bpf.c 	list_for_each_entry_safe(prog, tmp, &head->plist, link)
prog              319 net/sched/cls_bpf.c 		__cls_bpf_delete(tp, prog, extack);
prog              328 net/sched/cls_bpf.c 	struct cls_bpf_prog *prog;
prog              330 net/sched/cls_bpf.c 	list_for_each_entry(prog, &head->plist, link) {
prog              331 net/sched/cls_bpf.c 		if (prog->handle == handle)
prog              332 net/sched/cls_bpf.c 			return prog;
prog              338 net/sched/cls_bpf.c static int cls_bpf_prog_from_ops(struct nlattr **tb, struct cls_bpf_prog *prog)
prog              367 net/sched/cls_bpf.c 	prog->bpf_ops = bpf_ops;
prog              368 net/sched/cls_bpf.c 	prog->bpf_num_ops = bpf_num_ops;
prog              369 net/sched/cls_bpf.c 	prog->bpf_name = NULL;
prog              370 net/sched/cls_bpf.c 	prog->filter = fp;
prog              375 net/sched/cls_bpf.c static int cls_bpf_prog_from_efd(struct nlattr **tb, struct cls_bpf_prog *prog,
prog              398 net/sched/cls_bpf.c 	prog->bpf_ops = NULL;
prog              399 net/sched/cls_bpf.c 	prog->bpf_name = name;
prog              400 net/sched/cls_bpf.c 	prog->filter = fp;
prog              409 net/sched/cls_bpf.c 			     struct cls_bpf_prog *prog, unsigned long base,
prog              422 net/sched/cls_bpf.c 	ret = tcf_exts_validate(net, tp, tb, est, &prog->exts, ovr, true,
prog              442 net/sched/cls_bpf.c 	prog->exts_integrated = have_exts;
prog              443 net/sched/cls_bpf.c 	prog->gen_flags = gen_flags;
prog              445 net/sched/cls_bpf.c 	ret = is_bpf ? cls_bpf_prog_from_ops(tb, prog) :
prog              446 net/sched/cls_bpf.c 		       cls_bpf_prog_from_efd(tb, prog, gen_flags, tp);
prog              451 net/sched/cls_bpf.c 		prog->res.classid = nla_get_u32(tb[TCA_BPF_CLASSID]);
prog              452 net/sched/cls_bpf.c 		tcf_bind_filter(tp, &prog->res, base);
prog              467 net/sched/cls_bpf.c 	struct cls_bpf_prog *prog;
prog              478 net/sched/cls_bpf.c 	prog = kzalloc(sizeof(*prog), GFP_KERNEL);
prog              479 net/sched/cls_bpf.c 	if (!prog)
prog              482 net/sched/cls_bpf.c 	ret = tcf_exts_init(&prog->exts, net, TCA_BPF_ACT, TCA_BPF_POLICE);
prog              495 net/sched/cls_bpf.c 		ret = idr_alloc_u32(&head->handle_idr, prog, &handle,
prog              498 net/sched/cls_bpf.c 		ret = idr_alloc_u32(&head->handle_idr, prog, &handle,
prog              504 net/sched/cls_bpf.c 	prog->handle = handle;
prog              506 net/sched/cls_bpf.c 	ret = cls_bpf_set_parms(net, tp, prog, base, tb, tca[TCA_RATE], ovr,
prog              511 net/sched/cls_bpf.c 	ret = cls_bpf_offload(tp, prog, oldprog, extack);
prog              515 net/sched/cls_bpf.c 	if (!tc_in_hw(prog->gen_flags))
prog              516 net/sched/cls_bpf.c 		prog->gen_flags |= TCA_CLS_FLAGS_NOT_IN_HW;
prog              519 net/sched/cls_bpf.c 		idr_replace(&head->handle_idr, prog, handle);
prog              520 net/sched/cls_bpf.c 		list_replace_rcu(&oldprog->link, &prog->link);
prog              525 net/sched/cls_bpf.c 		list_add_rcu(&prog->link, &head->plist);
prog              528 net/sched/cls_bpf.c 	*arg = prog;
prog              532 net/sched/cls_bpf.c 	cls_bpf_free_parms(prog);
prog              535 net/sched/cls_bpf.c 		idr_remove(&head->handle_idr, prog->handle);
prog              537 net/sched/cls_bpf.c 	tcf_exts_destroy(&prog->exts);
prog              538 net/sched/cls_bpf.c 	kfree(prog);
prog              542 net/sched/cls_bpf.c static int cls_bpf_dump_bpf_info(const struct cls_bpf_prog *prog,
prog              547 net/sched/cls_bpf.c 	if (nla_put_u16(skb, TCA_BPF_OPS_LEN, prog->bpf_num_ops))
prog              550 net/sched/cls_bpf.c 	nla = nla_reserve(skb, TCA_BPF_OPS, prog->bpf_num_ops *
prog              555 net/sched/cls_bpf.c 	memcpy(nla_data(nla), prog->bpf_ops, nla_len(nla));
prog              560 net/sched/cls_bpf.c static int cls_bpf_dump_ebpf_info(const struct cls_bpf_prog *prog,
prog              565 net/sched/cls_bpf.c 	if (prog->bpf_name &&
prog              566 net/sched/cls_bpf.c 	    nla_put_string(skb, TCA_BPF_NAME, prog->bpf_name))
prog              569 net/sched/cls_bpf.c 	if (nla_put_u32(skb, TCA_BPF_ID, prog->filter->aux->id))
prog              572 net/sched/cls_bpf.c 	nla = nla_reserve(skb, TCA_BPF_TAG, sizeof(prog->filter->tag));
prog              576 net/sched/cls_bpf.c 	memcpy(nla_data(nla), prog->filter->tag, nla_len(nla));
prog              584 net/sched/cls_bpf.c 	struct cls_bpf_prog *prog = fh;
prog              589 net/sched/cls_bpf.c 	if (prog == NULL)
prog              592 net/sched/cls_bpf.c 	tm->tcm_handle = prog->handle;
prog              594 net/sched/cls_bpf.c 	cls_bpf_offload_update_stats(tp, prog);
prog              600 net/sched/cls_bpf.c 	if (prog->res.classid &&
prog              601 net/sched/cls_bpf.c 	    nla_put_u32(skb, TCA_BPF_CLASSID, prog->res.classid))
prog              604 net/sched/cls_bpf.c 	if (cls_bpf_is_ebpf(prog))
prog              605 net/sched/cls_bpf.c 		ret = cls_bpf_dump_ebpf_info(prog, skb);
prog              607 net/sched/cls_bpf.c 		ret = cls_bpf_dump_bpf_info(prog, skb);
prog              611 net/sched/cls_bpf.c 	if (tcf_exts_dump(skb, &prog->exts) < 0)
prog              614 net/sched/cls_bpf.c 	if (prog->exts_integrated)
prog              618 net/sched/cls_bpf.c 	if (prog->gen_flags &&
prog              619 net/sched/cls_bpf.c 	    nla_put_u32(skb, TCA_BPF_FLAGS_GEN, prog->gen_flags))
prog              624 net/sched/cls_bpf.c 	if (tcf_exts_dump_stats(skb, &prog->exts) < 0)
prog              637 net/sched/cls_bpf.c 	struct cls_bpf_prog *prog = fh;
prog              639 net/sched/cls_bpf.c 	if (prog && prog->res.classid == classid) {
prog              641 net/sched/cls_bpf.c 			__tcf_bind_filter(q, &prog->res, base);
prog              643 net/sched/cls_bpf.c 			__tcf_unbind_filter(q, &prog->res);
prog              651 net/sched/cls_bpf.c 	struct cls_bpf_prog *prog;
prog              653 net/sched/cls_bpf.c 	list_for_each_entry(prog, &head->plist, link) {
prog              656 net/sched/cls_bpf.c 		if (arg->fn(tp, prog, arg) < 0) {
prog              671 net/sched/cls_bpf.c 	struct cls_bpf_prog *prog;
prog              674 net/sched/cls_bpf.c 	list_for_each_entry(prog, &head->plist, link) {
prog              675 net/sched/cls_bpf.c 		if (tc_skip_hw(prog->gen_flags))
prog              678 net/sched/cls_bpf.c 		tc_cls_common_offload_init(&cls_bpf.common, tp, prog->gen_flags,
prog              681 net/sched/cls_bpf.c 		cls_bpf.exts = &prog->exts;
prog              682 net/sched/cls_bpf.c 		cls_bpf.prog = add ? prog->filter : NULL;
prog              683 net/sched/cls_bpf.c 		cls_bpf.oldprog = add ? NULL : prog->filter;
prog              684 net/sched/cls_bpf.c 		cls_bpf.name = prog->bpf_name;
prog              685 net/sched/cls_bpf.c 		cls_bpf.exts_integrated = prog->exts_integrated;
prog              688 net/sched/cls_bpf.c 					    &cls_bpf, cb_priv, &prog->gen_flags,
prog              689 net/sched/cls_bpf.c 					    &prog->in_hw_count);
prog              450 net/sunrpc/rpcb_clnt.c int rpcb_register(struct net *net, u32 prog, u32 vers, int prot, unsigned short port)
prog              453 net/sunrpc/rpcb_clnt.c 		.r_prog		= prog,
prog              466 net/sunrpc/rpcb_clnt.c 			prog, vers, prot, port);
prog               39 net/sunrpc/stats.c 	const struct rpc_program *prog = statp->program;
prog               54 net/sunrpc/stats.c 	for (i = 0; i < prog->nrvers; i++) {
prog               55 net/sunrpc/stats.c 		const struct rpc_version *vers = prog->version[i];
prog               85 net/sunrpc/stats.c 	const struct svc_program *prog = statp->program;
prog              103 net/sunrpc/stats.c 	for (i = 0; i < prog->pg_nvers; i++) {
prog              104 net/sunrpc/stats.c 		vers = prog->pg_vers[i];
prog              424 net/sunrpc/svc.c __svc_create(struct svc_program *prog, unsigned int bufsize, int npools,
prog              434 net/sunrpc/svc.c 	serv->sv_name      = prog->pg_name;
prog              435 net/sunrpc/svc.c 	serv->sv_program   = prog;
prog              437 net/sunrpc/svc.c 	serv->sv_stats     = prog->pg_stats;
prog              444 net/sunrpc/svc.c 	while (prog) {
prog              445 net/sunrpc/svc.c 		prog->pg_lovers = prog->pg_nvers-1;
prog              446 net/sunrpc/svc.c 		for (vers=0; vers<prog->pg_nvers ; vers++)
prog              447 net/sunrpc/svc.c 			if (prog->pg_vers[vers]) {
prog              448 net/sunrpc/svc.c 				prog->pg_hivers = vers;
prog              449 net/sunrpc/svc.c 				if (prog->pg_lovers > vers)
prog              450 net/sunrpc/svc.c 					prog->pg_lovers = vers;
prog              451 net/sunrpc/svc.c 				if (prog->pg_vers[vers]->vs_xdrsize > xdrsize)
prog              452 net/sunrpc/svc.c 					xdrsize = prog->pg_vers[vers]->vs_xdrsize;
prog              454 net/sunrpc/svc.c 		prog = prog->pg_next;
prog              489 net/sunrpc/svc.c svc_create(struct svc_program *prog, unsigned int bufsize,
prog              492 net/sunrpc/svc.c 	return __svc_create(prog, bufsize, /*npools*/1, ops);
prog              497 net/sunrpc/svc.c svc_create_pooled(struct svc_program *prog, unsigned int bufsize,
prog              503 net/sunrpc/svc.c 	serv = __svc_create(prog, bufsize, npools, ops);
prog             1290 net/sunrpc/svc.c 	u32			prog, vers;
prog             1321 net/sunrpc/svc.c 	rqstp->rq_prog = prog = svc_getnl(argv);	/* program number */
prog             1326 net/sunrpc/svc.c 		if (prog == progp->pg_prog)
prog             1464 net/sunrpc/svc.c 	dprintk("svc: unknown program %d\n", prog);
prog               76 samples/bpf/bpf_load.c static int load_and_attach(const char *event, struct bpf_insn *prog, int size)
prog              131 samples/bpf/bpf_load.c 	fd = bpf_load_program(prog_type, prog, insns_cnt, license, kern_version,
prog               80 samples/bpf/cookie_uid_helper_example.c 	struct bpf_insn prog[] = {
prog              160 samples/bpf/cookie_uid_helper_example.c 	prog_fd = bpf_load_program(BPF_PROG_TYPE_SOCKET_FILTER, prog,
prog              161 samples/bpf/cookie_uid_helper_example.c 					ARRAY_SIZE(prog), "GPL", 0,
prog              122 samples/bpf/hbm.c static int prog_load(char *prog)
prog              126 samples/bpf/hbm.c 		.file = prog,
prog              134 samples/bpf/hbm.c 	if (access(prog, O_RDONLY) < 0) {
prog              135 samples/bpf/hbm.c 		printf("Error accessing file %s: %s\n", prog, strerror(errno));
prog              150 samples/bpf/hbm.c 		printf("ERROR: load_bpf_file failed for: %s\n", prog);
prog              160 samples/bpf/hbm.c static int run_bpf_prog(char *prog, int cg_id)
prog              171 samples/bpf/hbm.c 	map_fd = prog_load(prog);
prog              437 samples/bpf/hbm.c 	char *prog = "hbm_out_kern.o";
prog              453 samples/bpf/hbm.c 			prog = "hbm_edt_kern.o";
prog              494 samples/bpf/hbm.c 		prog = argv[optind];
prog              495 samples/bpf/hbm.c 	printf("HBM prog: %s\n", prog != NULL ? prog : "NULL");
prog              497 samples/bpf/hbm.c 	return run_bpf_prog(prog, cg_id);
prog               47 samples/bpf/sock_example.c 	struct bpf_insn prog[] = {
prog               61 samples/bpf/sock_example.c 	size_t insns_cnt = sizeof(prog) / sizeof(struct bpf_insn);
prog               63 samples/bpf/sock_example.c 	prog_fd = bpf_load_program(BPF_PROG_TYPE_SOCKET_FILTER, prog, insns_cnt,
prog               44 samples/bpf/test_cgrp2_attach.c 	struct bpf_insn prog[] = {
prog               72 samples/bpf/test_cgrp2_attach.c 	size_t insns_cnt = sizeof(prog) / sizeof(struct bpf_insn);
prog               75 samples/bpf/test_cgrp2_attach.c 				prog, insns_cnt, "GPL", 0,
prog               74 samples/bpf/test_cgrp2_sock.c 	struct bpf_insn *prog;
prog               89 samples/bpf/test_cgrp2_sock.c 	p = prog = malloc(insns_cnt);
prog               90 samples/bpf/test_cgrp2_sock.c 	if (!prog) {
prog              118 samples/bpf/test_cgrp2_sock.c 	ret = bpf_load_program(BPF_PROG_TYPE_CGROUP_SOCK, prog, insns_cnt,
prog              121 samples/bpf/test_cgrp2_sock.c 	free(prog);
prog               15 samples/bpf/test_overhead_kprobe_kern.c int prog(struct pt_regs *ctx)
prog                7 samples/bpf/test_overhead_raw_tp_kern.c int prog(struct bpf_raw_tracepoint_args *ctx)
prog               19 samples/bpf/test_overhead_tp_kern.c int prog(struct task_rename *ctx)
prog               20 samples/bpf/tracex5_user.c 	struct sock_fprog prog = {
prog               24 samples/bpf/tracex5_user.c 	if (prctl(PR_SET_SECCOMP, 2, &prog))
prog               69 samples/bpf/xdp1_user.c static void usage(const char *prog)
prog               77 samples/bpf/xdp1_user.c 		prog);
prog               62 samples/bpf/xdp_fwd_user.c static void usage(const char *prog)
prog               69 samples/bpf/xdp_fwd_user.c 		prog);
prog               78 samples/bpf/xdp_fwd_user.c 	struct bpf_program *prog;
prog              124 samples/bpf/xdp_fwd_user.c 		prog = bpf_object__find_program_by_title(obj, prog_name);
prog              125 samples/bpf/xdp_fwd_user.c 		prog_fd = bpf_program__fd(prog);
prog              607 samples/bpf/xdp_redirect_cpu_user.c 	struct bpf_program *prog;
prog              617 samples/bpf/xdp_redirect_cpu_user.c 	prog = bpf_object__find_program_by_title(obj, sec_name);
prog              618 samples/bpf/xdp_redirect_cpu_user.c 	if (!prog) {
prog              623 samples/bpf/xdp_redirect_cpu_user.c 	link = bpf_program__attach_tracepoint(prog, tp_category, tp_name);
prog              680 samples/bpf/xdp_redirect_cpu_user.c 	struct bpf_program *prog;
prog              800 samples/bpf/xdp_redirect_cpu_user.c 	prog = bpf_object__find_program_by_title(obj, prog_name);
prog              801 samples/bpf/xdp_redirect_cpu_user.c 	if (!prog) {
prog              806 samples/bpf/xdp_redirect_cpu_user.c 	prog_fd = bpf_program__fd(prog);
prog               86 samples/bpf/xdp_redirect_map_user.c static void usage(const char *prog)
prog               94 samples/bpf/xdp_redirect_map_user.c 		prog);
prog              103 samples/bpf/xdp_redirect_map_user.c 	struct bpf_program *prog, *dummy_prog;
prog              156 samples/bpf/xdp_redirect_map_user.c 	prog = bpf_program__next(NULL, obj);
prog              157 samples/bpf/xdp_redirect_map_user.c 	dummy_prog = bpf_program__next(prog, obj);
prog              158 samples/bpf/xdp_redirect_map_user.c 	if (!prog || !dummy_prog) {
prog               86 samples/bpf/xdp_redirect_user.c static void usage(const char *prog)
prog               94 samples/bpf/xdp_redirect_user.c 		prog);
prog              104 samples/bpf/xdp_redirect_user.c 	struct bpf_program *prog, *dummy_prog;
prog              157 samples/bpf/xdp_redirect_user.c 	prog = bpf_program__next(NULL, obj);
prog              158 samples/bpf/xdp_redirect_user.c 	dummy_prog = bpf_program__next(prog, obj);
prog              159 samples/bpf/xdp_redirect_user.c 	if (!prog || !dummy_prog) {
prog              616 samples/bpf/xdp_router_ipv4_user.c static void usage(const char *prog)
prog              623 samples/bpf/xdp_router_ipv4_user.c 		__func__, prog);
prog              102 samples/bpf/xdp_sample_pkts_user.c static void usage(const char *prog)
prog              108 samples/bpf/xdp_sample_pkts_user.c 		__func__, prog);
prog              369 samples/bpf/xdpsock_user.c static void usage(const char *prog)
prog              390 samples/bpf/xdpsock_user.c 	fprintf(stderr, str, prog, XSK_UMEM__DEFAULT_FRAME_SIZE);
prog              145 samples/seccomp/bpf-direct.c 	struct sock_fprog prog = {
prog              156 samples/seccomp/bpf-direct.c 	if (prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog)) {
prog               81 samples/seccomp/bpf-fancy.c 	struct sock_fprog prog = {
prog               93 samples/seccomp/bpf-fancy.c 	if (prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog)) {
prog               41 samples/seccomp/dropper.c 	struct sock_fprog prog = {
prog               49 samples/seccomp/dropper.c 	if (prctl(PR_SET_SECCOMP, 2, &prog)) {
prog               96 samples/seccomp/user-trap.c 	struct sock_fprog prog = {
prog              101 samples/seccomp/user-trap.c 	return seccomp(SECCOMP_SET_MODE_FILTER, flags, &prog);
prog             2380 security/security.c int security_bpf_prog(struct bpf_prog *prog)
prog             2382 security/security.c 	return call_int_hook(bpf_prog, 0, prog);
prog             6731 security/selinux/hooks.c 	struct bpf_prog *prog;
prog             6744 security/selinux/hooks.c 		prog = file->private_data;
prog             6745 security/selinux/hooks.c 		bpfsec = prog->aux->security;
prog             6766 security/selinux/hooks.c static int selinux_bpf_prog(struct bpf_prog *prog)
prog             6771 security/selinux/hooks.c 	bpfsec = prog->aux->security;
prog              201 sound/drivers/opl3/opl3_synth.c 		err = snd_opl3_load_patch(opl3, inst.prog, inst.bank, type,
prog              240 sound/drivers/opl3/opl3_synth.c 			int prog, int bank, int type,
prog              248 sound/drivers/opl3/opl3_synth.c 	patch = snd_opl3_find_patch(opl3, prog, bank, 1);
prog              302 sound/drivers/opl3/opl3_synth.c struct fm_patch *snd_opl3_find_patch(struct snd_opl3 *opl3, int prog, int bank,
prog              306 sound/drivers/opl3/opl3_synth.c 	unsigned int key = (prog + bank) % OPL3_PATCH_HASH_SIZE;
prog              310 sound/drivers/opl3/opl3_synth.c 		if (patch->prog == prog && patch->bank == bank)
prog              319 sound/drivers/opl3/opl3_synth.c 	patch->prog = prog;
prog              734 sound/isa/wavefront/wavefront_synth.c 	wavefront_program prog;
prog              746 sound/isa/wavefront/wavefront_synth.c 			demunge_buf (progbuf, (unsigned char *) &prog,
prog              750 sound/isa/wavefront/wavefront_synth.c 				if (prog.layer[l].mute) {
prog              752 sound/isa/wavefront/wavefront_synth.c 						[prog.layer[l].patch_number] |=
prog               71 tools/bpf/bpf_exp.y prog
prog               73 tools/bpf/bpf_exp.y 	| prog line
prog             1100 tools/bpf/bpftool/prog.c 	struct bpf_program *prog = NULL, *pos;
prog             1322 tools/bpf/bpftool/prog.c 		prog = bpf_program__next(NULL, obj);
prog             1323 tools/bpf/bpftool/prog.c 		if (!prog) {
prog             1328 tools/bpf/bpftool/prog.c 		err = bpf_obj_pin(bpf_program__fd(prog), pinfile);
prog             1331 tools/bpf/bpftool/prog.c 			      bpf_program__title(prog, false));
prog              298 tools/lib/bpf/libbpf.c void bpf_program__unload(struct bpf_program *prog)
prog              302 tools/lib/bpf/libbpf.c 	if (!prog)
prog              309 tools/lib/bpf/libbpf.c 	if (prog->instances.nr > 0) {
prog              310 tools/lib/bpf/libbpf.c 		for (i = 0; i < prog->instances.nr; i++)
prog              311 tools/lib/bpf/libbpf.c 			zclose(prog->instances.fds[i]);
prog              312 tools/lib/bpf/libbpf.c 	} else if (prog->instances.nr != -1) {
prog              314 tools/lib/bpf/libbpf.c 			   prog->instances.nr);
prog              317 tools/lib/bpf/libbpf.c 	prog->instances.nr = -1;
prog              318 tools/lib/bpf/libbpf.c 	zfree(&prog->instances.fds);
prog              320 tools/lib/bpf/libbpf.c 	zfree(&prog->func_info);
prog              321 tools/lib/bpf/libbpf.c 	zfree(&prog->line_info);
prog              324 tools/lib/bpf/libbpf.c static void bpf_program__exit(struct bpf_program *prog)
prog              326 tools/lib/bpf/libbpf.c 	if (!prog)
prog              329 tools/lib/bpf/libbpf.c 	if (prog->clear_priv)
prog              330 tools/lib/bpf/libbpf.c 		prog->clear_priv(prog, prog->priv);
prog              332 tools/lib/bpf/libbpf.c 	prog->priv = NULL;
prog              333 tools/lib/bpf/libbpf.c 	prog->clear_priv = NULL;
prog              335 tools/lib/bpf/libbpf.c 	bpf_program__unload(prog);
prog              336 tools/lib/bpf/libbpf.c 	zfree(&prog->name);
prog              337 tools/lib/bpf/libbpf.c 	zfree(&prog->section_name);
prog              338 tools/lib/bpf/libbpf.c 	zfree(&prog->pin_name);
prog              339 tools/lib/bpf/libbpf.c 	zfree(&prog->insns);
prog              340 tools/lib/bpf/libbpf.c 	zfree(&prog->reloc_desc);
prog              342 tools/lib/bpf/libbpf.c 	prog->nr_reloc = 0;
prog              343 tools/lib/bpf/libbpf.c 	prog->insns_cnt = 0;
prog              344 tools/lib/bpf/libbpf.c 	prog->idx = -1;
prog              347 tools/lib/bpf/libbpf.c static char *__bpf_program__pin_name(struct bpf_program *prog)
prog              351 tools/lib/bpf/libbpf.c 	name = p = strdup(prog->section_name);
prog              360 tools/lib/bpf/libbpf.c 		  struct bpf_program *prog)
prog              370 tools/lib/bpf/libbpf.c 	memset(prog, 0, sizeof(*prog));
prog              372 tools/lib/bpf/libbpf.c 	prog->section_name = strdup(section_name);
prog              373 tools/lib/bpf/libbpf.c 	if (!prog->section_name) {
prog              379 tools/lib/bpf/libbpf.c 	prog->pin_name = __bpf_program__pin_name(prog);
prog              380 tools/lib/bpf/libbpf.c 	if (!prog->pin_name) {
prog              386 tools/lib/bpf/libbpf.c 	prog->insns = malloc(size);
prog              387 tools/lib/bpf/libbpf.c 	if (!prog->insns) {
prog              392 tools/lib/bpf/libbpf.c 	prog->insns_cnt = size / bpf_insn_sz;
prog              393 tools/lib/bpf/libbpf.c 	memcpy(prog->insns, data, size);
prog              394 tools/lib/bpf/libbpf.c 	prog->idx = idx;
prog              395 tools/lib/bpf/libbpf.c 	prog->instances.fds = NULL;
prog              396 tools/lib/bpf/libbpf.c 	prog->instances.nr = -1;
prog              397 tools/lib/bpf/libbpf.c 	prog->type = BPF_PROG_TYPE_UNSPEC;
prog              401 tools/lib/bpf/libbpf.c 	bpf_program__exit(prog);
prog              409 tools/lib/bpf/libbpf.c 	struct bpf_program prog, *progs;
prog              412 tools/lib/bpf/libbpf.c 	err = bpf_program__init(data, size, section_name, idx, &prog);
prog              416 tools/lib/bpf/libbpf.c 	prog.caps = &obj->caps;
prog              429 tools/lib/bpf/libbpf.c 		bpf_program__exit(&prog);
prog              433 tools/lib/bpf/libbpf.c 	pr_debug("found program %s\n", prog.section_name);
prog              436 tools/lib/bpf/libbpf.c 	prog.obj = obj;
prog              437 tools/lib/bpf/libbpf.c 	progs[nr_progs] = prog;
prog              445 tools/lib/bpf/libbpf.c 	struct bpf_program *prog;
prog              451 tools/lib/bpf/libbpf.c 		prog = &obj->programs[pi];
prog              459 tools/lib/bpf/libbpf.c 			if (sym.st_shndx != prog->idx)
prog              469 tools/lib/bpf/libbpf.c 					   prog->section_name);
prog              474 tools/lib/bpf/libbpf.c 		if (!name && prog->idx == obj->efile.text_shndx)
prog              479 tools/lib/bpf/libbpf.c 				   prog->section_name);
prog              483 tools/lib/bpf/libbpf.c 		prog->name = strdup(name);
prog              484 tools/lib/bpf/libbpf.c 		if (!prog->name) {
prog             1665 tools/lib/bpf/libbpf.c 	struct bpf_program *prog;
prog             1669 tools/lib/bpf/libbpf.c 		prog = &obj->programs[i];
prog             1670 tools/lib/bpf/libbpf.c 		if (prog->idx == idx)
prog             1671 tools/lib/bpf/libbpf.c 			return prog;
prog             1726 tools/lib/bpf/libbpf.c bpf_program__collect_reloc(struct bpf_program *prog, GElf_Shdr *shdr,
prog             1734 tools/lib/bpf/libbpf.c 	pr_debug("collecting relocating info for: '%s'\n", prog->section_name);
prog             1737 tools/lib/bpf/libbpf.c 	prog->reloc_desc = malloc(sizeof(*prog->reloc_desc) * nrels);
prog             1738 tools/lib/bpf/libbpf.c 	if (!prog->reloc_desc) {
prog             1742 tools/lib/bpf/libbpf.c 	prog->nr_reloc = nrels;
prog             1745 tools/lib/bpf/libbpf.c 		struct bpf_insn *insns = prog->insns;
prog             1785 tools/lib/bpf/libbpf.c 				   prog->section_name, shdr_idx);
prog             1794 tools/lib/bpf/libbpf.c 			prog->reloc_desc[i].type = RELO_CALL;
prog             1795 tools/lib/bpf/libbpf.c 			prog->reloc_desc[i].insn_idx = insn_idx;
prog             1796 tools/lib/bpf/libbpf.c 			prog->reloc_desc[i].text_off = sym.st_value;
prog             1844 tools/lib/bpf/libbpf.c 			prog->reloc_desc[i].type = type != LIBBPF_MAP_UNSPEC ?
prog             1846 tools/lib/bpf/libbpf.c 			prog->reloc_desc[i].insn_idx = insn_idx;
prog             1847 tools/lib/bpf/libbpf.c 			prog->reloc_desc[i].map_idx = map_idx;
prog             2237 tools/lib/bpf/libbpf.c check_btf_ext_reloc_err(struct bpf_program *prog, int err,
prog             2242 tools/lib/bpf/libbpf.c 			   info_name, prog->section_name);
prog             2254 tools/lib/bpf/libbpf.c 			   info_name, prog->section_name);
prog             2260 tools/lib/bpf/libbpf.c 		   info_name, prog->section_name, info_name);
prog             2265 tools/lib/bpf/libbpf.c bpf_program_reloc_btf_ext(struct bpf_program *prog, struct bpf_object *obj,
prog             2270 tools/lib/bpf/libbpf.c 	if (!insn_offset || prog->func_info) {
prog             2279 tools/lib/bpf/libbpf.c 					       &prog->func_info,
prog             2280 tools/lib/bpf/libbpf.c 					       &prog->func_info_cnt);
prog             2282 tools/lib/bpf/libbpf.c 			return check_btf_ext_reloc_err(prog, err,
prog             2283 tools/lib/bpf/libbpf.c 						       prog->func_info,
prog             2286 tools/lib/bpf/libbpf.c 		prog->func_info_rec_size = btf_ext__func_info_rec_size(obj->btf_ext);
prog             2289 tools/lib/bpf/libbpf.c 	if (!insn_offset || prog->line_info) {
prog             2292 tools/lib/bpf/libbpf.c 					       &prog->line_info,
prog             2293 tools/lib/bpf/libbpf.c 					       &prog->line_info_cnt);
prog             2295 tools/lib/bpf/libbpf.c 			return check_btf_ext_reloc_err(prog, err,
prog             2296 tools/lib/bpf/libbpf.c 						       prog->line_info,
prog             2299 tools/lib/bpf/libbpf.c 		prog->line_info_rec_size = btf_ext__line_info_rec_size(obj->btf_ext);
prog             2791 tools/lib/bpf/libbpf.c static int bpf_core_reloc_insn(struct bpf_program *prog, int insn_off,
prog             2802 tools/lib/bpf/libbpf.c 	insn = &prog->insns[insn_idx];
prog             2812 tools/lib/bpf/libbpf.c 			 bpf_program__title(prog, false),
prog             2816 tools/lib/bpf/libbpf.c 			   bpf_program__title(prog, false),
prog             3006 tools/lib/bpf/libbpf.c static int bpf_core_reloc_offset(struct bpf_program *prog,
prog             3013 tools/lib/bpf/libbpf.c 	const char *prog_name = bpf_program__title(prog, false);
prog             3104 tools/lib/bpf/libbpf.c 	err = bpf_core_reloc_insn(prog, relo->insn_off,
prog             3123 tools/lib/bpf/libbpf.c 	struct bpf_program *prog;
prog             3151 tools/lib/bpf/libbpf.c 		prog = bpf_object__find_program_by_title(obj, sec_name);
prog             3152 tools/lib/bpf/libbpf.c 		if (!prog) {
prog             3163 tools/lib/bpf/libbpf.c 			err = bpf_core_reloc_offset(prog, rec, i, obj->btf,
prog             3196 tools/lib/bpf/libbpf.c bpf_program__reloc_text(struct bpf_program *prog, struct bpf_object *obj,
prog             3207 tools/lib/bpf/libbpf.c 	if (prog->idx == obj->efile.text_shndx) {
prog             3213 tools/lib/bpf/libbpf.c 	if (prog->main_prog_cnt == 0) {
prog             3219 tools/lib/bpf/libbpf.c 		new_cnt = prog->insns_cnt + text->insns_cnt;
prog             3220 tools/lib/bpf/libbpf.c 		new_insn = reallocarray(prog->insns, new_cnt, sizeof(*insn));
prog             3225 tools/lib/bpf/libbpf.c 		prog->insns = new_insn;
prog             3228 tools/lib/bpf/libbpf.c 			err = bpf_program_reloc_btf_ext(prog, obj,
prog             3230 tools/lib/bpf/libbpf.c 							prog->insns_cnt);
prog             3235 tools/lib/bpf/libbpf.c 		memcpy(new_insn + prog->insns_cnt, text->insns,
prog             3237 tools/lib/bpf/libbpf.c 		prog->main_prog_cnt = prog->insns_cnt;
prog             3238 tools/lib/bpf/libbpf.c 		prog->insns_cnt = new_cnt;
prog             3241 tools/lib/bpf/libbpf.c 			 prog->section_name);
prog             3243 tools/lib/bpf/libbpf.c 	insn = &prog->insns[relo->insn_idx];
prog             3244 tools/lib/bpf/libbpf.c 	insn->imm += prog->main_prog_cnt - relo->insn_idx;
prog             3249 tools/lib/bpf/libbpf.c bpf_program__relocate(struct bpf_program *prog, struct bpf_object *obj)
prog             3253 tools/lib/bpf/libbpf.c 	if (!prog)
prog             3257 tools/lib/bpf/libbpf.c 		err = bpf_program_reloc_btf_ext(prog, obj,
prog             3258 tools/lib/bpf/libbpf.c 						prog->section_name, 0);
prog             3263 tools/lib/bpf/libbpf.c 	if (!prog->reloc_desc)
prog             3266 tools/lib/bpf/libbpf.c 	for (i = 0; i < prog->nr_reloc; i++) {
prog             3267 tools/lib/bpf/libbpf.c 		if (prog->reloc_desc[i].type == RELO_LD64 ||
prog             3268 tools/lib/bpf/libbpf.c 		    prog->reloc_desc[i].type == RELO_DATA) {
prog             3269 tools/lib/bpf/libbpf.c 			bool relo_data = prog->reloc_desc[i].type == RELO_DATA;
prog             3270 tools/lib/bpf/libbpf.c 			struct bpf_insn *insns = prog->insns;
prog             3273 tools/lib/bpf/libbpf.c 			insn_idx = prog->reloc_desc[i].insn_idx;
prog             3274 tools/lib/bpf/libbpf.c 			map_idx = prog->reloc_desc[i].map_idx;
prog             3276 tools/lib/bpf/libbpf.c 			if (insn_idx + 1 >= (int)prog->insns_cnt) {
prog             3278 tools/lib/bpf/libbpf.c 					   prog->section_name);
prog             3289 tools/lib/bpf/libbpf.c 		} else if (prog->reloc_desc[i].type == RELO_CALL) {
prog             3290 tools/lib/bpf/libbpf.c 			err = bpf_program__reloc_text(prog, obj,
prog             3291 tools/lib/bpf/libbpf.c 						      &prog->reloc_desc[i]);
prog             3297 tools/lib/bpf/libbpf.c 	zfree(&prog->reloc_desc);
prog             3298 tools/lib/bpf/libbpf.c 	prog->nr_reloc = 0;
prog             3305 tools/lib/bpf/libbpf.c 	struct bpf_program *prog;
prog             3318 tools/lib/bpf/libbpf.c 		prog = &obj->programs[i];
prog             3320 tools/lib/bpf/libbpf.c 		err = bpf_program__relocate(prog, obj);
prog             3323 tools/lib/bpf/libbpf.c 				   prog->section_name);
prog             3343 tools/lib/bpf/libbpf.c 		struct bpf_program *prog;
prog             3350 tools/lib/bpf/libbpf.c 		prog = bpf_object__find_prog_by_idx(obj, idx);
prog             3351 tools/lib/bpf/libbpf.c 		if (!prog) {
prog             3356 tools/lib/bpf/libbpf.c 		err = bpf_program__collect_reloc(prog, shdr, data, obj);
prog             3364 tools/lib/bpf/libbpf.c load_program(struct bpf_program *prog, struct bpf_insn *insns, int insns_cnt,
prog             3377 tools/lib/bpf/libbpf.c 	load_attr.prog_type = prog->type;
prog             3378 tools/lib/bpf/libbpf.c 	load_attr.expected_attach_type = prog->expected_attach_type;
prog             3379 tools/lib/bpf/libbpf.c 	if (prog->caps->name)
prog             3380 tools/lib/bpf/libbpf.c 		load_attr.name = prog->name;
prog             3385 tools/lib/bpf/libbpf.c 	load_attr.prog_ifindex = prog->prog_ifindex;
prog             3387 tools/lib/bpf/libbpf.c 	if (prog->obj->btf_ext)
prog             3388 tools/lib/bpf/libbpf.c 		btf_fd = bpf_object__btf_fd(prog->obj);
prog             3392 tools/lib/bpf/libbpf.c 	load_attr.func_info = prog->func_info;
prog             3393 tools/lib/bpf/libbpf.c 	load_attr.func_info_rec_size = prog->func_info_rec_size;
prog             3394 tools/lib/bpf/libbpf.c 	load_attr.func_info_cnt = prog->func_info_cnt;
prog             3395 tools/lib/bpf/libbpf.c 	load_attr.line_info = prog->line_info;
prog             3396 tools/lib/bpf/libbpf.c 	load_attr.line_info_rec_size = prog->line_info_rec_size;
prog             3397 tools/lib/bpf/libbpf.c 	load_attr.line_info_cnt = prog->line_info_cnt;
prog             3398 tools/lib/bpf/libbpf.c 	load_attr.log_level = prog->log_level;
prog             3399 tools/lib/bpf/libbpf.c 	load_attr.prog_flags = prog->prog_flags;
prog             3459 tools/lib/bpf/libbpf.c bpf_program__load(struct bpf_program *prog,
prog             3464 tools/lib/bpf/libbpf.c 	if (prog->instances.nr < 0 || !prog->instances.fds) {
prog             3465 tools/lib/bpf/libbpf.c 		if (prog->preprocessor) {
prog             3467 tools/lib/bpf/libbpf.c 				   prog->section_name);
prog             3471 tools/lib/bpf/libbpf.c 		prog->instances.fds = malloc(sizeof(int));
prog             3472 tools/lib/bpf/libbpf.c 		if (!prog->instances.fds) {
prog             3476 tools/lib/bpf/libbpf.c 		prog->instances.nr = 1;
prog             3477 tools/lib/bpf/libbpf.c 		prog->instances.fds[0] = -1;
prog             3480 tools/lib/bpf/libbpf.c 	if (!prog->preprocessor) {
prog             3481 tools/lib/bpf/libbpf.c 		if (prog->instances.nr != 1) {
prog             3483 tools/lib/bpf/libbpf.c 				   prog->section_name, prog->instances.nr);
prog             3485 tools/lib/bpf/libbpf.c 		err = load_program(prog, prog->insns, prog->insns_cnt,
prog             3488 tools/lib/bpf/libbpf.c 			prog->instances.fds[0] = fd;
prog             3492 tools/lib/bpf/libbpf.c 	for (i = 0; i < prog->instances.nr; i++) {
prog             3494 tools/lib/bpf/libbpf.c 		bpf_program_prep_t preprocessor = prog->preprocessor;
prog             3497 tools/lib/bpf/libbpf.c 		err = preprocessor(prog, i, prog->insns,
prog             3498 tools/lib/bpf/libbpf.c 				   prog->insns_cnt, &result);
prog             3501 tools/lib/bpf/libbpf.c 				   i, prog->section_name);
prog             3507 tools/lib/bpf/libbpf.c 				 i, prog->section_name);
prog             3508 tools/lib/bpf/libbpf.c 			prog->instances.fds[i] = -1;
prog             3514 tools/lib/bpf/libbpf.c 		err = load_program(prog, result.new_insn_ptr,
prog             3520 tools/lib/bpf/libbpf.c 					i, prog->section_name);
prog             3526 tools/lib/bpf/libbpf.c 		prog->instances.fds[i] = fd;
prog             3531 tools/lib/bpf/libbpf.c 			   prog->section_name);
prog             3532 tools/lib/bpf/libbpf.c 	zfree(&prog->insns);
prog             3533 tools/lib/bpf/libbpf.c 	prog->insns_cnt = 0;
prog             3537 tools/lib/bpf/libbpf.c static bool bpf_program__is_function_storage(const struct bpf_program *prog,
prog             3540 tools/lib/bpf/libbpf.c 	return prog->idx == obj->efile.text_shndx && obj->has_pseudo_calls;
prog             3771 tools/lib/bpf/libbpf.c int bpf_program__pin_instance(struct bpf_program *prog, const char *path,
prog             3781 tools/lib/bpf/libbpf.c 	if (prog == NULL) {
prog             3786 tools/lib/bpf/libbpf.c 	if (instance < 0 || instance >= prog->instances.nr) {
prog             3788 tools/lib/bpf/libbpf.c 			   instance, prog->section_name, prog->instances.nr);
prog             3792 tools/lib/bpf/libbpf.c 	if (bpf_obj_pin(prog->instances.fds[instance], path)) {
prog             3802 tools/lib/bpf/libbpf.c int bpf_program__unpin_instance(struct bpf_program *prog, const char *path,
prog             3811 tools/lib/bpf/libbpf.c 	if (prog == NULL) {
prog             3816 tools/lib/bpf/libbpf.c 	if (instance < 0 || instance >= prog->instances.nr) {
prog             3818 tools/lib/bpf/libbpf.c 			   instance, prog->section_name, prog->instances.nr);
prog             3845 tools/lib/bpf/libbpf.c int bpf_program__pin(struct bpf_program *prog, const char *path)
prog             3853 tools/lib/bpf/libbpf.c 	if (prog == NULL) {
prog             3858 tools/lib/bpf/libbpf.c 	if (prog->instances.nr <= 0) {
prog             3860 tools/lib/bpf/libbpf.c 			   prog->section_name);
prog             3864 tools/lib/bpf/libbpf.c 	if (prog->instances.nr == 1) {
prog             3866 tools/lib/bpf/libbpf.c 		return bpf_program__pin_instance(prog, path, 0);
prog             3873 tools/lib/bpf/libbpf.c 	for (i = 0; i < prog->instances.nr; i++) {
prog             3886 tools/lib/bpf/libbpf.c 		err = bpf_program__pin_instance(prog, buf, i);
prog             3904 tools/lib/bpf/libbpf.c 		bpf_program__unpin_instance(prog, buf, i);
prog             3912 tools/lib/bpf/libbpf.c int bpf_program__unpin(struct bpf_program *prog, const char *path)
prog             3920 tools/lib/bpf/libbpf.c 	if (prog == NULL) {
prog             3925 tools/lib/bpf/libbpf.c 	if (prog->instances.nr <= 0) {
prog             3927 tools/lib/bpf/libbpf.c 			   prog->section_name);
prog             3931 tools/lib/bpf/libbpf.c 	if (prog->instances.nr == 1) {
prog             3933 tools/lib/bpf/libbpf.c 		return bpf_program__unpin_instance(prog, path, 0);
prog             3936 tools/lib/bpf/libbpf.c 	for (i = 0; i < prog->instances.nr; i++) {
prog             3946 tools/lib/bpf/libbpf.c 		err = bpf_program__unpin_instance(prog, buf, i);
prog             4089 tools/lib/bpf/libbpf.c 	struct bpf_program *prog;
prog             4104 tools/lib/bpf/libbpf.c 	bpf_object__for_each_program(prog, obj) {
prog             4109 tools/lib/bpf/libbpf.c 			       prog->pin_name);
prog             4118 tools/lib/bpf/libbpf.c 		err = bpf_program__pin(prog, buf);
prog             4126 tools/lib/bpf/libbpf.c 	while ((prog = bpf_program__prev(prog, obj))) {
prog             4131 tools/lib/bpf/libbpf.c 			       prog->pin_name);
prog             4137 tools/lib/bpf/libbpf.c 		bpf_program__unpin(prog, buf);
prog             4145 tools/lib/bpf/libbpf.c 	struct bpf_program *prog;
prog             4151 tools/lib/bpf/libbpf.c 	bpf_object__for_each_program(prog, obj) {
prog             4156 tools/lib/bpf/libbpf.c 			       prog->pin_name);
prog             4162 tools/lib/bpf/libbpf.c 		err = bpf_program__unpin(prog, buf);
prog             4310 tools/lib/bpf/libbpf.c 	struct bpf_program *prog = prev;
prog             4313 tools/lib/bpf/libbpf.c 		prog = __bpf_program__iter(prog, obj, true);
prog             4314 tools/lib/bpf/libbpf.c 	} while (prog && bpf_program__is_function_storage(prog, obj));
prog             4316 tools/lib/bpf/libbpf.c 	return prog;
prog             4322 tools/lib/bpf/libbpf.c 	struct bpf_program *prog = next;
prog             4325 tools/lib/bpf/libbpf.c 		prog = __bpf_program__iter(prog, obj, false);
prog             4326 tools/lib/bpf/libbpf.c 	} while (prog && bpf_program__is_function_storage(prog, obj));
prog             4328 tools/lib/bpf/libbpf.c 	return prog;
prog             4331 tools/lib/bpf/libbpf.c int bpf_program__set_priv(struct bpf_program *prog, void *priv,
prog             4334 tools/lib/bpf/libbpf.c 	if (prog->priv && prog->clear_priv)
prog             4335 tools/lib/bpf/libbpf.c 		prog->clear_priv(prog, prog->priv);
prog             4337 tools/lib/bpf/libbpf.c 	prog->priv = priv;
prog             4338 tools/lib/bpf/libbpf.c 	prog->clear_priv = clear_priv;
prog             4342 tools/lib/bpf/libbpf.c void *bpf_program__priv(const struct bpf_program *prog)
prog             4344 tools/lib/bpf/libbpf.c 	return prog ? prog->priv : ERR_PTR(-EINVAL);
prog             4347 tools/lib/bpf/libbpf.c void bpf_program__set_ifindex(struct bpf_program *prog, __u32 ifindex)
prog             4349 tools/lib/bpf/libbpf.c 	prog->prog_ifindex = ifindex;
prog             4352 tools/lib/bpf/libbpf.c const char *bpf_program__title(const struct bpf_program *prog, bool needs_copy)
prog             4356 tools/lib/bpf/libbpf.c 	title = prog->section_name;
prog             4368 tools/lib/bpf/libbpf.c int bpf_program__fd(const struct bpf_program *prog)
prog             4370 tools/lib/bpf/libbpf.c 	return bpf_program__nth_fd(prog, 0);
prog             4373 tools/lib/bpf/libbpf.c int bpf_program__set_prep(struct bpf_program *prog, int nr_instances,
prog             4381 tools/lib/bpf/libbpf.c 	if (prog->instances.nr > 0 || prog->instances.fds) {
prog             4395 tools/lib/bpf/libbpf.c 	prog->instances.nr = nr_instances;
prog             4396 tools/lib/bpf/libbpf.c 	prog->instances.fds = instances_fds;
prog             4397 tools/lib/bpf/libbpf.c 	prog->preprocessor = prep;
prog             4401 tools/lib/bpf/libbpf.c int bpf_program__nth_fd(const struct bpf_program *prog, int n)
prog             4405 tools/lib/bpf/libbpf.c 	if (!prog)
prog             4408 tools/lib/bpf/libbpf.c 	if (n >= prog->instances.nr || n < 0) {
prog             4410 tools/lib/bpf/libbpf.c 			   n, prog->section_name, prog->instances.nr);
prog             4414 tools/lib/bpf/libbpf.c 	fd = prog->instances.fds[n];
prog             4417 tools/lib/bpf/libbpf.c 			   n, prog->section_name);
prog             4424 tools/lib/bpf/libbpf.c void bpf_program__set_type(struct bpf_program *prog, enum bpf_prog_type type)
prog             4426 tools/lib/bpf/libbpf.c 	prog->type = type;
prog             4429 tools/lib/bpf/libbpf.c static bool bpf_program__is_type(const struct bpf_program *prog,
prog             4432 tools/lib/bpf/libbpf.c 	return prog ? (prog->type == type) : false;
prog             4436 tools/lib/bpf/libbpf.c int bpf_program__set_##NAME(struct bpf_program *prog)		\
prog             4438 tools/lib/bpf/libbpf.c 	if (!prog)						\
prog             4440 tools/lib/bpf/libbpf.c 	bpf_program__set_type(prog, TYPE);			\
prog             4444 tools/lib/bpf/libbpf.c bool bpf_program__is_##NAME(const struct bpf_program *prog)	\
prog             4446 tools/lib/bpf/libbpf.c 	return bpf_program__is_type(prog, TYPE);		\
prog             4458 tools/lib/bpf/libbpf.c void bpf_program__set_expected_attach_type(struct bpf_program *prog,
prog             4461 tools/lib/bpf/libbpf.c 	prog->expected_attach_type = type;
prog             4642 tools/lib/bpf/libbpf.c bpf_program__identify_section(struct bpf_program *prog,
prog             4646 tools/lib/bpf/libbpf.c 	return libbpf_prog_type_by_name(prog->section_name, prog_type,
prog             4816 tools/lib/bpf/libbpf.c 	struct bpf_program *prog, *first_prog = NULL;
prog             4835 tools/lib/bpf/libbpf.c 	bpf_object__for_each_program(prog, obj) {
prog             4841 tools/lib/bpf/libbpf.c 		prog->prog_ifindex = attr->ifindex;
prog             4844 tools/lib/bpf/libbpf.c 			err = bpf_program__identify_section(prog, &prog_type,
prog             4852 tools/lib/bpf/libbpf.c 		bpf_program__set_type(prog, prog_type);
prog             4853 tools/lib/bpf/libbpf.c 		bpf_program__set_expected_attach_type(prog,
prog             4856 tools/lib/bpf/libbpf.c 		prog->log_level = attr->log_level;
prog             4857 tools/lib/bpf/libbpf.c 		prog->prog_flags = attr->prog_flags;
prog             4859 tools/lib/bpf/libbpf.c 			first_prog = prog;
prog             4919 tools/lib/bpf/libbpf.c struct bpf_link *bpf_program__attach_perf_event(struct bpf_program *prog,
prog             4928 tools/lib/bpf/libbpf.c 			   bpf_program__title(prog, false), pfd);
prog             4931 tools/lib/bpf/libbpf.c 	prog_fd = bpf_program__fd(prog);
prog             4934 tools/lib/bpf/libbpf.c 			   bpf_program__title(prog, false));
prog             4948 tools/lib/bpf/libbpf.c 			   bpf_program__title(prog, false), pfd,
prog             4956 tools/lib/bpf/libbpf.c 			   bpf_program__title(prog, false), pfd,
prog             5069 tools/lib/bpf/libbpf.c struct bpf_link *bpf_program__attach_kprobe(struct bpf_program *prog,
prog             5081 tools/lib/bpf/libbpf.c 			   bpf_program__title(prog, false),
prog             5086 tools/lib/bpf/libbpf.c 	link = bpf_program__attach_perf_event(prog, pfd);
prog             5091 tools/lib/bpf/libbpf.c 			   bpf_program__title(prog, false),
prog             5099 tools/lib/bpf/libbpf.c struct bpf_link *bpf_program__attach_uprobe(struct bpf_program *prog,
prog             5112 tools/lib/bpf/libbpf.c 			   bpf_program__title(prog, false),
prog             5118 tools/lib/bpf/libbpf.c 	link = bpf_program__attach_perf_event(prog, pfd);
prog             5123 tools/lib/bpf/libbpf.c 			   bpf_program__title(prog, false),
prog             5182 tools/lib/bpf/libbpf.c struct bpf_link *bpf_program__attach_tracepoint(struct bpf_program *prog,
prog             5193 tools/lib/bpf/libbpf.c 			   bpf_program__title(prog, false),
prog             5198 tools/lib/bpf/libbpf.c 	link = bpf_program__attach_perf_event(prog, pfd);
prog             5203 tools/lib/bpf/libbpf.c 			   bpf_program__title(prog, false),
prog             5218 tools/lib/bpf/libbpf.c struct bpf_link *bpf_program__attach_raw_tracepoint(struct bpf_program *prog,
prog             5225 tools/lib/bpf/libbpf.c 	prog_fd = bpf_program__fd(prog);
prog             5228 tools/lib/bpf/libbpf.c 			   bpf_program__title(prog, false));
prog             5242 tools/lib/bpf/libbpf.c 			   bpf_program__title(prog, false), tp_name,
prog              123 tools/lib/bpf/libbpf.h LIBBPF_API void *bpf_object__priv(const struct bpf_object *prog);
prog              133 tools/lib/bpf/libbpf.h LIBBPF_API struct bpf_program *bpf_program__next(struct bpf_program *prog,
prog              141 tools/lib/bpf/libbpf.h LIBBPF_API struct bpf_program *bpf_program__prev(struct bpf_program *prog,
prog              146 tools/lib/bpf/libbpf.h LIBBPF_API int bpf_program__set_priv(struct bpf_program *prog, void *priv,
prog              149 tools/lib/bpf/libbpf.h LIBBPF_API void *bpf_program__priv(const struct bpf_program *prog);
prog              150 tools/lib/bpf/libbpf.h LIBBPF_API void bpf_program__set_ifindex(struct bpf_program *prog,
prog              153 tools/lib/bpf/libbpf.h LIBBPF_API const char *bpf_program__title(const struct bpf_program *prog,
prog              156 tools/lib/bpf/libbpf.h LIBBPF_API int bpf_program__load(struct bpf_program *prog, char *license,
prog              158 tools/lib/bpf/libbpf.h LIBBPF_API int bpf_program__fd(const struct bpf_program *prog);
prog              159 tools/lib/bpf/libbpf.h LIBBPF_API int bpf_program__pin_instance(struct bpf_program *prog,
prog              162 tools/lib/bpf/libbpf.h LIBBPF_API int bpf_program__unpin_instance(struct bpf_program *prog,
prog              165 tools/lib/bpf/libbpf.h LIBBPF_API int bpf_program__pin(struct bpf_program *prog, const char *path);
prog              166 tools/lib/bpf/libbpf.h LIBBPF_API int bpf_program__unpin(struct bpf_program *prog, const char *path);
prog              167 tools/lib/bpf/libbpf.h LIBBPF_API void bpf_program__unload(struct bpf_program *prog);
prog              174 tools/lib/bpf/libbpf.h bpf_program__attach_perf_event(struct bpf_program *prog, int pfd);
prog              176 tools/lib/bpf/libbpf.h bpf_program__attach_kprobe(struct bpf_program *prog, bool retprobe,
prog              179 tools/lib/bpf/libbpf.h bpf_program__attach_uprobe(struct bpf_program *prog, bool retprobe,
prog              183 tools/lib/bpf/libbpf.h bpf_program__attach_tracepoint(struct bpf_program *prog,
prog              187 tools/lib/bpf/libbpf.h bpf_program__attach_raw_tracepoint(struct bpf_program *prog,
prog              245 tools/lib/bpf/libbpf.h typedef int (*bpf_program_prep_t)(struct bpf_program *prog, int n,
prog              249 tools/lib/bpf/libbpf.h LIBBPF_API int bpf_program__set_prep(struct bpf_program *prog, int nr_instance,
prog              252 tools/lib/bpf/libbpf.h LIBBPF_API int bpf_program__nth_fd(const struct bpf_program *prog, int n);
prog              257 tools/lib/bpf/libbpf.h LIBBPF_API int bpf_program__set_socket_filter(struct bpf_program *prog);
prog              258 tools/lib/bpf/libbpf.h LIBBPF_API int bpf_program__set_tracepoint(struct bpf_program *prog);
prog              259 tools/lib/bpf/libbpf.h LIBBPF_API int bpf_program__set_raw_tracepoint(struct bpf_program *prog);
prog              260 tools/lib/bpf/libbpf.h LIBBPF_API int bpf_program__set_kprobe(struct bpf_program *prog);
prog              261 tools/lib/bpf/libbpf.h LIBBPF_API int bpf_program__set_sched_cls(struct bpf_program *prog);
prog              262 tools/lib/bpf/libbpf.h LIBBPF_API int bpf_program__set_sched_act(struct bpf_program *prog);
prog              263 tools/lib/bpf/libbpf.h LIBBPF_API int bpf_program__set_xdp(struct bpf_program *prog);
prog              264 tools/lib/bpf/libbpf.h LIBBPF_API int bpf_program__set_perf_event(struct bpf_program *prog);
prog              265 tools/lib/bpf/libbpf.h LIBBPF_API void bpf_program__set_type(struct bpf_program *prog,
prog              268 tools/lib/bpf/libbpf.h bpf_program__set_expected_attach_type(struct bpf_program *prog,
prog              271 tools/lib/bpf/libbpf.h LIBBPF_API bool bpf_program__is_socket_filter(const struct bpf_program *prog);
prog              272 tools/lib/bpf/libbpf.h LIBBPF_API bool bpf_program__is_tracepoint(const struct bpf_program *prog);
prog              273 tools/lib/bpf/libbpf.h LIBBPF_API bool bpf_program__is_raw_tracepoint(const struct bpf_program *prog);
prog              274 tools/lib/bpf/libbpf.h LIBBPF_API bool bpf_program__is_kprobe(const struct bpf_program *prog);
prog              275 tools/lib/bpf/libbpf.h LIBBPF_API bool bpf_program__is_sched_cls(const struct bpf_program *prog);
prog              276 tools/lib/bpf/libbpf.h LIBBPF_API bool bpf_program__is_sched_act(const struct bpf_program *prog);
prog              277 tools/lib/bpf/libbpf.h LIBBPF_API bool bpf_program__is_xdp(const struct bpf_program *prog);
prog              278 tools/lib/bpf/libbpf.h LIBBPF_API bool bpf_program__is_perf_event(const struct bpf_program *prog);
prog              352 tools/lib/bpf/xsk.c 	struct bpf_insn prog[] = {
prog              373 tools/lib/bpf/xsk.c 	size_t insns_cnt = sizeof(prog) / sizeof(struct bpf_insn);
prog              375 tools/lib/bpf/xsk.c 	prog_fd = bpf_load_program(BPF_PROG_TYPE_XDP, prog, insns_cnt,
prog             2721 tools/perf/builtin-c2c.c 	struct ui_progress prog;
prog             2851 tools/perf/builtin-c2c.c 	ui_progress__init(&prog, c2c.hists.hists.nr_entries, "Sorting...");
prog             2854 tools/perf/builtin-c2c.c 	hists__output_resort_cb(&c2c.hists.hists, &prog, resort_hitm_cb);
prog              608 tools/perf/builtin-report.c 	struct ui_progress prog;
prog              612 tools/perf/builtin-report.c 	ui_progress__init(&prog, rep->nr_entries, "Merging related events...");
prog              622 tools/perf/builtin-report.c 		ret = hists__collapse_resort(hists, &prog);
prog              657 tools/perf/builtin-report.c 	struct ui_progress prog;
prog              660 tools/perf/builtin-report.c 	ui_progress__init(&prog, rep->nr_entries, "Sorting events for output...");
prog              663 tools/perf/builtin-report.c 		perf_evsel__output_resort_cb(pos, &prog,
prog             2800 tools/perf/builtin-trace.c 	struct bpf_program *prog;
prog             2805 tools/perf/builtin-trace.c 		prog = trace__find_bpf_program_by_title(trace, default_prog_name);
prog             2806 tools/perf/builtin-trace.c 		if (prog != NULL)
prog             2810 tools/perf/builtin-trace.c 			prog = trace__find_bpf_program_by_title(trace, default_prog_name);
prog             2811 tools/perf/builtin-trace.c 			if (prog != NULL)
prog             2817 tools/perf/builtin-trace.c 	prog = trace__find_bpf_program_by_title(trace, prog_name);
prog             2819 tools/perf/builtin-trace.c 	if (prog != NULL) {
prog             2821 tools/perf/builtin-trace.c 		return prog;
prog               54 tools/perf/pmu-events/jevents.c char *prog;
prog              222 tools/perf/pmu-events/jevents.c 		pr_err("%s: Unknown MSR in event file %.*s\n", prog,
prog              278 tools/perf/pmu-events/jevents.c 		pr_info("%s: asprintf() error %s\n", prog);
prog              301 tools/perf/pmu-events/jevents.c 		pr_info("%s: strdup() error %s for file %s\n", prog,
prog              500 tools/perf/pmu-events/jevents.c 					prog, arch_std, fn);
prog              707 tools/perf/pmu-events/jevents.c 		pr_info("%s: asprintf() error %s for file %s\n", prog,
prog              722 tools/perf/pmu-events/jevents.c 					prog, c, basename(fname));
prog              763 tools/perf/pmu-events/jevents.c 	pr_info("%s: Processing mapfile %s\n", prog, fpath);
prog              771 tools/perf/pmu-events/jevents.c 		pr_info("%s: Error %s opening %s\n", prog, strerror(errno),
prog              799 tools/perf/pmu-events/jevents.c 					prog, fpath, line_num);
prog              845 tools/perf/pmu-events/jevents.c 	pr_info("%s: Creating empty pmu_events_map[] table\n", prog);
prog              987 tools/perf/pmu-events/jevents.c 			pr_info("%s: Error determining table name for %s\n", prog,
prog             1008 tools/perf/pmu-events/jevents.c 		pr_info("%s: Ignoring file %s\n", prog, fpath);
prog             1018 tools/perf/pmu-events/jevents.c 			pr_info("%s: Ignoring file without .json suffix %s\n", prog,
prog             1080 tools/perf/pmu-events/jevents.c 	prog = basename(argv[0]);
prog             1082 tools/perf/pmu-events/jevents.c 		pr_err("Usage: %s <arch> <starting_dir> <output_file>\n", prog);
prog             1096 tools/perf/pmu-events/jevents.c 				prog, output_file, strerror(errno));
prog             1104 tools/perf/pmu-events/jevents.c 		pr_info("%s: Arch %s has no PMU event lists\n", prog, arch);
prog             1126 tools/perf/pmu-events/jevents.c 			prog, ldirname);
prog             1139 tools/perf/pmu-events/jevents.c 		pr_info("%s: Error walking file tree %s\n", prog, ldirname);
prog             1154 tools/perf/pmu-events/jevents.c 		pr_info("%s: No CPU->JSON mapping?\n", prog);
prog             1159 tools/perf/pmu-events/jevents.c 		pr_info("%s: Error processing mapfile %s\n", prog, mapfile);
prog              122 tools/perf/util/bpf-loader.c clear_prog_priv(struct bpf_program *prog __maybe_unused,
prog              319 tools/perf/util/bpf-loader.c config_bpf_program(struct bpf_program *prog)
prog              331 tools/perf/util/bpf-loader.c 	config_str = bpf_program__title(prog, false);
prog              381 tools/perf/util/bpf-loader.c 	err = bpf_program__set_priv(prog, priv, clear_prog_priv);
prog              418 tools/perf/util/bpf-loader.c preproc_gen_prologue(struct bpf_program *prog, int n,
prog              422 tools/perf/util/bpf-loader.c 	struct bpf_prog_priv *priv = bpf_program__priv(prog);
prog              457 tools/perf/util/bpf-loader.c 		title = bpf_program__title(prog, false);
prog              574 tools/perf/util/bpf-loader.c static int hook_load_preprocessor(struct bpf_program *prog)
prog              576 tools/perf/util/bpf-loader.c 	struct bpf_prog_priv *priv = bpf_program__priv(prog);
prog              629 tools/perf/util/bpf-loader.c 	err = bpf_program__set_prep(prog, priv->nr_types,
prog              637 tools/perf/util/bpf-loader.c 	struct bpf_program *prog;
prog              647 tools/perf/util/bpf-loader.c 	bpf_object__for_each_program(prog, obj) {
prog              648 tools/perf/util/bpf-loader.c 		err = config_bpf_program(prog);
prog              652 tools/perf/util/bpf-loader.c 		priv = bpf_program__priv(prog);
prog              659 tools/perf/util/bpf-loader.c 			bpf_program__set_tracepoint(prog);
prog              663 tools/perf/util/bpf-loader.c 		bpf_program__set_kprobe(prog);
prog              686 tools/perf/util/bpf-loader.c 		err = hook_load_preprocessor(prog);
prog              698 tools/perf/util/bpf-loader.c 	struct bpf_program *prog;
prog              700 tools/perf/util/bpf-loader.c 	bpf_object__for_each_program(prog, obj) {
prog              701 tools/perf/util/bpf-loader.c 		struct bpf_prog_priv *priv = bpf_program__priv(prog);
prog              753 tools/perf/util/bpf-loader.c 	struct bpf_program *prog;
prog              756 tools/perf/util/bpf-loader.c 	bpf_object__for_each_program(prog, obj) {
prog              757 tools/perf/util/bpf-loader.c 		struct bpf_prog_priv *priv = bpf_program__priv(prog);
prog              768 tools/perf/util/bpf-loader.c 			fd = bpf_program__fd(prog);
prog              784 tools/perf/util/bpf-loader.c 				fd = bpf_program__nth_fd(prog, type);
prog              786 tools/perf/util/bpf-loader.c 				fd = bpf_program__fd(prog);
prog             1587 tools/perf/util/hist.c int hists__collapse_resort(struct hists *hists, struct ui_progress *prog)
prog             1622 tools/perf/util/hist.c 		if (prog)
prog             1623 tools/perf/util/hist.c 			ui_progress__update(prog, 1);
prog             1732 tools/perf/util/hist.c 					   struct ui_progress *prog,
prog             1750 tools/perf/util/hist.c 		if (prog)
prog             1751 tools/perf/util/hist.c 			ui_progress__update(prog, 1);
prog             1760 tools/perf/util/hist.c 			hists__hierarchy_output_resort(hists, prog,
prog             1831 tools/perf/util/hist.c static void output_resort(struct hists *hists, struct ui_progress *prog,
prog             1851 tools/perf/util/hist.c 		hists__hierarchy_output_resort(hists, prog,
prog             1881 tools/perf/util/hist.c 		if (prog)
prog             1882 tools/perf/util/hist.c 			ui_progress__update(prog, 1);
prog             1886 tools/perf/util/hist.c void perf_evsel__output_resort_cb(struct evsel *evsel, struct ui_progress *prog,
prog             1898 tools/perf/util/hist.c 	output_resort(evsel__hists(evsel), prog, use_callchain, cb, cb_arg);
prog             1901 tools/perf/util/hist.c void perf_evsel__output_resort(struct evsel *evsel, struct ui_progress *prog)
prog             1903 tools/perf/util/hist.c 	return perf_evsel__output_resort_cb(evsel, prog, NULL, NULL);
prog             1906 tools/perf/util/hist.c void hists__output_resort(struct hists *hists, struct ui_progress *prog)
prog             1908 tools/perf/util/hist.c 	output_resort(hists, prog, symbol_conf.use_callchain, NULL, NULL);
prog             1911 tools/perf/util/hist.c void hists__output_resort_cb(struct hists *hists, struct ui_progress *prog,
prog             1914 tools/perf/util/hist.c 	output_resort(hists, prog, symbol_conf.use_callchain, cb, NULL);
prog              175 tools/perf/util/hist.h void perf_evsel__output_resort_cb(struct evsel *evsel, struct ui_progress *prog,
prog              177 tools/perf/util/hist.h void perf_evsel__output_resort(struct evsel *evsel, struct ui_progress *prog);
prog              178 tools/perf/util/hist.h void hists__output_resort(struct hists *hists, struct ui_progress *prog);
prog              179 tools/perf/util/hist.h void hists__output_resort_cb(struct hists *hists, struct ui_progress *prog,
prog              181 tools/perf/util/hist.h int hists__collapse_resort(struct hists *hists, struct ui_progress *prog);
prog              229 tools/perf/util/ordered-events.c 	struct ui_progress prog;
prog              236 tools/perf/util/ordered-events.c 		ui_progress__init(&prog, oe->nr_events, "Processing time ordered events...");
prog              252 tools/perf/util/ordered-events.c 			ui_progress__update(&prog, 1);
prog             2059 tools/perf/util/session.c 		       struct ui_progress *prog)
prog             2073 tools/perf/util/session.c 	ui_progress__init_size(prog, data_size, "Processing events...");
prog             2148 tools/perf/util/session.c 	ui_progress__update(prog, size);
prog             2177 tools/perf/util/session.c 	struct ui_progress prog;
prog             2185 tools/perf/util/session.c 	ui_progress__init_size(&prog, rd.data_size, "Processing events...");
prog             2187 tools/perf/util/session.c 	err = reader__process_events(&rd, session, &prog);
prog              179 tools/perf/util/vdso.c static int vdso__copy_compat(const char *prog, int fd)
prog              184 tools/perf/util/vdso.c 	f = popen(prog, "r");
prog              196 tools/perf/util/vdso.c static int vdso__create_compat_file(const char *prog, char *temp_name)
prog              204 tools/perf/util/vdso.c 	err = vdso__copy_compat(prog, fd);
prog              164 tools/spi/spidev_test.c static void print_usage(const char *prog)
prog              166 tools/spi/spidev_test.c 	printf("Usage: %s [-DsbdlHOLC3vpNR24SI]\n", prog);
prog               16 tools/testing/selftests/bpf/flow_dissector_load.h 	struct bpf_program *prog, *main_prog;
prog               53 tools/testing/selftests/bpf/flow_dissector_load.h 	bpf_object__for_each_program(prog, *obj) {
prog               54 tools/testing/selftests/bpf/flow_dissector_load.h 		fd = bpf_program__fd(prog);
prog              297 tools/testing/selftests/bpf/prog_tests/core_reloc.c 	struct bpf_program *prog;
prog              314 tools/testing/selftests/bpf/prog_tests/core_reloc.c 		prog = bpf_object__find_program_by_title(obj, probe_name);
prog              315 tools/testing/selftests/bpf/prog_tests/core_reloc.c 		if (CHECK(!prog, "find_probe",
prog              318 tools/testing/selftests/bpf/prog_tests/core_reloc.c 		bpf_program__set_type(prog, BPF_PROG_TYPE_RAW_TRACEPOINT);
prog              335 tools/testing/selftests/bpf/prog_tests/core_reloc.c 		link = bpf_program__attach_raw_tracepoint(prog, "sys_enter");
prog                8 tools/testing/selftests/bpf/prog_tests/flow_dissector_load_bytes.c 	struct bpf_insn prog[] = {
prog               32 tools/testing/selftests/bpf/prog_tests/flow_dissector_load_bytes.c 	fd = bpf_load_program(BPF_PROG_TYPE_FLOW_DISSECTOR, prog,
prog               33 tools/testing/selftests/bpf/prog_tests/flow_dissector_load_bytes.c 			      ARRAY_SIZE(prog), "GPL", 0, NULL, 0);
prog               92 tools/testing/selftests/bpf/prog_tests/get_stack_raw_tp.c 	struct bpf_program *prog;
prog              105 tools/testing/selftests/bpf/prog_tests/get_stack_raw_tp.c 	prog = bpf_object__find_program_by_title(obj, prog_name);
prog              106 tools/testing/selftests/bpf/prog_tests/get_stack_raw_tp.c 	if (CHECK(!prog, "find_probe", "prog '%s' not found\n", prog_name))
prog              123 tools/testing/selftests/bpf/prog_tests/get_stack_raw_tp.c 	link = bpf_program__attach_raw_tracepoint(prog, "sys_enter");
prog               16 tools/testing/selftests/bpf/prog_tests/obj_name.c 	struct bpf_insn prog[] = {
prog               35 tools/testing/selftests/bpf/prog_tests/obj_name.c 		attr.insns = ptr_to_u64(prog);
prog               29 tools/testing/selftests/bpf/prog_tests/perf_buffer.c 	struct bpf_program *prog;
prog               55 tools/testing/selftests/bpf/prog_tests/perf_buffer.c 	prog = bpf_object__find_program_by_title(obj, prog_name);
prog               56 tools/testing/selftests/bpf/prog_tests/perf_buffer.c 	if (CHECK(!prog, "find_probe", "prog '%s' not found\n", prog_name))
prog               65 tools/testing/selftests/bpf/prog_tests/perf_buffer.c 	link = bpf_program__attach_kprobe(prog, false /* retprobe */,
prog                8 tools/testing/selftests/bpf/prog_tests/reference_tracking.c 	struct bpf_program *prog;
prog               16 tools/testing/selftests/bpf/prog_tests/reference_tracking.c 	bpf_object__for_each_program(prog, obj) {
prog               20 tools/testing/selftests/bpf/prog_tests/reference_tracking.c 		title = bpf_program__title(prog, false);
prog               24 tools/testing/selftests/bpf/prog_tests/reference_tracking.c 		bpf_program__set_type(prog, BPF_PROG_TYPE_SCHED_CLS);
prog               31 tools/testing/selftests/bpf/prog_tests/reference_tracking.c 			err = !bpf_program__load(prog, "GPL", 0);
prog               34 tools/testing/selftests/bpf/prog_tests/reference_tracking.c 			err = bpf_program__load(prog, "GPL", 0);
prog               11 tools/testing/selftests/bpf/prog_tests/signal_pending.c 	struct bpf_insn prog[4096];
prog               20 tools/testing/selftests/bpf/prog_tests/signal_pending.c 	for (i = 0; i < ARRAY_SIZE(prog); i++)
prog               21 tools/testing/selftests/bpf/prog_tests/signal_pending.c 		prog[i] = BPF_ALU64_IMM(BPF_MOV, BPF_REG_0, 0);
prog               22 tools/testing/selftests/bpf/prog_tests/signal_pending.c 	prog[ARRAY_SIZE(prog) - 1] = BPF_EXIT_INSN();
prog               24 tools/testing/selftests/bpf/prog_tests/signal_pending.c 	prog_fd = bpf_load_program(prog_type, prog, ARRAY_SIZE(prog),
prog              143 tools/testing/selftests/bpf/prog_tests/sockopt_inherit.c 	struct bpf_program *prog;
prog              152 tools/testing/selftests/bpf/prog_tests/sockopt_inherit.c 	prog = bpf_object__find_program_by_title(obj, title);
prog              153 tools/testing/selftests/bpf/prog_tests/sockopt_inherit.c 	if (!prog) {
prog              158 tools/testing/selftests/bpf/prog_tests/sockopt_inherit.c 	err = bpf_prog_attach(bpf_program__fd(prog), cgroup_fd,
prog                9 tools/testing/selftests/bpf/prog_tests/sockopt_multi.c 	struct bpf_program *prog;
prog               18 tools/testing/selftests/bpf/prog_tests/sockopt_multi.c 	prog = bpf_object__find_program_by_title(obj, title);
prog               19 tools/testing/selftests/bpf/prog_tests/sockopt_multi.c 	if (!prog) {
prog               24 tools/testing/selftests/bpf/prog_tests/sockopt_multi.c 	err = bpf_prog_attach(bpf_program__fd(prog), cgroup_fd,
prog               38 tools/testing/selftests/bpf/prog_tests/sockopt_multi.c 	struct bpf_program *prog;
prog               45 tools/testing/selftests/bpf/prog_tests/sockopt_multi.c 	prog = bpf_object__find_program_by_title(obj, title);
prog               46 tools/testing/selftests/bpf/prog_tests/sockopt_multi.c 	if (!prog)
prog               49 tools/testing/selftests/bpf/prog_tests/sockopt_multi.c 	err = bpf_prog_detach2(bpf_program__fd(prog), cgroup_fd,
prog              138 tools/testing/selftests/bpf/prog_tests/sockopt_sk.c 	struct bpf_program *prog;
prog              147 tools/testing/selftests/bpf/prog_tests/sockopt_sk.c 	prog = bpf_object__find_program_by_title(obj, title);
prog              148 tools/testing/selftests/bpf/prog_tests/sockopt_sk.c 	if (!prog) {
prog              153 tools/testing/selftests/bpf/prog_tests/sockopt_sk.c 	err = bpf_prog_attach(bpf_program__fd(prog), cgroup_fd,
prog               11 tools/testing/selftests/bpf/prog_tests/stacktrace_build_id.c 	struct bpf_program *prog;
prog               25 tools/testing/selftests/bpf/prog_tests/stacktrace_build_id.c 	prog = bpf_object__find_program_by_title(obj, prog_name);
prog               26 tools/testing/selftests/bpf/prog_tests/stacktrace_build_id.c 	if (CHECK(!prog, "find_prog", "prog '%s' not found\n", prog_name))
prog               29 tools/testing/selftests/bpf/prog_tests/stacktrace_build_id.c 	link = bpf_program__attach_tracepoint(prog, "random", "urandom_read");
prog               29 tools/testing/selftests/bpf/prog_tests/stacktrace_build_id_nmi.c 	struct bpf_program *prog;
prog               45 tools/testing/selftests/bpf/prog_tests/stacktrace_build_id_nmi.c 	prog = bpf_object__find_program_by_title(obj, prog_name);
prog               46 tools/testing/selftests/bpf/prog_tests/stacktrace_build_id_nmi.c 	if (CHECK(!prog, "find_prog", "prog '%s' not found\n", prog_name))
prog               61 tools/testing/selftests/bpf/prog_tests/stacktrace_build_id_nmi.c 	link = bpf_program__attach_perf_event(prog, pmu_fd);
prog               11 tools/testing/selftests/bpf/prog_tests/stacktrace_map.c 	struct bpf_program *prog;
prog               19 tools/testing/selftests/bpf/prog_tests/stacktrace_map.c 	prog = bpf_object__find_program_by_title(obj, prog_name);
prog               20 tools/testing/selftests/bpf/prog_tests/stacktrace_map.c 	if (CHECK(!prog, "find_prog", "prog '%s' not found\n", prog_name))
prog               23 tools/testing/selftests/bpf/prog_tests/stacktrace_map.c 	link = bpf_program__attach_tracepoint(prog, "sched", "sched_switch");
prog               11 tools/testing/selftests/bpf/prog_tests/stacktrace_map_raw_tp.c 	struct bpf_program *prog;
prog               19 tools/testing/selftests/bpf/prog_tests/stacktrace_map_raw_tp.c 	prog = bpf_object__find_program_by_title(obj, prog_name);
prog               20 tools/testing/selftests/bpf/prog_tests/stacktrace_map_raw_tp.c 	if (CHECK(!prog, "find_prog", "prog '%s' not found\n", prog_name))
prog               23 tools/testing/selftests/bpf/prog_tests/stacktrace_map_raw_tp.c 	link = bpf_program__attach_raw_tracepoint(prog, "sched_switch");
prog              612 tools/testing/selftests/bpf/test_align.c 	struct bpf_insn *prog = test->insns;
prog              621 tools/testing/selftests/bpf/test_align.c 	prog_len = probe_filter_length(prog);
prog              623 tools/testing/selftests/bpf/test_align.c 				     prog, prog_len, BPF_F_STRICT_ALIGNMENT,
prog             4122 tools/testing/selftests/bpf/test_btf.c 	struct bpf_program *prog;
prog             4155 tools/testing/selftests/bpf/test_btf.c 	prog = bpf_program__next(NULL, obj);
prog             4156 tools/testing/selftests/bpf/test_btf.c 	if (CHECK(!prog, "Cannot find bpf_prog")) {
prog             4161 tools/testing/selftests/bpf/test_btf.c 	bpf_program__set_type(prog, BPF_PROG_TYPE_TRACEPOINT);
prog             4165 tools/testing/selftests/bpf/test_btf.c 	prog_fd = bpf_program__fd(prog);
prog               54 tools/testing/selftests/bpf/test_cgroup_attach.c 	struct bpf_insn prog[] = {
prog               58 tools/testing/selftests/bpf/test_cgroup_attach.c 	size_t insns_cnt = sizeof(prog) / sizeof(struct bpf_insn);
prog               61 tools/testing/selftests/bpf/test_cgroup_attach.c 			       prog, insns_cnt, "GPL", 0,
prog              245 tools/testing/selftests/bpf/test_cgroup_attach.c 	struct bpf_insn prog[] = {
prog              272 tools/testing/selftests/bpf/test_cgroup_attach.c 	size_t insns_cnt = sizeof(prog) / sizeof(struct bpf_insn);
prog              276 tools/testing/selftests/bpf/test_cgroup_attach.c 			       prog, insns_cnt, "GPL", 0,
prog               18 tools/testing/selftests/bpf/test_cgroup_storage.c 	struct bpf_insn prog[] = {
prog               38 tools/testing/selftests/bpf/test_cgroup_storage.c 	size_t insns_cnt = sizeof(prog) / sizeof(struct bpf_insn);
prog               67 tools/testing/selftests/bpf/test_cgroup_storage.c 	prog[0].imm = percpu_map_fd;
prog               68 tools/testing/selftests/bpf/test_cgroup_storage.c 	prog[7].imm = map_fd;
prog               70 tools/testing/selftests/bpf/test_cgroup_storage.c 				   prog, insns_cnt, "GPL", 0,
prog               55 tools/testing/selftests/bpf/test_libbpf_open.c 	struct bpf_program *prog;
prog               58 tools/testing/selftests/bpf/test_libbpf_open.c 	bpf_object__for_each_program(prog, obj) {
prog               62 tools/testing/selftests/bpf/test_libbpf_open.c 			       bpf_program__title(prog, false));
prog               45 tools/testing/selftests/bpf/test_lru_map.c 	struct bpf_load_program_attr prog;
prog               79 tools/testing/selftests/bpf/test_lru_map.c 	memset(&prog, 0, sizeof(prog));
prog               80 tools/testing/selftests/bpf/test_lru_map.c 	prog.prog_type = BPF_PROG_TYPE_SCHED_CLS;
prog               81 tools/testing/selftests/bpf/test_lru_map.c 	prog.insns = insns;
prog               82 tools/testing/selftests/bpf/test_lru_map.c 	prog.insns_cnt = ARRAY_SIZE(insns);
prog               83 tools/testing/selftests/bpf/test_lru_map.c 	prog.license = "GPL";
prog               85 tools/testing/selftests/bpf/test_lru_map.c 	pfd = bpf_load_program_xattr(&prog, NULL, 0);
prog             1145 tools/testing/selftests/bpf/test_maps.c 	struct bpf_program *prog;
prog             1182 tools/testing/selftests/bpf/test_maps.c 	bpf_object__for_each_program(prog, obj) {
prog             1183 tools/testing/selftests/bpf/test_maps.c 		bpf_program__set_xdp(prog);
prog               87 tools/testing/selftests/bpf/test_select_reuseport.c 	struct bpf_program *prog;
prog               99 tools/testing/selftests/bpf/test_select_reuseport.c 	prog = bpf_program__next(NULL, obj);
prog              100 tools/testing/selftests/bpf/test_select_reuseport.c 	CHECK(!prog, "get first bpf_program", "!prog\n");
prog              101 tools/testing/selftests/bpf/test_select_reuseport.c 	bpf_program__set_type(prog, attr.prog_type);
prog              111 tools/testing/selftests/bpf/test_select_reuseport.c 	select_by_skb_data_prog = bpf_program__fd(prog);
prog              328 tools/testing/selftests/bpf/test_sock.c static int load_sock_prog(const struct bpf_insn *prog,
prog              337 tools/testing/selftests/bpf/test_sock.c 	attr.insns = prog;
prog              134 tools/testing/selftests/bpf/test_socket_cookie.c 	struct bpf_program *prog;
prog              153 tools/testing/selftests/bpf/test_socket_cookie.c 	bpf_object__for_each_program(prog, pobj) {
prog              154 tools/testing/selftests/bpf/test_socket_cookie.c 		prog_name = bpf_program__title(prog, /*needs_copy*/ false);
prog              159 tools/testing/selftests/bpf/test_socket_cookie.c 		err = bpf_prog_attach(bpf_program__fd(prog), cgfd, attach_type,
prog             1622 tools/testing/selftests/bpf/test_sockmap.c 	struct bpf_program *prog;
prog             1638 tools/testing/selftests/bpf/test_sockmap.c 	bpf_object__for_each_program(prog, obj) {
prog             1639 tools/testing/selftests/bpf/test_sockmap.c 		bpf_program__set_type(prog, prog_type[i]);
prog             1640 tools/testing/selftests/bpf/test_sockmap.c 		bpf_program__set_expected_attach_type(prog,
prog             1647 tools/testing/selftests/bpf/test_sockmap.c 	bpf_object__for_each_program(prog, obj) {
prog             1648 tools/testing/selftests/bpf/test_sockmap.c 		prog_fd[i] = bpf_program__fd(prog);
prog             1388 tools/testing/selftests/bpf/test_sysctl.c 			      struct bpf_insn *prog, size_t insn_num)
prog             1399 tools/testing/selftests/bpf/test_sysctl.c 	if (prog[insn_num].code != (BPF_LD | BPF_DW | BPF_IMM)) {
prog             1405 tools/testing/selftests/bpf/test_sysctl.c 	prog[insn_num].imm = (uint32_t)value.num;
prog             1406 tools/testing/selftests/bpf/test_sysctl.c 	prog[insn_num + 1].imm = (uint32_t)(value.num >> 32);
prog             1414 tools/testing/selftests/bpf/test_sysctl.c 	struct bpf_insn *prog = test->insns;
prog             1420 tools/testing/selftests/bpf/test_sysctl.c 	attr.insns = prog;
prog             1441 tools/testing/selftests/bpf/test_sysctl.c 		if (fixup_sysctl_value(buf, len, prog, test->fixup_value_insn))
prog               25 tools/testing/selftests/bpf/test_tag.c static struct bpf_insn prog[BPF_MAXINSNS];
prog               33 tools/testing/selftests/bpf/test_tag.c 		prog[i] = BPF_ALU64_IMM(BPF_MOV, i % BPF_REG_10, rand());
prog               34 tools/testing/selftests/bpf/test_tag.c 	prog[i - 1] = BPF_EXIT_INSN();
prog               46 tools/testing/selftests/bpf/test_tag.c 		memcpy(&prog[i], tmp, sizeof(tmp));
prog               49 tools/testing/selftests/bpf/test_tag.c 		prog[insns - 2] = BPF_ALU64_IMM(BPF_MOV, i % BPF_REG_10, 42);
prog               50 tools/testing/selftests/bpf/test_tag.c 	prog[insns - 1] = BPF_EXIT_INSN();
prog               60 tools/testing/selftests/bpf/test_tag.c 	fd_prog = bpf_load_program(BPF_PROG_TYPE_SCHED_CLS, prog, insns, "", 0,
prog              134 tools/testing/selftests/bpf/test_tag.c 	size = write(fd_alg, prog, insns);
prog              413 tools/testing/selftests/bpf/test_verifier.c 	struct bpf_insn prog[] = {
prog              418 tools/testing/selftests/bpf/test_verifier.c 	return bpf_load_program(prog_type, prog,
prog              419 tools/testing/selftests/bpf/test_verifier.c 				ARRAY_SIZE(prog), "GPL", 0, NULL, 0);
prog              424 tools/testing/selftests/bpf/test_verifier.c 	struct bpf_insn prog[] = {
prog              433 tools/testing/selftests/bpf/test_verifier.c 	return bpf_load_program(prog_type, prog,
prog              434 tools/testing/selftests/bpf/test_verifier.c 				ARRAY_SIZE(prog), "GPL", 0, NULL, 0);
prog              618 tools/testing/selftests/bpf/test_verifier.c 			  struct bpf_insn *prog, int *map_fds)
prog              653 tools/testing/selftests/bpf/test_verifier.c 			prog[*fixup_map_hash_8b].imm = map_fds[0];
prog              662 tools/testing/selftests/bpf/test_verifier.c 			prog[*fixup_map_hash_48b].imm = map_fds[1];
prog              671 tools/testing/selftests/bpf/test_verifier.c 			prog[*fixup_map_hash_16b].imm = map_fds[2];
prog              681 tools/testing/selftests/bpf/test_verifier.c 			prog[*fixup_map_array_48b].imm = map_fds[3];
prog              689 tools/testing/selftests/bpf/test_verifier.c 			prog[*fixup_prog1].imm = map_fds[4];
prog              697 tools/testing/selftests/bpf/test_verifier.c 			prog[*fixup_prog2].imm = map_fds[5];
prog              705 tools/testing/selftests/bpf/test_verifier.c 			prog[*fixup_map_in_map].imm = map_fds[6];
prog              713 tools/testing/selftests/bpf/test_verifier.c 			prog[*fixup_cgroup_storage].imm = map_fds[7];
prog              721 tools/testing/selftests/bpf/test_verifier.c 			prog[*fixup_percpu_cgroup_storage].imm = map_fds[8];
prog              729 tools/testing/selftests/bpf/test_verifier.c 			prog[*fixup_map_sockmap].imm = map_fds[9];
prog              737 tools/testing/selftests/bpf/test_verifier.c 			prog[*fixup_map_sockhash].imm = map_fds[10];
prog              745 tools/testing/selftests/bpf/test_verifier.c 			prog[*fixup_map_xskmap].imm = map_fds[11];
prog              753 tools/testing/selftests/bpf/test_verifier.c 			prog[*fixup_map_stacktrace].imm = map_fds[12];
prog              760 tools/testing/selftests/bpf/test_verifier.c 			prog[*fixup_map_spin_lock].imm = map_fds[13];
prog              770 tools/testing/selftests/bpf/test_verifier.c 			prog[*fixup_map_array_ro].imm = map_fds[14];
prog              780 tools/testing/selftests/bpf/test_verifier.c 			prog[*fixup_map_array_wo].imm = map_fds[15];
prog              789 tools/testing/selftests/bpf/test_verifier.c 			prog[*fixup_map_array_small].imm = map_fds[16];
prog              796 tools/testing/selftests/bpf/test_verifier.c 			prog[*fixup_sk_storage_map].imm = map_fds[17];
prog              804 tools/testing/selftests/bpf/test_verifier.c 			prog[*fixup_map_event_output].imm = map_fds[18];
prog              899 tools/testing/selftests/bpf/test_verifier.c 	struct bpf_insn *prog = test->insns;
prog              914 tools/testing/selftests/bpf/test_verifier.c 	do_test_fixup(test, prog_type, prog, map_fds);
prog              916 tools/testing/selftests/bpf/test_verifier.c 		prog = test->fill_insns;
prog              919 tools/testing/selftests/bpf/test_verifier.c 		prog_len = probe_filter_length(prog);
prog              942 tools/testing/selftests/bpf/test_verifier.c 	attr.insns = prog;
prog               73 tools/testing/selftests/bpf/xdping.c static void show_usage(const char *prog)
prog               84 tools/testing/selftests/bpf/xdping.c 		prog, XDPING_DEFAULT_COUNT, XDPING_MAX_COUNT);
prog               57 tools/testing/selftests/futex/functional/futex_requeue_pi.c void usage(char *prog)
prog               59 tools/testing/selftests/futex/functional/futex_requeue_pi.c 	printf("Usage: %s\n", prog);
prog               35 tools/testing/selftests/futex/functional/futex_requeue_pi_mismatched_ops.c void usage(char *prog)
prog               37 tools/testing/selftests/futex/functional/futex_requeue_pi_mismatched_ops.c 	printf("Usage: %s\n", prog);
prog               40 tools/testing/selftests/futex/functional/futex_requeue_pi_signal_restart.c void usage(char *prog)
prog               42 tools/testing/selftests/futex/functional/futex_requeue_pi_signal_restart.c 	printf("Usage: %s\n", prog);
prog               43 tools/testing/selftests/futex/functional/futex_wait_private_mapped_file.c void usage(char *prog)
prog               45 tools/testing/selftests/futex/functional/futex_wait_private_mapped_file.c 	printf("Usage: %s\n", prog);
prog               30 tools/testing/selftests/futex/functional/futex_wait_timeout.c void usage(char *prog)
prog               32 tools/testing/selftests/futex/functional/futex_wait_timeout.c 	printf("Usage: %s\n", prog);
prog               42 tools/testing/selftests/futex/functional/futex_wait_uninitialized_heap.c void usage(char *prog)
prog               44 tools/testing/selftests/futex/functional/futex_wait_uninitialized_heap.c 	printf("Usage: %s\n", prog);
prog               30 tools/testing/selftests/futex/functional/futex_wait_wouldblock.c void usage(char *prog)
prog               32 tools/testing/selftests/futex/functional/futex_wait_wouldblock.c 	printf("Usage: %s\n", prog);
prog             1527 tools/testing/selftests/net/nettest.c static void print_usage(char *prog)
prog             1563 tools/testing/selftests/net/nettest.c 	, prog, DEFAULT_PORT);
prog              135 tools/testing/selftests/net/psock_fanout.c 	struct bpf_insn prog[] = {
prog              151 tools/testing/selftests/net/psock_fanout.c 	attr.insns = (unsigned long) prog;
prog              152 tools/testing/selftests/net/psock_fanout.c 	attr.insn_cnt = sizeof(prog) / sizeof(prog[0]);
prog              100 tools/testing/selftests/net/reuseport_bpf.c 	const struct bpf_insn prog[] = {
prog              114 tools/testing/selftests/net/reuseport_bpf.c 	attr.insn_cnt = ARRAY_SIZE(prog);
prog              115 tools/testing/selftests/net/reuseport_bpf.c 	attr.insns = (unsigned long) &prog;
prog               79 tools/testing/selftests/net/reuseport_bpf_numa.c 	const struct bpf_insn prog[] = {
prog               89 tools/testing/selftests/net/reuseport_bpf_numa.c 	attr.insn_cnt = sizeof(prog) / sizeof(prog[0]);
prog               90 tools/testing/selftests/net/reuseport_bpf_numa.c 	attr.insns = (unsigned long) &prog;
prog              510 tools/testing/selftests/powerpc/alignment/alignment_handler.c void usage(char *prog)
prog              512 tools/testing/selftests/powerpc/alignment/alignment_handler.c 	printf("Usage: %s [options]\n", prog);
prog               19 tools/testing/selftests/powerpc/dscr/dscr_inherit_exec_test.c static char *prog;
prog               85 tools/testing/selftests/powerpc/dscr/dscr_inherit_exec_test.c 			execlp(prog, prog, "exec", dscr_str, NULL);
prog              104 tools/testing/selftests/powerpc/dscr/dscr_inherit_exec_test.c 	prog = argv[0];
prog               65 tools/testing/selftests/seccomp/seccomp_benchmark.c 	struct sock_fprog prog = {
prog               86 tools/testing/selftests/seccomp/seccomp_benchmark.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog);
prog              286 tools/testing/selftests/seccomp/seccomp_bpf.c 	struct sock_fprog prog = {
prog              297 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog, 0, 0);
prog              318 tools/testing/selftests/seccomp/seccomp_bpf.c 	struct sock_fprog prog = { };
prog              330 tools/testing/selftests/seccomp/seccomp_bpf.c 	prog.filter = filter;
prog              331 tools/testing/selftests/seccomp/seccomp_bpf.c 	prog.len = count;
prog              334 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog, 0, 0);
prog              336 tools/testing/selftests/seccomp/seccomp_bpf.c 		TH_LOG("Installing %d insn filter was allowed", prog.len);
prog              340 tools/testing/selftests/seccomp/seccomp_bpf.c 	prog.len -= 1;
prog              341 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog, 0, 0);
prog              343 tools/testing/selftests/seccomp/seccomp_bpf.c 		TH_LOG("Installing %d insn filter wasn't allowed", prog.len);
prog              355 tools/testing/selftests/seccomp/seccomp_bpf.c 	struct sock_fprog prog = { };
prog              367 tools/testing/selftests/seccomp/seccomp_bpf.c 	prog.filter = filter;
prog              368 tools/testing/selftests/seccomp/seccomp_bpf.c 	prog.len = 1;
prog              370 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog, 0, 0);
prog              373 tools/testing/selftests/seccomp/seccomp_bpf.c 	prog.len = count;
prog              377 tools/testing/selftests/seccomp/seccomp_bpf.c 		ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog, 0, 0);
prog              392 tools/testing/selftests/seccomp/seccomp_bpf.c 	struct sock_fprog prog = {
prog              401 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog, 0, 0);
prog              415 tools/testing/selftests/seccomp/seccomp_bpf.c 	struct sock_fprog prog = {
prog              427 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog, 0, 0);
prog              440 tools/testing/selftests/seccomp/seccomp_bpf.c 	struct sock_fprog prog = {
prog              449 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog);
prog              457 tools/testing/selftests/seccomp/seccomp_bpf.c 	struct sock_fprog prog = {
prog              466 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog);
prog              476 tools/testing/selftests/seccomp/seccomp_bpf.c 	struct sock_fprog prog = {
prog              486 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog);
prog              498 tools/testing/selftests/seccomp/seccomp_bpf.c 	struct sock_fprog prog = {
prog              507 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog);
prog              520 tools/testing/selftests/seccomp/seccomp_bpf.c 	struct sock_fprog prog = {
prog              529 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog);
prog              541 tools/testing/selftests/seccomp/seccomp_bpf.c 	struct sock_fprog prog = {
prog              550 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog);
prog              563 tools/testing/selftests/seccomp/seccomp_bpf.c 	struct sock_fprog prog = {
prog              573 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog);
prog              596 tools/testing/selftests/seccomp/seccomp_bpf.c 	struct sock_fprog prog = {
prog              608 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog);
prog              635 tools/testing/selftests/seccomp/seccomp_bpf.c 	struct sock_fprog prog = {
prog              650 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog);
prog              789 tools/testing/selftests/seccomp/seccomp_bpf.c 	struct sock_fprog prog = {
prog              798 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog);
prog              906 tools/testing/selftests/seccomp/seccomp_bpf.c 	struct sock_fprog prog;
prog              919 tools/testing/selftests/seccomp/seccomp_bpf.c 	memset(&self->prog, 0, sizeof(self->prog));
prog              920 tools/testing/selftests/seccomp/seccomp_bpf.c 	self->prog.filter = malloc(sizeof(filter));
prog              921 tools/testing/selftests/seccomp/seccomp_bpf.c 	ASSERT_NE(NULL, self->prog.filter);
prog              922 tools/testing/selftests/seccomp/seccomp_bpf.c 	memcpy(self->prog.filter, filter, sizeof(filter));
prog              923 tools/testing/selftests/seccomp/seccomp_bpf.c 	self->prog.len = (unsigned short)ARRAY_SIZE(filter);
prog              928 tools/testing/selftests/seccomp/seccomp_bpf.c 	if (self->prog.filter)
prog              929 tools/testing/selftests/seccomp/seccomp_bpf.c 		free(self->prog.filter);
prog              939 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->prog);
prog              954 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->prog);
prog              990 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->prog);
prog             1506 tools/testing/selftests/seccomp/seccomp_bpf.c 	struct sock_fprog prog;
prog             1523 tools/testing/selftests/seccomp/seccomp_bpf.c 	memset(&self->prog, 0, sizeof(self->prog));
prog             1524 tools/testing/selftests/seccomp/seccomp_bpf.c 	self->prog.filter = malloc(sizeof(filter));
prog             1525 tools/testing/selftests/seccomp/seccomp_bpf.c 	ASSERT_NE(NULL, self->prog.filter);
prog             1526 tools/testing/selftests/seccomp/seccomp_bpf.c 	memcpy(self->prog.filter, filter, sizeof(filter));
prog             1527 tools/testing/selftests/seccomp/seccomp_bpf.c 	self->prog.len = (unsigned short)ARRAY_SIZE(filter);
prog             1540 tools/testing/selftests/seccomp/seccomp_bpf.c 	if (self->prog.filter)
prog             1541 tools/testing/selftests/seccomp/seccomp_bpf.c 		free(self->prog.filter);
prog             1551 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->prog, 0, 0);
prog             1567 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->prog, 0, 0);
prog             1810 tools/testing/selftests/seccomp/seccomp_bpf.c 	struct sock_fprog prog;
prog             1830 tools/testing/selftests/seccomp/seccomp_bpf.c 	memset(&self->prog, 0, sizeof(self->prog));
prog             1831 tools/testing/selftests/seccomp/seccomp_bpf.c 	self->prog.filter = malloc(sizeof(filter));
prog             1832 tools/testing/selftests/seccomp/seccomp_bpf.c 	ASSERT_NE(NULL, self->prog.filter);
prog             1833 tools/testing/selftests/seccomp/seccomp_bpf.c 	memcpy(self->prog.filter, filter, sizeof(filter));
prog             1834 tools/testing/selftests/seccomp/seccomp_bpf.c 	self->prog.len = (unsigned short)ARRAY_SIZE(filter);
prog             1859 tools/testing/selftests/seccomp/seccomp_bpf.c 	if (self->prog.filter)
prog             1860 tools/testing/selftests/seccomp/seccomp_bpf.c 		free(self->prog.filter);
prog             1903 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->prog, 0, 0);
prog             1918 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->prog, 0, 0);
prog             1933 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->prog, 0, 0);
prog             1947 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->prog, 0, 0);
prog             1963 tools/testing/selftests/seccomp/seccomp_bpf.c 	struct sock_fprog prog = {
prog             1973 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->prog, 0, 0);
prog             1977 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog, 0, 0);
prog             1995 tools/testing/selftests/seccomp/seccomp_bpf.c 	struct sock_fprog prog = {
prog             2005 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->prog, 0, 0);
prog             2009 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog, 0, 0);
prog             2025 tools/testing/selftests/seccomp/seccomp_bpf.c 	struct sock_fprog prog = {
prog             2040 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog, 0, 0);
prog             2057 tools/testing/selftests/seccomp/seccomp_bpf.c 	struct sock_fprog prog = {
prog             2072 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog, 0, 0);
prog             2084 tools/testing/selftests/seccomp/seccomp_bpf.c 	struct sock_fprog prog = {
prog             2096 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = seccomp(-1, 0, &prog);
prog             2109 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = seccomp(SECCOMP_SET_MODE_STRICT, 0, &prog);
prog             2115 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = seccomp(SECCOMP_SET_MODE_FILTER, -1, &prog);
prog             2124 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = seccomp(SECCOMP_SET_MODE_FILTER, 0, &prog);
prog             2136 tools/testing/selftests/seccomp/seccomp_bpf.c 	struct sock_fprog prog = {
prog             2147 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = seccomp(SECCOMP_SET_MODE_FILTER, 0, &prog);
prog             2262 tools/testing/selftests/seccomp/seccomp_bpf.c 	struct sock_fprog prog = {
prog             2274 tools/testing/selftests/seccomp/seccomp_bpf.c 		      &prog);
prog             2292 tools/testing/selftests/seccomp/seccomp_bpf.c 	struct sock_fprog *prog;
prog             2358 tools/testing/selftests/seccomp/seccomp_bpf.c 	self->sibling[0].prog = &self->root_prog;
prog             2365 tools/testing/selftests/seccomp/seccomp_bpf.c 	self->sibling[1].prog = &self->root_prog;
prog             2406 tools/testing/selftests/seccomp/seccomp_bpf.c 				me->prog, 0, 0);
prog             2443 tools/testing/selftests/seccomp/seccomp_bpf.c 	struct sock_fprog prog = {
prog             2453 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = seccomp(SECCOMP_SET_MODE_FILTER, 0, &prog);
prog             2758 tools/testing/selftests/seccomp/seccomp_bpf.c 	struct sock_fprog prog = {
prog             2785 tools/testing/selftests/seccomp/seccomp_bpf.c 		ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog, 0, 0);
prog             3016 tools/testing/selftests/seccomp/seccomp_bpf.c 		struct sock_fprog prog = {
prog             3023 tools/testing/selftests/seccomp/seccomp_bpf.c 				     SECCOMP_FILTER_FLAG_LOG, &prog));
prog             3024 tools/testing/selftests/seccomp/seccomp_bpf.c 		EXPECT_EQ(0, seccomp(SECCOMP_SET_MODE_FILTER, 0, &prog));
prog             3073 tools/testing/selftests/seccomp/seccomp_bpf.c 	struct sock_fprog prog = {
prog             3078 tools/testing/selftests/seccomp/seccomp_bpf.c 	return seccomp(SECCOMP_SET_MODE_FILTER, flags, &prog);
prog             3094 tools/testing/selftests/seccomp/seccomp_bpf.c 	struct sock_fprog prog = {
prog             3120 tools/testing/selftests/seccomp/seccomp_bpf.c 	EXPECT_EQ(seccomp(SECCOMP_SET_MODE_FILTER, 0, &prog), 0);
prog             3121 tools/testing/selftests/seccomp/seccomp_bpf.c 	EXPECT_EQ(seccomp(SECCOMP_SET_MODE_FILTER, 0, &prog), 0);
prog             3122 tools/testing/selftests/seccomp/seccomp_bpf.c 	EXPECT_EQ(seccomp(SECCOMP_SET_MODE_FILTER, 0, &prog), 0);
prog             3123 tools/testing/selftests/seccomp/seccomp_bpf.c 	EXPECT_EQ(seccomp(SECCOMP_SET_MODE_FILTER, 0, &prog), 0);
prog              452 usr/gen_init_cpio.c static void usage(const char *prog)
prog              491 usr/gen_init_cpio.c 		prog);