Lines Matching defs:comm
70 * the comm, tgid and ppid.
72 static int perf_event__get_comm_ids(pid_t pid, char *comm, size_t len,
116 memcpy(comm, name, size);
117 comm[size] = '\0';
147 memset(&event->comm, 0, sizeof(event->comm));
150 if (perf_event__get_comm_ids(pid, event->comm.comm,
151 sizeof(event->comm.comm),
162 event->comm.pid = *tgid;
163 event->comm.header.type = PERF_RECORD_COMM;
165 size = strlen(event->comm.comm) + 1;
167 memset(event->comm.comm + size, 0, machine->id_hdr_size);
168 event->comm.header.size = (sizeof(event->comm) -
169 (sizeof(event->comm.comm) - size) +
171 event->comm.tid = pid;
660 /* special case: only send one comm event using passed in pid */
718 * Send the prepared comm event
747 comm_event = malloc(sizeof(comm_event->comm) + machine->id_hdr_size);
777 * comm.pid is set to thread group id by
780 if ((int) comm_event->comm.pid != perf_thread_map__pid(threads, thread)) {
785 if ((int) comm_event->comm.pid == perf_thread_map__pid(threads, j)) {
795 comm_event->comm.pid, 0,
829 comm_event = malloc(sizeof(comm_event->comm) + machine->id_hdr_size);
1081 char *comm = perf_thread_map__comm(threads, i);
1083 if (!comm)
1084 comm = (char *) "";
1087 strncpy((char *) &entry->comm, comm, sizeof(entry->comm));