Function report | 
Source Code:kernel\trace\trace_probe.c | 
Create Date:2022-07-28 12:43:21 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:__set_print_fmt
Proto:static int __set_print_fmt(struct trace_probe *tp, char *buf, int len, bool is_return)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct trace_probe * | tp | |
| char * | buf | |
| int | len | |
| bool | is_return | 
| 846 | pos = 0 | 
| 849 | If Not is_return Then | 
| 850 | fmt = "(%lx)" | 
| 851 | arg = "REC->" Reserved field names | 
| 852 | Else | 
| 853 | fmt = "(%lx <- %lx)" | 
| 854 | arg = "REC->" FIELD_STRING_FUNC ", REC->" FIELD_STRING_RETIP | 
| 862 | If Array count Then | 
| 878 | If Array count Then | 
| 879 | If strcmp(Name of type , "string") == 0 || strcmp(Name of type , "ustring") == 0 Then fmt = ", __get_str(%s[%d])" | 
| 882 | Else fmt = ", REC->%s[%d]" | 
| 887 | Else | 
| 888 | If strcmp(Name of type , "string") == 0 || strcmp(Name of type , "ustring") == 0 Then fmt = ", __get_str(%s)" | 
| 891 | Else fmt = ", REC->%s" | 
| 899 | Return pos | 
| Name | Describe | 
|---|---|
| traceprobe_set_print_fmt | 
| 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  |