diff --git a/Documentation/translations/zh_CN/basic_profiling.txt b/Documentation/translations/zh_CN/basic_profiling.txt deleted file mode 100644 index 1e6bf0bdf8f54a017e1c98514a8ff0641d98c707..0000000000000000000000000000000000000000 --- a/Documentation/translations/zh_CN/basic_profiling.txt +++ /dev/null @@ -1,71 +0,0 @@ -Chinese translated version of Documentation/basic_profiling - -If you have any comment or update to the content, please post to LKML directly. -However, if you have problem communicating in English you can also ask the -Chinese maintainer for help. Contact the Chinese maintainer, if this -translation is outdated or there is problem with translation. - -Chinese maintainer: Liang Xie <xieliang@xiaomi.com> ---------------------------------------------------------------------- -Documentation/basic_profilingçš„ä¸æ–‡ç¿»è¯‘ - -如果想评论或更新本文的内容,请直接å‘信到LKMLã€‚å¦‚æžœä½ ä½¿ç”¨è‹±æ–‡äº¤æµæœ‰å›°éš¾çš„è¯ï¼Œä¹Ÿå¯ -以å‘ä¸æ–‡ç‰ˆç»´æŠ¤è€…求助。如果本翻译更新ä¸åŠæ—¶æˆ–者翻译å˜åœ¨é—®é¢˜ï¼Œè¯·è”ç³»ä¸æ–‡ç‰ˆç»´æŠ¤è€…。 - -ä¸æ–‡ç‰ˆç»´æŠ¤è€…: 谢良 Liang Xie <xieliang007@gmail.com> -ä¸æ–‡ç‰ˆç¿»è¯‘者: 谢良 Liang Xie <xieliang007@gmail.com> -ä¸æ–‡ç‰ˆæ ¡è¯‘者: -以下为æ£æ–‡ ---------------------------------------------------------------------- - -下é¢è¿™äº›è¯´æ˜ŽæŒ‡ä»¤éƒ½æ˜¯éžå¸¸åŸºç¡€çš„ï¼Œå¦‚æžœä½ æƒ³è¿›ä¸€æ¥äº†è§£è¯·é˜…读相关专业文档:) -请ä¸è¦å†åœ¨æœ¬æ–‡æ¡£å¢žåŠ 新的内容,但å¯ä»¥ä¿®å¤æ–‡æ¡£ä¸çš„错误:)(mbligh@aracnet.com) -æ„Ÿè°¢John Levon,Dave Hansenç‰åœ¨æ’°å†™æ—¶çš„帮助 - -<test> 用于表示è¦æµ‹é‡çš„ç›®æ ‡ -请先确ä¿æ‚¨å·²ç»æœ‰æ£ç¡®çš„System.map / vmlinuxé…ç½®ï¼ - -对于linux系统æ¥è¯´ï¼Œé…ç½®vmlinuz最容易的方法å¯èƒ½å°±æ˜¯ä½¿ç”¨â€œmake installâ€ï¼Œç„¶åŽä¿®æ”¹ -/sbin/installkernelå°†vmlinuxæ‹·è´åˆ°/boot目录,而System.map通常是默认安装好的 - -Readprofile ------------ -2.6ç³»åˆ—å†…æ ¸éœ€è¦ç‰ˆæœ¬ç›¸å¯¹è¾ƒæ–°çš„readprofile,比如util-linux 2.12aä¸åŒ…å«çš„,å¯ä»¥ä»Ž: - -http://www.kernel.org/pub/linux/utils/util-linux/ 下载 - -大部分linuxå‘行版已ç»åŒ…å«äº†. - -å¯ç”¨readprofile需è¦åœ¨kernelå¯åŠ¨å‘½ä»¤è¡Œå¢žåŠ â€profile=2“ - -clear readprofile -r - <test> -dump output readprofile -m /boot/System.map > captured_profile - -Oprofile --------- - -从http://oprofile.sourceforge.net/获å–æºä»£ç (请å‚考Changes以获å–匹é…的版本) -在kernelå¯åŠ¨å‘½ä»¤è¡Œå¢žåŠ “idle=poll†- -é…ç½®CONFIG_PROFILING=yå’ŒCONFIG_OPROFILE=y然åŽé‡å¯è¿›å…¥æ–°kernel - -./configure --with-kernel-support -make install - -想得到好的测é‡ç»“果,请确ä¿å¯ç”¨äº†æœ¬åœ°APIC特性。如果opreport显示有0Hz CPU, -说明APIC特性没有开å¯ã€‚å¦å¤–注æ„idle=poll选项å¯èƒ½æœ‰æŸæ€§èƒ½ã€‚ - -One time setup: - opcontrol --setup --vmlinux=/boot/vmlinux - -clear opcontrol --reset -start opcontrol --start - <test> -stop opcontrol --stop -dump output opreport > output_file - -如果åªçœ‹kernel相关的报告结果,请è¿è¡Œå‘½ä»¤ opreport -l /boot/vmlinux > output_file - -通过reset选项å¯ä»¥æ¸…ç†è¿‡æœŸç»Ÿè®¡æ•°æ®ï¼Œç›¸å½“于é‡å¯çš„效果。 -