Skip to content

Commit a18382b

Browse files
Jiri Olsaacmel
authored andcommitted
perf tools: Make perf_event__synthesize_mmap_events global
Making perf_event__synthesize_mmap_events global, it will be used in following patch from test code. Signed-off-by: Jiri Olsa <jolsa@redhat.com> Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com> Cc: David Ahern <dsahern@gmail.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@kernel.org> Cc: Jean Pihet <jean.pihet@linaro.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/1389098853-14466-4-git-send-email-jolsa@redhat.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent 14bd6d2 commit a18382b

2 files changed

Lines changed: 13 additions & 6 deletions

File tree

‎tools/perf/util/event.c‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -175,12 +175,12 @@ static pid_t perf_event__synthesize_comm(struct perf_tool *tool,
175175
return tgid;
176176
}
177177

178-
static int perf_event__synthesize_mmap_events(struct perf_tool *tool,
179-
union perf_event *event,
180-
pid_t pid, pid_t tgid,
181-
perf_event__handler_t process,
182-
struct machine *machine,
183-
bool mmap_data)
178+
int perf_event__synthesize_mmap_events(struct perf_tool *tool,
179+
union perf_event *event,
180+
pid_t pid, pid_t tgid,
181+
perf_event__handler_t process,
182+
struct machine *machine,
183+
bool mmap_data)
184184
{
185185
char filename[PATH_MAX];
186186
FILE *fp;

‎tools/perf/util/event.h‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,13 @@ int perf_event__synthesize_sample(union perf_event *event, u64 type,
266266
const struct perf_sample *sample,
267267
bool swapped);
268268

269+
int perf_event__synthesize_mmap_events(struct perf_tool *tool,
270+
union perf_event *event,
271+
pid_t pid, pid_t tgid,
272+
perf_event__handler_t process,
273+
struct machine *machine,
274+
bool mmap_data);
275+
269276
size_t perf_event__fprintf_comm(union perf_event *event, FILE *fp);
270277
size_t perf_event__fprintf_mmap(union perf_event *event, FILE *fp);
271278
size_t perf_event__fprintf_mmap2(union perf_event *event, FILE *fp);

0 commit comments

Comments
 (0)