- 1、本文档共74页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
嵌入式多核调试器的分析与实现-analysis and implementation of embedded multicore debugger
摘要随着多核技术的不断发展,因其具备高性能低功耗的特点,多核处理器已逐渐取代传统的单核处理器,成为市场的主流。多核处理器在被广泛应用的同时,也面临着一些新的问题。多核架构不仅需要新的程序设计方法,还需要新的软件调试方法,才能保证应用软件在多核环境中的调试工作顺利进行,才能充分利用多核系统的潜能。目前大多数嵌入式厂商都是开发基于硬件的专用仿真器,使用硬件仿真器来调试多核系统。硬件仿真器不仅价格昂贵,而且通用性以及扩展性不好。因此,在多处理器架构下,采用软件调试方法已成为当下研究热点。本文详细分析了嵌入式操作系统Linux对对称多处理器的支持策略,并根据多核调试的实际功能需求,深入研究嵌入式多核调试技术,最终实现了一款易用、低成本、移植性强的纯软件多核调试器。为了满足嵌入式多核架构下的调试需求,本文在原有GDB调试器的基础上进行功能改进,全面地反映了相关多核信息。本调试器是从处理器的角度来进行程序调试,全方位地反映进程与处理器间的交互信息,有助于了解程序在系统中的运行情况。本系统基于PB11MPCore四核嵌入式平台,在Linux(支持SMP)操作系统下设计并实现了多核调试器。该多核调试器是在GDB调试功能的基础上进行了多核调试方面的扩充,包括信息查询类命令、核控制类命令以及多线程类命令。在GDB中添加具体的调试命令:一是信息查询类命令,能够获取多核系统中CPU的相关信息、进程在多核上的运行时间分布以及指定核上运行进程的上下文信息;二是核控制类命令,能够将进程动态核绑定、让指定核执行调试命令以及对特定核设置断点;三是多线程调试类命令,通过对调试命令的重新设计,让满足条件的线程均执行该调试命令,极大地提高了调试效率。最后,本文对新增加的多核调试命令进行功能测试,在一定程度上达到多核调试的目标,满足多核调试的功能需求。关键词:多核调试,GDB,多线程,核断点,远程调试ABSTRACTWiththedevelopmentofmulti-coretechnology,themulti-coreprocessorhastakenplaceofthesingle-coreprocessorandbecamethemainstreamofthemarketbecauseofitsadvantagesinlow-energyconsumptionandhighperformance.Meanwhile,theapplicationsbasedonmulti-coreprocessoralsofacesomenewproblems.Inadditiontonewprogrammingmethods,themulti-corearchitecturerequiresnewwaysofdebuggingtoensurethesuccessofsoftwaredebuggingandmakefulluseofthemulti-coresystem.Theproductsofmostcurrentembeddedmanufacturerarebasedonthespecifichardwaredebuggertodebugmulti-coresystems.Therefore,thesoftwaredebuggingmethodsbecometheresearchhotspotsofthemulti-corearchitecturebecauseofthehighpriceandincompatibilityofhardwaredebuggingmethods.ThisthesisanalysesthestrategiesofhowtheembeddedLinuxoperatingsystemsupportstheSMPandstudiesthetechnologiesofembeddedmulti-coredebuggingconsideringitsfunctionrequirements.ByimprovingtheGDBdebugger,multi-coredebuggingsystemisrealized,whichiseasytouse,lowincostandflexibleforportability.Inordertomeetthedebuggingrequirementsintheembeddedmulti-processorarchitecture,thedebuggercanreflectthemulti-coreinformationcomprehensively.Fromtheviewofthecores,thedebuggercanoutputtheinteractiveinformationbetweentheprocess
您可能关注的文档
- 葡萄组织中白藜芦醇提取工艺优化及含量差异性研究-study on optimization of extraction process and content difference of resveratrol in grape tissue.docx
- 蒲安臣的理想主义外交实践——也谈蒲安臣代清出使研究-pu anchen's idealistic diplomatic practice - also on pu anchen's diplomatic mission of dai qing.docx
- 莆田市园下村传统聚落的形态分析-analysis of the traditional settlements in yuanxia village of putian city.docx
- 齐梁唱和诗分析——以竟陵王文学集团和萧纲文学集团为中心-an analysis of qi liang's singing and poetry - centered on jingling wang wenxue group and xiao gang literature group.docx
- 齐梁唱和诗研究以竟陵王文学集团和萧纲文学集团为中心-the research on qi liang's singing and poetry focuses on jingling wang wenxue group and xiao gang literature group.docx
- 齐鲁钢铁物流园区的价值链分析与运营模式分析-value chain analysis and operation mode analysis of qilu iron and steel logistics park.docx
- 齐鲁大学人才培养模式分析1931-1952-analysis of talent training mode in cheeloo university from 1931 to 1952.docx
- 齐鲁石化中心医院医用耗材管理软件开发-development of management software for medical consumables in qilu petrochemical central hospital.docx
- 齐齐哈尔轨道交通装备有限责任公司出口战略分析-analysis on export strategy of qiqihar rail transit equipment co., ltd..docx
- 齐齐哈尔市a集团税务风险成因分析及其管理分析-analysis on the causes and management of tax risk of group a in qiqihar city.docx
文档评论(0)