Osphinx.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 (Simplified)}hh2sbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget*/translations/zh_CN/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 (Traditional)uh1h hh _documenthsourceNlineNubhcomment)}(h SPDX-License-Identifier: GPL-2.0h]h SPDX-License-Identifier: GPL-2.0}hhsbah}(h]h ]h"]h$]h&] xml:spacepreserveuh1hhhhhhW/var/lib/git/docbuild/linux/Documentation/translations/zh_TW/admin-guide/bug-bisect.rsthKubhwarning)}(hX1此文件的目的是爲讓中文讀者更容易閱讀和理解,而不是作爲一個分支。因此, 如果您對此文件有任何意見或改動,請先嘗試更新原始英文文件。如果要更改或 修正某處翻譯文件,請將意見或補丁發送給維護者(聯繫方式見下)。h]h paragraph)}(hX1此文件的目的是爲讓中文讀者更容易閱讀和理解,而不是作爲一個分支。因此, 如果您對此文件有任何意見或改動,請先嘗試更新原始英文文件。如果要更改或 修正某處翻譯文件,請將意見或補丁發送給維護者(聯繫方式見下)。h]hX1此文件的目的是爲讓中文讀者更容易閱讀和理解,而不是作爲一個分支。因此, 如果您對此文件有任何意見或改動,請先嘗試更新原始英文文件。如果要更改或 修正某處翻譯文件,請將意見或補丁發送給維護者(聯繫方式見下)。}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hh5Documentation/translations/zh_TW/disclaimer-zh_TW.rsthKhhubah}(h]h ]h"]h$]h&]uh1hhhhhhhhNubhnote)}(h如果您發現本文檔與原始文件有任何不同或者有翻譯問題,請聯繫該文件的譯者, 或者發送電子郵件給胡皓文以獲取幫助:<2023002089@link.tyut.edu.cn>。h]h)}(h如果您發現本文檔與原始文件有任何不同或者有翻譯問題,請聯繫該文件的譯者, 或者發送電子郵件給胡皓文以獲取幫助:<2023002089@link.tyut.edu.cn>。h](h如果您發現本文檔與原始文件有任何不同或者有翻譯問題,請聯繫該文件的譯者, 或者發送電子郵件給胡皓文以獲取幫助:<}(hhhhhNhNubh reference)}(h2023002089@link.tyut.edu.cnh]h2023002089@link.tyut.edu.cn}(hhhhhNhNubah}(h]h ]h"]h$]h&]refuri"mailto:2023002089@link.tyut.edu.cnuh1hhhubh>。}(hhhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK hhubah}(h]h ]h"]h$]h&]uh1hhhhhhhhNubh field_list)}(hhh](hfield)}(hhh](h field_name)}(hOriginalh]hOriginal}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjhhhKubh field_body)}(h':doc:`../../../admin-guide/bug-bisect` h]h)}(h&:doc:`../../../admin-guide/bug-bisect`h]h)}(hj#h]hinline)}(hj#h]h../../../admin-guide/bug-bisect}(hj*hhhNhNubah}(h]h ](xrefstdstd-doceh"]h$]h&]uh1j(hj%ubah}(h]h ]h"]h$]h&]refdoc)translations/zh_TW/admin-guide/bug-bisect refdomainj5reftypedoc refexplicitrefwarn reftarget../../../admin-guide/bug-bisectuh1hhhhKhj!ubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhKhjhhubj)}(hhh](j )}(h譯者h]h譯者}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj[hhhKubj)}(h\吳想成 Wu XiangCheng 胡皓文 Hu Haowen <2023002089@link.tyut.edu.cn> h]h)}(h[吳想成 Wu XiangCheng 胡皓文 Hu Haowen <2023002089@link.tyut.edu.cn>h](h吳想成 Wu XiangCheng <}(hjphhhNhNubh)}(hbobwxc@email.cnh]hbobwxc@email.cn}(hjxhhhNhNubah}(h]h ]h"]h$]h&]refurimailto:bobwxc@email.cnuh1hhjpubh> 胡皓文 Hu Haowen <}(hjphhhNhNubh)}(h2023002089@link.tyut.edu.cnh]h2023002089@link.tyut.edu.cn}(hjhhhNhNubah}(h]h ]h"]h$]h&]refuri"mailto:2023002089@link.tyut.edu.cnuh1hhjpubh>}(hjphhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK hjlubah}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1jhhhKhjhhubeh}(h]h ]h"]h$]h&]uh1jhhhhhhhKubhsection)}(hhh](htitle)}(h二分(bisect)缺陷h]h二分(bisect)缺陷}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhhhhhK ubh)}(h/(英文版)最後更新:2016年10月28日h]h/(英文版)最後更新:2016年10月28日}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubj)}(hhh](j)}(h引言h]h引言}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhhhhhKubh)}(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&]uh1jhjhhhhhKubj)}(hhh](j)}(h*設備未出現(Devices not appearing)h]h*設備未出現(Devices not appearing)}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhhhhhKubh)}(hW這通常是由udev/systemd引起的。在將其歸咎於內核之前先檢查一下。h]hW這通常是由udev/systemd引起的。在將其歸咎於內核之前先檢查一下。}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK hjhhubeh}(h]devices-not-appearingah ]h"]*設備未出現(devices not appearing)ah$]h&]uh1jhjhhhhhKubj)}(hhh](j)}(h查找導致缺陷的補丁h]h查找導致缺陷的補丁}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEhhhhhK#ubh)}(h]使用 ``git`` 提供的工具可以很容易地找到缺陷,只要缺陷是可復現的。h](h使用 }(hjVhhhNhNubhliteral)}(h``git``h]hgit}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1j^hjVubhO 提供的工具可以很容易地找到缺陷,只要缺陷是可復現的。}(hjVhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK%hjEhhubh)}(h操作步驟:h]h操作步驟:}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK'hjEhhubh bullet_list)}(hhh](h list_item)}(h從git源代碼構建內核h]h)}(hjh]h從git源代碼構建內核}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK)hjubah}(h]h ]h"]h$]h&]uh1jhjhhhhhNubj)}(h6以此開始二分 [#f1]_:: $ git bisect start h](h)}(h以此開始二分 [#f1]_::h](h以此開始二分 }(hjhhhNhNubhfootnote_reference)}(h[#f1]_h]h1}(hjhhhNhNubah}(h]id3ah ]h"]h$]h&]autoKrefidf1docnamejAuh1jhjresolvedKubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK*hjubh literal_block)}(h$ git bisect starth]h$ git bisect start}hjsbah}(h]h ]h"]h$]h&]hhuh1jhhhK,hjubeh}(h]h ]h"]h$]h&]uh1jhjhhhhhNubj)}(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&]hhuh1jhhhK0hjubeh}(h]h ]h"]h$]h&]uh1jhjhhhhhNubj)}(hC標記正常工作的變更集:: $ git bisect good [commit] h](h)}(h 標記正常工作的變更集::h]h標記正常工作的變更集:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK2hj ubj)}(h$ git bisect good [commit]h]h$ git bisect good [commit]}hjsbah}(h]h ]h"]h$]h&]hhuh1jhhhK4hj ubeh}(h]h ]h"]h$]h&]uh1jhjhhhhhNubj)}(h重新構建內核並測試h]h)}(hj4h]h重新構建內核並測試}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK6hj2ubah}(h]h ]h"]h$]h&]uh1jhjhhhhhNubj)}(h使用以下任一與git bisect進行交互:: $ git bisect good 或:: $ git bisect bad 這取決於您測試的變更集上是否有缺陷h](h)}(h-使用以下任一與git bisect進行交互::h]h,使用以下任一與git bisect進行交互:}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK7hjIubj)}(h$ git bisect goodh]h$ git bisect good}hj[sbah}(h]h ]h"]h$]h&]hhuh1jhhhK9hjIubh)}(h或::h]h或:}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK;hjIubj)}(h$ git bisect badh]h$ git bisect bad}hjwsbah}(h]h ]h"]h$]h&]hhuh1jhhhK=hjIubh)}(h3這取決於您測試的變更集上是否有缺陷h]h3這取決於您測試的變更集上是否有缺陷}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK?hjIubeh}(h]h ]h"]h$]h&]uh1jhjhhhhhNubj)}(hM在一些交互之後,git bisect將給出可能導致缺陷的變更集。 h]h)}(hL在一些交互之後,git bisect將給出可能導致缺陷的變更集。h]hL在一些交互之後,git bisect將給出可能導致缺陷的變更集。}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK@hjubah}(h]h ]h"]h$]h&]uh1jhjhhhhhNubj)}(h例如,如果您知道當前版本有問題,而4.8版本是正常的,則可以執行以下操作:: $ git bisect start $ git bisect bad # Current version is bad $ git bisect good v4.8 h](h)}(hh例如,如果您知道當前版本有問題,而4.8版本是正常的,則可以執行以下操作::h]hg例如,如果您知道當前版本有問題,而4.8版本是正常的,則可以執行以下操作:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKBhjubj)}(hc$ git bisect start $ git bisect bad # Current version is bad $ git bisect good v4.8h]hc$ git bisect start $ git bisect bad # Current version is bad $ git bisect good v4.8}hjsbah}(h]h ]h"]h$]h&]hhuh1jhhhKDhjubeh}(h]h ]h"]h$]h&]uh1jhjhhhhhNubeh}(h]h ]h"]h$]h&]bullet-uh1jhhhK)hjEhhubhfootnote)}(hm您可以(可選地)在開始git bisect的時候提供good或bad參數 ``git bisect start [BAD] [GOOD]`` h](hlabel)}(hhh]h1}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhhhNhNubh)}(hl您可以(可選地)在開始git bisect的時候提供good或bad參數 ``git bisect start [BAD] [GOOD]``h](hK您可以(可選地)在開始git bisect的時候提供good或bad參數 }(hjhhhNhNubj_)}(h!``git bisect start [BAD] [GOOD]``h]hgit bisect start [BAD] [GOOD]}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j^hjubeh}(h]h ]h"]h$]h&]uh1hhhhKIhjubeh}(h]jah ]h"]f1ah$]h&]jajKjjAuh1jhhhKIhjEhhubh)}(h$如需進一步參考,請閱讀:h]h$如需進一步參考,請閱讀:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKLhjEhhubj)}(hhh](j)}(h``git-bisect`` 的手冊頁h]h)}(hj*h](j_)}(h``git-bisect``h]h git-bisect}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1j^hj,ubh 的手冊頁}(hj,hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKNhj(ubah}(h]h ]h"]h$]h&]uh1jhj%hhhhhNubj)}(h`Fighting regressions with git bisect(用git bisect解決迴歸) `_h]h)}(h`Fighting regressions with git bisect(用git bisect解決迴歸) `_h](h)}(hjSh]hCFighting regressions with git bisect(用git bisect解決迴歸)}(hjUhhhNhNubah}(h]h ]h"]h$]h&]nameCFighting regressions with git bisect(用git bisect解決迴歸)refuriGhttps://www.kernel.org/pub/software/scm/git/docs/git-bisect-lk2009.htmluh1hhjQubhtarget)}(hJ h]h}(h]/fighting-regressions-with-git-bisect-git-bisectah ]h"]Cfighting regressions with git bisect(用git bisect解決迴歸)ah$]h&]refurijeuh1jf referencedKhjQubeh}(h]h ]h"]h$]h&]uh1hhhhKOhjMubah}(h]h ]h"]h$]h&]uh1jhj%hhhhhNubj)}(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](h)}(hjh]h`Fully automated bisecting with “git bisect run”(使用git bisect run 來全自動二分)}(hjhhhNhNubah}(h]h ]h"]h$]h&]name\Fully automated bisecting with "git bisect run"(使用git bisect run 來全自動二分)jdhttps://lwn.net/Articles/317154uh1hhjubjg)}(h" h]h}(h]`_ h]h)}(h`Using Git bisect to figure out when brokenness was introduced (使用Git二分來找出何時引入了錯誤) `_h](h)}(hjh]hqUsing Git bisect to figure out when brokenness was introduced (使用Git二分來找出何時引入了錯誤)}(hjhhhNhNubah}(h]h ]h"]h$]h&]nameqUsing Git bisect to figure out when brokenness was introduced (使用Git二分來找出何時引入了錯誤)jdhttp://webchick.net/node/99uh1hhjubjg)}(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&]refurijuh1jfjuKhjubeh}(h]h ]h"]h$]h&]uh1hhhhKShjubah}(h]h ]h"]h$]h&]uh1jhj%hhhhhNubeh}(h]h ]h"]h$]h&]jjuh1jhhhKNhjEhhubeh}(h]id2ah ]h"]查找導致缺陷的補丁ah$]h&]uh1jhjhhhhhK#ubeh}(h]bisectah ]h"]二分(bisect)缺陷ah$]h&]uh1jhhhhhhhK ubeh}(h]h ]h"]h$]h&]sourcehuh1hcurrent_sourceN current_lineNsettingsdocutils.frontendValues)}(jN 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]jasrefids}j]jasnameids}(jjjjjBj?jjjjjqjnjjjju nametypes}(jjjBjjjqjjuh}(jjjjj?jjjEjjjjjnjhjjjju footnote_refs}j]]jas citation_refs} autofootnotes]jaautofootnote_refs]jasymbol_footnotes]symbol_footnote_refs] footnotes] citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}j+KsRparse_messages]transform_messages] transformerN include_log];Documentation/translations/zh_TW/admin-guide/bug-bisect.rst(NNNNta decorationNhhub.