Buried point information exporting method and device, electronic equipment and storage medium

The interface controller generates an interrupt signal in the terminal device and switches the UART data interface, which solves the problem of being unable to export buried point information when the kernel is deadlocked, and achieves the safety and reliability of information export.

CN118585346APending Publication Date: 2024-09-03WINGTECH COMM
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410567840.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-09
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

When users use terminal devices such as mobile phones, the buried point information cannot be exported when a kernel deadlock occurs, resulting in inability to analyze and the risk of leakage.

Method used

The interface controller generates an interrupt signal to determine whether the terminal device is in a kernel deadlock state, and exports buried point information to the log collection device through the UART data interface to ensure that it can respond to external interrupts and export information even when the kernel is deadlocked.

Benefits of technology

It realizes the ability to export hidden information when the terminal device kernel is deadlocked, solving the problem of being unable to export, while avoiding information leakage and ensuring information security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118585346A
    Figure CN118585346A
Patent Text Reader

Abstract

The embodiment of the invention provides a burying point information exporting method and device, electronic equipment and a storage medium, and relates to the technical field of testing. The method is applied to the terminal equipment, the terminal equipment comprises an interface controller, the interface controller is connected with a multiplex interface, and the method comprises the steps that an interrupt signal is generated, the interface controller sends the interrupt signal to a central processing unit of the terminal equipment, and the interrupt signal indicates that kernel deadlock happens to the terminal equipment; if the interface controller receives response information of the central processing unit, the function of the multiplexing interface is switched to a UART data interface; and exporting burying point information read by the central processing unit to log collection equipment through the UART data interface, wherein the log collection equipment is connected with the terminal equipment through the multiplex interface. The method and the device are used for solving the problem that burying point information cannot be exported when kernel deadlock occurs in the using process of terminal equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of testing technology, and in particular to a method, device, electronic device and storage medium for exporting buried point information. Background Art

[0002] When a process is running on a mobile terminal such as a mobile phone, two or more processes may wait for each other due to competition for resources, causing kernel deadlock, mobile phone freezing or black screen, and some functions not being able to run normally, for example, logs cannot be exported normally.

[0003] Currently, when dealing with the problem of being unable to export logs normally in a test environment, the terminal device is connected to the Shell environment through the ADB command, and the tracking point information is exported through the crash dump function of the mobile phone. However, due to the risk of leakage, the crash dump function of the mobile phone is turned off in a non-test environment. Therefore, if a kernel deadlock occurs when the user is using a mobile phone or other terminal device, the tracking point information cannot be exported for analysis.

[0004] Therefore, when a kernel deadlock occurs when a user is using a mobile phone, how to export tracking point information is an urgent problem to be solved. Summary of the invention

[0005] In view of this, the present application provides a method, device, electronic device and storage medium for exporting tracking point information, so that when a kernel deadlock occurs while a user is using a mobile phone, the tracking point information can also be exported.

[0006] In order to achieve the above purpose, the embodiments of the present application provide the following technical solutions:

[0007] In a first aspect, an embodiment of the present application provides a method for exporting buried point information, which is applied to a terminal device, wherein the terminal device includes: an interface controller, wherein the interface controller is connected to a multiplexing interface, and the method includes:

[0008] generating an interrupt signal, the interface controller sending the interrupt signal to the central processing unit of the terminal device, the interrupt signal indicating that a kernel deadlock occurs in the terminal device;

[0009] If the interface controller receives the response information from the central processing unit, the function of the multiplexing interface is switched to the UART data interface;

[0010] The tracking point information read by the central processing unit is exported to the log collection device through the UART data interface, and the log collection device is connected to the terminal device through the multiplexing interface.

[0011] As an optional implementation of the embodiment of the present application, the method further includes:

[0012] In response to a connection operation triggered by a user, the interface controller receives a voltage signal sent by the log collection device, wherein the connection operation is an operation of connecting the terminal device and the log collection device through the multiplexing interface;

