| Function report | 
| Source Code: kernel\trace\trace.c | Create Date:2022-07-28 12:04:05 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:trace_parse_run_command
Proto:ssize_t trace_parse_run_command(struct file *file, const char __user *buffer, size_t count, loff_t *ppos, int (*createfn)(int , char **))
Type:ssize_t
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct file * | file | |
| const char __user * | buffer | |
| size_t | count | |
| loff_t * | ppos | |
| int (* | createfn | 
| 9190 | ret = 0 | 
| 9191 | done = 0 | 
| 9194 | kbuf = Allocation memory | 
| 9201 | If size >= WRITE_BUFSIZE Then size = WRITE_BUFSIZE - 1 | 
| 9204 | If copy_from_user(kbuf, buffer + done, size) Then | 
| 9210 | Do | 
| 9211 | tmp = strchr - Find the first occurrence of the character c in the string s.*@s: the string to be searched*@c: the character to search for | 
| 9212 | If tmp Then | 
| 9215 | Else | 
| 9230 | tmp = strchr - Find the first occurrence of the character c in the string s.*@s: the string to be searched*@c: the character to search for | 
| 9235 | ret = trace_run_command(buf, createfn) | 
| 9244 | out : | 
| 9247 | Return ret | 
| Name | Describe | 
|---|---|
| synth_events_write | |
| probes_write | |
| dyn_event_write | |
| probes_write | 
| 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 |