Home | History | Annotate | Download | only in csource

Lines Matching refs:Prog

14 	"github.com/google/syzkaller/prog"
18 func Write(p *prog.Prog, opts Options) ([]byte, error) {
87 p *prog.Prog
89 target *prog.Target
152 func (ctx *context) generateProgCalls(p *prog.Prog, trace bool) ([]string, []uint64, error) {
153 exec := make([]byte, prog.ExecBufferSize)
166 func (ctx *context) generateCalls(p prog.ExecProg, trace bool) ([]string, []uint64) {
183 resCopyout := call.Index != prog.ExecNoCopyout
205 func (ctx *context) emitCall(w *bytes.Buffer, call prog.ExecCall, ci int, haveCopyout, trace bool) {
228 case prog.ExecArgConst:
229 if arg.Format != prog.FormatNative && arg.Format != prog.FormatBigEndian {
233 case prog.ExecArgResult:
234 if arg.Format != prog.FormatNative && arg.Format != prog.FormatBigEndian {
254 func (ctx *context) generateCsumInet(w *bytes.Buffer, addr uint64, arg prog.ExecArgCsum, csumSeq int) {
259 case prog.ExecArgCsumChunkData:
262 case prog.ExecArgCsumChunkConst:
275 func (ctx *context) copyin(w *bytes.Buffer, csumSeq *int, copyin prog.ExecCopyin) {
277 case prog.ExecArgConst:
281 if arg.Format != prog.FormatNative && arg.Format != prog.FormatBigEndian {
288 case prog.ExecArgResult:
290 case prog.ExecArgData:
293 case prog.ExecArgCsum:
295 case prog.ExecArgCsumInet:
306 func (ctx *context) copyinVal(w *bytes.Buffer, addr, size uint64, val string, bf prog.BinaryFormat) {
308 case prog.FormatNative, prog.FormatBigEndian:
310 case prog.FormatStrDec:
315 case prog.FormatStrHex:
320 case prog.FormatStrOct:
330 func (ctx *context) copyout(w *bytes.Buffer, call prog.ExecCall, resCopyout bool) {
360 func (ctx *context) constArgToStr(arg prog.ExecArgConst) string {
372 if arg.Format == prog.FormatBigEndian {
378 func (ctx *context) resultArgToStr(arg prog.ExecArgResult) string {
386 if arg.Format == prog.FormatBigEndian {