Lines Matching refs:buf_printf
1747 void __attribute__((format(printf, 2, 3))) buf_printf(struct buffer *buf, in buf_printf() function
1836 buf_printf(b, "#include <linux/module.h>\n"); in add_header()
1837 buf_printf(b, "#include <linux/vermagic.h>\n"); in add_header()
1838 buf_printf(b, "#include <linux/compiler.h>\n"); in add_header()
1839 buf_printf(b, "\n"); in add_header()
1840 buf_printf(b, "MODULE_INFO(vermagic, VERMAGIC_STRING);\n"); in add_header()
1841 buf_printf(b, "\n"); in add_header()
1842 buf_printf(b, "struct module __this_module\n"); in add_header()
1843 buf_printf(b, "__attribute__((section(\".gnu.linkonce.this_module\"))) = {\n"); in add_header()
1844 buf_printf(b, " .name = KBUILD_MODNAME,\n"); in add_header()
1846 buf_printf(b, " .init = init_module,\n"); in add_header()
1848 buf_printf(b, "#ifdef CONFIG_MODULE_UNLOAD\n" in add_header()
1851 buf_printf(b, " .arch = MODULE_ARCH_INIT,\n"); in add_header()
1852 buf_printf(b, "};\n"); in add_header()
1860 buf_printf(b, "\nMODULE_INFO(staging, \"Y\");\n"); in add_staging_flag()
1894 buf_printf(b, "\n"); in add_versions()
1895 buf_printf(b, "static const struct modversion_info ____versions[]\n"); in add_versions()
1896 buf_printf(b, "__used\n"); in add_versions()
1897 buf_printf(b, "__attribute__((section(\"__versions\"))) = {\n"); in add_versions()
1907 buf_printf(b, "\t{ %#8x, \"%s\" },\n", s->crc, s->name); in add_versions()
1910 buf_printf(b, "};\n"); in add_versions()
1925 buf_printf(b, "\n"); in add_depends()
1926 buf_printf(b, "static const char __module_depends[]\n"); in add_depends()
1927 buf_printf(b, "__used\n"); in add_depends()
1928 buf_printf(b, "__attribute__((section(\".modinfo\"))) =\n"); in add_depends()
1929 buf_printf(b, "\"depends="); in add_depends()
1944 buf_printf(b, "%s%s", first ? "" : ",", p); in add_depends()
1947 buf_printf(b, "\";\n"); in add_depends()
1953 buf_printf(b, "\n"); in add_srcversion()
1954 buf_printf(b, "MODULE_INFO(srcversion, \"%s\");\n", in add_srcversion()
2075 buf_printf(&buf, "0x%08x\t%s\t%s\t%s\n", in write_dump()