Lines Matching full:local
1 local suite = require("test_helper")
2 local TestClang = {}
5 local text = [[
13 local b = BPF:new{text=text, debug=0}
14 local fn = b:load_func("count_sched", 'BPF_PROG_TYPE_KPROBE')
18 local text = [[
25 local b = BPF:new{text=text, debug=0}
26 local fn = b:load_func("count_foo", 'BPF_PROG_TYPE_KPROBE')
30 local text = [[
48 local b = BPF:new{text=text, debug=0}
49 local fns = b:load_funcs('BPF_PROG_TYPE_KPROBE')
53 local text = [[
60 local b = BPF:new{text=text, debug=0}
61 local fn = b:load_func("foo", 'BPF_PROG_TYPE_KPROBE')
62 local t = b:get_table("stats")
63 local s1 = t:key_sprintf(2)
67 local s2 = t:leaf_sprintf({{2, 3, 4, 1, {5, 6}}})
68 local l = t:leaf_scanf(s2)
79 local text = [[ BPF_HASH(stats, int, struct { u32 a[3]; u32 b; }, 10); ]]
81 local b = BPF:new{text=text, debug=0}
82 local t = b:get_table("stats")
84 local s1 = t:key_sprintf(2)
87 local s2 = t:leaf_sprintf({{{1, 2, 3}, 4}})
90 local l = t:leaf_scanf(s2)
98 local text = [[
116 local b = BPF:new{text=text, debug=0}
117 local fn = b:load_func("do_request", 'BPF_PROG_TYPE_KPROBE')
121 local text = [[
129 local b = BPF:new{text=text, debug=0}
130 local fn = b:load_func("do_request", 'BPF_PROG_TYPE_KPROBE')
134 local text = [[
139 local b = BPF:new{text=text, debug=0}
143 local text = [[
161 local b = BPF:new{text=text, debug=0}
162 local fn = b:load_func("trace_entry", 'BPF_PROG_TYPE_KPROBE')
166 local text = [[
175 local b = BPF:new{text=text, debug=0}
176 local fn = b:load_func("trace_entry", 'BPF_PROG_TYPE_KPROBE')
180 local b = BPF:new{text=[[#include <linux/blkdev.h>
188 local b = BPF:new{text=[[
207 local fn1 = b:load_func("trace_entry1", 'BPF_PROG_TYPE_KPROBE')
208 local fn2 = b:load_func("trace_entry2", 'BPF_PROG_TYPE_KPROBE')
212 local b = BPF:new{text = [[
232 local b = BPF:new{text=[[
254 local b = BPF:new{text=[[
269 local text = [[
279 local b = BPF:new{text=text}
280 local fn = b:load_func("trace_entry", 'BPF_PROG_TYPE_KPROBE')
284 local text = [[
303 local b = BPF:new{text=text}
304 local ffi = require("ffi")
311 local text = [[
316 local b = BPF:new{text=text, cflags={"-DMYFLAG"}}
320 local b1 = BPF{text=[[BPF_TABLE_PUBLIC("hash", int, int, table1, 10);]]}
321 local b2 = BPF{text=[[BPF_TABLE("extern", int, int, table1, 10);]]}