Ksphinx.addnodesdocument)}( rawsourcechildren]( translations LanguagesNode)}(hhh](h pending_xref)}(hhh]docutils.nodesTextEnglish}parenthsba attributes}(ids]classes]names]dupnames]backrefs] refdomainstdreftypedoc reftarget/admin-guide/bug-bisectmodnameN classnameN refexplicitutagnamehhh ubh)}(hhh]hChinese (Traditional)}hh2sbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget*/translations/zh_TW/admin-guide/bug-bisectmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hItalian}hhFsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget*/translations/it_IT/admin-guide/bug-bisectmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hJapanese}hhZsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget*/translations/ja_JP/admin-guide/bug-bisectmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hKorean}hhnsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget*/translations/ko_KR/admin-guide/bug-bisectmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hPortuguese (Brazilian)}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget*/translations/pt_BR/admin-guide/bug-bisectmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hSpanish}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget*/translations/sp_SP/admin-guide/bug-bisectmodnameN classnameN refexplicituh1hhh ubeh}(h]h ]h"]h$]h&]current_languageChinese (Simplified)uh1h hh _documenthsourceNlineNubhnote)}(hX{此文件的目的是为让中文读者更容易阅读和理解,而不是作为一个分支。 因此, 如果您对此文件有任何意见或更新,请先尝试更新原始英文文件。 如果您发现本文档与原始文件有任何不同或者有翻译问题,请发建议或者补丁给 该文件的译者,或者请求中文文档维护者和审阅者的帮助。h]h paragraph)}(hX{此文件的目的是为让中文读者更容易阅读和理解,而不是作为一个分支。 因此, 如果您对此文件有任何意见或更新,请先尝试更新原始英文文件。 如果您发现本文档与原始文件有任何不同或者有翻译问题,请发建议或者补丁给 该文件的译者,或者请求中文文档维护者和审阅者的帮助。h]hX{此文件的目的是为让中文读者更容易阅读和理解,而不是作为一个分支。 因此, 如果您对此文件有任何意见或更新,请先尝试更新原始英文文件。 如果您发现本文档与原始文件有任何不同或者有翻译问题,请发建议或者补丁给 该文件的译者,或者请求中文文档维护者和审阅者的帮助。}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hh5Documentation/translations/zh_CN/disclaimer-zh_CN.rsthKhhubah}(h]h ]h"]h$]h&]uh1hhhhhhhhNubh field_list)}(hhh](hfield)}(hhh](h field_name)}(hOriginalh]hOriginal}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhW/var/lib/git/docbuild/linux/Documentation/translations/zh_CN/admin-guide/bug-bisect.rsthKubh field_body)}(h':doc:`../../../admin-guide/bug-bisect` h]h)}(h&:doc:`../../../admin-guide/bug-bisect`h]h)}(hhh]hinline)}(hhh]h../../../admin-guide/bug-bisect}(hhhhhNhNubah}(h]h ](xrefstdstd-doceh"]h$]h&]uh1hhhubah}(h]h ]h"]h$]h&]refdoc)translations/zh_CN/admin-guide/bug-bisect refdomainjreftypedoc refexplicitrefwarn reftarget../../../admin-guide/bug-bisectuh1hhhhKhhubah}(h]h ]h"]h$]h&]uh1hhhhKhhubah}(h]h ]h"]h$]h&]uh1hhhubeh}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hhh](h)}(h译者h]h译者}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-hhhKubh)}(h*吴想成 Wu XiangCheng h]h)}(h)吴想成 Wu XiangCheng h](h吴想成 Wu XiangCheng <}(hjBhhhNhNubh reference)}(hbobwxc@email.cnh]hbobwxc@email.cn}(hjLhhhNhNubah}(h]h ]h"]h$]h&]refurimailto:bobwxc@email.cnuh1jJhjBubh>}(hjBhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhj>ubah}(h]h ]h"]h$]h&]uh1hhj-ubeh}(h]h ]h"]h$]h&]uh1hhhhKhhhhubeh}(h]h ]h"]h$]h&]uh1hhhhhhhhKubhsection)}(hhh](htitle)}(h二分(bisect)缺陷h]h二分(bisect)缺陷}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j}hjzhhhhhK ubh)}(h/(英文版)最后更新:2016年10月28日h]h/(英文版)最后更新:2016年10月28日}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK hjzhhubjy)}(hhh](j~)}(h引言h]h引言}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j}hjhhhhhKubh)}(h始终尝试由来自kernel.org的源代码构建的最新内核。如果您没有信心这样做,请将 错误报告给您的发行版供应商,而不是内核开发人员。h]h始终尝试由来自kernel.org的源代码构建的最新内核。如果您没有信心这样做,请将 错误报告给您的发行版供应商,而不是内核开发人员。}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(h找到缺陷(bug)并不总是那么容易,不过仍然得去找。如果你找不到它,不要放弃。 尽可能多的向相关维护人员报告您发现的信息。请参阅MAINTAINERS文件以了解您所 关注的子系统的维护人员。h]h找到缺陷(bug)并不总是那么容易,不过仍然得去找。如果你找不到它,不要放弃。 尽可能多的向相关维护人员报告您发现的信息。请参阅MAINTAINERS文件以了解您所 关注的子系统的维护人员。}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(h^在提交错误报告之前,请阅读“Documentation/admin-guide/reporting-issues.rst”。h]h^在提交错误报告之前,请阅读“Documentation/admin-guide/reporting-issues.rst”。}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubeh}(h]id1ah ]h"]引言ah$]h&]uh1jxhjzhhhhhKubjy)}(hhh](j~)}(h*设备未出现(Devices not appearing)h]h*设备未出现(Devices not appearing)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j}hjhhhhhKubh)}(hW这通常是由udev/systemd引起的。在将其归咎于内核之前先检查一下。h]hW这通常是由udev/systemd引起的。在将其归咎于内核之前先检查一下。}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubeh}(h]devices-not-appearingah ]h"]*设备未出现(devices not appearing)ah$]h&]uh1jxhjzhhhhhKubjy)}(hhh](j~)}(h查找导致缺陷的补丁h]h查找导致缺陷的补丁}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j}hjhhhhhK ubh)}(h]使用 ``git`` 提供的工具可以很容易地找到缺陷,只要缺陷是可复现的。h](h使用 }(hjhhhNhNubhliteral)}(h``git``h]hgit}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhO 提供的工具可以很容易地找到缺陷,只要缺陷是可复现的。}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK"hjhhubh)}(h操作步骤:h]h操作步骤:}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK$hjhhubh bullet_list)}(hhh](h list_item)}(h从git源代码构建内核h]h)}(hjOh]h从git源代码构建内核}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK&hjMubah}(h]h ]h"]h$]h&]uh1jKhjHhhhhhNubjL)}(h6以此开始二分 [#f1]_:: $ git bisect start h](h)}(h以此开始二分 [#f1]_::h](h以此开始二分 }(hjhhhhNhNubhfootnote_reference)}(h[#f1]_h]h1}(hjrhhhNhNubah}(h]id3ah ]h"]h$]h&]autoKrefidf1docnamejuh1jphjhresolvedKubh:}(hjhhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK'hjdubh literal_block)}(h$ git bisect starth]h$ git bisect start}hjsbah}(h]h ]h"]h$]h&] xml:spacepreserveuh1jhhhK)hjdubeh}(h]h ]h"]h$]h&]uh1jKhjHhhhhhNubjL)}(h<标记损坏的变更集:: $ git bisect bad [commit] h](h)}(h标记损坏的变更集::h]h标记损坏的变更集:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK+hjubj)}(h$ git bisect bad [commit]h]h$ git bisect bad [commit]}hjsbah}(h]h ]h"]h$]h&]jjuh1jhhhK-hjubeh}(h]h ]h"]h$]h&]uh1jKhjHhhhhhNubjL)}(hC标记正常工作的变更集:: $ git bisect good [commit] h](h)}(h 标记正常工作的变更集::h]h标记正常工作的变更集:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK/hjubj)}(h$ git bisect good [commit]h]h$ git bisect good [commit]}hjsbah}(h]h ]h"]h$]h&]jjuh1jhhhK1hjubeh}(h]h ]h"]h$]h&]uh1jKhjHhhhhhNubjL)}(h重新构建内核并测试h]h)}(hjh]h重新构建内核并测试}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK3hjubah}(h]h ]h"]h$]h&]uh1jKhjHhhhhhNubjL)}(h使用以下任一与git bisect进行交互:: $ git bisect good 或:: $ git bisect bad 这取决于您测试的变更集上是否有缺陷h](h)}(h-使用以下任一与git bisect进行交互::h]h,使用以下任一与git bisect进行交互:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK4hj ubj)}(h$ git bisect goodh]h$ git bisect good}hjsbah}(h]h ]h"]h$]h&]jjuh1jhhhK6hj ubh)}(h或::h]h或:}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK8hj ubj)}(h$ git bisect badh]h$ git bisect bad}hj9sbah}(h]h ]h"]h$]h&]jjuh1jhhhK:hj ubh)}(h3这取决于您测试的变更集上是否有缺陷h]h3这取决于您测试的变更集上是否有缺陷}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK`_h]h)}(h`Fighting regressions with git bisect(用git bisect解决回归) `_h](jK)}(hjh]hCFighting regressions with git bisect(用git bisect解决回归)}(hjhhhNhNubah}(h]h ]h"]h$]h&]nameCFighting regressions with git bisect(用git bisect解决回归)refuriGhttps://www.kernel.org/pub/software/scm/git/docs/git-bisect-lk2009.htmluh1jJhjubhtarget)}(hJ h]h}(h]/fighting-regressions-with-git-bisect-git-bisectah ]h"]Cfighting regressions with git bisect(用git bisect解决回归)ah$]h&]refurij'uh1j( referencedKhjubeh}(h]h ]h"]h$]h&]uh1hhhhKLhjubah}(h]h ]h"]h$]h&]uh1jKhjhhhhhNubjL)}(h`Fully automated bisecting with "git bisect run"(使用git bisect run 来全自动二分) `_h]h)}(h`Fully automated bisecting with "git bisect run"(使用git bisect run 来全自动二分) `_h](jK)}(hjJh]h`Fully automated bisecting with “git bisect run”(使用git bisect run 来全自动二分)}(hjLhhhNhNubah}(h]h ]h"]h$]h&]name\Fully automated bisecting with "git bisect run"(使用git bisect run 来全自动二分)j&https://lwn.net/Articles/317154uh1jJhjHubj))}(h" h]h}(h]`_h]h)}(h`Using Git bisect to figure out when brokenness was introduced (使用Git二分来找出何时引入了错误) `_h](jK)}(hj{h]hqUsing Git bisect to figure out when brokenness was introduced (使用Git二分来找出何时引入了错误)}(hj}hhhNhNubah}(h]h ]h"]h$]h&]nameqUsing Git bisect to figure out when brokenness was introduced (使用Git二分来找出何时引入了错误)j&http://webchick.net/node/99uh1jJhjyubj))}(h h]h}(h]Ausing-git-bisect-to-figure-out-when-brokenness-was-introduced-gitah ]h"]qusing git bisect to figure out when brokenness was introduced (使用git二分来找出何时引入了错误)ah$]h&]refurijuh1j(j7Khjyubeh}(h]h ]h"]h$]h&]uh1hhhhKPhjuubah}(h]h ]h"]h$]h&]uh1jKhjhhhhhNubeh}(h]h ]h"]h$]h&]jjuh1jFhhhKKhjhhubeh}(h]id2ah ]h"]查找导致缺陷的补丁ah$]h&]uh1jxhjzhhhhhK ubeh}(h]bisectah ]h"]二分(bisect)缺陷ah$]h&]uh1jxhhhhhhhK ubeh}(h]h ]h"]h$]h&]sourcehuh1hcurrent_sourceN current_lineNsettingsdocutils.frontendValues)}(j}N generatorN datestampN source_linkN source_urlN toc_backlinksentryfootnote_backlinksK sectnum_xformKstrip_commentsNstrip_elements_with_classesN strip_classesN report_levelK halt_levelKexit_status_levelKdebugNwarning_streamN tracebackinput_encoding utf-8-siginput_encoding_error_handlerstrictoutput_encodingutf-8output_encoding_error_handlerjerror_encodingutf-8error_encoding_error_handlerbackslashreplace language_codeenrecord_dependenciesNconfigN id_prefixhauto_id_prefixid dump_settingsNdump_internalsNdump_transformsNdump_pseudo_xmlNexpose_internalsNstrict_visitorN_disable_configN_sourceh _destinationN _config_files]7/var/lib/git/docbuild/linux/Documentation/docutils.confafile_insertion_enabled raw_enabledKline_length_limitM'pep_referencesN pep_base_urlhttps://peps.python.org/pep_file_url_templatepep-%04drfc_referencesN rfc_base_url&https://datatracker.ietf.org/doc/html/ tab_widthKtrim_footnote_reference_spacesyntax_highlightlong smart_quotessmartquotes_locales]character_level_inline_markupdoctitle_xform docinfo_xformKsectsubtitle_xform image_loadinglinkembed_stylesheetcloak_email_addressessection_self_linkenvNubreporterNindirect_targets]substitution_defs}substitution_names}refnames}f1]jrasrefids}j]jrasnameids}(jjjjjjjjjjj3j0jejbjju nametypes}(jjjjjj3jejuh}(jjzjjjjjjj|jrjjj0j*jbj\jju footnote_refs}j]jras citation_refs} autofootnotes]jaautofootnote_refs]jrasymbol_footnotes]symbol_footnote_refs] footnotes] citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}jKsRparse_messages]transform_messages] transformerN include_log];Documentation/translations/zh_CN/admin-guide/bug-bisect.rst(NNNNta decorationNhhub.