Lines Matching defs:comm
319 static int get_comm(char **comm, pid_t pid)
325 if (asprintf(&path, "%s/%d/comm", procfs__mountpoint(), pid) == -1)
328 err = filename__read_str(path, comm, &size);
335 (*comm)[size] = 0;
336 strim(*comm);
346 char *comm = NULL;
348 /* dummy pid comm initialization */
350 map->map[i].comm = strdup("dummy");
355 * The comm name is like extra bonus ;-),
358 if (get_comm(&comm, pid))
359 pr_warning("Couldn't resolve comm name for pid %d\n", pid);
361 map->map[i].comm = comm;
381 threads->map[i].comm = strndup(event->entries[i].comm, 16);
423 zfree(&threads->map[idx].comm);