[0013] The interface controller determines whether the voltage signal meets a preset condition;

[0014] If the voltage signal meets the preset condition, an interrupt signal is generated.

[0015] As an optional implementation of the embodiment of the present application, after the interface controller sends the interrupt signal to the central processor of the terminal device, the method further includes:

[0016] The central processing unit determines whether it is in a kernel deadlock state;

[0017] If it is determined that the central processing unit is in the kernel deadlock state, terminating the target process and processing the interrupt signal;

[0018] The response information is sent to the interface controller.

[0019] As an optional implementation of the embodiment of the present application, the processing of the interrupt signal includes:

[0020] The central processing unit calls an interrupt processing function, and calls a software interface through the interrupt processing function to read the stored tracking information;

[0021] The burying point information is sent to the interface controller so as to export the burying point information through the multiplexing interface.

[0022] As an optional implementation of the embodiment of the present application, the method further includes:

[0023] If the interface controller does not receive the response information from the central processing unit, the function of the multiplexed interface is maintained as a USB data interface.

[0024] As an optional implementation of the embodiment of the present application, the method further includes:

[0025] Taking the time when the voltage signal sent by the log collection device is received as the starting time, determining whether the interface controller receives the response information within a preset time period after the starting time;

[0026] If yes, it is determined that the interface controller receives the response information from the central processing unit.

[0027] As an optional implementation of the embodiment of the present application, after exporting the tracking point information read by the central processor to the log collection device through the UART data interface, the method further includes:

[0028] The function of the multiplexing interface is switched from the UART data interface to a USB data interface.

[0029] In a second aspect, an embodiment of the present application provides a device for exporting buried point information, which is applied to a terminal device, wherein the terminal device includes: an interface controller, wherein the interface controller is connected to a multiplexing interface, and includes:

[0030] A generating module, configured to generate an interrupt signal, wherein the interface controller sends the interrupt signal to the central processing unit of the terminal device, wherein the interrupt signal indicates that a kernel deadlock occurs in the terminal device;

[0031] A switching module, for switching the function of the multiplexed interface to a UART data interface if the interface controller receives a response message from the central processing unit;

[0032] An export module is used to export the tracking point information read by the central processing unit to a log collection device through the UART data interface, and the log collection device is connected to the terminal device through the multiplexing interface.

[0033] As an optional implementation of the embodiment of the present application, it also includes:

[0034] A response module, configured to respond to a connection operation triggered by a user, wherein the interface controller receives a voltage signal sent by the log collection device, wherein the connection operation is an operation of connecting the terminal device and the log collection device through the multiplexing interface;

[0035] The judging module is used to judge whether the voltage signal satisfies a preset condition; if the voltage signal satisfies the preset condition, an interrupt signal is generated.

[0036] As an optional implementation of the embodiment of the present application, the judgment module is also used for the central processor of the terminal device to determine whether it is in a kernel deadlock state after the interface controller sends an interrupt signal to the central processor of the terminal device.

[0037] The processing module is used to terminate the target process and process the interrupt signal if it is determined that the central processing unit is in the kernel deadlock state; and send the response information to the interface controller.

[0038] As an optional implementation of the embodiment of the present application, the processing module is specifically used for the central processing unit to call the interrupt processing function, and to call the software interface through the interrupt processing function to read the saved tracking point information; the tracking point information is sent to the interface controller to export the tracking point information through the multiplexing interface.

[0039] As an optional implementation of the embodiment of the present application, the processing module is also used to maintain the function of the multiplexed interface as a USB data interface if the interface controller does not receive the response information from the central processing unit.

[0040] As an optional implementation of the embodiment of the present application, the judgment module is also used to determine whether the interface controller receives the response information within a preset time period after the starting time, taking the time when the voltage signal sent by the log collection device is received as the starting time; if so, it is determined that the interface controller receives the response information of the central processing unit.

