Function report |
Source Code:kernel\trace\trace_probe_tmpl.h |
Create Date:2022-07-28 12:38:44 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Store the value of each argument
Proto:static inline __attribute__((__always_inline__)) void store_trace_args(void *data, struct trace_probe *tp, struct pt_regs *regs, int header_size, int maxlen)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| void * | data | |
| struct trace_probe * | tp | |
| struct pt_regs * | regs | |
| int | header_size | |
| int | maxlen |
| 195 | base = data - header_size |
| 196 | dyndata = data + trace entry size |
| 202 | dl = data + Offset from argument entry |
| 204 | If Value for the false possibility is greater at compile time( Dynamic array (string) is used ) Then dl = data_loc: data location, compatible with u32 (maxlen, dyndata - base) |
| 207 | If Value for the false possibility is greater at compile time(ret < 0 && Dynamic array (string) is used ) Then |
| 208 | dl = data_loc: data location, compatible with u32 (0, dyndata - base) |
| 209 | Else |
| Name | Describe |
|---|---|
| __kprobe_trace_func | Kprobe handler |
| __kretprobe_trace_func | Kretprobe handler |
| uprobe_dispatcher | |
| uretprobe_dispatcher |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |