Lines Matching refs:prog_fd
1478 local prog_fd, err, log = S.bpf_prog_load(S.c.BPF_PROG.TRACEPOINT, prog.insn, prog.pc)
1479 assert(prog_fd, tostring(err)..': '..tostring(log))
1481 t.reader:setbpf(prog_fd:getfd())
1482 table.insert(t.progs, prog_fd)
1483 return prog_fd
1502 local prog_fd, err, log = S.bpf_prog_load(S.c.BPF_PROG.KPROBE, prog.insn, prog.pc)
1503 assert(prog_fd, tostring(err)..': '..tostring(log))
1507 prog_fd:close()
1512 prog_fd:close()
1516 local ok, err = reader:setbpf(prog_fd:getfd())
1518 prog_fd:close()
1526 prog_fd:close()
1530 return {reader=reader, prog=prog_fd, probe=pname, probe_type=ptype}
1583 local prog_fd, err, log = S.bpf_prog_load(S.c.BPF_PROG.SOCKET_FILTER, prog.insn, prog.pc)
1584 assert(prog_fd, tostring(err)..': '..tostring(log))
1585 assert(sock:setsockopt('socket', 'attach_bpf', prog_fd:getfd()))
1586 return prog_fd, err