diff options
Diffstat (limited to 'tools/perf/util/probe-event.h')
-rw-r--r-- | tools/perf/util/probe-event.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/tools/perf/util/probe-event.h b/tools/perf/util/probe-event.h index fcaf7273e85a..776c9347a3b6 100644 --- a/tools/perf/util/probe-event.h +++ b/tools/perf/util/probe-event.h | |||
@@ -2,6 +2,7 @@ | |||
2 | #define _PROBE_EVENT_H | 2 | #define _PROBE_EVENT_H |
3 | 3 | ||
4 | #include <stdbool.h> | 4 | #include <stdbool.h> |
5 | #include "intlist.h" | ||
5 | #include "strlist.h" | 6 | #include "strlist.h" |
6 | #include "strfilter.h" | 7 | #include "strfilter.h" |
7 | 8 | ||
@@ -76,13 +77,6 @@ struct perf_probe_event { | |||
76 | struct perf_probe_arg *args; /* Arguments */ | 77 | struct perf_probe_arg *args; /* Arguments */ |
77 | }; | 78 | }; |
78 | 79 | ||
79 | |||
80 | /* Line number container */ | ||
81 | struct line_node { | ||
82 | struct list_head list; | ||
83 | int line; | ||
84 | }; | ||
85 | |||
86 | /* Line range */ | 80 | /* Line range */ |
87 | struct line_range { | 81 | struct line_range { |
88 | char *file; /* File name */ | 82 | char *file; /* File name */ |
@@ -92,7 +86,7 @@ struct line_range { | |||
92 | int offset; /* Start line offset */ | 86 | int offset; /* Start line offset */ |
93 | char *path; /* Real path name */ | 87 | char *path; /* Real path name */ |
94 | char *comp_dir; /* Compile directory */ | 88 | char *comp_dir; /* Compile directory */ |
95 | struct list_head line_list; /* Visible lines */ | 89 | struct intlist *line_list; /* Visible lines */ |
96 | }; | 90 | }; |
97 | 91 | ||
98 | /* List of variables */ | 92 | /* List of variables */ |
@@ -124,7 +118,7 @@ extern int parse_line_range_desc(const char *cmd, struct line_range *lr); | |||
124 | extern void line_range__clear(struct line_range *lr); | 118 | extern void line_range__clear(struct line_range *lr); |
125 | 119 | ||
126 | /* Initialize line range */ | 120 | /* Initialize line range */ |
127 | extern void line_range__init(struct line_range *lr); | 121 | extern int line_range__init(struct line_range *lr); |
128 | 122 | ||
129 | /* Internal use: Return kernel/module path */ | 123 | /* Internal use: Return kernel/module path */ |
130 | extern const char *kernel_get_module_path(const char *module); | 124 | extern const char *kernel_get_module_path(const char *module); |