/systemd/src/login/ |
H A D | logind-action.c | 132 _cleanup_free_ char *comm = NULL, *u = NULL; local 134 get_process_comm(offending->pid, &comm); 142 offending->pid, strna(comm)); 149 offending->pid, strna(comm));
|
H A D | inhibit.c | 101 _cleanup_free_ char *comm = NULL, *u = NULL; local 106 get_process_comm(pid, &comm); 113 who, uid, strna(u), pid, strna(comm),
|
H A D | logind-dbus.c | 1524 _cleanup_free_ char *comm = NULL, *u = NULL; local 1529 (void) get_process_comm(offending->pid, &comm); 1534 offending->pid, strna(comm));
|
/systemd/src/bus-proxyd/ |
H A D | bus-proxyd.c | 86 char comm[16]; local 95 /* set comm to "p$PIDu$UID" and suffix with '*' if truncated */ 96 r = snprintf(comm, sizeof(comm), "p" PID_FMT "u" UID_FMT, p->local_creds.pid, p->local_creds.uid); 97 if (r >= (ssize_t)sizeof(comm)) 98 comm[sizeof(comm) - 2] = '*'; 99 (void) prctl(PR_SET_NAME, comm);
|
H A D | stdio-bridge.c | 149 const char *comm; local 174 r = sd_bus_creds_get_comm(creds, &comm); 192 /* ... and the argv line only the short comm */ 199 pid, comm,
|
/systemd/src/core/ |
H A D | killall.c | 74 _cleanup_free_ char *comm = NULL; local 80 get_process_comm(pid, &comm); 86 "system instead.", pid, strna(comm));
|
H A D | busname.c | 752 const char *comm = NULL; local 806 comm = d->str; 812 log_unit_debug(UNIT(n), "Activation triggered by process " PID_FMT " (%s)", pid, strna(comm));
|
H A D | unit.c | 3503 _cleanup_free_ char *comm = NULL; local 3504 get_process_comm(main_pid, &comm); 3506 log_unit_warning_errno(u, r, "Failed to kill main process " PID_FMT " (%s), ignoring: %m", main_pid, strna(comm)); 3520 _cleanup_free_ char *comm = NULL; local 3521 get_process_comm(control_pid, &comm); 3523 log_unit_warning_errno(u, r, "Failed to kill control process " PID_FMT " (%s), ignoring: %m", control_pid, strna(comm));
|
/systemd/src/libsystemd/sd-bus/ |
H A D | bus-creds.h | 49 char *comm; member in struct:sd_bus_creds
|
H A D | bus-creds.c | 105 free(c->comm); 350 assert(c->comm); 351 *ret = c->comm; 984 r = get_process_comm(pid, &c->comm); 1032 if (asprintf(&p, "/proc/"PID_FMT"/task/"PID_FMT"/comm", pid, tid) < 0) 1211 assert(c->comm); 1213 n->comm = strdup(c->comm); 1214 if (!n->comm)
|
H A D | busctl.c | 175 const char *comm = NULL; local 177 sd_bus_creds_get_comm(creds, &comm); 179 printf(" %10lu %-15s", (unsigned long) pid, strna(comm));
|
H A D | bus-dump.c | 411 fprintf(f, "%sComm=%s%s%s", prefix, color, c->comm, suffix);
|
H A D | bus-control.c | 495 r = free_and_strdup(&c->comm, item->str);
|
H A D | bus-kernel.c | 685 m->creds.comm = d->str;
|
/systemd/src/coredump/ |
H A D | coredumpctl.c | 305 *sgnl = NULL, *exe = NULL, *comm = NULL, *cmdline = NULL, local 323 retrieve(d, l, "COREDUMP_COMM", &comm); 328 if (!pid && !uid && !gid && !sgnl && !exe && !comm && !cmdline && !filename) { 357 strna(exe ?: (comm ?: cmdline))); 365 *sgnl = NULL, *exe = NULL, *comm = NULL, *cmdline = NULL, local 383 retrieve(d, l, "COREDUMP_COMM", &comm); 402 if (comm) 405 ansi_highlight(), strna(pid), ansi_normal(), comm);
|
H A D | coredump.c | 187 [CONTEXT_COMM] = "user.coredump.comm", 909 _cleanup_free_ char *exe = NULL, *comm = NULL; local 928 r = get_process_comm(pid, &comm); 931 comm = strv_join(argv + CONTEXT_COMM + 1, " "); 932 if (!comm) 946 context[CONTEXT_COMM] = comm; 1008 if (comm) { 1009 core_comm = strjoina("COREDUMP_COMM=", comm);
|
/systemd/src/shared/ |
H A D | logs-show.c | 220 _cleanup_free_ char *hostname = NULL, *identifier = NULL, *comm = NULL, *pid = NULL, *fake_pid = NULL, *message = NULL, *realtime = NULL, *monotonic = NULL, *priority = NULL; local 256 r = parse_field(data, length, "_COMM=", &comm, &comm_len); 378 } else if (comm && shall_print(comm, comm_len, flags)) { 379 fprintf(f, " %.*s", (int) comm_len, comm);
|
/systemd/src/journal/ |
H A D | journalctl.c | 927 _cleanup_free_ char *comm; local 929 comm = strndup(basename(path), 15); 930 if (!comm) 933 t = strappend("_COMM=", comm);
|
/systemd/src/systemd/ |
H A D | sd-bus.h | 352 int sd_bus_creds_get_comm(sd_bus_creds *c, const char **comm); 353 int sd_bus_creds_get_tid_comm(sd_bus_creds *c, const char **comm);
|
/systemd/src/systemctl/ |
H A D | systemctl.c | 2941 _cleanup_free_ char *comm = NULL, *user = NULL; local 2962 get_process_comm(pid, &comm); 2966 who, (pid_t) pid, strna(comm), strna(user), why); 3623 _cleanup_free_ char *comm = NULL; local 3624 get_process_comm(i->main_pid, &comm); 3625 if (comm) 3626 printf(" (%s)", comm);
|