[0041] As an optional implementation of the embodiment of the present application, the processing module is also used to switch the function of the multiplexing interface from the UART data interface to the USB data interface after exporting the tracking information read by the central processing unit to the log collection device through the UART data interface.

[0042] In a third aspect, an embodiment of the present application provides an electronic device comprising: a memory and a processor, the memory being used to store a computer program; the processor being used to execute the steps of the method for exporting burial point information described in the first aspect or any optional implementation manner of the first aspect when calling the computer program.

[0043] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the method for exporting burial point information described in the first aspect or any optional implementation method of the first aspect are implemented.

[0044] The method for exporting buried point information provided in the embodiment of the present application is applied to a terminal device, the terminal device includes: an interface controller, the interface controller is connected to a multiplexing interface, the method includes: generating an interrupt signal, the interface controller sends the interrupt signal to the central processing unit of the terminal device, the interrupt signal indicates that a kernel deadlock occurs in the terminal device; if the interface controller receives a response message from the central processing unit, the function of the multiplexing interface is switched to a UART data interface; the buried point information read by the central processing unit is exported to a log collection device through the UART data interface, and the log collection device is connected to the terminal device through the multiplexing interface. The embodiment of the present application uses the interface controller in the terminal device to enable the terminal device to respond to external interrupts even when a kernel deadlock occurs, and exports the buried point information of the deadlock through the UART data interface, thereby solving the problem that the buried point information cannot be exported when a kernel deadlock occurs during the use of the terminal device. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0046] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0047] Figure 1 A schematic diagram of an application scenario of a method for exporting tracking point information provided by an embodiment of the present application;

[0048] Figure 2 A flowchart of the steps of a method for exporting tracking point information provided by an embodiment of the present application;

[0049] Figure 3 A flowchart of the steps of a method for exporting buried point information provided in another embodiment of the present application;

[0050] Figure 4 A structural block diagram of a method for exporting tracking point information provided by an embodiment of the present application;

[0051] Figure 5 A structural block diagram of a method for exporting tracking point information provided by another embodiment of the present application;

[0052] Figure 6 This is a diagram of the internal structure of an electronic device in one embodiment of the present application. DETAILED DESCRIPTION

[0053] In order to more clearly understand the above-mentioned purposes, features and advantages of the present application, the scheme of the present application will be further described below. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.

[0054] In the following description, many specific details are set forth to facilitate a full understanding of the present application, but the present application may also be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only part of the embodiments of the present application, rather than all of the embodiments.

[0055] The terms "first" and "second" in the specification and claims of this application are used to distinguish objects to be synchronized, rather than to describe a specific order of objects. For example, the first folding part and the second folding part are used to distinguish different folding parts of the terminal device, rather than to describe a specific order of the folding parts.

[0056] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way. In addition, in the description of the embodiments of the present application, unless otherwise specified, the meaning of "multiple" refers to two or more.

[0057] The execution subject of the method provided in the embodiment of the present application may be a terminal device. The terminal device may be a mobile phone, a tablet computer, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), a smart watch, a smart bracelet, or other terminal devices, or the terminal device may also be other types of terminal devices, and the embodiment of the present application does not limit the type of terminal device.

[0058] First, the application scenario of the present application is described exemplarily by taking the terminal device as a mobile phone as an example. During the operation of the mobile phone, two or more processes cause kernel deadlock due to competition for resources, causing the mobile phone to freeze or black screen, resulting in some functions not being able to operate normally, for example, logs cannot be exported normally. In the current test environment, the terminal device will be connected to the Shell environment through the ADB command, and the buried point information will be exported through the crash dump function of the mobile phone, but there may be a risk of leakage. In order to prevent leakage, the crash dump function of the mobile phone used by the user is in a closed state. Therefore, when the kernel deadlock problem occurs during use, the buried point information cannot be exported for analysis.

