Lines Matching defs:comm
318 static int get_comm(char **comm, pid_t pid)
324 if (asprintf(&path, "%s/%d/comm", procfs__mountpoint(), pid) == -1)
327 err = filename__read_str(path, comm, &size);
334 (*comm)[size] = 0;
335 strim(*comm);
345 char *comm = NULL;
347 /* dummy pid comm initialization */
349 map->map[i].comm = strdup("dummy");
354 * The comm name is like extra bonus ;-),
357 if (get_comm(&comm, pid))
358 pr_warning("Couldn't resolve comm name for pid %d\n", pid);
360 map->map[i].comm = comm;
380 threads->map[i].comm = strndup(event->entries[i].comm, 16);
422 zfree(&threads->map[idx].comm);