Lines Matching defs:module

160 	const char *module;
171 if (strncmp(short_name + 1, args->module, short_name_len - 2) == 0 &&
172 args->module[short_name_len - 2] == '\0') {
179 static struct map *kernel_get_module_map(const char *module)
182 .module = module,
186 /* A file path -- this is an offline module */
187 if (module && strchr(module, '/'))
188 return dso__new_map(module);
190 if (!module) {
293 * @module can be module name of module file path. In case of path,
294 * inspect elf and find out what is actual module name.
297 static char *find_module_name(const char *module)
308 fd = open(module, O_RDONLY);
330 * '.gnu.linkonce.this_module' section of kernel module elf directly
331 * maps to 'struct module' from linux/module.h. This section contains
332 * actual module name which will be used by kernel after loading it.
333 * But, we cannot use 'struct module' here since linux/module.h is not
353 static int kernel_get_module_dso(const char *module, struct dso **pdso)
360 if (module) {
363 snprintf(module_name, sizeof(module_name), "[%s]", module);
370 pr_debug("Failed to find module %s.\n", module);
536 /* Open new debuginfo of given module */
537 static struct debuginfo *open_debuginfo(const char *module, struct nsinfo *nsi,
540 const char *path = module;
547 if (!module || !strchr(module, '/')) {
548 err = kernel_get_module_dso(module, &dso);
560 if (module)
561 pr_err("Module %s is not loaded, please specify its full path name.\n", module);
573 if (!module || !strtailcmp(path, ".ko"))
587 static struct debuginfo *debuginfo_cache__open(const char *module, bool silent)
589 const char *path = module;
591 /* If the module is NULL, it should be the kernel. */
592 if (!module)
598 /* Copy module path */
607 debuginfo_cache = open_debuginfo(module, NULL, silent);
677 ret = get_text_start_address(tp->module, &stext, NULL);
682 /* If the module is given, this returns relative address */
684 false, !!tp->module);
691 tp->module ? : "kernel");
693 dinfo = debuginfo_cache__open(tp->module, verbose <= 0);
791 tevs[i].point.module = strdup(exec);
792 if (!tevs[i].point.module) {
804 int ntevs, const char *module,
812 if (!module)
815 map = get_target_map(module, NULL, false);
817 pr_warning("Failed to get ELF symbols for %s\n", module);
821 mod_name = find_module_name(module);
827 tevs[i].point.module =
828 strdup(mod_name ? mod_name : module);
829 if (!tevs[i].point.module) {
905 int ntevs, const char *module,
911 ret = add_exec_to_probe_trace_events(tevs, ntevs, module,
913 else if (module)
916 module, dinfo);
938 * same issue with kernel module. The retprobe doesn`t need debuginfo.
1065 static int __show_line_range(struct line_range *lr, const char *module,
1078 dinfo = open_debuginfo(module, NULL, false);
1085 ret = get_alternative_line_range(dinfo, lr, module, user);
1164 int show_line_range(struct line_range *lr, const char *module,
1174 ret = __show_line_range(lr, module, user);
1301 const char *module __maybe_unused,
1944 /* Scan module name(if there), function name and offset */
1947 tp->module = strndup(argv[1], p - argv[1]);
1948 if (!tp->module) {
1952 tev->uprobes = (tp->module[0] == '/');
2217 /* Uprobes must have tp->module */
2218 if (!tp->module)
2230 err = strbuf_addf(buf, "%s:0x%" PRIx64, tp->module, tp->address);
2245 return strbuf_addf(buf, "%s%s0x%" PRIx64, tp->module ?: "",
2246 tp->module ? ":" : "", tp->address);
2248 return strbuf_addf(buf, "%s%s%s+%lu", tp->module ?: "",
2249 tp->module ? ":" : "", tp->symbol, tp->offset);
2292 map = dso__new_map(tp->module);
2506 zfree(&tev->point.module);
2633 const char *module,
2653 if (!ret && module)
2654 ret = strbuf_addf(result, " in %s", module);
2675 const char *module, bool use_stdout)
2680 ret = perf_probe_event__sprintf(group, event, pev, module, &buf);
2733 &pev, tev.point.module,
3222 /* Check the kprobe (not in module) is within .text */
3239 tev->point.module = strdup_or_goto(pev->target,
3243 tev->point.module =
3246 if (!tev->point.module)
3346 tp->module = strdup(pev->target);
3347 if (!tp->module)