[0059] Based on this, the present application proposes a method for exporting tracking point information, which exports the tracking point information through a multiplexed interface connected to the interface controller of the terminal device, thereby solving the problem that the tracking point information cannot be exported when a kernel deadlock occurs during the use of the terminal device.

[0060] For example, refer to Figure 1 As shown, Figure 1 A schematic diagram of an application scenario provided for an embodiment of the present application, wherein the scenario includes a terminal device 10 and a log collection device 12, wherein the terminal device 10 includes a central processing unit (CPU) 101 and an interface controller 102, wherein the interface controller 102 includes USB and UART functions and is connected to a multiplexing interface 14, wherein the terminal device 10 and the log collection device 12 are connected via the multiplexing interface 14, wherein the multiplexing interface can be used as a UART (Universal Asynchronous Receiver / Transmitter) data interface, or as a USB (Universal Serial Bus) data interface, and wherein the conversion between the UART GPIO function and the USB function is implemented according to the control instructions of the interface controller.

[0061] The following is an illustrative description of the method for exporting burial point information provided in the present application through several specific embodiments. The method for exporting burial point information provided in the embodiments of the present application can be applied to a terminal device, and the terminal device includes: an interface controller, and the interface controller is connected to the multiplexing interface.

[0062] Figure 2 A flowchart of a method for exporting tracking information provided by an embodiment of the present application is provided. Figure 2 As shown, the following steps S210-S230 are included.

[0063] S210: Generate an interrupt signal, and the interface controller sends the interrupt signal to the central processing unit of the terminal device.

[0064] The interrupt signal indicates that a kernel deadlock occurs in the terminal device.

[0065] The generation of an interrupt signal can be performed in the following manner: in response to a connection operation triggered by a user, the interface controller receives a voltage signal sent by the log collection device and determines whether the voltage signal meets a preset condition; if the voltage signal meets the preset condition, an interrupt signal is generated.

[0066] For example, when a terminal device has a black screen or is stuck, short press the power button (power function button), the terminal device does not respond, based on the user's connection operation of the log collection device and the terminal device through the multiplexing interface, the log collection device and the terminal device are connected, and the log collection device sends a voltage signal to the interface controller. The interface controller determines whether the voltage signal meets the preset conditions, and generates an interrupt signal when the voltage signal meets the preset conditions. The preset conditions may refer to a voltage value or a voltage range, and the preset conditions may be specifically defined according to the device parameters of the terminal device and the log collection device. For example, the interface controller determines whether the voltage value corresponding to the voltage signal is within a preset voltage range. If the voltage value corresponding to the voltage signal is within the preset voltage range, an interrupt signal is generated, and so on.

[0067] Among them, the connection operation is an operation of connecting the terminal device and the log collection device through the multiplexing interface. The log collection device is an external device, and its function is to collect logs. That is, any device with a log collection function can be used as the log collection device provided in the embodiment of the present application. The embodiment of the present application does not limit the specific type of the log collection device.

[0068] If the interface controller receives the response information from the central processing unit, the following step S220 is executed; if the interface controller does not receive the response information from the central processing unit, the function of the multiplexed interface is maintained as the USB data interface, or the function of the multiplexed interface is switched from the UART data interface to the USB data interface.

[0069] Among them, determining whether the interface controller has received the response information of the central processing unit may include: taking the moment when the voltage signal sent by the log collection device is received as the starting moment, determining whether the interface controller has received the response information within a preset time period after the starting moment; if so, determining that the interface controller has received the response information of the central processing unit.

[0070] Exemplarily, assuming that the starting time is t1, and the time period between t1 and t2 is a preset time period, if the response information of the central processor is received at any time between t1 and t2, it is determined that the interface controller has received the response information of the central processor. If the response information of the central processor is not received from t1 to t2, it is considered that the interface controller has not received the response information of the central processor.

[0071] S220: If the interface controller receives the response information from the central processing unit, the function of the multiplexing interface is switched to the UART data interface.

