Symbol: test_ctx
drivers/fpga/tests/fpga-region-test.c
104
struct test_ctx *ctx = test->priv;
drivers/fpga/tests/fpga-region-test.c
119
struct test_ctx *ctx = test->priv;
drivers/fpga/tests/fpga-region-test.c
159
struct test_ctx *ctx;
drivers/mtd/nand/raw/nand_base.c
2533
struct nand_op_parser_ctx test_ctx = ctx;
drivers/mtd/nand/raw/nand_base.c
2536
if (!nand_op_parser_match_pat(pattern, &test_ctx))
drivers/mtd/nand/raw/nand_base.c
2540
nand_op_parser_cmp_ctx(&test_ctx, &best_ctx) <= 0)
drivers/mtd/nand/raw/nand_base.c
2544
best_ctx = test_ctx;
mm/damon/sysfs.c
1491
struct damon_ctx *test_ctx;
mm/damon/sysfs.c
1494
test_ctx = damon_new_ctx();
mm/damon/sysfs.c
1495
if (!test_ctx)
mm/damon/sysfs.c
1497
err = damon_commit_ctx(test_ctx, running_ctx);
mm/damon/sysfs.c
1499
damon_destroy_ctx(test_ctx);
mm/damon/sysfs.c
1502
return test_ctx;
mm/damon/sysfs.c
1514
struct damon_ctx *param_ctx, *test_ctx;
mm/damon/sysfs.c
1526
test_ctx = damon_sysfs_new_test_ctx(kdamond->damon_ctx);
mm/damon/sysfs.c
1527
if (!test_ctx) {
mm/damon/sysfs.c
1531
err = damon_commit_ctx(test_ctx, param_ctx);
mm/damon/sysfs.c
1536
damon_destroy_ctx(test_ctx);
tools/testing/selftests/bpf/prog_tests/btf_dump.c
137
static void test_ctx__free(struct test_ctx *t)
tools/testing/selftests/bpf/prog_tests/btf_dump.c
145
static int test_ctx__init(struct test_ctx *t)
tools/testing/selftests/bpf/prog_tests/btf_dump.c
164
static void test_ctx__dump_and_compare(struct test_ctx *t,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
183
struct test_ctx t = {};
tools/testing/selftests/bpf/prog_tests/btf_dump.c
284
struct test_ctx t = {};
tools/testing/selftests/bpf/prog_tests/btf_dump.c
964
struct test_ctx t = {};
tools/testing/selftests/bpf/prog_tests/exe_ctx.c
15
struct test_ctx *skel;
tools/testing/selftests/bpf/prog_tests/flow_dissector_classification.c
732
static int test_global_init(struct test_ctx *ctx)
tools/testing/selftests/bpf/prog_tests/flow_dissector_classification.c
761
static void test_global_shutdown(struct test_ctx *ctx)
tools/testing/selftests/bpf/prog_tests/flow_dissector_classification.c
770
struct test_ctx ctx;
tools/testing/selftests/bpf/prog_tests/xdp_bpf2bpf.c
150
on_sample, NULL, &test_ctx, NULL);
tools/testing/selftests/bpf/prog_tests/xdp_bpf2bpf.c
18
struct test_ctx_s test_ctx;
tools/testing/selftests/bpf/prog_tests/xdp_bpf2bpf.c
66
test_ctx.passed = false;
tools/testing/selftests/bpf/prog_tests/xdp_bpf2bpf.c
67
test_ctx.pkt_size = pkt_size;
tools/testing/selftests/bpf/prog_tests/xdp_bpf2bpf.c
93
ASSERT_TRUE(test_ctx.passed, "test passed");
tools/testing/selftests/sched_ext/total_bw.c
166
struct total_bw_ctx *test_ctx;
tools/testing/selftests/sched_ext/total_bw.c
173
test_ctx = calloc(1, sizeof(*test_ctx));
tools/testing/selftests/sched_ext/total_bw.c
174
if (!test_ctx)
tools/testing/selftests/sched_ext/total_bw.c
177
test_ctx->nr_cpus = sysconf(_SC_NPROCESSORS_ONLN);
tools/testing/selftests/sched_ext/total_bw.c
178
if (test_ctx->nr_cpus <= 0) {
tools/testing/selftests/sched_ext/total_bw.c
179
free(test_ctx);
tools/testing/selftests/sched_ext/total_bw.c
184
if (test_ctx->nr_cpus > MAX_CPUS)
tools/testing/selftests/sched_ext/total_bw.c
185
test_ctx->nr_cpus = MAX_CPUS;
tools/testing/selftests/sched_ext/total_bw.c
190
if (fetch_verify_total_bw(test_ctx->baseline_bw, test_ctx->nr_cpus) < 0) {
tools/testing/selftests/sched_ext/total_bw.c
192
free(test_ctx);
tools/testing/selftests/sched_ext/total_bw.c
197
test_ctx->skel = minimal__open();
tools/testing/selftests/sched_ext/total_bw.c
198
if (!test_ctx->skel) {
tools/testing/selftests/sched_ext/total_bw.c
199
free(test_ctx);
tools/testing/selftests/sched_ext/total_bw.c
203
SCX_ENUM_INIT(test_ctx->skel);
tools/testing/selftests/sched_ext/total_bw.c
204
if (minimal__load(test_ctx->skel)) {
tools/testing/selftests/sched_ext/total_bw.c
205
minimal__destroy(test_ctx->skel);
tools/testing/selftests/sched_ext/total_bw.c
206
free(test_ctx);
tools/testing/selftests/sched_ext/total_bw.c
210
*ctx = test_ctx;
tools/testing/selftests/sched_ext/total_bw.c
216
struct total_bw_ctx *test_ctx = ctx;
tools/testing/selftests/sched_ext/total_bw.c
223
link = bpf_map__attach_struct_ops(test_ctx->skel->maps.minimal_ops);
tools/testing/selftests/sched_ext/total_bw.c
230
if (fetch_verify_total_bw(loaded_bw, test_ctx->nr_cpus) < 0) {
tools/testing/selftests/sched_ext/total_bw.c
239
if (fetch_verify_total_bw(unloaded_bw, test_ctx->nr_cpus) < 0) {
tools/testing/selftests/sched_ext/total_bw.c
245
for (i = 0; i < test_ctx->nr_cpus; i++) {
tools/testing/selftests/sched_ext/total_bw.c
246
if (test_ctx->baseline_bw[i] != loaded_bw[i]) {
tools/testing/selftests/sched_ext/total_bw.c
248
i, test_ctx->baseline_bw[i], loaded_bw[i]);
tools/testing/selftests/sched_ext/total_bw.c
252
if (test_ctx->baseline_bw[i] != unloaded_bw[i]) {
tools/testing/selftests/sched_ext/total_bw.c
254
i, test_ctx->baseline_bw[i], unloaded_bw[i]);
tools/testing/selftests/sched_ext/total_bw.c
265
struct total_bw_ctx *test_ctx = ctx;
tools/testing/selftests/sched_ext/total_bw.c
267
if (test_ctx) {
tools/testing/selftests/sched_ext/total_bw.c
268
if (test_ctx->skel)
tools/testing/selftests/sched_ext/total_bw.c
269
minimal__destroy(test_ctx->skel);
tools/testing/selftests/sched_ext/total_bw.c
270
free(test_ctx);