builtin-top.c (6a4bb04caacc8c2d06f345130e9086e3fea38ca7) | builtin-top.c (63dab225f334e0e21f7106aed8d888b500b53ce6) |
---|---|
1/* 2 * builtin-top.c 3 * 4 * Builtin top command: Display a continuously updated profile of 5 * any workload, CPU or specific PID. 6 * 7 * Copyright (C) 2008, Red Hat Inc, Ingo Molnar <mingo@redhat.com> 8 * 2011, Red Hat Inc, Arnaldo Carvalho de Melo <acme@redhat.com> --- 876 unchanged lines hidden (view full) --- 885} 886 887static void perf_top__start_counters(struct perf_top *top) 888{ 889 struct perf_evsel *counter; 890 struct perf_evlist *evlist = top->evlist; 891 892 if (top->group) | 1/* 2 * builtin-top.c 3 * 4 * Builtin top command: Display a continuously updated profile of 5 * any workload, CPU or specific PID. 6 * 7 * Copyright (C) 2008, Red Hat Inc, Ingo Molnar <mingo@redhat.com> 8 * 2011, Red Hat Inc, Arnaldo Carvalho de Melo <acme@redhat.com> --- 876 unchanged lines hidden (view full) --- 885} 886 887static void perf_top__start_counters(struct perf_top *top) 888{ 889 struct perf_evsel *counter; 890 struct perf_evlist *evlist = top->evlist; 891 892 if (top->group) |
893 perf_evlist__group(evlist); | 893 perf_evlist__set_leader(evlist); |
894 895 list_for_each_entry(counter, &evlist->entries, node) { 896 struct perf_event_attr *attr = &counter->attr; 897 898 attr->sample_type = PERF_SAMPLE_IP | PERF_SAMPLE_TID; 899 900 if (top->freq) { 901 attr->sample_type |= PERF_SAMPLE_PERIOD; --- 462 unchanged lines hidden --- | 894 895 list_for_each_entry(counter, &evlist->entries, node) { 896 struct perf_event_attr *attr = &counter->attr; 897 898 attr->sample_type = PERF_SAMPLE_IP | PERF_SAMPLE_TID; 899 900 if (top->freq) { 901 attr->sample_type |= PERF_SAMPLE_PERIOD; --- 462 unchanged lines hidden --- |