[0072] Following the above example, after the interface controller sends an interrupt signal to the CPU, it waits for the CPU's response. If no response information is received until time t2, the waiting timeout occurs and the interface controller exits the waiting state. If a response information is received from the CPU, the function of the multiplexed interface is switched to the UART data interface.

[0073] S230. Export the tracking point information read by the central processing unit to the log collection device through the UART data interface.

[0074] Wherein, the log collection device is connected to the terminal device through the multiplexing interface.

[0075] Exemplarily, after receiving an interrupt signal, the central processing unit calls an interrupt handling function, and calls a software interface through the interrupt handling function to read the saved tracking information; the tracking information is sent to the interface controller to export the tracking information through the multiplexing interface.

[0076] The method for exporting buried point information provided in the embodiment of the present application is applied to a terminal device, the terminal device includes: an interface controller, the interface controller is connected to a multiplexing interface, the method includes: generating an interrupt signal, the interface controller sends the interrupt signal to the central processing unit of the terminal device, the interrupt signal indicates that a kernel deadlock occurs in the terminal device; if the interface controller receives a response message from the central processing unit, the function of the multiplexing interface is switched to a UART data interface; the buried point information read by the central processing unit is exported to a log collection device through the UART data interface, and the log collection device is connected to the terminal device through the multiplexing interface. The embodiment of the present application uses the interface controller in the terminal device to enable the terminal device to respond to external interrupts even when a kernel deadlock occurs, and exports the buried point information of the deadlock through the UART data interface, thereby solving the problem that the buried point information cannot be exported when a kernel deadlock occurs during the use of the terminal device.

[0077] Figure 3 A flowchart of a method for exporting buried point information provided by another embodiment of the present application is provided. Figure 2 Based on the embodiment shown in the figure, the following steps S310-S320 are included. Figure 1 The same or similar steps in the illustrated embodiments are described in detail.

[0078] S310: The central processing unit determines whether it is in a kernel deadlock state.

[0079] Exemplarily, if the central processing unit is in a kernel deadlock state, it will terminate the process after receiving an interrupt signal, turn to process the interrupt signal, and send a response to the controller, executing the following step S320; if the CPU cannot respond to the interrupt signal, it cannot respond to the interface controller.

[0080] S320, terminate the target process, process the interrupt signal, and send the response information to the interface controller.

[0081] The target process is the process that causes the kernel deadlock. Exemplarily, the central processing unit terminates the target process, calls the interrupt handling function, and calls the software interface through the interrupt handling function to read the saved tracking information; the tracking information is sent to the interface controller to export the tracking information through the multiplexing interface.

[0082] Optionally, after the tracking point information is successfully exported, the function of the multiplexing interface is switched from the UART data interface to the USB data interface.

[0083] Through the method for exporting tracking point information provided in the embodiment of the present application, the terminal device can also export tracking point information after turning off the crash dump function, and other information in the memory will not be exported, thereby ensuring information security.

[0084] Based on the same inventive concept, as an implementation of the above method, the embodiment of the present application also provides a device for exporting buried point information. The device embodiment corresponds to the above method embodiment. For ease of reading, the device embodiment will no longer repeat the details of the above method embodiment one by one, but it should be clear that the device in this embodiment can correspond to all the contents of the above method embodiment.

[0085] Figure 4 A structural block diagram of a device for exporting buried point information provided in an embodiment of the present application is shown in FIG. Figure 4 As shown, the device 400 for exporting buried point information provided in this embodiment includes:

[0086] A generating module 410, configured to generate an interrupt signal, wherein the interface controller sends the interrupt signal to the central processing unit of the terminal device, wherein the interrupt signal indicates that a kernel deadlock occurs in the terminal device;

[0087] A switching module 420, for switching the function of the multiplexed interface to a UART data interface if the interface controller receives a response message from the central processing unit;

