Lines Matching refs:s

125 	char *s, *s2;  in get_tracetype()  local
128 s = strchr(buf, ' '); in get_tracetype()
129 if (s == NULL) { in get_tracetype()
135 while (*s == ' ') in get_tracetype()
136 s++; in get_tracetype()
137 if (sscanf(s, "%s", trace_type) != 1) { in get_tracetype()
153 s2 = strchr(s, ' '); in get_tracetype()
172 bcopy(s2, s, strlen(s2) + 1); in get_tracetype()
178 char *s, *s2, save; in get_pathname() local
181 s = strchr(buf, '/'); in get_pathname()
182 if (s == NULL) { in get_pathname()
187 s2 = strchr(s, ' '); in get_pathname()
195 s = strchr(buf, '"'); in get_pathname()
197 s = strchr(buf, '<'); in get_pathname()
198 if (s == NULL) { in get_pathname()
203 s += 1; in get_pathname()
205 s2 = strchr(s, '"'); in get_pathname()
207 s2 = strchr(s, '>'); in get_pathname()
216 strcpy(pathname, s); in get_pathname()
223 char *s, *s2; in get_syscall() local
225 s = strchr(buf, ' '); in get_syscall()
226 if (s == NULL) { in get_syscall()
231 s += 1; in get_syscall()
232 s2 = strchr(s, '('); in get_syscall()
239 strcpy(syscall, s); in get_syscall()
246 char *s, *s1; in get_mmap_offset_len_prot() local
250 s = strchr(buf, ','); in get_mmap_offset_len_prot()
251 if (s == NULL) { in get_mmap_offset_len_prot()
256 s += 2; in get_mmap_offset_len_prot()
257 sscanf(s, "%ju", len); in get_mmap_offset_len_prot()
258 s1 = strchr(s, ','); in get_mmap_offset_len_prot()
265 s = strchr(s1, ','); in get_mmap_offset_len_prot()
266 if (s == NULL) { in get_mmap_offset_len_prot()
271 *s = '\0'; in get_mmap_offset_len_prot()
278 *s = ','; in get_mmap_offset_len_prot()
279 s += 2; in get_mmap_offset_len_prot()
281 s = strchr(s, ','); in get_mmap_offset_len_prot()
282 if (s == NULL) { in get_mmap_offset_len_prot()
287 s += 2; in get_mmap_offset_len_prot()
289 sscanf(s, "%jx", offset); in get_mmap_offset_len_prot()
296 char *s, *s2; in get_lseek_offset_action() local
298 s = strchr(buf, ','); in get_lseek_offset_action()
299 if (s == NULL) { in get_lseek_offset_action()
304 s += 2; in get_lseek_offset_action()
305 sscanf(s, "%ju", offset); in get_lseek_offset_action()
306 s = strchr(s, ','); in get_lseek_offset_action()
307 if (s == NULL) { in get_lseek_offset_action()
312 s += 2; in get_lseek_offset_action()
314 s = strchr(s, ','); in get_lseek_offset_action()
315 if (s == NULL) { in get_lseek_offset_action()
320 s += 2; in get_lseek_offset_action()
322 s2 = strchr(s, ')'); in get_lseek_offset_action()
329 strcpy(action, s); in get_lseek_offset_action()
405 char *s, *s2, lookfor; in get_openat_flags_mode() local
407 s = strchr(buf, ','); in get_openat_flags_mode()
408 if (s == NULL) { in get_openat_flags_mode()
413 s += 2; in get_openat_flags_mode()
414 s = strchr(s, ','); in get_openat_flags_mode()
415 if (s == NULL) { in get_openat_flags_mode()
420 s += 2; in get_openat_flags_mode()
421 if (strstr(s, "O_CREAT") == NULL) in get_openat_flags_mode()
425 s2 = strchr(s, lookfor); in get_openat_flags_mode()
432 strcpy(flags, s); in get_openat_flags_mode()
434 if (strstr(s, "O_CREAT") != NULL) { in get_openat_flags_mode()
435 s = s2 + 2; in get_openat_flags_mode()
436 s2 = strchr(s, ')'); in get_openat_flags_mode()
443 sscanf(s, "%o", mode); in get_openat_flags_mode()
449 lookup_map(char *s, struct flags_map_s *flags_map, int maplen) in lookup_map() argument
454 while (isspace(*s)) in lookup_map()
455 s++; in lookup_map()
457 if (strcmp(flags_map[i].flag_str, s) == 0) { in lookup_map()
465 __func__, s); in lookup_map()
472 map_open_flags(char *s) in map_open_flags() argument
477 while ((s1 = strchr(s, '|'))) { in map_open_flags()
479 flags |= lookup_map(s, open_flags_map, in map_open_flags()
482 s = s1 + 1; in map_open_flags()
485 flags |= lookup_map(s, open_flags_map, in map_open_flags()
491 map_lseek_action(char *s) in map_lseek_action() argument
496 while ((s1 = strchr(s, '|'))) { in map_lseek_action()
498 flags |= lookup_map(s, lseek_action_map, in map_lseek_action()
501 s = s1 + 1; in map_lseek_action()
504 flags |= lookup_map(s, lseek_action_map, in map_lseek_action()
527 char *s; in main() local
565 s = in_buf; in main()
566 while (isspace(*s)) in main()
567 s++; in main()
570 disk_file_op->delta_us = get_delta_ts(s, &prev_time); in main()
571 get_tracetype(s, trace_type); in main()
573 get_syscall(s, syscall); in main()
577 get_pathname(s, path, disk_file_op->ioshark_io_op); in main()
583 get_lseek_offset_action(s, in main()
595 get_prw64_offset_len(s, in main()
604 get_rw_len(s, (u_int64_t *)&disk_file_op->rw_len); in main()
610 get_mmap_offset_len_prot(s, in main()
620 get_openat_flags_mode(s, open_flags_str, in main()
633 get_ftrace_offset_len(s, in main()