libperf: Include perf_evsel in evsel object
Including perf_evsel in evsel object, will continue to move other generic things into libperf's perf_evsel struct. Signed-off-by: Jiri Olsa <jolsa@kernel.org> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Alexey Budankov <alexey.budankov@linux.intel.com> Cc: Andi Kleen <ak@linux.intel.com> Cc: Michael Petlan <mpetlan@redhat.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/20190721112506.12306-36-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:

committed by
Arnaldo Carvalho de Melo

parent
285a30c36d
commit
b27c4ece72
@@ -3212,7 +3212,7 @@ static void perf_evsel_menu__write(struct ui_browser *browser,
|
||||
{
|
||||
struct evsel_menu *menu = container_of(browser,
|
||||
struct evsel_menu, b);
|
||||
struct evsel *evsel = list_entry(entry, struct evsel, node);
|
||||
struct evsel *evsel = list_entry(entry, struct evsel, core.node);
|
||||
struct hists *hists = evsel__hists(evsel);
|
||||
bool current_entry = ui_browser__is_current_entry(browser, row);
|
||||
unsigned long nr_events = hists->stats.nr_events[PERF_RECORD_SAMPLE];
|
||||
@@ -3309,13 +3309,13 @@ browse_hists:
|
||||
ui_browser__show_title(&menu->b, title);
|
||||
switch (key) {
|
||||
case K_TAB:
|
||||
if (pos->node.next == &evlist->entries)
|
||||
if (pos->core.node.next == &evlist->entries)
|
||||
pos = perf_evlist__first(evlist);
|
||||
else
|
||||
pos = perf_evsel__next(pos);
|
||||
goto browse_hists;
|
||||
case K_UNTAB:
|
||||
if (pos->node.prev == &evlist->entries)
|
||||
if (pos->core.node.prev == &evlist->entries)
|
||||
pos = perf_evlist__last(evlist);
|
||||
else
|
||||
pos = perf_evsel__prev(pos);
|
||||
@@ -3351,7 +3351,7 @@ out:
|
||||
static bool filter_group_entries(struct ui_browser *browser __maybe_unused,
|
||||
void *entry)
|
||||
{
|
||||
struct evsel *evsel = list_entry(entry, struct evsel, node);
|
||||
struct evsel *evsel = list_entry(entry, struct evsel, core.node);
|
||||
|
||||
if (symbol_conf.event_group && !perf_evsel__is_group_leader(evsel))
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user