Lines Matching refs:buf_printf

2121 void __attribute__((format(printf, 2, 3))) buf_printf(struct buffer *buf,  in buf_printf()  function
2233 buf_printf(b, "#include <linux/module.h>\n"); in add_header()
2238 buf_printf(b, "#define INCLUDE_VERMAGIC\n"); in add_header()
2239 buf_printf(b, "#include <linux/build-salt.h>\n"); in add_header()
2240 buf_printf(b, "#include <linux/vermagic.h>\n"); in add_header()
2241 buf_printf(b, "#include <linux/compiler.h>\n"); in add_header()
2242 buf_printf(b, "\n"); in add_header()
2243 buf_printf(b, "BUILD_SALT;\n"); in add_header()
2244 buf_printf(b, "\n"); in add_header()
2245 buf_printf(b, "MODULE_INFO(vermagic, VERMAGIC_STRING);\n"); in add_header()
2246 buf_printf(b, "MODULE_INFO(name, KBUILD_MODNAME);\n"); in add_header()
2247 buf_printf(b, "\n"); in add_header()
2248 buf_printf(b, "__visible struct module __this_module\n"); in add_header()
2249 buf_printf(b, "__section(\".gnu.linkonce.this_module\") = {\n"); in add_header()
2250 buf_printf(b, "\t.name = KBUILD_MODNAME,\n"); in add_header()
2252 buf_printf(b, "\t.init = init_module,\n"); in add_header()
2254 buf_printf(b, "#ifdef CONFIG_MODULE_UNLOAD\n" in add_header()
2257 buf_printf(b, "\t.arch = MODULE_ARCH_INIT,\n"); in add_header()
2258 buf_printf(b, "};\n"); in add_header()
2264 buf_printf(b, "\nMODULE_INFO(intree, \"Y\");\n"); in add_intree_flag()
2278 buf_printf(b, "\nMODULE_INFO(scmversion, \"%s\");\n", module_scmversion); in add_scmversion()
2284 buf_printf(b, "\n#ifdef CONFIG_RETPOLINE\n"); in add_retpoline()
2285 buf_printf(b, "MODULE_INFO(retpoline, \"Y\");\n"); in add_retpoline()
2286 buf_printf(b, "#endif\n"); in add_retpoline()
2292 buf_printf(b, "\nMODULE_INFO(staging, \"Y\");\n"); in add_staging_flag()
2314 buf_printf(b, "\n"); in add_versions()
2315 buf_printf(b, "static const struct modversion_info ____versions[]\n"); in add_versions()
2316 buf_printf(b, "__used __section(\"__versions\") = {\n"); in add_versions()
2331 buf_printf(b, "\t{ %#8x, \"%s\" },\n", in add_versions()
2335 buf_printf(b, "};\n"); in add_versions()
2348 buf_printf(b, "\n"); in add_depends()
2349 buf_printf(b, "MODULE_INFO(depends, \""); in add_depends()
2364 buf_printf(b, "%s%s", first ? "" : ",", p); in add_depends()
2367 buf_printf(b, "\");\n"); in add_depends()
2373 buf_printf(b, "\n"); in add_srcversion()
2374 buf_printf(b, "MODULE_INFO(srcversion, \"%s\");\n", in add_srcversion()
2498 buf_printf(&buf, "0x%08x\t%s\t%s\t%s\t%s\n", in write_dump()
2522 buf_printf(&ns_deps_buf, "%s.ko:", mod->name); in write_namespace_deps_files()
2525 buf_printf(&ns_deps_buf, " %s", ns->namespace); in write_namespace_deps_files()
2527 buf_printf(&ns_deps_buf, "\n"); in write_namespace_deps_files()