[0088] The export module 430 is used to export the tracking point information read by the central processing unit to the log collection device through the UART data interface, and the log collection device is connected to the terminal device through the multiplexing interface.

[0089] Figure 5 A structural block diagram of a device for exporting buried point information provided by another embodiment of the present application is shown in FIG. Figure 5 As shown, in Figure 4 Based on the device shown, it also includes:

[0090] A response module 510, configured to respond to a connection operation triggered by a user, wherein the interface controller receives a voltage signal sent by the log collection device, wherein the connection operation is an operation of connecting the terminal device and the log collection device through the multiplexing interface;

[0091] The judgment module 520 is used to judge whether the voltage signal meets a preset condition; if the voltage signal meets the preset condition, an interrupt signal is generated.

[0092] As an optional implementation of the embodiment of the present application, the judgment module 520 is also used for the central processor of the terminal device to determine whether it is in a kernel deadlock state after the interface controller sends an interrupt signal to the central processor of the terminal device.

[0093] The processing module 530 is used to terminate the target process and process the interrupt signal if it is determined that the central processing unit is in the kernel deadlock state; and send the response information to the interface controller.

[0094] As an optional implementation of the embodiment of the present application, the processing module 530 is specifically used for the central processing unit to call the interrupt processing function, and to call the software interface through the interrupt processing function to read the saved tracking point information; the tracking point information is sent to the interface controller to export the tracking point information through the multiplexing interface.

[0095] As an optional implementation of the embodiment of the present application, the processing module 530 is also used to maintain the function of the multiplexed interface as a USB data interface if the interface controller does not receive the response information from the central processing unit.

[0096] As an optional implementation of the embodiment of the present application, the judgment module 520 is also used to determine whether the interface controller receives the response information within a preset time period after the starting time, taking the time when the voltage signal sent by the log collection device is received as the starting time; if so, it is determined that the interface controller receives the response information of the central processing unit.

[0097] As an optional implementation of the embodiment of the present application, the processing module 530 is also used to switch the function of the multiplexing interface from the UART data interface to the USB data interface after exporting the tracking information read by the central processing unit to the log collection device through the UART data interface.

[0098] The device for exporting buried point information provided in the embodiment of the present application executes the method for exporting buried point information, and through the interface controller in the terminal device, enables the terminal device to respond to external interrupts even when a kernel deadlock occurs, and exports the deadlocked buried point information through the UART data interface, thereby solving the problem that the buried point information cannot be exported when a kernel deadlock occurs during the use of the terminal device.

[0099] The buried point information export device provided in this embodiment can execute the buried point information export method provided in the above method embodiment. Its implementation principle and technical effect are similar and will not be repeated here. Each module in the above buried point information export device can be implemented in whole or in part by software, hardware and a combination thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0100] In one embodiment, the present disclosure provides an electronic device, which includes: a processor 610, a memory 620, and a computer program stored in the memory 620 and executable on the processor 610, and when the computer program is executed by the processor 610, each process of the method for deriving buried point information in the above method embodiment is implemented. And the same technical effect can be achieved, so it will not be repeated here to avoid repetition.

[0101] An embodiment of the present disclosure provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, each process of the method for exporting point information in the above method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.

[0102] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0103] In one embodiment, the method for exporting buried point information provided in the present application can be implemented in the form of a computer program. The computer program can be Figure 6The memory of the electronic device may store various program modules constituting the electronic device, for example, Figure 5 The judgment module 520 and the processing module 530 are shown. The computer program composed of various program modules enables the processor to execute the steps of the method for deriving buried point information of various embodiments of the present application described in this specification.

[0104] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0105] generating an interrupt signal, the interface controller sending the interrupt signal to the central processing unit of the terminal device, the interrupt signal indicating that a kernel deadlock occurs in the terminal device;

[0106] If the interface controller receives the response information from the central processing unit, the function of the multiplexing interface is switched to the UART data interface;

