/external/libnl/lib/cli/cls/ |
H A D | basic.c | 13 #include <netlink/cli/tc.h> 33 static void parse_argv(struct rtnl_tc *tc, int argc, char **argv) argument 35 struct rtnl_cls *cls = (struct rtnl_cls *) tc;
|
/external/ltp/testcases/kernel/device-drivers/uaccess/ |
H A D | ltp_uaccess.c | 64 int tc = 0; local 67 sscanf(buf, "%d %lu", &tc, &ptr); 71 switch (tc) { 117 prk_err(": Can't create sysfs file 'tc'");
|
/external/ltp/testcases/kernel/syscalls/epoll_ctl/ |
H A D | epoll_ctl02.c | 102 struct testcase *tc = &tcases[n]; local 104 TEST(epoll_ctl(*tc->epfds, tc->opt, *tc->fds, tc->ts_event)); 110 if (tc->exp_err == TEST_ERRNO) { 115 tc->exp_err, tst_strerrno(tc->exp_err));
|
/external/ltp/testcases/kernel/syscalls/fchown/ |
H A D | fchown05.c | 47 } tc[] = { variable in typeref:struct:test_case_t 56 int TST_TOTAL = ARRAY_SIZE(tc); 76 for (i = 0; tc[i].desc != NULL; i++) { 77 user_id = tc[i].user_id; 78 group_id = tc[i].group_id; 84 "fchown() Fails to %s", tc[i].desc); 91 user_id = tc[i - 1].user_id; 94 group_id = tc[i - 1].group_id; 104 tc[i].desc, TESTFILE);
|
/external/ltp/testcases/kernel/syscalls/fcntl/ |
H A D | fcntl32.c | 60 int tc; local 69 for (tc = 0; tc < TST_TOTAL; tc++) 70 verify_fcntl(tc);
|
/external/ltp/testcases/kernel/syscalls/futex/ |
H A D | futex_wait01.c | 55 static void verify_futex_wait(struct testcase *tc) argument 59 res = futex_wait(tc->f_addr, tc->f_val, &to, tc->opflags); 66 if (errno != tc->exp_errno) { 68 tst_strerrno(tc->exp_errno));
|
/external/ltp/testcases/kernel/syscalls/getxattr/ |
H A D | getxattr02.c | 70 static char *tc[] = { variable 77 int TST_TOTAL = sizeof(tc) / sizeof(tc[0]); 104 TEST(getxattr(tc[0], XATTR_TEST_KEY, buf, BUFSIZ));
|
/external/ltp/testcases/kernel/syscalls/madvise/ |
H A D | madvise01.c | 104 struct tcase *tc = &tcases[i]; local 106 TEST(madvise(*(tc->addr), st.st_size, tc->advice)); 110 tst_res(TCONF, "%s is not supported", tc->name); 114 tc->name, TEST_RETURN, TEST_ERRNO, 118 tst_res(TPASS, "madvise test for %s PASSED", tc->name);
|
/external/ltp/testcases/kernel/syscalls/preadv/ |
H A D | preadv01.c | 57 struct tcase *tc = &tcases[n]; local 64 TEST(preadv(fd, rd_iovec, tc->count, tc->offset)); 70 if (TEST_RETURN != tc->size) { 72 TEST_RETURN, tc->size); 76 for (i = 0; i < tc->size; i++) { 77 if (vec[i] != tc->content) 81 if (i < tc->size) { 83 i, vec[i], tc->content); 93 "with content '%c' expectedly", tc [all...] |
/external/ltp/testcases/kernel/syscalls/pwritev/ |
H A D | pwritev01.c | 56 struct tcase *tc = &tcases[n]; local 62 TEST(pwritev(fd, wr_iovec, tc->count, tc->offset)); 68 if (TEST_RETURN != tc->size) { 70 TEST_RETURN, tc->size); 79 SAFE_PREAD(1, fd, preadbuf, tc->size, tc->offset); 81 for (i = 0; i < tc->size; i++) { 86 if (i != tc->size) { 93 "with content 'a' expectedly ", tc [all...] |
/external/ltp/testcases/kernel/syscalls/request_key/ |
H A D | request_key02.c | 58 struct test_case *tc = tcases + n; local 60 TEST(request_key("keyring", tc->des, NULL, *tc->id)); 66 if (TEST_ERRNO == tc->exp_err) { 72 "expected %s", tst_strerrno(tc->exp_err));
|
/external/ltp/testcases/kernel/syscalls/ustat/ |
H A D | ustat02.c | 45 } tc[] = { variable in typeref:struct:test_case_t 52 int TST_TOTAL = ARRAY_SIZE(tc); 67 TEST(ustat(*tc[i].dev, tc[i].buf)); 73 && (TEST_ERRNO == tc[i].exp_errno)) { 77 tc[i].exp_errval, tc[i].err_desc); 83 tc[i].exp_errno, tc[i].exp_errval);
|
/external/clang/test/OpenMP/ |
H A D | single_codegen.cpp | 29 TestClass tc; variable 31 #pragma omp threadprivate(tc, tc2) 76 TestClass &c = tc; 139 #pragma omp single copyprivate(a, c, tc, a2, tc2)
|
/external/libnl/lib/cli/qdisc/ |
H A D | fq_codel.c | 13 #include <netlink/cli/tc.h> 34 static void fq_codel_parse_argv(struct rtnl_tc *tc, int argc, char **argv) argument 36 struct rtnl_qdisc *qdisc = (struct rtnl_qdisc *) tc;
|
H A D | htb.c | 13 #include <netlink/cli/tc.h> 31 static void htb_parse_qdisc_argv(struct rtnl_tc *tc, int argc, char **argv) argument 33 struct rtnl_qdisc *qdisc = (struct rtnl_qdisc *) tc; 87 static void htb_parse_class_argv(struct rtnl_tc *tc, int argc, char **argv) argument 89 struct rtnl_class *class = (struct rtnl_class *) tc;
|
/external/libnl/lib/route/cls/ |
H A D | cgroup.c | 20 #include <netlink-private/tc.h> 24 #include <netlink-private/route/tc-api.h> 42 static void cgroup_free_data(struct rtnl_tc *tc, void *data) argument 52 static int cgroup_msg_parser(struct rtnl_tc *tc, void *data) argument 58 err = tca_parse(tb, TCA_CGROUP_MAX, tc, cgroup_policy); 78 static void cgroup_dump_line(struct rtnl_tc *tc, void *data, argument 92 static void cgroup_dump_details(struct rtnl_tc *tc, void *data, argument 111 static int cgroup_fill_msg(struct rtnl_tc *tc, void *data, argument 119 if (!(tc->ce_mask & TCA_ATTR_HANDLE))
|
/external/libnl/lib/route/qdisc/ |
H A D | fifo.c | 33 #include <netlink-private/tc.h> 35 #include <netlink-private/route/tc-api.h> 44 static int fifo_msg_parser(struct rtnl_tc *tc, void *data) argument 49 if (tc->tc_opts->d_size < sizeof(struct tc_fifo_qopt)) 52 opt = (struct tc_fifo_qopt *) tc->tc_opts->d_data; 59 static void pfifo_dump_line(struct rtnl_tc *tc, void *data, argument 68 static void bfifo_dump_line(struct rtnl_tc *tc, void *data, argument 82 static int fifo_msg_fill(struct rtnl_tc *tc, void *data, struct nl_msg *msg) argument
|
H A D | red.c | 20 #include <netlink-private/tc.h> 23 #include <netlink-private/route/tc-api.h> 41 static int red_msg_parser(struct rtnl_tc *tc, void *data) argument 48 if (!(tc->ce_mask & TCA_ATTR_OPTS)) 51 err = tca_parse(tb, TCA_RED_MAX, tc, red_policy); 75 static void red_dump_line(struct rtnl_tc *tc, void *data, argument 85 static void red_dump_details(struct rtnl_tc *tc, void *data, argument 95 static void red_dump_stats(struct rtnl_tc *tc, void *data, argument 105 static int red_msg_fill(struct rtnl_tc *tc, void *data, struct nl_msg *msg) argument
|
/external/libnl/python/netlink/route/qdisc/ |
H A D | htb.py | 14 from .. import tc as tc namespace 23 return tc.Handle(capi.rtnl_htb_get_defcls(self._qdisc._rtnl_qdisc))
|
/external/libnl/src/lib/ |
H A D | tc.c | 2 * src/lib/tc.c CLI Traffic Control Helpers 13 #include <netlink/cli/tc.h> 14 #include <netlink-private/route/tc-api.h> 21 void nl_cli_tc_parse_dev(struct rtnl_tc *tc, struct nl_cache *link_cache, char *name) argument 29 rtnl_tc_set_link(tc, link); 33 void nl_cli_tc_parse_parent(struct rtnl_tc *tc, char *arg) argument 42 rtnl_tc_set_parent(tc, parent); 45 void nl_cli_tc_parse_handle(struct rtnl_tc *tc, char *arg, int create) argument 50 parent = rtnl_tc_get_parent(tc); 61 rtnl_tc_set_handle(tc, handl 64 nl_cli_tc_parse_mtu(struct rtnl_tc *tc, char *arg) argument 69 nl_cli_tc_parse_mpu(struct rtnl_tc *tc, char *arg) argument 74 nl_cli_tc_parse_overhead(struct rtnl_tc *tc, char *arg) argument 79 nl_cli_tc_parse_kind(struct rtnl_tc *tc, char *arg) argument 84 nl_cli_tc_parse_linktype(struct rtnl_tc *tc, char *arg) argument [all...] |
/external/libnl/src/ |
H A D | nl-class-add.c | 13 #include <netlink/cli/tc.h> 18 #include <netlink-private/route/tc-api.h> 55 struct rtnl_tc *tc; local 72 tc = (struct rtnl_tc *) class; 109 case 'd': nl_cli_tc_parse_dev(tc, link_cache, optarg); break; 110 case 'p': nl_cli_tc_parse_parent(tc, optarg); break; 114 case ARG_MTU: nl_cli_tc_parse_mtu(tc, optarg); break; 115 case ARG_MPU: nl_cli_tc_parse_mpu(tc, optarg); break; 116 case ARG_OVERHEAD: nl_cli_tc_parse_overhead(tc, optarg); break; 117 case ARG_LINKTYPE: nl_cli_tc_parse_linktype(tc, optar [all...] |
H A D | nl-class-delete.c | 71 struct rtnl_tc *tc; local 78 tc = (struct rtnl_tc *) class; 110 case 'd': nl_cli_tc_parse_dev(tc, link_cache, optarg); break; 111 case 'p': nl_cli_tc_parse_parent(tc, optarg); break; 112 case 'i': nl_cli_tc_parse_handle(tc, optarg, 0); break; 113 case 'k': nl_cli_tc_parse_kind(tc, optarg); break; 117 if (!rtnl_tc_get_ifindex(tc)) 120 class_cache = nl_cli_class_alloc_cache(sock, rtnl_tc_get_ifindex(tc));
|
H A D | nl-class-list.c | 13 #include <netlink/cli/tc.h> 65 struct rtnl_tc *tc; local 73 tc = (struct rtnl_tc *) class; 104 case 'd': nl_cli_tc_parse_dev(tc, link_cache, optarg); break; 105 case 'p': nl_cli_tc_parse_parent(tc, optarg); break; 106 case 'i': nl_cli_tc_parse_handle(tc, optarg, 0); break; 107 case 'k': nl_cli_tc_parse_kind(tc, optarg); break; 111 if ((ifindex = rtnl_tc_get_ifindex(tc)))
|
H A D | nl-cls-add.c | 12 #include <netlink/cli/tc.h> 16 #include <netlink-private/route/tc-api.h> 55 struct rtnl_tc *tc; local 72 tc = (struct rtnl_tc *) cls; 113 case 'd': nl_cli_tc_parse_dev(tc, link_cache, optarg); break; 114 case 'p': nl_cli_tc_parse_parent(tc, optarg); break; 118 case ARG_MTU: nl_cli_tc_parse_mtu(tc, optarg); break; 119 case ARG_MPU: nl_cli_tc_parse_mpu(tc, optarg); break; 120 case ARG_OVERHEAD: nl_cli_tc_parse_overhead(tc, optarg); break; 121 case ARG_LINKTYPE: nl_cli_tc_parse_linktype(tc, optar [all...] |
H A D | nl-cls-list.c | 13 #include <netlink/cli/tc.h> 69 struct rtnl_tc *tc; local 77 tc = (struct rtnl_tc *) cls; 112 case 'd': nl_cli_tc_parse_dev(tc, link_cache, optarg); break; 113 case 'p': nl_cli_tc_parse_parent(tc, optarg); break; 114 case 'i': nl_cli_tc_parse_handle(tc, optarg, 0); break; 115 case 'k': nl_cli_tc_parse_kind(tc, optarg); break; 123 if ((ifindex = rtnl_tc_get_ifindex(tc)))
|