Home | History | Annotate | Download | only in util

Lines Matching defs:thread

702 	int cpu, thread;
707 for (thread = 0; thread < nthreads; thread++) {
708 FD(evsel, cpu, thread) = -1;
719 int cpu, thread;
722 for (thread = 0; thread < nthreads; thread++) {
723 int fd = FD(evsel, cpu, thread),
794 int cpu, thread;
797 for (thread = 0; thread < nthreads; ++thread) {
798 close(FD(evsel, cpu, thread));
799 FD(evsel, cpu, thread) = -1;
849 int cpu, int thread, bool scale)
854 if (FD(evsel, cpu, thread) < 0)
860 if (readn(FD(evsel, cpu, thread), &count, nv * sizeof(u64)) < 0)
881 int cpu, thread;
887 for (thread = 0; thread < nthreads; thread++) {
888 if (FD(evsel, cpu, thread) < 0)
891 if (readn(FD(evsel, cpu, thread),
923 static int get_group_fd(struct perf_evsel *evsel, int cpu, int thread)
937 fd = FD(leader, cpu, thread);
1005 int cpu, thread;
1033 for (thread = 0; thread < threads->nr; thread++) {
1037 pid = threads->map[thread];
1039 group_fd = get_group_fd(evsel, cpu, thread);
1044 FD(evsel, cpu, thread) = sys_perf_event_open(&evsel->attr,
1048 if (FD(evsel, cpu, thread) < 0) {
1083 if (err != -EINVAL || cpu > 0 || thread > 0)
1100 while (--thread >= 0) {
1101 close(FD(evsel, cpu, thread));
1102 FD(evsel, cpu, thread) = -1;
1104 thread = threads->nr;