[0107] The tracking point information read by the central processing unit is exported to the log collection device through the UART data interface, and the log collection device is connected to the terminal device through the multiplexing interface.

[0108] In one embodiment, the processor also implements the following steps when executing the computer program: in response to a connection operation triggered by a user, the interface controller receives a voltage signal sent by the log collection device, and the connection operation is an operation of connecting the terminal device and the log collection device through the multiplexing interface; the interface controller determines whether the voltage signal meets a preset condition; if the voltage signal meets the preset condition, an interrupt signal is generated.

[0109] In one embodiment, when the processor executes the computer program, the following steps are also implemented: after the interface controller sends an interrupt signal to the central processor of the terminal device, the central processor determines whether it is in a kernel deadlock state; if it is determined that the central processor is in the kernel deadlock state, the target process is terminated and the interrupt signal is processed; and the response information is sent to the interface controller.

[0110] In one embodiment, when the processor executes a computer program, the following steps are also implemented: the central processing unit calls an interrupt handling function, and calls a software interface through the interrupt handling function to read the saved tracking information; the tracking information is sent to the interface controller to export the tracking information through the multiplexing interface.

[0111] In one embodiment, when the processor executes the computer program, the following steps are further implemented: if the interface controller does not receive the response information from the central processing unit, the function of the multiplexed interface is maintained as a USB data interface.

[0112] In one embodiment, when the processor executes the computer program, the following steps are also implemented: taking the moment when the voltage signal sent by the log collection device is received as the starting moment, determining whether the interface controller receives the response information within a preset time period after the starting moment; if so, determining that the interface controller receives the response information of the central processor.

[0113] In one embodiment, when the processor executes the computer program, the following steps are also implemented: after exporting the tracking point information read by the central processing unit to the log collection device through the UART data interface, the function of the multiplexing interface is switched from the UART data interface to the USB data interface.

[0114] The computer device provided in the embodiment of the present application executes the method for exporting buried point information, and through the interface controller in the terminal device, enables the terminal device to respond to external interrupts even when a kernel deadlock occurs, and exports the buried point information of the deadlock through the UART data interface, thereby solving the problem that the buried point information cannot be exported when a kernel deadlock occurs during the use of the terminal device.

[0115] The computer device provided in this embodiment can implement the method for exporting buried point information provided in the above method embodiment. Its implementation principle and technical effect are similar and will not be repeated here.

[0116] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0117] generating an interrupt signal, the interface controller sending the interrupt signal to the central processing unit of the terminal device, the interrupt signal indicating that a kernel deadlock occurs in the terminal device;

[0118] If the interface controller receives the response information from the central processing unit, the function of the multiplexing interface is switched to the UART data interface;

[0119] The tracking point information read by the central processing unit is exported to the log collection device through the UART data interface, and the log collection device is connected to the terminal device through the multiplexing interface.

[0120] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: in response to a connection operation triggered by a user, the interface controller receives a voltage signal sent by the log collection device, and the connection operation is an operation of connecting the terminal device and the log collection device through the multiplexing interface; the interface controller determines whether the voltage signal meets a preset condition; if the voltage signal meets the preset condition, an interrupt signal is generated.

[0121] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: after the interface controller sends an interrupt signal to the central processor of the terminal device, the central processor determines whether it is in a kernel deadlock state; if it is determined that the central processor is in the kernel deadlock state, the target process is terminated and the interrupt signal is processed; and the response information is sent to the interface controller.

[0122] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: the central processing unit calls the interrupt processing function, and calls the software interface through the interrupt processing function to read the saved tracking information; the tracking information is sent to the interface controller to export the tracking information through the multiplexing interface.

[0123] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: if the interface controller does not receive the response information from the central processor, the function of the multiplexed interface is maintained as a USB data interface.

[0124] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: taking the moment when the voltage signal sent by the log collection device is received as the starting moment, determining whether the interface controller receives the response information within a preset time period after the starting moment; if so, determining that the interface controller receives the response information of the central processing unit.

