Jsphinx.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]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 refdomainhreftypedoc 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译者}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhKubh)}(h*吴想成 Wu XiangCheng h]h)}(h)吴想成 Wu XiangCheng h](h吴想成 Wu XiangCheng <}(hj.hhhNhNubh reference)}(hbobwxc@email.cnh]hbobwxc@email.cn}(hj8hhhNhNubah}(h]h ]h"]h$]h&]refurimailto:bobwxc@email.cnuh1j6hj.ubh>}(hj.hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhj*ubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhhhKhhhhubeh}(h]h ]h"]h$]h&]uh1hhhhhhhhKubhsection)}(hhh](htitle)}(h二分(bisect)缺陷h]h二分(bisect)缺陷}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jihjfhhhhhK ubh)}(h/(英文版)最后更新:2016年10月28日h]h/(英文版)最后更新:2016年10月28日}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK hjfhhubje)}(hhh](jj)}(h引言h]h引言}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jihjhhhhhKubh)}(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&]uh1jdhjfhhhhhKubje)}(hhh](jj)}(h*设备未出现(Devices not appearing)h]h*设备未出现(Devices not appearing)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jihjhhhhhKubh)}(hW这通常是由udev/systemd引起的。在将其归咎于内核之前先检查一下。h]hW这通常是由udev/systemd引起的。在将其归咎于内核之前先检查一下。}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubeh}(h]devices-not-appearingah ]h"]*设备未出现(devices not appearing)ah$]h&]uh1jdhjfhhhhhKubje)}(hhh](jj)}(h查找导致缺陷的补丁h]h查找导致缺陷的补丁}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jihjhhhhhK ubh)}(h]使用 ``git`` 提供的工具可以很容易地找到缺陷,只要缺陷是可复现的。h](h使用 }(hjhhhNhNubhliteral)}(h``git``h]hgit}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubhO 提供的工具可以很容易地找到缺陷,只要缺陷是可复现的。}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK"hjhhubh)}(h操作步骤:h]h操作步骤:}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK$hjhhubh bullet_list)}(hhh](h list_item)}(h从git源代码构建内核h]h)}(hj;h]h从git源代码构建内核}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK&hj9ubah}(h]h ]h"]h$]h&]uh1j7hj4hhhhhNubj8)}(h6以此开始二分 [#f1]_:: $ git bisect start h](h)}(h以此开始二分 [#f1]_::h](h以此开始二分 }(hjThhhNhNubhfootnote_reference)}(h[#f1]_h]h1}(hj^hhhNhNubah}(h]id3ah ]h"]h$]h&]autoKrefidf1docnamehuh1j\hjTresolvedKubh:}(hjThhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK'hjPubh literal_block)}(h$ git bisect starth]h$ git bisect start}hj~sbah}(h]h ]h"]h$]h&] xml:spacepreserveuh1j|hhhK)hjPubeh}(h]h ]h"]h$]h&]uh1j7hj4hhhhhNubj8)}(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&]jjuh1j|hhhK-hjubeh}(h]h ]h"]h$]h&]uh1j7hj4hhhhhNubj8)}(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&]jjuh1j|hhhK1hjubeh}(h]h ]h"]h$]h&]uh1j7hj4hhhhhNubj8)}(h重新构建内核并测试h]h)}(hjh]h重新构建内核并测试}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK3hjubah}(h]h ]h"]h$]h&]uh1j7hj4hhhhhNubj8)}(h使用以下任一与git bisect进行交互:: $ git bisect good 或:: $ git bisect bad 这取决于您测试的变更集上是否有缺陷h](h)}(h-使用以下任一与git bisect进行交互::h]h,使用以下任一与git bisect进行交互:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK4hjubj})}(h$ git bisect goodh]h$ git bisect good}hj sbah}(h]h ]h"]h$]h&]jjuh1j|hhhK6hjubh)}(h或::h]h或:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK8hjubj})}(h$ git bisect badh]h$ git bisect bad}hj%sbah}(h]h ]h"]h$]h&]jjuh1j|hhhK:hjubh)}(h3这取决于您测试的变更集上是否有缺陷h]h3这取决于您测试的变更集上是否有缺陷}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK`_h]h)}(h`Fighting regressions with git bisect(用git bisect解决回归) `_h](j7)}(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.htmluh1j6hjubhtarget)}(hJ h]h}(h]/fighting-regressions-with-git-bisect-git-bisectah ]h"]Cfighting regressions with git bisect(用git bisect解决回归)ah$]h&]refurijuh1j referencedKhjubeh}(h]h ]h"]h$]h&]uh1hhhhKLhjubah}(h]h ]h"]h$]h&]uh1j7hjhhhhhNubj8)}(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](j7)}(hj6h]h`Fully automated bisecting with “git bisect run”(使用git bisect run 来全自动二分)}(hj8hhhNhNubah}(h]h ]h"]h$]h&]name\Fully automated bisecting with "git bisect run"(使用git bisect run 来全自动二分)jhttps://lwn.net/Articles/317154uh1j6hj4ubj)}(h" h]h}(h]`_h]h)}(h`Using Git bisect to figure out when brokenness was introduced (使用Git二分来找出何时引入了错误) `_h](j7)}(hjgh]hqUsing Git bisect to figure out when brokenness was introduced (使用Git二分来找出何时引入了错误)}(hjihhhNhNubah}(h]h ]h"]h$]h&]nameqUsing Git bisect to figure out when brokenness was introduced (使用Git二分来找出何时引入了错误)jhttp://webchick.net/node/99uh1j6hjeubj)}(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&]refurijxuh1jj#Khjeubeh}(h]h ]h"]h$]h&]uh1hhhhKPhjaubah}(h]h ]h"]h$]h&]uh1j7hjhhhhhNubeh}(h]h ]h"]h$]h&]jjuh1j2hhhKKhjhhubeh}(h]id2ah ]h"]查找导致缺陷的补丁ah$]h&]uh1jdhjfhhhhhK ubeh}(h]bisectah ]h"]二分(bisect)缺陷ah$]h&]uh1jdhhhhhhhK ubeh}(h]h ]h"]h$]h&]sourcehuh1hcurrent_sourceN current_lineNsettingsdocutils.frontendValues)}(jiN 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]j^asrefids}jo]j^asnameids}(jjjjjjjjjjojjjQjNjju nametypes}(jjjjjjjQjuh}(jjfjjjjjjjhj^jojjjjNjHjjyu footnote_refs}j ]j^as citation_refs} autofootnotes]jaautofootnote_refs]j^asymbol_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.