Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

CPU abnormal point positioning diagnosis method based MIPS structure

A diagnostic method and abnormal point technology, applied in the field of data communication, can solve problems such as hardware fault location, fault diagnosis and location inconvenience, retrospective call function, etc., to achieve accurate fault location, accurate function backtracking effect, and convenient fault diagnosis.

Inactive Publication Date: 2008-02-13
RUIJIE NETWORKS CO LTD
View PDF0 Cites 25 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0011] In this way, when some faults occur during the execution of the CPU based on the MIPS architecture, it is impossible to trace back to the calling function according to the error function, which brings inconvenience to fault diagnosis and positioning.
[0012] 2. Hardware fault location
However, the MIPS architecture CPU cannot do this due to its loose function stack structure. When a fault occurs, it can only point out the abnormal instruction and cannot print out the function call.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • CPU abnormal point positioning diagnosis method based MIPS structure
  • CPU abnormal point positioning diagnosis method based MIPS structure
  • CPU abnormal point positioning diagnosis method based MIPS structure

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0065] Embodiment 1: Software fault location

[0066] This embodiment takes a software failure occurring on the RSR50 router as an example. The phenomenon is that the RSR50 router occasionally throws a TLB exception TLB Invalid in the case of a baking machine, that is, a null pointer exception. According to the method of the present invention, it can be traced back The entire function call path when a TLB exception occurs is as follows:

[0067] Exception: TLB invalid

[0068] EPC: 0x3EB71C

[0069] Tracing:

[0070] _free_pages

[0071] ←_alloc_free_pages

[0072] ←kemel_mem_alloc

[0073] ←alloc_skb

[0074] ←pq2_fcc_sync_rx_isr

[0075] ←cpm_sync_recv_data

[0076] ←pq2_cpm_sync_isr

[0077] ←irq_do_action_cpu

[0078] ←Interrupt_Process_Loop_0

[0079] From the above, you can see the calling path and exception information of the function. The analysis shows that the dynamic application of memory is performed in the interrupt, and f...

Embodiment 2

[0091] Embodiment 2: hardware fault location

[0092] This embodiment is an example of a hardware fault that occurs on the RSR50 router. The phenomenon is that the system throws a bus error exception after a period of time after the machine runs normally. According to the method of the present invention, the entire calling path is traced back as follows:

[0093] Exception: Bus Error

[0094] EPC: 0x7cD030

[0095] Tracing:

[0096] sys_touch_watchdog

[0097] ←CE1_tx_start

[0098] ←CE1_intf_output

[0099] ←send_keepalive_packet

[0100] ←outp_packet_process

[0101] ←netif_send

[0102] ←ip_output

[0103] ←iplocal_send

[0104] ←raw_sendmsg

[0105] ←sock_sendmsg

[0106] ←sys_sendmsg

[0107] ← sendmsg

[0108] ←ospf_packet_send

[0109] ← ospf_packet_write

[0110] ← ospf_hello_send

[0111] ←ospf_hello_timer

[0112] ←ospf_start

[0113] ← ospf_thread

[0114] ←TCC_Task_Shell

[0115] As can be seen ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The present invention provides a MIPS-architecture-based CPU outlier location diagnosis method which including the following procedures: machine codes of a present function is scanned; a migration in instructions on constructing a function stack is analyzed and a function stack pointer of an invoking function is computed; the migration in the storage function of a return address is analyzed, the storage location of the return address in the function stack of the present function is computed and the return address is received. The function stack pointer of the call function and the return address obtained according to the present invention can output a call relation of the present function so as to locate and diagnose failure.

Description

technical field [0001] The present invention relates to the field of data communication, in particular to a kind of data communication product based on MIPS (Million Instructions Per Second, the number of millions of machine language instructions processed per second) CPU architecture when abnormality occurs due to hardware or software reasons during operation Outlier location diagnosis method. Background technique [0002] With the rapid development of data communication technology, various data communication products are constantly updated, such as switches, routers, etc. are very complex systems, including complex hardware devices, running millions of machine instructions at the same time. As a result, in the process of system operation, once a hardware or software failure occurs, the location and diagnosis of the abnormal point of the failure is particularly important. In general, the following problems often occur during system operation: [0003] 1. During the produc...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F11/36
Inventor 伍剑峰
Owner RUIJIE NETWORKS CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products