Lines Matching defs:watches
203 struct counter_watch *watches;
241 watches = calloc(nwatch, sizeof(*watches));
242 if (!watches) {
243 perror("Error allocating watches\n");
248 watches = simple_watch;
266 watches[i].component.scope = ret;
276 watches[i].component.type = ret;
288 watches[i].event = ret;
296 watches[i].channel = strtoul(value, NULL, 10);
309 watches[i].component.id = strtoul(value, NULL, 10);
322 watches[i].component.parent = strtoul(value, NULL, 10);
341 print_watch(watches, nwatch);
363 ret = ioctl(fd, COUNTER_ADD_WATCH_IOCTL, watches + i);
365 fprintf(stderr, "Error adding watches[%d]: %s\n", i,
407 if (watches != simple_watch)
408 free(watches);