builtin-stat.c (6a4bb04caacc8c2d06f345130e9086e3fea38ca7) | builtin-stat.c (63dab225f334e0e21f7106aed8d888b500b53ce6) |
---|---|
1/* 2 * builtin-stat.c 3 * 4 * Builtin stat command: Give a precise performance counters summary 5 * overview about any workload, CPU or specific PID. 6 * 7 * Sample output: 8 --- 464 unchanged lines hidden (view full) --- 473 close(child_ready_pipe[1]); 474 close(go_pipe[0]); 475 if (read(child_ready_pipe[0], &buf, 1) == -1) 476 perror("unable to read pipe"); 477 close(child_ready_pipe[0]); 478 } 479 480 if (group) | 1/* 2 * builtin-stat.c 3 * 4 * Builtin stat command: Give a precise performance counters summary 5 * overview about any workload, CPU or specific PID. 6 * 7 * Sample output: 8 --- 464 unchanged lines hidden (view full) --- 473 close(child_ready_pipe[1]); 474 close(go_pipe[0]); 475 if (read(child_ready_pipe[0], &buf, 1) == -1) 476 perror("unable to read pipe"); 477 close(child_ready_pipe[0]); 478 } 479 480 if (group) |
481 perf_evlist__group(evsel_list); | 481 perf_evlist__set_leader(evsel_list); |
482 483 first = list_entry(evsel_list->entries.next, struct perf_evsel, node); 484 485 list_for_each_entry(counter, &evsel_list->entries, node) { 486 if (create_perf_stat_counter(counter, first) < 0) { 487 /* 488 * PPC returns ENXIO for HW counters until 2.6.37 489 * (behavior changed with commit b0a873e). --- 802 unchanged lines hidden --- | 482 483 first = list_entry(evsel_list->entries.next, struct perf_evsel, node); 484 485 list_for_each_entry(counter, &evsel_list->entries, node) { 486 if (create_perf_stat_counter(counter, first) < 0) { 487 /* 488 * PPC returns ENXIO for HW counters until 2.6.37 489 * (behavior changed with commit b0a873e). --- 802 unchanged lines hidden --- |