[0125] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: after exporting the tracking point information read by the central processing unit to the log collection device through the UART data interface, the function of the multiplexing interface is switched from the UART data interface to the USB data interface.

[0126] When the computer program provided in the embodiment of the present application is executed by an electronic device, the interface controller in the terminal device enables the terminal device to respond to external interrupts even when a kernel deadlock occurs, and the deadlock point information is exported through the UART data interface, thereby solving the problem that the point information cannot be exported when a kernel deadlock occurs during the use of the terminal device.

[0127] The computer program stored on the computer-readable storage medium provided in this embodiment can implement the method for exporting the burial point information provided in the above method embodiment. Its implementation principle and technical effect are similar and will not be repeated here.

[0128] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in various forms, such as static random access memory (SRAM) and dynamic random access memory (DRAM).

[0129] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0130] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A method for exporting buried point information, characterized in that: Applied to a terminal device, the terminal device comprises: an interface controller, the interface controller is connected to a multiplexing interface, and the method comprises: generating an interrupt signal, the interface controller sending the interrupt signal to the central processing unit of the terminal device, the interrupt signal indicating that a kernel deadlock occurs in the terminal device; If the interface controller receives the response information from the central processing unit, the function of the multiplexing interface is switched to the UART data interface; The tracking point information read by the central processing unit is exported to the log collection device through the UART data interface, and the log collection device is connected to the terminal device through the multiplexing interface.

2. The method according to claim 1, characterized in that: The method further comprises: In response to a connection operation triggered by a user, the interface controller receives a voltage signal sent by the log collection device, wherein the connection operation is an operation of connecting the terminal device and the log collection device through the multiplexing interface; The interface controller determines whether the voltage signal meets a preset condition; If the voltage signal meets the preset condition, an interrupt signal is generated.

3. The method according to claim 1, characterized in that After the interface controller sends the interrupt signal to the central processor of the terminal device, the method further includes: The central processing unit determines whether it is in a kernel deadlock state; If it is determined that the central processing unit is in the kernel deadlock state, terminating the target process and processing the interrupt signal; The response information is sent to the interface controller.

4. The method according to claim 3, characterized in that The processing of the interrupt signal comprises: The central processing unit calls an interrupt processing function, and calls a software interface through the interrupt processing function to read the stored tracking information; The burying point information is sent to the interface controller so as to export the burying point information through the multiplexing interface.

5. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: If the interface controller does not receive the response information from the central processing unit, the function of the multiplexed interface is maintained as a USB data interface.

6. The method according to claim 2, characterized in that The method further comprises: Taking the time when the voltage signal sent by the log collection device is received as the starting time, determining whether the interface controller receives the response information within a preset time period after the starting time; If yes, it is determined that the interface controller receives the response information from the central processing unit.

7. The method according to claim 2, characterized in that After exporting the buried point information read by the central processor to the log collection device through the UART data interface, the method further includes: The function of the multiplexing interface is switched from the UART data interface to a USB data interface.

8. A device for exporting buried point information, characterized in that: Applied to a terminal device, the terminal device comprises: an interface controller, the interface controller is provided with a multiplexing interface, including: A generating module, configured to generate an interrupt signal, wherein the interface controller sends the interrupt signal to the central processing unit of the terminal device, wherein the interrupt signal indicates that a kernel deadlock occurs in the terminal device; A switching module, for switching the function of the multiplexed interface to a UART data interface if the interface controller receives a response message from the central processing unit; An export module is used to export the tracking point information read by the central processing unit to a log collection device through the UART data interface, and the log collection device is connected to the terminal device through the multiplexing interface.

9. An electronic device, characterized in that: include: A memory and a processor, the memory is used to store a computer program; the processor is used to execute the method for exporting buried point information described in any one of claims 1-7 when calling the computer program.

10. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor, the method for exporting buried point information described in any one of claims 1-7 is implemented.