€•ƒ!Œsphinx.addnodes”Œdocument”“”)”}”(Œ rawsource”Œ”Œchildren”]”(Œ translations”Œ LanguagesNode”“”)”}”(hhh]”(hŒ pending_xref”“”)”}”(hhh]”Œdocutils.nodes”ŒText”“”ŒChinese (Simplified)”…””}”Œparent”hsbaŒ attributes”}”(Œids”]”Œclasses”]”Œnames”]”Œdupnames”]”Œbackrefs”]”Œ refdomain”Œstd”Œreftype”Œdoc”Œ reftarget”Œ+/translations/zh_CN/bpf/standardization/abi”Œmodname”NŒ classname”NŒ refexplicit”ˆuŒtagname”hhh ubh)”}”(hhh]”hŒChinese (Traditional)”…””}”hh2sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ+/translations/zh_TW/bpf/standardization/abi”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒItalian”…””}”hhFsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ+/translations/it_IT/bpf/standardization/abi”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒJapanese”…””}”hhZsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ+/translations/ja_JP/bpf/standardization/abi”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒKorean”…””}”hhnsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ+/translations/ko_KR/bpf/standardization/abi”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒSpanish”…””}”hh‚sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ+/translations/sp_SP/bpf/standardization/abi”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubeh}”(h]”h ]”h"]”h$]”h&]”Œcurrent_language”ŒEnglish”uh1h hhŒ _document”hŒsource”NŒline”NubhŒtopic”“”)”}”(hŒ Contents ”h]”(hŒtitle”“”)”}”(hŒContents”h]”hŒContents”…””}”(hh©hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h§hh£hŸŒE/var/lib/git/docbuild/linux/Documentation/bpf/standardization/abi.rst”h KubhŒ bullet_list”“”)”}”(hhh]”hŒ list_item”“”)”}”(hhh]”(hŒ paragraph”“”)”}”(hhh]”hŒ reference”“”)”}”(hhh]”(hŒ generated”“”)”}”(hhh]”hŒ1   ”…””}”(hhÎhžhhŸNh Nubah}”(h]”h ]”Œsectnum”ah"]”h$]”h&]”uh1hÌhŸNh NhhÉubhŒ3BPF ABI Recommended Conventions and Guidelines v1.0”…””}”(hhÉhžhhŸNh Nubeh}”(h]”Œid1”ah ]”h"]”h$]”h&]”Œrefid”Œ3bpf-abi-recommended-conventions-and-guidelines-v1-0”uh1hÇhhÄubah}”(h]”h ]”h"]”h$]”h&]”uh1hÂhh¿ubh¹)”}”(hhh]”h¾)”}”(hhh]”hÃ)”}”(hhh]”hÈ)”}”(hhh]”(hÍ)”}”(hhh]”hŒ 1.1   ”…””}”(hhûhžhhŸNh Nubah}”(h]”h ]”hØah"]”h$]”h&]”uh1hÌhŸNh NhhøubhŒ Registers and calling convention”…””}”(hhøhžhhŸNh Nubeh}”(h]”Œid2”ah ]”h"]”h$]”h&]”Œrefid”Œ registers-and-calling-convention”uh1hÇhhõubah}”(h]”h ]”h"]”h$]”h&]”uh1hÂhhòubah}”(h]”h ]”h"]”h$]”h&]”uh1h½hhïubah}”(h]”h ]”Œauto-toc”ah"]”h$]”h&]”uh1h¸hh¿ubeh}”(h]”h ]”h"]”h$]”h&]”uh1h½hhºubah}”(h]”h ]”j$ah"]”h$]”h&]”uh1h¸hh£hžhhŸNh Nubeh}”(h]”Œcontents”ah ]”Œcontents”ah"]”Œcontents”ah$]”h&]”uh1h¡hŸh·h KhhhžhubhŒsection”“”)”}”(hhh]”(h¨)”}”(hŒ3BPF ABI Recommended Conventions and Guidelines v1.0”h]”(hÍ)”}”(hhh]”hŒ1   ”…””}”(hjFhžhhŸNh Nubah}”(h]”h ]”hØah"]”h$]”h&]”uh1hÌhjBhžhhŸNh NubhŒ3BPF ABI Recommended Conventions and Guidelines v1.0”…””}”(hjBhžhhŸNh Nubeh}”(h]”h ]”h"]”h$]”h&]”Œauto”KŒrefid”hâuh1h§hj?hžhhŸh·h KubhÃ)”}”(hŒThis is version 1.0 of an informational document containing recommended conventions and guidelines for producing portable BPF program binaries.”h]”hŒThis is version 1.0 of an informational document containing recommended conventions and guidelines for producing portable BPF program binaries.”…””}”(hj_hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÂhŸh·h Khj?hžhubj>)”}”(hhh]”(h¨)”}”(hŒ Registers and calling convention”h]”(hÍ)”}”(hhh]”hŒ 1.1   ”…””}”(hjthžhhŸNh Nubah}”(h]”h ]”hØah"]”h$]”h&]”uh1hÌhjphžhhŸNh NubhŒ Registers and calling convention”…””}”(hjphžhhŸNh Nubeh}”(h]”h ]”h"]”h$]”h&]”j]Kj^juh1h§hjmhžhhŸh·h K ubhÃ)”}”(hŒkBPF has 10 general purpose registers and a read-only frame pointer register, all of which are 64-bits wide.”h]”hŒkBPF has 10 general purpose registers and a read-only frame pointer register, all of which are 64-bits wide.”…””}”(hj‹hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÂhŸh·h KhjmhžhubhÃ)”}”(hŒ)The BPF calling convention is defined as:”h]”hŒ)The BPF calling convention is defined as:”…””}”(hj™hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÂhŸh·h Khjmhžhubh¹)”}”(hhh]”(h¾)”}”(hŒER0: return value from function calls, and exit value for BPF programs”h]”hÃ)”}”(hj¬h]”hŒER0: return value from function calls, and exit value for BPF programs”…””}”(hj®hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÂhŸh·h Khjªubah}”(h]”h ]”h"]”h$]”h&]”uh1h½hj§hžhhŸh·h Nubh¾)”}”(hŒ%R1 - R5: arguments for function calls”h]”hÃ)”}”(hjÃh]”hŒ%R1 - R5: arguments for function calls”…””}”(hjÅhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÂhŸh·h KhjÁubah}”(h]”h ]”h"]”h$]”h&]”uh1h½hj§hžhhŸh·h Nubh¾)”}”(hŒAR6 - R9: callee saved registers that function calls will preserve”h]”hÃ)”}”(hjÚh]”hŒAR6 - R9: callee saved registers that function calls will preserve”…””}”(hjÜhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÂhŸh·h KhjØubah}”(h]”h ]”h"]”h$]”h&]”uh1h½hj§hžhhŸh·h Nubh¾)”}”(hŒ-R10: read-only frame pointer to access stack ”h]”hÃ)”}”(hŒ,R10: read-only frame pointer to access stack”h]”hŒ,R10: read-only frame pointer to access stack”…””}”(hjóhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÂhŸh·h Khjïubah}”(h]”h ]”h"]”h$]”h&]”uh1h½hj§hžhhŸh·h Nubeh}”(h]”h ]”h"]”h$]”h&]”Œbullet”Œ*”uh1h¸hŸh·h KhjmhžhubhÃ)”}”(hŒbR0 - R5 are scratch registers and BPF programs needs to spill/fill them if necessary across calls.”h]”hŒbR0 - R5 are scratch registers and BPF programs needs to spill/fill them if necessary across calls.”…””}”(hjhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÂhŸh·h KhjmhžhubhÃ)”}”(hŒZThe BPF program needs to store the return value into register R0 before doing an ``EXIT``.”h]”(hŒQThe BPF program needs to store the return value into register R0 before doing an ”…””}”(hjhžhhŸNh NubhŒliteral”“”)”}”(hŒ``EXIT``”h]”hŒEXIT”…””}”(hj'hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j%hjubhŒ.”…””}”(hjhžhhŸNh Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÂhŸh·h Khjmhžhubeh}”(h]”jah ]”h"]”Œ registers and calling convention”ah$]”h&]”uh1j=hj?hžhhŸh·h K ubeh}”(h]”hèah ]”h"]”Œ3bpf abi recommended conventions and guidelines v1.0”ah$]”h&]”uh1j=hhhžhhŸh·h Kubeh}”(h]”h ]”h"]”h$]”h&]”Œsource”h·uh1hŒcurrent_source”NŒ current_line”NŒsettings”Œdocutils.frontend”ŒValues”“”)”}”(h§NŒ generator”NŒ datestamp”NŒ source_link”NŒ source_url”NŒ toc_backlinks”Œentry”Œfootnote_backlinks”KŒ sectnum_xform”KŒstrip_comments”NŒstrip_elements_with_classes”NŒ strip_classes”NŒ report_level”KŒ halt_level”KŒexit_status_level”KŒdebug”NŒwarning_stream”NŒ traceback”ˆŒinput_encoding”Œ utf-8-sig”Œinput_encoding_error_handler”Œstrict”Œoutput_encoding”Œutf-8”Œoutput_encoding_error_handler”jpŒerror_encoding”Œutf-8”Œerror_encoding_error_handler”Œbackslashreplace”Œ language_code”Œen”Œrecord_dependencies”NŒconfig”NŒ id_prefix”hŒauto_id_prefix”Œid”Œ dump_settings”NŒdump_internals”NŒdump_transforms”NŒdump_pseudo_xml”NŒexpose_internals”NŒstrict_visitor”NŒ_disable_config”NŒ_source”h·Œ _destination”NŒ _config_files”]”Œ7/var/lib/git/docbuild/linux/Documentation/docutils.conf”aŒfile_insertion_enabled”ˆŒ raw_enabled”KŒline_length_limit”M'Œpep_references”NŒ pep_base_url”Œhttps://peps.python.org/”Œpep_file_url_template”Œpep-%04d”Œrfc_references”NŒ rfc_base_url”Œ&https://datatracker.ietf.org/doc/html/”Œ tab_width”KŒtrim_footnote_reference_space”‰Œsyntax_highlight”Œlong”Œ smart_quotes”ˆŒsmartquotes_locales”]”Œcharacter_level_inline_markup”‰Œdoctitle_xform”‰Œ docinfo_xform”KŒsectsubtitle_xform”‰Œ image_loading”Œlink”Œembed_stylesheet”‰Œcloak_email_addresses”ˆŒsection_self_link”‰Œenv”NubŒreporter”NŒindirect_targets”]”Œsubstitution_defs”}”Œsubstitution_names”}”Œrefnames”}”Œrefids”}”Œnameids”}”(j:j6jJhèjCjuŒ nametypes”}”(j:‰jJ‰jC‰uh}”(j6h£hèj?jjmhâhÉjhøuŒ footnote_refs”}”Œ citation_refs”}”Œ autofootnotes”]”Œautofootnote_refs”]”Œsymbol_footnotes”]”Œsymbol_footnote_refs”]”Œ footnotes”]”Œ citations”]”Œautofootnote_start”KŒsymbol_footnote_start”KŒ id_counter”Œ collections”ŒCounter”“”}”j~Ks…”R”Œparse_messages”]”Œtransform_messages”]”Œ transformer”NŒ include_log”]”Œ decoration”Nhžhub.