Lines Matching defs:comm
70 * the comm, tgid and ppid.
72 static int perf_event__get_comm_ids(pid_t pid, pid_t tid, char *comm, size_t len,
125 memcpy(comm, name, size);
126 comm[size] = '\0';
161 memset(&event->comm, 0, sizeof(event->comm));
164 if (perf_event__get_comm_ids(pid, tid, event->comm.comm,
165 sizeof(event->comm.comm),
176 event->comm.pid = *tgid;
177 event->comm.header.type = PERF_RECORD_COMM;
179 size = strlen(event->comm.comm) + 1;
181 memset(event->comm.comm + size, 0, machine->id_hdr_size);
182 event->comm.header.size = (sizeof(event->comm) -
183 (sizeof(event->comm.comm) - size) +
185 event->comm.tid = tid;
759 /* special case: only send one comm event using passed in pid */
817 * Send the prepared comm event
849 comm_event = malloc(sizeof(comm_event->comm) + machine->id_hdr_size);
879 * comm.pid is set to thread group id by
882 if ((int) comm_event->comm.pid != perf_thread_map__pid(threads, thread)) {
887 if ((int) comm_event->comm.pid == perf_thread_map__pid(threads, j)) {
897 comm_event->comm.pid, 0,
932 comm_event = malloc(sizeof(comm_event->comm) + machine->id_hdr_size);
1204 char *comm = perf_thread_map__comm(threads, i);
1206 if (!comm)
1207 comm = (char *) "";
1210 strncpy((char *) &entry->comm, comm, sizeof(entry->comm));