• Home
  • Raw
  • Download

Lines Matching refs:params

50 } params;  variable
55 struct perf_probe_event *pev = &params.events[params.nevents]; in parse_probe_event()
58 pr_debug("probe-definition(%d): %s\n", params.nevents, str); in parse_probe_event()
59 if (++params.nevents == MAX_PROBES) { in parse_probe_event()
64 pev->uprobes = params.uprobes; in parse_probe_event()
65 if (params.target) { in parse_probe_event()
66 pev->target = strdup(params.target); in parse_probe_event()
69 params.target_used = true; in parse_probe_event()
72 pev->nsi = nsinfo__get(params.nsi); in parse_probe_event()
87 if (!params.filter) { in params_add_filter()
88 params.filter = strfilter__new(str, &err); in params_add_filter()
89 if (!params.filter) in params_add_filter()
92 ret = strfilter__or(params.filter, str, &err); in params_add_filter()
115 if (!params.target && ptr && *ptr == '/') { in set_target()
116 params.target = strdup(ptr); in set_target()
117 if (!params.target) in set_target()
119 params.target_used = false; in set_target()
125 params.uprobes = true; in set_target()
175 params.uprobes = true; in opt_set_target()
177 params.uprobes = false; in opt_set_target()
182 if (params.uprobes || strchr(str, '/')) { in opt_set_target()
183 tmp = nsinfo__realpath(str, params.nsi); in opt_set_target()
193 free(params.target); in opt_set_target()
194 params.target = tmp; in opt_set_target()
195 params.target_used = false; in opt_set_target()
220 params.nsi = nsinfo__get(nsip); in opt_set_target_ns()
241 if (params.command == 'L') { in opt_show_lines()
247 params.command = opt->short_name; in opt_show_lines()
248 ret = parse_line_range_desc(str, &params.line_range); in opt_show_lines()
256 struct perf_probe_event *pev = &params.events[params.nevents]; in opt_show_vars()
267 params.command = opt->short_name; in opt_show_vars()
279 params.command = opt->short_name; in opt_add_probe_event()
290 params.command = opt->short_name; in opt_set_filter_with_command()
309 return line_range__init(&params.line_range); in init_params()
316 for (i = 0; i < params.nevents; i++) in cleanup_params()
317 clear_perf_probe_event(params.events + i); in cleanup_params()
318 line_range__clear(&params.line_range); in cleanup_params()
319 free(params.target); in cleanup_params()
320 strfilter__delete(params.filter); in cleanup_params()
321 nsinfo__put(params.nsi); in cleanup_params()
322 memset(&params, 0, sizeof(params)); in cleanup_params()
349 if (params.command == 'D') { /* it shows definition */ in perf_add_probe_events()
513 OPT_BOOLEAN('q', "quiet", &params.quiet, in __cmd_probe()
615 if (params.command && params.command != 'a') { in __cmd_probe()
624 params.command = 'a'; in __cmd_probe()
627 if (params.quiet) { in __cmd_probe()
648 if (!strchr("lda", params.command) && symbol_conf.vmlinux_name) in __cmd_probe()
651 switch (params.command) { in __cmd_probe()
653 if (params.uprobes) { in __cmd_probe()
659 ret = show_perf_probe_events(params.filter); in __cmd_probe()
664 ret = show_available_funcs(params.target, params.nsi, in __cmd_probe()
665 params.filter, params.uprobes); in __cmd_probe()
671 ret = show_line_range(&params.line_range, params.target, in __cmd_probe()
672 params.nsi, params.uprobes); in __cmd_probe()
677 if (!params.filter) in __cmd_probe()
678 params.filter = strfilter__new(DEFAULT_VAR_FILTER, in __cmd_probe()
681 ret = show_available_vars(params.events, params.nevents, in __cmd_probe()
682 params.filter); in __cmd_probe()
688 ret = perf_del_probe_events(params.filter); in __cmd_probe()
698 if (params.target && !params.target_used) { in __cmd_probe()
705 ret = perf_add_probe_events(params.events, params.nevents); in __cmd_probe()
716 params.nevents = 0; in __cmd_probe()