diff options
Diffstat (limited to 'tools/perf/util/trace-event-info.c')
| -rw-r--r-- | tools/perf/util/trace-event-info.c | 17 | 
1 files changed, 8 insertions, 9 deletions
diff --git a/tools/perf/util/trace-event-info.c b/tools/perf/util/trace-event-info.c index 4550015b9d5d..086e98ff42a3 100644 --- a/tools/perf/util/trace-event-info.c +++ b/tools/perf/util/trace-event-info.c @@ -2,7 +2,6 @@  /*   * Copyright (C) 2008,2009, Steven Rostedt <srostedt@redhat.com>   */ -#include "util.h"  #include <dirent.h>  #include <mntent.h>  #include <stdio.h> @@ -19,8 +18,8 @@  #include <linux/list.h>  #include <linux/kernel.h>  #include <linux/zalloc.h> +#include <internal/lib.h> // page_size -#include "../perf.h"  #include "trace-event.h"  #include <api/fs/tracing_path.h>  #include "evsel.h" @@ -405,11 +404,11 @@ static struct tracepoint_path *  get_tracepoints_path(struct list_head *pattrs)  {  	struct tracepoint_path path, *ppath = &path; -	struct perf_evsel *pos; +	struct evsel *pos;  	int nr_tracepoints = 0; -	list_for_each_entry(pos, pattrs, node) { -		if (pos->attr.type != PERF_TYPE_TRACEPOINT) +	list_for_each_entry(pos, pattrs, core.node) { +		if (pos->core.attr.type != PERF_TYPE_TRACEPOINT)  			continue;  		++nr_tracepoints; @@ -425,7 +424,7 @@ get_tracepoints_path(struct list_head *pattrs)  		}  try_id: -		ppath->next = tracepoint_id_to_path(pos->attr.config); +		ppath->next = tracepoint_id_to_path(pos->core.attr.config);  		if (!ppath->next) {  error:  			pr_debug("No memory to alloc tracepoints list\n"); @@ -441,10 +440,10 @@ next:  bool have_tracepoints(struct list_head *pattrs)  { -	struct perf_evsel *pos; +	struct evsel *pos; -	list_for_each_entry(pos, pattrs, node) -		if (pos->attr.type == PERF_TYPE_TRACEPOINT) +	list_for_each_entry(pos, pattrs, core.node) +		if (pos->core.attr.type == PERF_TYPE_TRACEPOINT)  			return true;  	return false;  | 
