Lines Matching defs:comm
33 static int find_comm(struct evlist *evlist, const char *comm)
46 (pid_t)event->comm.pid == getpid() &&
47 (pid_t)event->comm.tid == getpid() &&
48 strcmp(event->comm.comm, comm) == 0)
79 const char *comm;
99 evsel->core.attr.comm = 1;
112 * First, test that a 'comm' event can be found when the event is
118 comm = "Test COMM 1";
119 CHECK__(prctl(PR_SET_NAME, (unsigned long)comm, 0, 0, 0));
123 found = find_comm(evlist, comm);
130 * Secondly, test that a 'comm' event can be found when the event is
140 comm = "Test COMM 2";
141 CHECK__(prctl(PR_SET_NAME, (unsigned long)comm, 0, 0, 0));
145 found = find_comm(evlist, comm);