LinuxÏÂcoreÎļþµ÷ÊÔ·½·¨
LinuxÏÂcoreÎļþµ÷ÊÔ·½·¨
ÔÚ³ÌÐò²»Ñ°³£Í˳öʱ£¬Äں˻áÔÚµ±Ç°¹¤×÷Ŀ¼ÏÂÉú³ÉÒ»¸öcoreÎļþ£¨ÊÇÒ»¸öÄÚ´æÓ³Ïñ£¬Í¬Ê±¼ÓÉϵ÷ÊÔÐÅÏ¢£©¡£Ê¹ÓÃgdbÀ´²é¿´coreÎļþ£¬¿ÉÒÔָʾ³öµ¼Ö³ÌÐò³ö´íµÄ´úÂëËùÔÚÎļþºÍÐÐÊý¡£
1.coreÎļþµÄÉú³É¿ª¹ØºÍ´óСÏÞÖÆ
1£©Ê¹ÓÃulimit -cÃüÁî¿É²é¿´coreÎļþµÄÉú³É¿ª¹Ø¡£Èô½á¹ûΪ0£¬Ôò±íʾ¹Ø±ÕÁ˴˹¦ÄÜ£¬²»»áÉú³ÉcoreÎļþ¡£
2£©
ʹÓÃulimit -c filesizeÃüÁ¿ÉÒÔÏÞÖÆcoreÎļþµÄ´óС£¨filesizeµÄµ¥Î»Îªkbyte£©¡£Èôulimit -c
unlimited£¬Ôò±íʾcoreÎļþµÄ´óС²»ÊÜÏÞÖÆ¡£Èç¹ûÉú³ÉµÄÐÅÏ¢³¬¹ý´Ë´óС£¬½«»á±»²Ã¼ô£¬×îÖÕÉú³ÉÒ»¸ö²»ÍêÕûµÄcoreÎļþ¡£ÔÚµ÷ÊÔ´ËcoreÎÄ
¼þµÄʱºò£¬gdb»áÌáʾ´íÎó¡£
2.coreÎļþµÄÃû³ÆºÍÉú³É·¾¶
coreÎļþÉú³É·¾¶:
ÊäÈë¿ÉÖ´ÐÐÎļþÔËÐÐÃüÁîµÄͬһ·¾¶Ï¡£
ÈôϵͳÉú³ÉµÄcoreÎļþ²»´øÆäËüÈκÎÀ©Õ¹Ãû³Æ£¬ÔòÈ«²¿ÃüÃûΪcore¡£ÐµÄcoreÎļþÉú³É½«¸²¸ÇÔÀ´µÄcoreÎļþ¡£
1£©/proc/sys/kernel/core_uses_pid¿ÉÒÔ¿ØÖÆcoreÎļþµÄÎļþÃûÖÐÊÇ·ñÌí¼Ópid×÷ΪÀ©Õ¹¡£ÎļþÄÚÈÝΪ1£¬±íʾÌí¼Ópid×÷ΪÀ©Õ¹Ãû£¬Éú³ÉµÄcoreÎļþ¸ñʽΪcore.xxxx£»Îª0Ôò±íʾÉú³ÉµÄcoreÎļþͬһÃüÃûΪcore¡£
¿Éͨ¹ýÒÔÏÂÃüÁîÐ޸ĴËÎļþ£º
echo "1" > /proc/sys/kernel/core_uses_pid
2£©proc/sys/kernel/core_pattern¿ÉÒÔ¿ØÖÆcoreÎļþ±£´æλÖúÍÎļþÃû¸ñʽ¡£
¿Éͨ¹ýÒÔÏÂÃüÁîÐ޸ĴËÎļþ£º
echo "/corefile/core-%e-%p-%t" > core_pattern£¬¿ÉÒÔ½«coreÎļþͳһÉú³Éµ½/corefileĿ¼Ï£¬²úÉúµÄÎļþÃûΪcore-ÃüÁîÃû-pid-ʱ¼ä´Á
ÒÔÏÂÊDzÎÊýÁбí:
%p - insert pid into filename Ìí¼Ópid
%u - insert current uid into filename Ìí¼Óµ±Ç°uid
%g - insert current gid into filename Ìí¼Óµ±Ç°gid
%s - insert signal that caused the coredump into the filename Ìí¼Óµ¼Ö²úÉúcoreµÄÐźÅ
%t - insert UNIX time that the coredump occurred into filename Ìí¼ÓcoreÎļþÉú³ÉʱµÄunixʱ¼ä
%h - insert hostname where the coredump happened into filename Ìí¼ÓÖ÷»úÃû
%e - insert coredumping executable name into filename Ìí¼ÓÃüÁîÃû
3.coreÎļþµÄ²é¿´
coreÎļþÐèҪʹÓÃgdbÀ´²é¿´¡£
Ïà¹ØÎĵµ£º
ubuntu9.10
ĬÈÏ°²×°ÁË iBus
ÊäÈë·¨£¬Õâ¸öÊäÈë·¨ºÜºÃÓ㬵«ÊÇĬÈϵ½ÅäÖò»ºÏÀí£¬Òò´ËÓ¦¸ÃÉèÖÃһϡ£
iBus
ÉèÖò½Ö裺
* °²×° ÖÐÎÄÓïÑÔÖ§³Ö£º
ĬÈÏÏ£¬¿ÉÄÜÖÐÎÄÖ§³Ö²¢²»È«£¬Òò´ËÖÐÎÄÊäÈë·¨Ò²²»È«£¬Èç¹ûÖÐÎÄÖ§³ÖÒѾÍêÈ«°²×°ÔòÌø¹ýÕâ²½¡£
Ìí¼ÓÖÐÎÄÖ§³Ö£º
System -> Administrat ......
http://linuxwireless.org/
»òÊÇ http://wireless.kernel.org/
http://wireless.kernel.org/mac80211book/
http://www.hpl.hp.com/personal/J ... Linux/Wireless.html
http://madwifi.org/
http://ipw2200.sourceforge.net/
http://ieee80211.sourceforge.net/
ÖÕÓÚÕÒµ½×éÖ¯ÁË£¬ÓеÄѧÁË ......
ÎÊÌâºÍ³£¼û·½·¨
Linux ÌṩÁË popen ºÍ pclose º¯Êý (1)£¬ÓÃÓÚ´´½¨ºÍ¹Ø±Õ¹ÜµÀÓëÁíÍâÒ»¸ö½ø³Ì½øÐÐͨÐÅ¡£Æä½Ó¿ÚÈçÏ£º
FILE *popen(const char *command£¬ const char *mode);
int pclose(FILE *stream);
Òź¶µÄÊÇ£¬popen ´´½¨µÄ¹ÜµÀÖ»ÄÜÊǵ¥ÏòµÄ -- mode Ö»ÄÜÊÇ "r" »ò "w" ¶ø²»ÄÜÊÇijÖÖ×éºÏ--Óû§Ö»ÄÜÑ¡ÔñҪôÍùÀïд£¬ ......
ת×Ô:http://roclinux.cn/?p=1347
trÊÇtranslateµÄ¼òд£¬Ò༴·Ò룬µ«ÊÇÒź¶µÄÊÇ£¬Ëü²»ÄÜ·Òë¾ä×Ó£¬Ö»ÄÜ·Òëµ¥¸ö×Ö·û¡£
1 trµÄ¹¤×÷ÔÀíÊÇʲô?
ÏȼÇסһµã£¬trÃüÁî²»½ÓÊÜÖ¸¶¨µÄÎļþ²ÎÊý£¬¶øÖ»ÊǶԱê×¼ÊäÈë½øÐзÒë¡£ºÃÁË£¬¼ÇסÕâµãºó£¬ÎÒÃǼÌÐø¡£
trµÄÃüÁî¸ñʽÊÇtr SET1 SET2£¬·²ÊÇÔÚSET1ÖеÄ×Ö·û£¬¶¼»á±»Ì滻ΪSET2Ö ......
×î½üÓÃÓÑÉÆÖ®±ÛµÄ°å×Ó£¬·¢ÏÖÄں˵ÄÃû³ÆÊÇ£ºLinux-2.6.29.4-FriendlyARM.ºóÃæÄǸöFriendlyARMËÀ»îÈ¥²»µô¡£ºóÀ´Ö»ºÃ¿´´úÂë¡£
1¡¢2.6.29.4Õâ¸ö°æ±¾ºÅÊÇÊÇubootÔÚ×öuimageµÄʱºò¼ÓÉϵģ¬¿´arch/arm/boot/Makefile:
quiet_cmd_uimage = UIMAGE $@
cmd_uimage = $(CONFIG_SHELL) $(MKIMA ......