Lines Matching refs:comm
26 static int find_comm(struct perf_evlist *evlist, const char *comm)
35 (pid_t)event->comm.pid == getpid() &&
36 (pid_t)event->comm.tid == getpid() &&
37 strcmp(event->comm.comm, comm) == 0)
68 const char *comm;
88 evsel->attr.comm = 1;
101 * First, test that a 'comm' event can be found when the event is
107 comm = "Test COMM 1";
108 CHECK__(prctl(PR_SET_NAME, (unsigned long)comm, 0, 0, 0));
112 found = find_comm(evlist, comm);
119 * Secondly, test that a 'comm' event can be found when the event is
129 comm = "Test COMM 2";
130 CHECK__(prctl(PR_SET_NAME, (unsigned long)comm, 0, 0, 0));
134 found = find_comm(evlist, comm);