Home
last modified time | relevance | path

Searched refs:ptype (Results 1 – 11 of 11) sorted by relevance

/kernel/trace/
Dtrace_probe.h182 #define __ASSIGN_FETCH_TYPE(_name, ptype, ftype, _size, sign, str, _fmttype) \ argument
187 .print = PRINT_TYPE_FUNC_NAME(ptype), \
188 .fmt = PRINT_TYPE_FMT_NAME(ptype), \
193 #define _ASSIGN_FETCH_TYPE(_name, ptype, ftype, _size, sign, _fmttype) \ argument
194 __ASSIGN_FETCH_TYPE(_name, ptype, ftype, _size, sign, 0, #_fmttype)
195 #define ASSIGN_FETCH_TYPE(ptype, ftype, sign) \ argument
196 _ASSIGN_FETCH_TYPE(#ptype, ptype, ftype, sizeof(ftype), sign, ptype)
199 #define ASSIGN_FETCH_TYPE_ALIAS(ptype, atype, ftype, sign) \ argument
200 _ASSIGN_FETCH_TYPE(#ptype, ptype, ftype, sizeof(ftype), sign, atype)
379 extern int traceprobe_set_print_fmt(struct trace_probe *tp, enum probe_print_type ptype);
Dtrace_uprobe.c547 enum probe_print_type ptype; in __trace_uprobe_create() local
700 ptype = is_ret_probe(tu) ? PROBE_PRINT_RETURN : PROBE_PRINT_NORMAL; in __trace_uprobe_create()
701 ret = traceprobe_set_print_fmt(&tu->tp, ptype); in __trace_uprobe_create()
1586 enum probe_print_type ptype; in create_local_trace_uprobe() local
1626 ptype = is_ret_probe(tu) ? PROBE_PRINT_RETURN : PROBE_PRINT_NORMAL; in create_local_trace_uprobe()
1627 if (traceprobe_set_print_fmt(&tu->tp, ptype) < 0) { in create_local_trace_uprobe()
Dtrace_probe.c891 enum probe_print_type ptype) in __set_print_fmt() argument
898 switch (ptype) { in __set_print_fmt()
960 int traceprobe_set_print_fmt(struct trace_probe *tp, enum probe_print_type ptype) in traceprobe_set_print_fmt() argument
967 len = __set_print_fmt(tp, NULL, 0, ptype); in traceprobe_set_print_fmt()
973 __set_print_fmt(tp, print_fmt, len + 1, ptype); in traceprobe_set_print_fmt()
Dtrace_kprobe.c775 enum probe_print_type ptype; in __trace_kprobe_create() local
937 ptype = is_return ? PROBE_PRINT_RETURN : PROBE_PRINT_NORMAL; in __trace_kprobe_create()
938 ret = traceprobe_set_print_fmt(&tk->tp, ptype); in __trace_kprobe_create()
1814 enum probe_print_type ptype; in create_local_trace_kprobe() local
1856 ptype = trace_kprobe_is_return(tk) ? in create_local_trace_kprobe()
1858 if (traceprobe_set_print_fmt(&tk->tp, ptype) < 0) { in create_local_trace_kprobe()
/kernel/rcu/
Drcuscale.c129 int ptype; member
171 .ptype = RCU_FLAVOR,
228 .ptype = SRCU_FLAVOR,
256 .ptype = SRCU_FLAVOR,
287 .ptype = RCU_TASKS_FLAVOR,
326 .ptype = RCU_TASKS_FLAVOR,
/kernel/bpf/
Dbpf_struct_ops.c406 const struct btf_type *mtype, *ptype; in bpf_struct_ops_map_update_elem() local
412 ptype = btf_type_resolve_ptr(btf_vmlinux, member->type, NULL); in bpf_struct_ops_map_update_elem()
413 if (ptype == module_type) { in bpf_struct_ops_map_update_elem()
434 if (!ptype || !btf_type_is_func_proto(ptype)) { in bpf_struct_ops_map_update_elem()
Dsyscall.c3483 enum bpf_prog_type ptype; in bpf_prog_attach() local
3493 ptype = attach_type_to_prog_type(attr->attach_type); in bpf_prog_attach()
3494 if (ptype == BPF_PROG_TYPE_UNSPEC) in bpf_prog_attach()
3497 prog = bpf_prog_get_type(attr->attach_bpf_fd, ptype); in bpf_prog_attach()
3506 switch (ptype) { in bpf_prog_attach()
3525 if (ptype == BPF_PROG_TYPE_LSM && in bpf_prog_attach()
3529 ret = cgroup_bpf_prog_attach(attr, ptype, prog); in bpf_prog_attach()
3544 enum bpf_prog_type ptype; in bpf_prog_detach() local
3549 ptype = attach_type_to_prog_type(attr->attach_type); in bpf_prog_detach()
3551 switch (ptype) { in bpf_prog_detach()
[all …]
Dnet_namespace.c383 int netns_bpf_prog_detach(const union bpf_attr *attr, enum bpf_prog_type ptype) in netns_bpf_prog_detach() argument
396 prog = bpf_prog_get_type(attr->attach_bpf_fd, ptype); in netns_bpf_prog_detach()
Dtrampoline.c111 enum bpf_prog_type ptype = prog->type; in bpf_prog_has_trampoline() local
113 return (ptype == BPF_PROG_TYPE_TRACING && in bpf_prog_has_trampoline()
116 (ptype == BPF_PROG_TYPE_LSM && eatype == BPF_LSM_MAC); in bpf_prog_has_trampoline()
Dcgroup.c1130 enum bpf_prog_type ptype, struct bpf_prog *prog) in cgroup_bpf_prog_attach() argument
1142 replace_prog = bpf_prog_get_type(attr->replace_bpf_fd, ptype); in cgroup_bpf_prog_attach()
1158 int cgroup_bpf_prog_detach(const union bpf_attr *attr, enum bpf_prog_type ptype) in cgroup_bpf_prog_detach() argument
1168 prog = bpf_prog_get_type(attr->attach_bpf_fd, ptype); in cgroup_bpf_prog_detach()
Dbtf.c614 const struct btf_type *ptype; in btf_type_resolve_func_ptr() local
616 ptype = btf_type_resolve_ptr(btf, id, res_id); in btf_type_resolve_func_ptr()
617 if (ptype && btf_type_is_func_proto(ptype)) in btf_type_resolve_func_ptr()
618 return ptype; in btf_type_resolve_func_ptr()