CN100555241C - Realize the method for bare nucleus software debugging in a kind of polycaryon processor - Google Patents
Realize the method for bare nucleus software debugging in a kind of polycaryon processor Download PDFInfo
- Publication number
- CN100555241C CN100555241C CNB2007101237940A CN200710123794A CN100555241C CN 100555241 C CN100555241 C CN 100555241C CN B2007101237940 A CNB2007101237940 A CN B2007101237940A CN 200710123794 A CN200710123794 A CN 200710123794A CN 100555241 C CN100555241 C CN 100555241C
- Authority
- CN
- China
- Prior art keywords
- nuclear
- debugging
- polycaryon processor
- chain
- debug
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The invention discloses the method that realizes bare nucleus software debugging in a kind of polycaryon processor, comprise step: debugging serial interface sends this debug requesting message to distributor after receiving debug requesting message and storing shared drive into; Described distributor is according to configuration rule, extracts purpose IP address, judge identical with default IP address in the described polycaryon processor after, export described debugging announcement information to this polycaryon processor; After described polycaryon processor receives described debugging announcement information, carry out debugging task.Compared with prior art, adopt the inventive method, can be very easy to and use the debugging of polycaryon processor Products Development, time to market (TTM), strengthen competitiveness of product, and shorten the settling time that product in use breaks down, improve the satisfaction of client product.
Description
Technical field
The present invention relates to the communications field, relate in particular to the method that realizes bare nucleus software debugging in a kind of polycaryon processor.
Background technology
Along with arrival and various new technology, the new business of information age continues to bring out, no matter the user is for being mobile communication, or the bandwidth demand of data communication is all more and more higher.In order to satisfy the demand of unique user high bandwidth, the operator requires mobile communication equipment and data communications equipment to have high capacity, the high access and high handling property.In order to reach high capacity, the demand of high access and high handling property, a large amount of polycaryon processors that use of beginning in mobile communication equipment and the data communications equipment at present with high throughput.
Polycaryon processor is on a slice chip, concentrates the processor of a plurality of nuclears, and simultaneously in order to improve processing power, chip is also built-in, and hardware cells quicken message handles; For better concurrency is arranged, most polycaryon processors are integrated a plurality of threads in each nuclear also in addition.In mobile communication equipment and data communications equipment, the common application model of polycaryon processor is that a part is examined as chain of command and chain of command, and on the nuclear, the operator uses operating system, as the embedded OS Vxworks of Wind River company in this section; Remaining nuclear is as data surface.Yet, in order to improve the handling property of processor, as the nuclear of data surface operation system not usually.
The operation system endorses with by means of the commercial development environment, carries out software development and debugging as the Tornado of Wind River company; And the nuclear of operation system not, though chip manufacturer provides some debugging enironments, because that the debugging interface occurs is compatible inharmonious, debugging enironment speed is slow and can't use.
Therefore, prior art awaits to improve and development.
Summary of the invention
The object of the present invention is to provide a kind of polycaryon processor is realized software debugging in the communications field method of using, partly examine the problem of doing that data surface is handled and can't not debugging during the operation system to solve polycaryon processor.
In order to address the above problem, the invention provides the method that realizes bare nucleus software debugging in a kind of polycaryon processor, comprise the steps:
A, debugging serial interface send this debug requesting message to distributor after receiving debug requesting message and storing shared drive into;
B, described distributor extract purpose IP address according to default configuration rule, judge identical with default IP address in the described polycaryon processor after, export described debugging announcement information to this polycaryon processor;
After C, described polycaryon processor receive described debugging announcement information, carry out debugging task;
Wherein, among the step B, described configuration rule comprises extraction, classification and the distribution of debug requesting message.
Wherein, among the step B, described polycaryon processor comprises chain of command nuclear and data surface nuclear; Described chain of command is examined the operation system, described data surface nuclear operation reflection, and this reflection comprises networking component and debugging task.
Wherein, in the described method, when being subjected to the restriction of IP number of addresses in the described polycaryon processor, step B comprises following processing:
B11, described distributor judge that described purpose IP address is whether identical with in the IP address of described chain of command nuclear or data surface nuclear at least one;
B12 is if then described distributor sends to described chain of command nuclear with described debugging announcement information, judges whether described debug requesting message needs this chain of command nuclear to handle;
B13 is if then described distributor directly sends to described debugging announcement information this chain of command nuclear.
Wherein, when not being subjected to the restriction of IP number of addresses in the described polycaryon processor, step B comprises following processing:
B21, described distributor judge that described purpose IP address is whether identical with in the IP address of described chain of command nuclear or data surface nuclear at least one;
B22 is if then described distributor sends to described chain of command nuclear or described data surface nuclear with described debugging announcement information.
Wherein, in the steps A, described debug requesting message comprises the pointer that is stored in the described shared drive, and described debug requesting message stores this debug requesting message in the shared drive into by the DMA engine.
Wherein, step C comprises following processing:
The chain of command of C1, described polycaryon processor nuclear or data surface nuclear pairing described debug requesting message separately copy to from shared drive in separately the internal memory;
C2, described chain of command nuclear or data surface nuclear will be distributed debugging task separately.
Wherein, in the described method, the IP number of addresses in described purpose IP address sort quantity and the described polycaryon processor is suitable.
Wherein, in the described method, described chain of command nuclear or data surface nuclear are provided with one by the virtual network interface that forms of internal memory, are used for receiving or transferring described debug requesting message.
Compared with prior art, the inventive method is utilized hardware distributor and the data surface nuclear operation image file that carries in the polycaryon processor, realize the software debugging when polycaryon processor is applied in the communications field, this method can be very easy to uses the debugging of polycaryon processor Products Development, time to market (TTM), strengthen competitiveness of product, and shorten the settling time that product in use breaks down, improve the satisfaction of client product.
Description of drawings
Debugging single plate structure synoptic diagram when Fig. 1 needs chain of command nuclear to act as agent for realization the inventive method;
Debugging single plate structure synoptic diagram when Fig. 2 acts as agent for realization the inventive method need not chain of command nuclear;
Fig. 3 is the inventive method and realization flow figure embodiment illustrated in fig. 1;
Fig. 4 is the inventive method and realization flow figure embodiment illustrated in fig. 2.
Embodiment
Below in conjunction with accompanying drawing, preferred embodiment of the present invention is described in further detail.
The invention provides the method that realizes bare nucleus software debugging in a kind of polycaryon processor, this method adopts different realization flows at dissimilar polycaryon processors; Wherein, described polycaryon processor comprises chain of command nuclear and data surface nuclear, and the quantity of chain of command nuclear or data surface nuclear can be for a plurality of, and each chain of command nuclear or data surface nuclear execution identical functions.
Embodiment one
When polycaryon processor inside is subjected to IP number of addresses assignment constraint, can adopt software debugging scheme as shown in Figure 3, correspondingly, the debugging veneer of polycaryon processor adopts structure setting as shown in Figure 1.Adopt this implementation method, need chain of command nuclear to act on behalf of, the secondary distribution debug requesting message is examined to data surface, just plays agency's effect as the nuclear of the chain of command among Fig. 3 103.After distributor extracted purpose IP address, the IP address of judging this IP address and data surface nuclear (105,106) was identical, and then by the agency of chain of command nuclear 103, distributor will be debugged the announcement information secondary distribution to data surface nuclear (105,106).After if distributor extracts purpose IP address, it is identical with the IP address of chain of command nuclear 104 to judge this IP address, and the described debugging announcement information of these chain of command nuclear 104 judgements need oneself be handled by it, then distributor directly will be debugged announcement information and send to described chain of command nuclear 104, carry out debugging task by chain of command nuclear 104.
Below describe this embodiment one in detail, realize the method for bare nucleus software debugging in the polycaryon processor of the present invention, see also accompanying drawing 1 and 3, its realization flow comprises the steps:
301, system start-up, the debugging veneer of polycaryon processor begins to power on, and carries out the debug system initial work, and the debugging serial interface output debug requesting message on the debugging veneer;
302, after debugging serial interface receives debug requesting message,,, described debug requesting message is deposited in the shared drive, and send this debug requesting message to distributor by direct memory (DMA engine) according to the pointer of depositing in advance;
303, after distributor receives described debug requesting message,, extract purpose IP address according to default configuration rule;
304, distributor judges whether purpose IP address is identical with the IP address of chain of command nuclear 103 or data surface nuclear (105,106), if all IP addresses are all different, then judging described debug requesting message is invalid information, changes step 305; If at least one purpose IP address is identical, then go to step 306;
305, directly abandon this invalid information, and return step 303;
306, distributor judges that whether purpose IP address is identical with the IP address of chain of command nuclear 104, if purpose IP address is identical with the IP address of chain of command nuclear 104, goes to step 307; Otherwise go to 308;
307, distributor 102 sends debugging announcement information notice chain of command nuclear 104 has debug requesting message to arrive, and chain of command nuclear 104 receives the debugging announcement information, goes to step 311; Wherein, debugging includes debug requesting message in the announcement information and leaves pointer in the shared drive in;
308, distributor 102 sends the debugging announcement information to chain of command nuclear 103, notifies this chain of command nuclear 103 to have the debugging announcement information to arrive;
309, distributor judges that whether purpose IP address is identical with the IP address of chain of command nuclear 103, is then to go to step 311, otherwise goes to step 310;
310, chain of command nuclear 103 is transmitted the debugging announcement information according to purpose IP address and is given corresponding data surface nuclear;
311, after chain of command nuclear or data surface nuclear are received the debugging announcement information, from this debugging announcement information, take out the pointer that debug requesting message is deposited, debug requesting message is copied to the own internal memory from shared drive;
312, chain of command nuclear or data surface nuclear ethernet driver be the task of guarding, from virtual network port separately, take out debug requesting message after, to distributing debugging task separately, after debugging task is finished, the end debug process.
Wherein, in the step 301, system initialization mainly comprises:
Distribute the shared drive of depositing debug requesting message, sharing memory pointer is put into the descriptor of network interface 101MAC device;
For each nuclear divides the IP address that is used in debugging;
The internal memory that distributes the use of simulation network interface for each nuclear;
Extraction, classification and distribution for distributor 102 configuration debug requesting message.
Embodiment two
When polycaryon processor inside is not subjected to the restriction of IP number of addresses, can adopt software debugging scheme as shown in Figure 4, correspondingly, the debugging veneer of polycaryon processor adopts structure setting as shown in Figure 2.Adopt this implementation method, need not chain of command nuclear acts on behalf of, after distributor extracts purpose IP address, judge this IP address and chain of command nuclear (103,104) or data surface nuclear (105, when the one or more IP address 106) was identical, then distributor directly sent the debugging announcement information to chain of command nuclear (103,104) or data surface nuclear (105,106).
Below describe this embodiment two in detail, realize the method for bare nucleus software debugging in the polycaryon processor of the present invention, see also accompanying drawing 4, its realization flow comprises the steps:
401, system start-up, the debugging veneer of polycaryon processor begins to power on, and carries out the debug system initial work, and the debugging serial interface output debug requesting message on the debugging veneer;
402, after debugging serial interface receives debug requesting message,,, described debug requesting message is deposited in the shared drive, and send this debug requesting message to distributor by direct memory (DMA engine) according to the pointer of depositing in advance;
403, after distributor receives described debug requesting message,, extract purpose IP address according to default configuration rule;
404, distributor judges whether purpose IP address is identical with the IP address of chain of command nuclear (103,104) or data surface nuclear (105,106), if all IP addresses are all different, then judging described debug requesting message is invalid information, changes step 405; If at least one purpose IP address is identical, then go to step 406;
405, directly abandon this invalid information, and return step 403;
406, distributor is judged purpose IP address and chain of command nuclear (103,104) or the data surface nuclear (105 in the debug requesting message, 106) after at least one in the IP address is identical, directly send the debugging announcement information to chain of command nuclear (103,104) or data surface nuclear (105,106);
407, after chain of command nuclear (103,104) or data surface nuclear (105,106) are received the debugging announcement information, from this debugging announcement information, take out the pointer that debug requesting message is deposited, debug requesting message is copied to the own internal memory from shared drive;
408, chain of command nuclear or data surface nuclear ethernet driver be the task of guarding, from virtual network port separately, take out debug requesting message after, to distributing debugging task separately, after debugging task is finished, the end debug process.
In present embodiment two, saved the agency of chain of command nuclear, need not chain of command nuclear and send the debugging announcement information to data surface nuclear secondary.
In sum, the inventive method is utilized hardware distributor and the data surface nuclear operation image file that carries in the polycaryon processor, realizes the software debugging when polycaryon processor is applied in the communications field, and this method has the following advantages:
1,, do not have the frequent switching of various tasks and seize, therefore because data surface nuclear only moves image file, can not influence data surface nuclear handling property, and can be very easy to and use the debugging of polycaryon processor Products Development, time to market (TTM) strengthens competitiveness of product;
2, convenient in view of software debugging, can shorten the settling time that product in use breaks down, improve the satisfaction of client to product.
In a word, the present invention is not limited to above-mentioned embodiment, anyly is familiar with this operator, without departing from the spirit and scope of the present invention, all should drop within protection scope of the present invention.
Claims (8)
1, realizes the method for bare nucleus software debugging in a kind of polycaryon processor, comprise the steps:
A, debugging serial interface send this debug requesting message to distributor after receiving debug requesting message and storing shared drive into;
B, described distributor extract purpose IP address according to default configuration rule, judge identical with default IP address in the described polycaryon processor after, export described debugging announcement information to this polycaryon processor;
After C, described polycaryon processor receive described debugging announcement information, carry out debugging task;
Wherein, when being subjected to the restriction of IP number of addresses in the described polycaryon processor, step B comprises following processing:
B11, described distributor judge that described purpose IP address is whether identical with in the IP address of described chain of command nuclear or data surface nuclear at least one;
B12 is if then described distributor sends to described chain of command nuclear with described debugging announcement information, judges whether described debug requesting message needs this chain of command nuclear to handle;
B13 is if then described distributor directly sends to described debugging announcement information this chain of command nuclear;
Wherein, when not being subjected to the restriction of IP number of addresses in the described polycaryon processor, step B comprises following processing:
B21, described distributor judge that described purpose IP address is whether identical with in the IP address of described chain of command nuclear or data surface nuclear at least one;
B22 is if then described distributor sends to described chain of command nuclear or described data surface nuclear with described debugging announcement information.
2, method according to claim 1 is characterized in that, in the steps A, described debug requesting message comprises the pointer that is stored in the described shared drive.
3, method according to claim 2 is characterized in that, described debug requesting message stores this debug requesting message in the shared drive into by direct memory.
4, method according to claim 1 is characterized in that, among the step B, described configuration rule comprises extraction, classification and the distribution of debug requesting message.
5, method according to claim 1 is characterized in that, among the step B, described polycaryon processor comprises chain of command nuclear and data surface nuclear; Described chain of command is examined the operation system, described data surface nuclear operation reflection, and this reflection comprises networking component and debugging task.
6, method according to claim 5 is characterized in that, step C comprises following processing:
The chain of command of C1, described polycaryon processor nuclear or data surface nuclear pairing described debug requesting message separately copy to from shared drive in separately the internal memory;
C2, described chain of command nuclear or data surface nuclear will be distributed debugging task separately.
7, method according to claim 6 is characterized in that, the IP number of addresses in described purpose IP address sort quantity and the described polycaryon processor is suitable.
8, method according to claim 5 is characterized in that, described chain of command nuclear or data surface nuclear are provided with one by the virtual network interface that forms of internal memory, are used for receiving or transferring described debug requesting message.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2007101237940A CN100555241C (en) | 2007-10-10 | 2007-10-10 | Realize the method for bare nucleus software debugging in a kind of polycaryon processor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2007101237940A CN100555241C (en) | 2007-10-10 | 2007-10-10 | Realize the method for bare nucleus software debugging in a kind of polycaryon processor |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101135991A CN101135991A (en) | 2008-03-05 |
CN100555241C true CN100555241C (en) | 2009-10-28 |
Family
ID=39160098
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2007101237940A Expired - Fee Related CN100555241C (en) | 2007-10-10 | 2007-10-10 | Realize the method for bare nucleus software debugging in a kind of polycaryon processor |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100555241C (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102103535B (en) * | 2011-03-07 | 2013-05-08 | 北京大学深圳研究生院 | Multicore processor, and system and method for debugging multicore processor |
CN106227653B (en) * | 2016-07-13 | 2018-10-30 | 无锡市同芯恒通科技有限公司 | A kind of linux kernel debugging system and method |
CN113010407B (en) * | 2019-12-20 | 2024-09-10 | 上海汽车集团股份有限公司 | System information acquisition method, device and system |
-
2007
- 2007-10-10 CN CNB2007101237940A patent/CN100555241C/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
CN101135991A (en) | 2008-03-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101841470B (en) | High-speed capturing method of bottom-layer data packet based on Linux | |
CN105282135B (en) | Using software definition network in virtual machine and virtualization container realize local service link method and apparatus | |
CN101354693B (en) | An inter-core communication scheduling system and method for a heterogeneous multi-core processor | |
DE112017003294B4 (en) | Technologies for scalable sending and receiving of packets | |
CN101015187B (en) | Apparatus and method for supporting connection establishment in an offload of network protocol processing | |
CN103269284B (en) | The catching method of real-time network data | |
CN105915470B (en) | A kind of elastic bandwidth configuration method based on Linux flow control | |
CN101150488B (en) | A receiving method for zero copy network packet | |
WO2021000717A1 (en) | Method and apparatus for processing io | |
CN104166597B (en) | A kind of method and device for distributing long-distance inner | |
CN101178694A (en) | Intel e1000 zero copy method | |
DE112016005910T5 (en) | Architecture for Software-Defined Interconnect Switch | |
CN103946803A (en) | Processor with efficient work queuing | |
CN104158764B (en) | Message processing method and device | |
CN101150487A (en) | A transmission method for zero copy network packet | |
CN1981272A (en) | Apparatus and method for supporting memory management in an offload of network protocol processing | |
CN103617142B (en) | A kind of express network collecting method based on pf_ring | |
CN110737530B (en) | A method to improve the packet receiving ability of the HANDLE identification analysis system | |
CN100555241C (en) | Realize the method for bare nucleus software debugging in a kind of polycaryon processor | |
CN109471725A (en) | Resource allocation methods, device and server | |
CN103577469B (en) | Database connection multiplexing method and apparatus | |
DE112016007292T5 (en) | TECHNOLOGIES FOR PARAVIRTUALIZED NETWORK DEVICES AND MEMORY MANAGEMENT | |
CN110891083B (en) | A proxy method that supports parallel execution of multiple jobs in Gaia | |
CN114816651A (en) | Communication method, device and system | |
CN110780992B (en) | A cloud computing platform optimization deployment method, system, terminal and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20091028 Termination date: 20161010 |
|
CF01 | Termination of patent right due to non-payment of annual fee |