Searched refs:comm (Results 1 - 20 of 20) sorted by relevance

/systemd/src/login/
H A Dlogind-action.c132 _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 Dinhibit.c101 _cleanup_free_ char *comm = NULL, *u = NULL; local
106 get_process_comm(pid, &comm);
113 who, uid, strna(u), pid, strna(comm),
H A Dlogind-dbus.c1524 _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 Dbus-proxyd.c86 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 Dstdio-bridge.c149 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 Dkillall.c74 _cleanup_free_ char *comm = NULL; local
80 get_process_comm(pid, &comm);
86 "system instead.", pid, strna(comm));
H A Dbusname.c752 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 Dunit.c3503 _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 Dbus-creds.h49 char *comm; member in struct:sd_bus_creds
H A Dbus-creds.c105 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 Dbusctl.c175 const char *comm = NULL; local
177 sd_bus_creds_get_comm(creds, &comm);
179 printf(" %10lu %-15s", (unsigned long) pid, strna(comm));
H A Dbus-dump.c411 fprintf(f, "%sComm=%s%s%s", prefix, color, c->comm, suffix);
H A Dbus-control.c495 r = free_and_strdup(&c->comm, item->str);
H A Dbus-kernel.c685 m->creds.comm = d->str;
/systemd/src/coredump/
H A Dcoredumpctl.c305 *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 Dcoredump.c187 [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 Dlogs-show.c220 _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 Djournalctl.c927 _cleanup_free_ char *comm; local
929 comm = strndup(basename(path), 15);
930 if (!comm)
933 t = strappend("_COMM=", comm);
/systemd/src/systemd/
H A Dsd-bus.h352 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 Dsystemctl.c2941 _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);

Completed in 234 milliseconds