Lines Matching refs:savedcmd
2232 static struct saved_cmdlines_buffer *savedcmd; variable
2236 return &savedcmd->saved_cmdlines[idx * TASK_COMM_LEN]; in get_saved_cmdlines()
2273 savedcmd = kmalloc(sizeof(*savedcmd), GFP_KERNEL); in trace_create_savedcmd()
2274 if (!savedcmd) in trace_create_savedcmd()
2277 ret = allocate_cmdlines_buffer(SAVED_CMDLINES_DEFAULT, savedcmd); in trace_create_savedcmd()
2279 kfree(savedcmd); in trace_create_savedcmd()
2280 savedcmd = NULL; in trace_create_savedcmd()
2444 idx = savedcmd->map_pid_to_cmdline[tpid]; in trace_save_cmdline()
2446 idx = (savedcmd->cmdline_idx + 1) % savedcmd->cmdline_num; in trace_save_cmdline()
2448 savedcmd->map_pid_to_cmdline[tpid] = idx; in trace_save_cmdline()
2449 savedcmd->cmdline_idx = idx; in trace_save_cmdline()
2452 savedcmd->map_cmdline_to_pid[idx] = tsk->pid; in trace_save_cmdline()
2476 map = savedcmd->map_pid_to_cmdline[tpid]; in __trace_find_cmdline()
2478 tpid = savedcmd->map_cmdline_to_pid[map]; in __trace_find_cmdline()
5841 for (; ptr < &savedcmd->map_cmdline_to_pid[savedcmd->cmdline_num]; in saved_cmdlines_next()
5860 v = &savedcmd->map_cmdline_to_pid[0]; in saved_cmdlines_start()
5920 r = scnprintf(buf, sizeof(buf), "%u\n", savedcmd->cmdline_num); in tracing_saved_cmdlines_size_read()
5949 savedcmd_temp = savedcmd; in tracing_resize_saved_cmdlines()
5950 savedcmd = s; in tracing_resize_saved_cmdlines()
10261 free_saved_cmdlines_buffer(savedcmd); in tracer_alloc_buffers()