Lines Matching refs:printf
142 printf(" struct %s__%s {\n", obj_name, sec_ident); in codegen_datasec_def()
187 printf("\t\tchar __pad%d[%d];\n", in codegen_datasec_def()
200 printf("\t\t"); in codegen_datasec_def()
204 printf(";\n"); in codegen_datasec_def()
208 printf(" } *%s;\n", sec_ident); in codegen_datasec_def()
273 printf(" struct %s__%s {\n", obj_name, map_ident); in codegen_datasecs()
274 printf(" } *%s;\n", map_ident); in codegen_datasecs()
325 printf(" struct %s__%s {\n", obj_name, sec_ident); in codegen_subskel_datasecs()
350 printf("\t\t"); in codegen_subskel_datasecs()
359 printf("typeof("); in codegen_subskel_datasecs()
366 printf(")"); in codegen_subskel_datasecs()
368 printf(" *%s;\n", var_name); in codegen_subskel_datasecs()
370 printf(" } %s;\n", sec_ident); in codegen_subskel_datasecs()
446 printf("\\\n"); in print_hex()
450 printf("\\0"); in print_hex()
452 printf("\\x%02x", (unsigned char)data[i]); in print_hex()
519 printf("\t_Static_assert(sizeof(s->%s->%s) == %ld, \"unexpected size of '%s'\");\n", in codegen_asserts()
551 printf("\tint fd = skel_raw_tracepoint_open(\"%s\", prog_fd);\n", tp_name); in codegen_attach_detach()
556 printf("\tint fd = skel_link_create(prog_fd, 0, BPF_TRACE_ITER);\n"); in codegen_attach_detach()
558 printf("\tint fd = skel_raw_tracepoint_open(NULL, prog_fd);\n"); in codegen_attach_detach()
561 printf("\tint fd = ((void)prog_fd, 0); /* auto-attach not supported */\n"); in codegen_attach_detach()
643 printf("\tskel_free_map_data(skel->%1$s, skel->maps.%1$s.initial_value, %2$zd);\n", in codegen_destroy()
855 printf("\ts->maps[%zu].mmaped = (void **)&obj->%s;\n", in codegen_maps_skeleton()
1037 printf("\tstruct {\n"); in do_skeleton()
1042 printf("\t\tstruct bpf_map_desc %s;\n", ident); in do_skeleton()
1044 printf("\t\tstruct bpf_map *%s;\n", ident); in do_skeleton()
1046 printf("\t} maps;\n"); in do_skeleton()
1050 printf("\tstruct {\n"); in do_skeleton()
1053 printf("\t\tstruct bpf_prog_desc %s;\n", in do_skeleton()
1056 printf("\t\tstruct bpf_program *%s;\n", in do_skeleton()
1059 printf("\t} progs;\n"); in do_skeleton()
1060 printf("\tstruct {\n"); in do_skeleton()
1063 printf("\t\tint %s_fd;\n", in do_skeleton()
1066 printf("\t\tstruct bpf_link *%s;\n", in do_skeleton()
1069 printf("\t} links;\n"); in do_skeleton()
1430 printf("\tstruct {\n"); in do_subskeleton()
1434 printf("\t\tstruct bpf_map *%s;\n", ident); in do_subskeleton()
1436 printf("\t} maps;\n"); in do_subskeleton()
1440 printf("\tstruct {\n"); in do_subskeleton()
1442 printf("\t\tstruct bpf_program *%s;\n", in do_subskeleton()
1445 printf("\t} progs;\n"); in do_subskeleton()