aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-probe.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/builtin-probe.c')
-rw-r--r--tools/perf/builtin-probe.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/perf/builtin-probe.c b/tools/perf/builtin-probe.c
index adc0a55acd95..8b4fdaeefa29 100644
--- a/tools/perf/builtin-probe.c
+++ b/tools/perf/builtin-probe.c
@@ -61,6 +61,7 @@ static struct {
61 char *release; 61 char *release;
62 bool need_dwarf; 62 bool need_dwarf;
63 bool list_events; 63 bool list_events;
64 bool force_add;
64 int nr_probe; 65 int nr_probe;
65 struct probe_point probes[MAX_PROBES]; 66 struct probe_point probes[MAX_PROBES];
66 struct strlist *dellist; 67 struct strlist *dellist;
@@ -192,6 +193,8 @@ static const struct option options[] = {
192#endif 193#endif
193 "\t\t\tkprobe-tracer argument format.)\n", 194 "\t\t\tkprobe-tracer argument format.)\n",
194 opt_add_probe_event), 195 opt_add_probe_event),
196 OPT_BOOLEAN('f', "force", &session.force_add, "forcibly add events"
197 " with existing name"),
195 OPT_END() 198 OPT_END()
196}; 199};
197 200
@@ -294,7 +297,8 @@ end_dwarf:
294 } 297 }
295 298
296 /* Settng up probe points */ 299 /* Settng up probe points */
297 add_trace_kprobe_events(session.probes, session.nr_probe); 300 add_trace_kprobe_events(session.probes, session.nr_probe,
301 session.force_add);
298 return 0; 302 return 0;
299} 303}
300 304