/tools/bpf/bpftool/ |
D | netlink_dumper.c | 14 static void xdp_dump_prog_id(struct nlattr **tb, int attr, in xdp_dump_prog_id() argument 18 if (!tb[attr]) in xdp_dump_prog_id() 24 NET_DUMP_UINT("id", " id %u", libbpf_nla_getattr_u32(tb[attr])) in xdp_dump_prog_id() 32 struct nlattr *tb[IFLA_XDP_MAX + 1]; in do_xdp_dump_one() local 35 if (libbpf_nla_parse_nested(tb, IFLA_XDP_MAX, attr, NULL) < 0) in do_xdp_dump_one() 38 if (!tb[IFLA_XDP_ATTACHED]) in do_xdp_dump_one() 41 mode = libbpf_nla_getattr_u8(tb[IFLA_XDP_ATTACHED]); in do_xdp_dump_one() 55 xdp_dump_prog_id(tb, IFLA_XDP_SKB_PROG_ID, "generic", true); in do_xdp_dump_one() 56 xdp_dump_prog_id(tb, IFLA_XDP_DRV_PROG_ID, "driver", true); in do_xdp_dump_one() 57 xdp_dump_prog_id(tb, IFLA_XDP_HW_PROG_ID, "offload", true); in do_xdp_dump_one() [all …]
|
D | net.c | 86 static int dump_link_nlmsg(void *cookie, void *msg, struct nlattr **tb) in dump_link_nlmsg() argument 107 tb[IFLA_IFNAME] in dump_link_nlmsg() 108 ? libbpf_nla_getattr_str(tb[IFLA_IFNAME]) in dump_link_nlmsg() 112 return do_xdp_dump(ifinfo, tb); in dump_link_nlmsg() 115 static int dump_class_qdisc_nlmsg(void *cookie, void *msg, struct nlattr **tb) in dump_class_qdisc_nlmsg() argument 122 if (tb[TCA_KIND] && in dump_class_qdisc_nlmsg() 123 strcmp(libbpf_nla_data(tb[TCA_KIND]), "clsact") == 0) in dump_class_qdisc_nlmsg() 141 tb[TCA_KIND] in dump_class_qdisc_nlmsg() 142 ? libbpf_nla_getattr_str(tb[TCA_KIND]) in dump_class_qdisc_nlmsg() 149 static int dump_filter_nlmsg(void *cookie, void *msg, struct nlattr **tb) in dump_filter_nlmsg() argument [all …]
|
D | main.h | 225 int do_xdp_dump(struct ifinfomsg *ifinfo, struct nlattr **tb); 226 int do_filter_dump(struct tcmsg *ifinfo, struct nlattr **tb, const char *kind,
|
/tools/testing/selftests/powerpc/pmu/ebb/ |
D | trace.c | 17 struct trace_buffer *tb; in trace_buffer_allocate() local 19 if (size < sizeof(*tb)) { in trace_buffer_allocate() 24 tb = mmap(NULL, size, PROT_READ | PROT_WRITE, in trace_buffer_allocate() 26 if (tb == MAP_FAILED) { in trace_buffer_allocate() 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() 38 static bool trace_check_bounds(struct trace_buffer *tb, void *p) in trace_check_bounds() argument 40 return p < ((void *)tb + tb->size); in trace_check_bounds() [all …]
|
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/lib/bpf/ |
D | nlattr.c | 103 int libbpf_nla_parse(struct nlattr *tb[], int maxtype, struct nlattr *head, in libbpf_nla_parse() argument 109 memset(tb, 0, sizeof(struct nlattr *) * (maxtype + 1)); in libbpf_nla_parse() 123 if (tb[type]) in libbpf_nla_parse() 127 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() 189 if (tb[NLMSGERR_ATTR_MSG]) in libbpf_nla_dump_errormsg() 190 errmsg = (char *) libbpf_nla_data(tb[NLMSGERR_ATTR_MSG]); in libbpf_nla_dump_errormsg()
|
D | netlink.c | 193 struct nlattr *tb[IFLA_MAX + 1], *attr; in __dump_link_nlmsg() local 199 if (libbpf_nla_parse(tb, IFLA_MAX, attr, len, NULL) != 0) in __dump_link_nlmsg() 202 return dump_link_nlmsg(cookie, ifi, tb); in __dump_link_nlmsg() 219 static int get_xdp_id(void *cookie, void *msg, struct nlattr **tb) in get_xdp_id() argument 230 if (!tb[IFLA_XDP]) in get_xdp_id() 233 ret = libbpf_nla_parse_nested(xdp_tb, IFLA_XDP_MAX, tb[IFLA_XDP], NULL); in get_xdp_id() 310 struct nlattr *tb[TCA_MAX + 1], *attr; in __dump_class_nlmsg() local 316 if (libbpf_nla_parse(tb, TCA_MAX, attr, len, NULL) != 0) in __dump_class_nlmsg() 319 return dump_class_nlmsg(cookie, t, tb); in __dump_class_nlmsg() 349 struct nlattr *tb[TCA_MAX + 1], *attr; in __dump_qdisc_nlmsg() local [all …]
|
D | nlattr.h | 98 int libbpf_nla_parse(struct nlattr *tb[], int maxtype, struct nlattr *head, 100 int libbpf_nla_parse_nested(struct nlattr *tb[], int maxtype,
|
D | libbpf.h | 427 typedef int (*libbpf_dump_nlmsg_t)(void *cookie, void *msg, struct nlattr **tb);
|
/tools/testing/selftests/gpio/ |
D | gpio-mockup-chardev.c | 33 struct libmnt_table *tb; in get_debugfs() local 46 if (mnt_context_get_mtab(cxt, &tb)) in get_debugfs() 49 while (mnt_table_next_fs(tb, itr, &fs) == 0) { in get_debugfs()
|
/tools/arch/powerpc/include/uapi/asm/ |
D | kvm.h | 236 __u64 tb; member
|
/tools/testing/selftests/bpf/ |
D | test_offload.py | 86 tb = "".join(traceback.extract_stack().format()) 87 print(tb) 88 log("FAIL: " + msg, tb, level=1)
|