diff options
-rw-r--r-- | tools/perf/builtin-probe.c | 4 | ||||
-rw-r--r-- | tools/perf/util/probe-event.c | 2 | ||||
-rw-r--r-- | tools/perf/util/probe-event.h | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/tools/perf/builtin-probe.c b/tools/perf/builtin-probe.c index 91bb6cf4e025..c777bec28466 100644 --- a/tools/perf/builtin-probe.c +++ b/tools/perf/builtin-probe.c | |||
@@ -305,8 +305,8 @@ int cmd_probe(int argc, const char **argv, const char *prefix __used) | |||
305 | 305 | ||
306 | if (params.nevents) { | 306 | if (params.nevents) { |
307 | ret = add_perf_probe_events(params.events, params.nevents, | 307 | ret = add_perf_probe_events(params.events, params.nevents, |
308 | params.force_add, | 308 | params.max_probe_points, |
309 | params.max_probe_points); | 309 | params.force_add); |
310 | if (ret < 0) { | 310 | if (ret < 0) { |
311 | pr_err(" Error: Failed to add events. (%d)\n", ret); | 311 | pr_err(" Error: Failed to add events. (%d)\n", ret); |
312 | return ret; | 312 | return ret; |
diff --git a/tools/perf/util/probe-event.c b/tools/perf/util/probe-event.c index 288ebe8279d2..83192a59f02a 100644 --- a/tools/perf/util/probe-event.c +++ b/tools/perf/util/probe-event.c | |||
@@ -1668,7 +1668,7 @@ struct __event_package { | |||
1668 | }; | 1668 | }; |
1669 | 1669 | ||
1670 | int add_perf_probe_events(struct perf_probe_event *pevs, int npevs, | 1670 | int add_perf_probe_events(struct perf_probe_event *pevs, int npevs, |
1671 | bool force_add, int max_tevs) | 1671 | int max_tevs, bool force_add) |
1672 | { | 1672 | { |
1673 | int i, j, ret; | 1673 | int i, j, ret; |
1674 | struct __event_package *pkgs; | 1674 | struct __event_package *pkgs; |
diff --git a/tools/perf/util/probe-event.h b/tools/perf/util/probe-event.h index 727a7fe81a02..83130f634f01 100644 --- a/tools/perf/util/probe-event.h +++ b/tools/perf/util/probe-event.h | |||
@@ -117,7 +117,7 @@ extern int parse_line_range_desc(const char *cmd, struct line_range *lr); | |||
117 | 117 | ||
118 | 118 | ||
119 | extern int add_perf_probe_events(struct perf_probe_event *pevs, int npevs, | 119 | extern int add_perf_probe_events(struct perf_probe_event *pevs, int npevs, |
120 | bool force_add, int max_probe_points); | 120 | int max_probe_points, bool force_add); |
121 | extern int del_perf_probe_events(struct strlist *dellist); | 121 | extern int del_perf_probe_events(struct strlist *dellist); |
122 | extern int show_perf_probe_events(void); | 122 | extern int show_perf_probe_events(void); |
123 | extern int show_line_range(struct line_range *lr); | 123 | extern int show_line_range(struct line_range *lr); |