Home
last modified time | relevance | path

Searched refs:test_attr (Results 1 – 5 of 5) sorted by relevance

/linux-5.19.10/tools/testing/selftests/bpf/prog_tests/
Dtest_profiler.c11 LIBBPF_OPTS(bpf_test_run_opts, test_attr); in sanity_run()
16 test_attr.ctx_in = args; in sanity_run()
17 test_attr.ctx_size_in = sizeof(args); in sanity_run()
18 err = bpf_prog_test_run_opts(prog_fd, &test_attr); in sanity_run()
22 if (!ASSERT_OK(test_attr.retval, "test_run retval")) in sanity_run()
/linux-5.19.10/tools/bpf/bpftool/
Dprog.c1282 LIBBPF_OPTS(bpf_test_run_opts, test_attr); in do_run()
1320 test_attr.data_size_out = strtoul(*argv, &endptr, 0); in do_run()
1348 test_attr.ctx_size_out = strtoul(*argv, &endptr, 0); in do_run()
1376 err = get_run_data(data_fname_in, &data_in, &test_attr.data_size_in); in do_run()
1381 if (!test_attr.data_size_out) in do_run()
1382 test_attr.data_size_out = default_size; in do_run()
1383 err = alloc_run_data(&data_out, test_attr.data_size_out); in do_run()
1388 err = get_run_data(ctx_fname_in, &ctx_in, &test_attr.ctx_size_in); in do_run()
1393 if (!test_attr.ctx_size_out) in do_run()
1394 test_attr.ctx_size_out = default_size; in do_run()
[all …]
/linux-5.19.10/tools/lib/bpf/
Dbpf.c939 int bpf_prog_test_run_xattr(struct bpf_prog_test_run_attr *test_attr) in bpf_prog_test_run_xattr() argument
944 if (!test_attr->data_out && test_attr->data_size_out > 0) in bpf_prog_test_run_xattr()
948 attr.test.prog_fd = test_attr->prog_fd; in bpf_prog_test_run_xattr()
949 attr.test.data_in = ptr_to_u64(test_attr->data_in); in bpf_prog_test_run_xattr()
950 attr.test.data_out = ptr_to_u64(test_attr->data_out); in bpf_prog_test_run_xattr()
951 attr.test.data_size_in = test_attr->data_size_in; in bpf_prog_test_run_xattr()
952 attr.test.data_size_out = test_attr->data_size_out; in bpf_prog_test_run_xattr()
953 attr.test.ctx_in = ptr_to_u64(test_attr->ctx_in); in bpf_prog_test_run_xattr()
954 attr.test.ctx_out = ptr_to_u64(test_attr->ctx_out); in bpf_prog_test_run_xattr()
955 attr.test.ctx_size_in = test_attr->ctx_size_in; in bpf_prog_test_run_xattr()
[all …]
Dbpf.h426 LIBBPF_API int bpf_prog_test_run_xattr(struct bpf_prog_test_run_attr *test_attr);
/linux-5.19.10/net/ethtool/
Dbitset.c487 const struct nlattr *test_attr; in ethnl_compact_sanity_checks() local
526 test_attr = no_mask ? tb[ETHTOOL_A_BITSET_VALUE] : in ethnl_compact_sanity_checks()
528 if (ethnl_bitmap32_not_zero(nla_data(test_attr), nbits, attr_nbits)) { in ethnl_compact_sanity_checks()
529 NL_SET_ERR_MSG_ATTR(extack, test_attr, in ethnl_compact_sanity_checks()