Lines Matching refs:buf_printf
1883 void __attribute__((format(printf, 2, 3))) buf_printf(struct buffer *buf, in buf_printf() function
1968 buf_printf(b, "#include <linux/module.h>\n"); in add_header()
1973 buf_printf(b, "#define INCLUDE_VERMAGIC\n"); in add_header()
1974 buf_printf(b, "#include <linux/build-salt.h>\n"); in add_header()
1975 buf_printf(b, "#include <linux/elfnote-lto.h>\n"); in add_header()
1976 buf_printf(b, "#include <linux/export-internal.h>\n"); in add_header()
1977 buf_printf(b, "#include <linux/vermagic.h>\n"); in add_header()
1978 buf_printf(b, "#include <linux/compiler.h>\n"); in add_header()
1979 buf_printf(b, "\n"); in add_header()
1980 buf_printf(b, "BUILD_SALT;\n"); in add_header()
1981 buf_printf(b, "BUILD_LTO_INFO;\n"); in add_header()
1982 buf_printf(b, "\n"); in add_header()
1983 buf_printf(b, "MODULE_INFO(vermagic, VERMAGIC_STRING);\n"); in add_header()
1984 buf_printf(b, "MODULE_INFO(name, KBUILD_MODNAME);\n"); in add_header()
1985 buf_printf(b, "\n"); in add_header()
1986 buf_printf(b, "__visible struct module __this_module\n"); in add_header()
1987 buf_printf(b, "__section(\".gnu.linkonce.this_module\") = {\n"); in add_header()
1988 buf_printf(b, "\t.name = KBUILD_MODNAME,\n"); in add_header()
1990 buf_printf(b, "\t.init = init_module,\n"); in add_header()
1992 buf_printf(b, "#ifdef CONFIG_MODULE_UNLOAD\n" in add_header()
1995 buf_printf(b, "\t.arch = MODULE_ARCH_INIT,\n"); in add_header()
1996 buf_printf(b, "};\n"); in add_header()
1999 buf_printf(b, "\nMODULE_INFO(intree, \"Y\");\n"); in add_header()
2001 buf_printf(b, in add_header()
2008 buf_printf(b, "\nMODULE_INFO(staging, \"Y\");\n"); in add_header()
2011 buf_printf(b, "\nMODULE_INFO(test, \"Y\");\n"); in add_header()
2022 buf_printf(buf, "\n"); in add_exported_symbols()
2030 buf_printf(buf, "SYMBOL_CRC(%s, 0x%08x, \"%s\");\n", in add_exported_symbols()
2045 buf_printf(b, "\n"); in add_versions()
2046 buf_printf(b, "static const struct modversion_info ____versions[]\n"); in add_versions()
2047 buf_printf(b, "__used __section(\"__versions\") = {\n"); in add_versions()
2062 buf_printf(b, "\t{ %#8x, \"%s\" },\n", in add_versions()
2066 buf_printf(b, "};\n"); in add_versions()
2080 buf_printf(b, "\n"); in add_depends()
2081 buf_printf(b, "MODULE_INFO(depends, \""); in add_depends()
2096 buf_printf(b, "%s%s", first ? "" : ",", p); in add_depends()
2099 buf_printf(b, "\");\n"); in add_depends()
2105 buf_printf(b, "\n"); in add_srcversion()
2106 buf_printf(b, "MODULE_INFO(srcversion, \"%s\");\n", in add_srcversion()
2172 buf_printf(&buf, in write_vmlinux_export_c_file()
2282 buf_printf(&buf, "0x%08x\t%s\t%s\tEXPORT_SYMBOL%s\t%s\n", in write_dump()
2303 buf_printf(&ns_deps_buf, "%s.ko:", mod->name); in write_namespace_deps_files()
2306 buf_printf(&ns_deps_buf, " %s", ns->namespace); in write_namespace_deps_files()
2308 buf_printf(&ns_deps_buf, "\n"); in write_namespace_deps_files()