| /tools/bpf/bpftool/ |
| A D | netlink_dumper.c | 18 if (!tb[attr]) in xdp_dump_prog_id() 38 if (!tb[IFLA_XDP_ATTACHED]) in do_xdp_dump_one() 74 if (!tb[IFLA_XDP]) in do_xdp_dump() 88 if (!tb[TCA_ACT_BPF_PARMS]) in do_bpf_dump_one_act() 92 if (tb[TCA_ACT_BPF_NAME]) in do_bpf_dump_one_act() 95 if (tb[TCA_ACT_BPF_ID]) in do_bpf_dump_one_act() 112 if (tb[TCA_ACT_KIND] && in do_dump_one_act() 146 if (tb[TCA_BPF_NAME]) in do_bpf_filter_dump() 149 if (tb[TCA_BPF_ID]) in do_bpf_filter_dump() 152 if (tb[TCA_BPF_ACT]) { in do_bpf_filter_dump() [all …]
|
| A D | net.c | 214 struct nlattr *tb[TCA_MAX + 1], *attr; in __dump_class_nlmsg() local 223 return dump_class_nlmsg(cookie, t, tb); in __dump_class_nlmsg() 253 struct nlattr *tb[TCA_MAX + 1], *attr; in __dump_qdisc_nlmsg() local 262 return dump_qdisc_nlmsg(cookie, t, tb); in __dump_qdisc_nlmsg() 292 struct nlattr *tb[TCA_MAX + 1], *attr; in __dump_filter_nlmsg() local 301 return dump_filter_nlmsg(cookie, t, tb); in __dump_filter_nlmsg() 331 struct nlattr *tb[IFLA_MAX + 1], *attr; in __dump_link_nlmsg() local 387 tb[IFLA_IFNAME] in dump_link_nlmsg() 392 return do_xdp_dump(ifinfo, tb); in dump_link_nlmsg() 403 if (tb[TCA_KIND] && in dump_class_qdisc_nlmsg() [all …]
|
| A D | main.h | 242 int do_xdp_dump(struct ifinfomsg *ifinfo, struct nlattr **tb); 243 int do_filter_dump(struct tcmsg *ifinfo, struct nlattr **tb, const char *kind,
|
| /tools/testing/selftests/powerpc/pmu/ebb/ |
| A D | trace.c | 31 tb->size = size; in trace_buffer_allocate() 32 tb->tail = tb->data; in trace_buffer_allocate() 33 tb->overflow = false; in trace_buffer_allocate() 35 return tb; in trace_buffer_allocate() 40 return p < ((void *)tb + tb->size); in trace_check_bounds() 51 if (tb->overflow) in trace_check_alloc() 66 p = tb->tail; in trace_alloc() 71 tb->tail = newtail; in trace_alloc() 282 p = tb->data; in trace_buffer_print() 287 while (trace_check_bounds(tb, p) && p < tb->tail) { in trace_buffer_print() [all …]
|
| A D | trace.h | 33 int trace_log_reg(struct trace_buffer *tb, u64 reg, u64 value); 34 int trace_log_counter(struct trace_buffer *tb, u64 value); 35 int trace_log_string(struct trace_buffer *tb, char *str); 36 int trace_log_indent(struct trace_buffer *tb); 37 int trace_log_outdent(struct trace_buffer *tb); 38 void trace_buffer_print(struct trace_buffer *tb); 39 void trace_print_location(struct trace_buffer *tb);
|
| /tools/testing/selftests/net/mptcp/ |
| A D | mptcp_diag.c | 23 #define parse_rtattr_nested(tb, max, rta) \ argument 163 if (type <= max && !tb[type]) in parse_rtattr_flags() 164 tb[type] = rta; in parse_rtattr_flags() 210 if (tb[MPTCP_SUBFLOW_ATTR_FLAGS]) { in print_subflow_info() 239 tb[MPTCP_SUBFLOW_ATTR_ID_REM] && in print_subflow_info() 240 tb[MPTCP_SUBFLOW_ATTR_ID_LOC]) in print_subflow_info() 246 if (tb[MPTCP_SUBFLOW_ATTR_MAP_SEQ]) in print_subflow_info() 249 if (tb[MPTCP_SUBFLOW_ATTR_MAP_SFSEQ]) in print_subflow_info() 252 if (tb[MPTCP_SUBFLOW_ATTR_SSN_OFFSET]) in print_subflow_info() 264 struct rtattr *tb[INET_DIAG_MAX + 1]; in parse_nlmsg() local [all …]
|
| /tools/lib/bpf/ |
| A D | nlattr.c | 104 int libbpf_nla_parse(struct nlattr *tb[], int maxtype, struct nlattr *head, in libbpf_nla_parse() argument 110 memset(tb, 0, sizeof(struct nlattr *) * (maxtype + 1)); in libbpf_nla_parse() 124 if (tb[type]) { in libbpf_nla_parse() 129 tb[type] = nla; in libbpf_nla_parse() 148 int libbpf_nla_parse_nested(struct nlattr *tb[], int maxtype, in libbpf_nla_parse_nested() argument 152 return libbpf_nla_parse(tb, maxtype, libbpf_nla_data(nla), in libbpf_nla_parse_nested() 163 struct nlattr *tb[NLMSGERR_ATTR_MAX + 1], *attr; in libbpf_nla_dump_errormsg() local 182 if (libbpf_nla_parse(tb, NLMSGERR_ATTR_MAX, attr, alen, in libbpf_nla_dump_errormsg() 188 if (tb[NLMSGERR_ATTR_MSG]) in libbpf_nla_dump_errormsg() 189 errmsg = (char *) libbpf_nla_data(tb[NLMSGERR_ATTR_MSG]); in libbpf_nla_dump_errormsg()
|
| A D | netlink.c | 259 if (!tb[CTRL_ATTR_FAMILY_ID]) in parse_genl_family_id() 347 struct nlattr *tb[IFLA_MAX + 1], *attr; in __dump_link_nlmsg() local 357 return dump_link_nlmsg(cookie, ifi, tb); in __dump_link_nlmsg() 370 if (!tb[IFLA_XDP]) in get_xdp_info() 410 struct nlattr *tb[NETDEV_CMD_MAX + 1]; in parse_xdp_features() local 417 if (!tb[NETDEV_A_DEV_IFINDEX] || !tb[NETDEV_A_DEV_XDP_FEATURES]) in parse_xdp_features() 425 if (tb[NETDEV_A_DEV_XDP_ZC_MAX_SEGS]) in parse_xdp_features() 680 if (!tb[TCA_OPTIONS]) in __get_tc_info() 699 struct nlattr *tb[TCA_MAX + 1]; in get_tc_info() local 701 libbpf_nla_parse(tb, TCA_MAX, in get_tc_info() [all …]
|
| A D | nlattr.h | 123 int libbpf_nla_parse(struct nlattr *tb[], int maxtype, struct nlattr *head, 125 int libbpf_nla_parse_nested(struct nlattr *tb[], int maxtype,
|
| /tools/testing/selftests/net/netfilter/ |
| A D | nf_queue.c | 38 const struct nlattr **tb = data; in parse_attr_cb() local 73 tb[type] = attr; in parse_attr_cb() 79 struct nlattr *tb[NFQA_MAX+1] = { 0 }; in queue_cb() local 85 mnl_attr_parse(nlh, sizeof(struct nfgenmsg), parse_attr_cb, tb); in queue_cb() 86 if (tb[NFQA_PACKET_HDR]) { in queue_cb() 87 ph = mnl_attr_get_payload(tb[NFQA_PACKET_HDR]); in queue_cb() 102 if (tb[NFQA_SKB_INFO]) in queue_cb() 103 skbinfo = ntohl(mnl_attr_get_u32(tb[NFQA_SKB_INFO])); in queue_cb()
|
| /tools/lib/thermal/ |
| A D | thermal_nl.c | 78 struct nlattr *tb[CTRL_ATTR_MAX + 1]; in nl_family_handler() local 83 nla_parse(tb, CTRL_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in nl_family_handler() 86 if (!tb[CTRL_ATTR_MCAST_GROUPS]) in nl_family_handler() 89 nla_for_each_nested(mcgrp, tb[CTRL_ATTR_MCAST_GROUPS], rem_mcgrp) { in nl_family_handler()
|
| /tools/power/x86/intel-speed-select/ |
| A D | hfi-events.c | 125 struct nlattr *tb[CTRL_ATTR_MAX + 1]; in family_handler() local 130 nla_parse(tb, CTRL_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in family_handler() 132 if (!tb[CTRL_ATTR_MCAST_GROUPS]) in family_handler() 135 nla_for_each_nested(mcgrp, tb[CTRL_ATTR_MCAST_GROUPS], i) { in family_handler()
|
| /tools/testing/selftests/net/lib/py/ |
| A D | ksft.py | 158 tb = traceback.format_exc() 159 for line in tb.strip().split('\n'): 253 tb = traceback.format_exc() 254 for line in tb.strip().split('\n'):
|
| /tools/net/ynl/lib/ |
| A D | ynl.c | 209 const struct nlattr *tb[NLMSGERR_ATTR_MAX + 1] = {}; in ynl_ext_ack_check() local 229 tb[type] = attr; in ynl_ext_ack_check() 251 if (tb[NLMSGERR_ATTR_OFFS]) { in ynl_ext_ack_check() 255 ys->err.attr_offs = ynl_attr_get_u32(tb[NLMSGERR_ATTR_OFFS]); in ynl_ext_ack_check() 274 if (tb[NLMSGERR_ATTR_MISS_TYPE]) { in ynl_ext_ack_check() 280 type = ynl_attr_get_u32(tb[NLMSGERR_ATTR_MISS_TYPE]); in ynl_ext_ack_check() 289 if (tb[NLMSGERR_ATTR_MISS_NEST]) { in ynl_ext_ack_check() 290 off = ynl_attr_get_u32(tb[NLMSGERR_ATTR_MISS_NEST]); in ynl_ext_ack_check()
|
| /tools/testing/selftests/net/ovpn/ |
| A D | ovpn-cli.c | 1431 struct nlattr *tb[CTRL_ATTR_MAX + 1]; in mcast_family_handler() local 1436 nla_parse(tb, CTRL_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in mcast_family_handler() 1439 if (!tb[CTRL_ATTR_MCAST_GROUPS]) in mcast_family_handler() 1442 nla_for_each_nested(mcgrp, tb[CTRL_ATTR_MCAST_GROUPS], rem_mcgrp) { in mcast_family_handler()
|
| /tools/arch/powerpc/include/uapi/asm/ |
| A D | kvm.h | 235 __u64 tb; member
|
| /tools/testing/selftests/net/ |
| A D | bpf_offload.py | 89 tb = "".join(traceback.extract_stack().format()) 90 print(tb) 91 log("FAIL: " + msg, tb, level=1)
|