evsel.c (6a4bb04caacc8c2d06f345130e9086e3fea38ca7) | evsel.c (63dab225f334e0e21f7106aed8d888b500b53ce6) |
---|---|
1/* 2 * Copyright (C) 2011, Red Hat Inc, Arnaldo Carvalho de Melo <acme@redhat.com> 3 * 4 * Parts came from builtin-{top,stat,record}.c, see those files for further 5 * copyright notes. 6 * 7 * Released under the GPL v2. (and only v2, not any later version) 8 */ --- 608 unchanged lines hidden (view full) --- 617 FD(evsel, cpu, thread) = sys_perf_event_open(&evsel->attr, 618 pid, 619 cpus->map[cpu], 620 group_fd, flags); 621 if (FD(evsel, cpu, thread) < 0) { 622 err = -errno; 623 goto out_close; 624 } | 1/* 2 * Copyright (C) 2011, Red Hat Inc, Arnaldo Carvalho de Melo <acme@redhat.com> 3 * 4 * Parts came from builtin-{top,stat,record}.c, see those files for further 5 * copyright notes. 6 * 7 * Released under the GPL v2. (and only v2, not any later version) 8 */ --- 608 unchanged lines hidden (view full) --- 617 FD(evsel, cpu, thread) = sys_perf_event_open(&evsel->attr, 618 pid, 619 cpus->map[cpu], 620 group_fd, flags); 621 if (FD(evsel, cpu, thread) < 0) { 622 err = -errno; 623 goto out_close; 624 } |
625 626 pr_debug("event cpu %d, thread %d, fd %d, group %d\n", 627 cpu, pid, FD(evsel, cpu, thread), 628 group_fd); | |
629 } 630 } 631 632 return 0; 633 634out_close: 635 do { 636 while (--thread >= 0) { --- 369 unchanged lines hidden --- | 625 } 626 } 627 628 return 0; 629 630out_close: 631 do { 632 while (--thread >= 0) { --- 369 unchanged lines hidden --- |