CN108052409B - SKB application information display method and device - Google Patents
SKB application information display method and device Download PDFInfo
- Publication number
- CN108052409B CN108052409B CN201711377007.5A CN201711377007A CN108052409B CN 108052409 B CN108052409 B CN 108052409B CN 201711377007 A CN201711377007 A CN 201711377007A CN 108052409 B CN108052409 B CN 108052409B
- Authority
- CN
- China
- Prior art keywords
- skb
- application
- system time
- information
- function
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0706—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment
- G06F11/073—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment in a memory management context, e.g. virtual memory or cache management
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/079—Root cause analysis, i.e. error or fault diagnosis
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/16—Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
- H04L69/161—Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
- H04L69/162—Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- Biomedical Technology (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Telephonic Communication Services (AREA)
Abstract
The application provides a method for displaying SKB application information, which comprises the following steps: when the SKB application function applies for the SKB, acquiring a calling flow of the function required by the SKB application function calling and the system time when applying for the SKB; inserting the obtained call flow of the function required by the SKB application function call and the system time when the SKB is applied into a preset linked list; acquiring a time threshold configured by a user; traversing to obtain each SKB application information in the linked list; comparing the difference between the current system time and the system time when each SKB is applied in each SKB application information with a time threshold; and under the condition that the difference between the current system time and the system time when the SKB is applied in each SKB application information is greater than a time threshold, displaying and outputting the calling flow of the function required by the SKB application function calling and the difference between the current system time and the system time when the SKB is applied in each SKB application information.
Description
Technical Field
The present disclosure relates to memory management of computer systems, and more particularly, to a method and an apparatus for displaying SKB application information.
Background
SKB (Socket Buffer) is a key data structure of the TCP/IP protocol stack in the Linux system, and represents header information of a received or transmitted data packet. The SKB application information is a calling flow for calling a required function when the SKB application function applies for the SKB and the system time when the SKB application function applies for the SKB. Network messages in the Linux system are stored in message data buffer areas, the message data buffer area where each message is located is described by an SKB, and the SKBs and the data buffer areas are in one-to-one correspondence and always apply for and release at the same time. However, when the network message is transmitted, forwarded and received, SKBs are continuously applied and released, and a memory is continuously applied and released for the SKBs, and if the corresponding network message is processed, the SKBs are not released, and the memory applied for the SKBs is not released, so that the memory occupied by the SKBs cannot be applied by other processes, which causes memory leakage, and the memory leakage is referred to as SKB leakage. Memory leaks can cause the system memory utilization rate to rise all the time, and finally, the memory shortage causes the self-protection mechanism of the system kernel to kill the process so as to release the memory. For this reason, it is now necessary to determine whether a memory leak is caused by unreleased SKBs, and to locate the source of the memory leak.
The existing technical scheme is that the memory use condition is manually observed according to the output information of a meminfo file and a slabinfo file in a proc directory of a Linux system (a virtual file system of the Linux system) to determine whether SKB leakage exists, after the SKB leakage is determined to exist, all program codes related to a network data transmission flow need to be manually checked, and the places where the SKB leakage possibly exists in the codes are analyzed. Under normal conditions, as the SKB is dynamically applied and released, the use of the memory is changed from moment to moment, the use condition of the memory is observed manually according to the output information of the meminfo file and the sladinfo file in the proc directory of the Linux system, and whether the SKB leakage exists is difficult to determine, and unless a large amount of SKB leakage exists, more manpower and energy are required to be invested to determine the problem; after it is determined that the SKB is leaked, because the network data transmission flow is complex and changeable, a large amount of time and effort are required to be invested to analyze the program code, and the root cause of the SKB leakage can be located only by trying to run the operating system for verification for many times.
Disclosure of Invention
In view of this, the present application provides an SKB application information display method and apparatus.
Specifically, the method is realized through the following technical scheme:
a SKB application information display method comprises the following steps:
when the SKB application function applies for the SKB, acquiring a calling flow of the function required by the SKB application function calling and the system time when applying for the SKB;
inserting the obtained call flow of the function required by the SKB application function call and the system time when the SKB is applied as SKB application information into a preset linked list;
acquiring a time threshold configured by a user;
traversing to obtain each SKB application information in the linked list;
comparing the difference between the current system time and the system time when each SKB application information contains applies for the SKB with the time threshold;
and under the condition that the difference between the current system time and the system time when the SKB is applied and contained in each piece of SKB application information is greater than the time threshold, displaying and outputting the calling flow of the function required by the SKB application function calling and the difference between the current system time and the system time when the SKB is applied and contained in each piece of SKB application information.
An apparatus for displaying information of an SKB application, the apparatus comprising:
the system comprises a first acquisition unit, a second acquisition unit and a processing unit, wherein the first acquisition unit is used for acquiring a calling flow of a function required by the SKB application function calling and system time when the SKB application function applies for the SKB;
the information inserting unit is used for inserting the acquired call flow of the function required by the SKB application function call and the acquired system time when the SKB is applied as SKB application information into a preset linked list;
the second acquisition unit is used for acquiring a time threshold configured by a user;
the third obtaining unit is used for traversing and obtaining each SKB application information in the chain table;
a comparing unit, configured to compare a difference between the current system time and the system time when SKB is applied, where the system time is included in each SKB application information, with the time threshold;
and the information display unit is used for displaying and outputting the calling flow of the function required by the SKB application function calling and the difference between the current system time and the system time when the SKB is applied and contained in each piece of SKB application information under the condition that the difference between the current system time and the system time when the SKB is applied and contained in each piece of SKB application information is greater than the time threshold.
According to the technical scheme, whether SKB leakage exists or not and the root cause of the SKB leakage are rapidly determined according to the calling flow of the functions required by the SKB application function calling and the time difference obtained by the difference between the current system time and the system time when the SKB is applied and contained in each piece of SKB application information.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required in the description of the embodiments will be briefly introduced below, and it is apparent that the drawings in the following description are only some embodiments described in the present application, and other drawings can be obtained by those skilled in the art according to the drawings.
Fig. 1 is a flowchart illustrating an implementation of a method for displaying SKB application information according to an exemplary embodiment of the present application;
fig. 2 is a schematic diagram illustrating a call flow of a function required for function call of an SKB application according to an exemplary embodiment of the present application;
FIG. 3 is a schematic diagram of a bi-directional circular linked list shown in an exemplary embodiment of the present application;
fig. 4 is a flowchart of a preferred implementation of a method for displaying SKB application information according to an exemplary embodiment of the present application;
fig. 5 is a schematic structural diagram of an SKB application information display device according to an exemplary embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
First, a method for displaying SKB application information provided in an embodiment of the present application is described, where the method includes the following steps:
when the SKB application function applies for the SKB, acquiring a calling flow of the function required by the SKB application function calling and the system time when applying for the SKB;
inserting the obtained call flow of the function required by the SKB application function call and the system time when the SKB is applied as SKB application information into a preset linked list;
acquiring a time threshold configured by a user;
traversing to obtain each SKB application information in the linked list;
comparing the difference between the current system time and the system time when each SKB application information contains applies for the SKB with the time threshold;
and under the condition that the difference between the current system time and the system time when the SKB is applied and contained in each piece of SKB application information is greater than the time threshold, displaying and outputting the calling flow of the function required by the SKB application function calling and the difference between the current system time and the system time when the SKB is applied and contained in each piece of SKB application information.
In the background art, the memory use condition is manually observed according to the output information of the meminfo file and the slabinfo file in the proc directory of the Linux system to determine whether SKB leakage exists, after the SKB leakage is determined to exist, all program codes related to the network data transmission flow need to be manually checked, and the places where the SKB leakage may occur in the codes are analyzed. Because the SKB is dynamically applied and released, the use of the memory is changed all the time, the use condition of the memory is observed manually according to the output information of the meminfo file and the slabinfo file in the proc directory of the Linux system, whether the SKB leakage exists is difficult to determine, and unless a large amount of SKB leakage exists, more manpower and energy are required to be invested to determine the problem; after it is determined that the SKB is leaked, because the network data transmission flow is complex and changeable, a large amount of time and effort are required to be invested to analyze the program code, and the root cause of the SKB leakage can be located only by trying to run the operating system for verification for many times. Based on the problems, the application provides a technical scheme, and whether the SKB leakage exists or not and the root cause of the SKB leakage can be rapidly determined through the output SKB application information.
Specifically, in the process of displaying and outputting the SKB application information, when the SKB application function applies for the SKB, whether a SKB application information display switch is turned on or not is judged; under the condition that the SKB application information display switch is turned on, acquiring a calling flow of a function required by the SKB application function calling and system time when the SKB is applied; inserting the obtained calling flow of the function required by the SKB application function calling and the system time when applying for the SKB into a preset bidirectional circular linked list as SKB application information, adding the SKB application information into the position information of the preset linked list to the applied SKB, and when the SKB is released by the SKB release function, inserting the SKB application information into the position information of the preset linked list according to the SKB application information added in the applied SKB, and deleting the SKB application information corresponding to the SKB released by the SKB release function from the preset linked list; acquiring a time threshold configured by a user, wherein the time threshold can be dynamically adjusted; traversing each SKB application information in the bidirectional circular linked list, and comparing a time difference obtained by subtracting the system time when each SKB application information is applied from the current system time with the time threshold; and under the condition that the time difference obtained by subtracting the system time when the SKB is applied, which is contained in each SKB application information, from the current system time is greater than the time threshold, displaying and outputting the calling flow of the function required by the SKB application function calling and the time difference obtained by subtracting the system time when the SKB is applied, which is contained in each SKB application information, from the current system time. For further explanation of the present application, the following examples are provided:
as shown in fig. 1, an implementation flowchart of the SKB application information display method of the present application specifically includes the following steps:
s101, when an SKB application function applies for an SKB, obtaining a calling flow of a function required by the SKB application function calling and system time when the SKB application function applies for the SKB;
in one embodiment, it is mentioned in the background art that SKB (Socket Buffer) is a key data structure of the TCP/IP protocol stack in the Linux system, and represents header information of a received or transmitted data packet. In the Linux system, network messages need to be stored in message data buffer areas, the message data buffer area where each message is located is described by one SKB, and the SKBs and the data buffer areas are in one-to-one correspondence and always apply for and release simultaneously. When the network message is sent, forwarded and received, the SKB is continuously applied and released. And in the process of applying for the SKB, applying for the SKB by using an _ alloc _ SKB application function. When the SKB is applied by using the _ alloc _ SKB application function, whether an SKB application information display switch is turned on needs to be judged; and under the condition that the SKB application information display switch is turned on, acquiring a calling flow of a function required by the SKB application function calling and the system time when the SKB is applied. For example, when SKB1 is applied by using the application function of _ alloc _ SKB and the SKB application information shows that the switch is turned on, it is necessary to obtain the call flow of the function required for the function call of SKB1 application, wherein the call flow of the function required for the function call of SKB1 is shown in fig. 2, and the system time of SKB1 application, wherein the application time of SKB1 application is recorded by using the jfets parameter in the Linux system, the jfets parameter represents the total number of clock interrupts from system startup to present, and the jfets/HZ represents the total elapsed time from system startup to present, and is measured in seconds, wherein the millisecond precision is adopted by default in the scheme, so that the jfets/HZ is 1000. The system time when applying for SKB1 can be recorded as jiffield, and the call flow of the function required by SKB1 application function call can be expressed by stackskb.
S102, inserting the acquired call flow of the function required by the SKB application function call and the acquired system time when the SKB is applied as SKB application information into a preset linked list;
in an embodiment, the acquired call flow of the function required by the SKB application function call and the acquired system time when the SKB is applied are inserted into a preset bidirectional circular linked list as SKB information. The bidirectional circular linked list is a bidirectional ring formed by connecting head and tail of the table head node with the head node and the tail node, wherein the head node of the table head node points to the tail node, and the tail node of the table head node points to the head node, and the schematic diagram is shown in fig. 3. For example, when the SKB application function applies for SKB1, the call flow stackskb of the function required for the SKB application function call and the system time jiffiesfield old1 when applying for SKB1 are obtained, wherein the system time jiffiesfield 1 when applying for SKB1 is accurate to milliseconds, and the information is inserted into the bi-directional circular linked list as SKB application information.
S103, acquiring a time threshold configured by a user;
in one embodiment, some applications in the device apply for SKB at device boot and are not released. Therefore, the time threshold needs to be dynamically configured, and the situation that some SKBs applied by some application programs when the equipment is started are mistakenly considered as SKBs causing SKB leakage is avoided. And according to a time threshold configured by a user, the SKB application information can be selectively displayed and output, wherein the time threshold can be determined according to the actual situation, and the accuracy of the time threshold needs to be accurate to millisecond. For example, the time threshold for obtaining the user configuration is 1000 ms.
S104, traversing and acquiring each SKB application information in the linked list;
in one embodiment, each SKB application information in the bidirectional circular linked list is obtained through traversal. For example, three SKB application information, namely SKB1 application information, SKB2 application information and SKB3 application information, are stored in the bidirectional circular linked list. Obtaining the three SKB application information, namely obtaining a call flow stackskb1 of a function required by the SKB application function in the SKB1 application information, wherein the system time when applying SKB1 is jiffield old1, the call flow stackskb2 of the function required by the SKB application function in the SKB2 application information is jiffield old2, the system time when applying SKB2 is jiffield old2, the call flow stackskb of the function required by the SKB application function in the SKB3 application information is called, and the system time when applying SKB3 is jiffield old 3.
S105, comparing the difference between the current system time and the system time when each SKB application information contains applies for the SKB with the time threshold;
in an embodiment, a time difference obtained by subtracting the system time when SKBs are applied included in each SKB application information from the current system time is compared with the time threshold. For example, there are three SKB application information in the above-mentioned bidirectional circular linked list, after the three SKB application information are obtained, system time jiffies old1 when SKB1 is applied, system time jiffies old2 when SKB2 is applied, and system time jiffies old3 when SKB3 is applied are obtained, and the current system time is recorded as jiffies new. The time difference obtained by subtracting the system time jiffield old1 from the current system time jiffield now when applying for SKB1 is recorded as difference 1, the time difference obtained by subtracting the system time jiffield old2 from the current system time jiffield now when applying for SKB2 is recorded as difference 2, and the time difference obtained by subtracting the system time jiffield old3 from the current system time jiffield now when applying for SKB3 is recorded as difference 3. Wherein the precision of the jiffies Old1, the jiffies Old2, the jiffies Old3 and the jiffies now of the current system time are all ms, and can be directly subtracted, and the precision of the time difference value 1, the time difference value 2, the time difference value 3 and the time threshold value are also all ms, and can be directly compared. The time threshold is compared to the difference 1, the difference 2, the difference 3, respectively.
And S106, under the condition that the difference between the current system time and the system time when the SKB is applied and contained in each piece of SKB application information is larger than the time threshold, displaying and outputting the calling flow of the function required by the SKB application function calling and the difference between the current system time and the system time when the SKB is applied and contained in each piece of SKB application information.
In an embodiment, when the difference between the current system time jiffield now and the system time jiffield when applying for SKB included in each SKB application information is greater than the time threshold, the call flow of the function required for SKB application is called, and the difference between the current system time jiffield now and the system time jiffield when applying for SKB included in each SKB application information is displayed and output. For example, the obtained three time difference differences 1, 2, and 3 are compared with a time threshold, and it is assumed that the difference 1 and the difference 2 are greater than the time threshold, and the difference 3 is smaller than the time threshold, where for the case where the time difference is equal to the time threshold, the division may be performed according to actual situations, and the division may be performed either when the time difference is greater than the time threshold or when the time difference is smaller than the time threshold. Through comparison, if the difference value 1 and the difference value 2 are larger than the time threshold, displaying and outputting a calling flow stackskb1 of the function required by the SKB application function calling and a time difference value 1 obtained by subtracting the system time jiffield Old1 when the SKB1 is applied from the current system time jiffield Now, and simultaneously displaying and outputting a calling flow stackskb2 of the function required by the SKB application function calling and a time difference value 2 obtained by subtracting the system time jiffield Old2 when the SKB2 is applied from the current system time jiffield Now.
In the preferred embodiment of the present application, the following steps can be further added, as shown in fig. 4:
s107, inserting the SKB application information into the position information of the preset linked list and adding the position information into the applied SKB;
in an embodiment, the system time jiffield when applying for the SKB and the call flow stackskb of the function required by the SKB application function call are inserted into the bidirectional circular linked list as SKB application information, wherein the inserted position information is marked as a flag, and a field is added in the applied SKB for recording the inserted position information flag.
And S108, when the SKB release function releases the SKB, inserting the SKB application information added in the applied SKB into the position information of the preset linked list, and deleting the SKB application information corresponding to the SKB released by the SKB release function from the preset linked list.
In an embodiment, when the SKB release function releases the SKB, for example, when the SKB release function releases SKB1, the SKB application information added in the applied SKB1 is inserted into the position information flag of the bidirectional circular linked list, and the SKB application information corresponding to the SKB1 to be released is deleted from the bidirectional circular linked list.
Through the steps, whether SKB leakage exists can be quickly determined according to the calling flow of the function required by the output SKB application function calling and the time difference obtained by subtracting the system time when the SKB is applied, wherein the system time is contained in each piece of SKB application information, and the root cause of the SKB leakage can be quickly positioned.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Corresponding to the embodiment of the display method of the SKB application information, the application also provides an embodiment of a display device of the SKB application information. As shown in fig. 5, the information processing apparatus includes a first acquiring unit 200, an information inserting unit 210, a second acquiring unit 220, a third acquiring unit 230, a comparing unit 240, and an information displaying unit 250.
The first obtaining unit 200 is configured to obtain a call flow of a function required for the SKB application function to call and a system time when the SKB application function applies for the SKB;
the information inserting unit 210 is configured to insert the acquired call flow of the function required for calling the SKB application function and the acquired system time when applying for the SKB into a preset linked list as SKB application information;
the second obtaining unit 220 is configured to obtain a time threshold configured by a user;
the third obtaining unit 230 is configured to traverse and obtain each SKB application information in the linked list;
the comparing unit 240 is configured to compare a difference between the current system time and the system time when SKB is applied, where the SKB application information includes the current system time, with the time threshold;
the information display unit 250 is configured to display and output a call flow of a function required for the SKB application function to call and a difference between the current system time and the system time when the SKB is applied included in each piece of SKB application information when the difference between the current system time and the system time when the SKB is applied included in each piece of SKB application information is greater than the time threshold.
In a specific embodiment of the present application, the preset linked list includes:
and (4) presetting a bidirectional circular linked list.
In a specific embodiment of the present application, the first obtaining unit 200 is specifically configured to:
when the SKB application function applies for the SKB, judging whether an SKB application information display switch is turned on or not;
and under the condition that the SKB application information display switch is turned on, acquiring a calling flow of a function required by the SKB application function calling and the system time when the SKB is applied.
In one embodiment of the present application, the apparatus further comprises: information adding unit 260
The information adding unit 260 is configured to insert the SKB application information into the position information of the preset linked list and add the position information to the applied SKB.
In one embodiment of the present application, the apparatus further comprises: information deleting unit 270
The information deleting unit 270 is configured to insert, when the SKB is released by the SKB release function, the position information of the preset linked list according to the SKB application information added to the applied SKB, and delete, from the preset linked list, the SKB application information corresponding to the SKB released by the SKB release function.
The implementation process of the functions of each unit in the system is specifically described in the implementation process of the corresponding step in the method, and is not described herein again.
For the system embodiment, since it basically corresponds to the method embodiment, reference may be made to the partial description of the method embodiment for relevant points. The above-described system embodiments are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the application. One of ordinary skill in the art can understand and implement it without inventive effort.
The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The foregoing is directed to embodiments of the present application and it is noted that numerous modifications and adaptations may be made by those skilled in the art without departing from the principles of the present application and are intended to be within the scope of the present application.
Claims (10)
1. A SKB application information display method is characterized by comprising the following steps:
when the SKB application function applies for the SKB, acquiring a calling flow of the function required by the SKB application function calling and the system time when applying for the SKB;
inserting the obtained call flow of the function required by the SKB application function call and the system time when the SKB is applied as SKB application information into a preset linked list;
acquiring a time threshold configured by a user;
traversing to obtain each SKB application information in the linked list;
comparing the difference between the current system time and the system time when each SKB application information contains applies for the SKB with the time threshold;
and under the condition that the difference between the current system time and the system time when the SKB is applied and contained in each piece of SKB application information is greater than the time threshold, displaying and outputting the calling flow of the function required by the SKB application function calling and the difference between the current system time and the system time when the SKB is applied and contained in each piece of SKB application information.
2. The method of claim 1, wherein the predetermined linked list comprises:
and (4) presetting a bidirectional circular linked list.
3. The method of claim 2, wherein when the SKB applies for the SKB, acquiring a call flow of a function required for the SKB application function to call and a system time when the SKB is applied, comprises:
when the SKB application function applies for the SKB, judging whether an SKB application information display switch is turned on or not;
and under the condition that the SKB application information display switch is turned on, acquiring a calling flow of a function required by the SKB application function calling and the system time when the SKB is applied.
4. The method according to any one of claims 1 to 3, further comprising:
and inserting the SKB application information into the position information of the preset linked list and adding the position information into the SKB.
5. The method of claim 4, further comprising:
when the SKB release function releases the SKB, inserting the SKB application information added in the applied SKB into the position information of a preset chain table, and deleting the SKB application information corresponding to the SKB released by the SKB release function from the preset chain table.
6. An apparatus for displaying information of an SKB application, the apparatus comprising:
the system comprises a first acquisition unit, a second acquisition unit and a processing unit, wherein the first acquisition unit is used for acquiring a calling flow of a function required by the SKB application function calling and system time when the SKB application function applies for the SKB;
the information inserting unit is used for inserting the acquired call flow of the function required by the SKB application function call and the acquired system time when the SKB is applied as SKB application information into a preset linked list;
the second acquisition unit is used for acquiring a time threshold configured by a user;
the third obtaining unit is used for traversing and obtaining each SKB application information in the chain table;
a comparing unit, configured to compare a difference between the current system time and the system time when SKB is applied, where the system time is included in each SKB application information, with the time threshold;
and the information display unit is used for displaying and outputting the calling flow of the function required by the SKB application function calling and the difference between the current system time and the system time when the SKB is applied and contained in each piece of SKB application information under the condition that the difference between the current system time and the system time when the SKB is applied and contained in each piece of SKB application information is greater than the time threshold.
7. The apparatus of claim 6, wherein the predetermined linked list comprises:
and (4) presetting a bidirectional circular linked list.
8. The apparatus according to claim 7, wherein the first obtaining unit is specifically configured to:
when the SKB application function applies for the SKB, judging whether an SKB application information display switch is turned on or not;
and under the condition that the SKB application information display switch is turned on, acquiring a calling flow of a function required by the SKB application function calling and the system time when the SKB is applied.
9. The apparatus of any one of claims 6 to 8, further comprising: an information adding unit for adding the information to the image data,
and the information adding unit is used for inserting the SKB application information into the position information of the preset linked list and adding the position information into the SKB.
10. The apparatus of claim 9, further comprising: an information deletion unit for deleting the information from the information storage medium,
and the information deleting unit is used for inserting the position information of a preset chain table according to the SKB application information added in the applied SKB when the SKB is released by the SKB release function, and deleting the SKB application information corresponding to the SKB released by the SKB release function from the preset chain table.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201711377007.5A CN108052409B (en) | 2017-12-19 | 2017-12-19 | SKB application information display method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201711377007.5A CN108052409B (en) | 2017-12-19 | 2017-12-19 | SKB application information display method and device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN108052409A CN108052409A (en) | 2018-05-18 |
| CN108052409B true CN108052409B (en) | 2020-12-04 |
Family
ID=62130098
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201711377007.5A Active CN108052409B (en) | 2017-12-19 | 2017-12-19 | SKB application information display method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN108052409B (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113381895B (en) * | 2021-06-16 | 2022-06-24 | 杭州迪普科技股份有限公司 | Network fault detection method and device |
Family Cites Families (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP1227698A1 (en) * | 2001-01-25 | 2002-07-31 | TELEFONAKTIEBOLAGET L M ERICSSON (publ) | Data unit handling device and method of controlling a data unit handling device |
| ATE460797T1 (en) * | 2005-07-15 | 2010-03-15 | Microsoft Corp | TRANSMISSION CONTROL OF BACKGROUND DATA |
| US7685255B2 (en) * | 2006-04-24 | 2010-03-23 | Blue Coat Systems, Inc. | System and method for prefetching uncacheable embedded objects |
| US8849955B2 (en) * | 2009-06-30 | 2014-09-30 | Commvault Systems, Inc. | Cloud storage and networking agents, including agents for utilizing multiple, different cloud storage sites |
| WO2012174474A2 (en) * | 2011-06-15 | 2012-12-20 | Ortiva Wireless, Inc. | Method and apparatus for session bandwidth estimation and rate control |
| US9525713B1 (en) * | 2015-07-08 | 2016-12-20 | Introspec Ltd. | Measuring server availability and managing traffic in adaptive bitrate media delivery |
| CN107329838A (en) * | 2017-05-23 | 2017-11-07 | 努比亚技术有限公司 | A kind of service interaction method, terminal and computer-readable recording medium |
-
2017
- 2017-12-19 CN CN201711377007.5A patent/CN108052409B/en active Active
Also Published As
| Publication number | Publication date |
|---|---|
| CN108052409A (en) | 2018-05-18 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN107038107B (en) | Method and device for acquiring application blocking information | |
| CN107870933B (en) | Method, device and system for counting android application page browsing behaviors | |
| CN106326068B (en) | The monitoring method and device of resource metrics | |
| CN114745295A (en) | Data acquisition method, device, equipment and readable storage medium | |
| EP3211827A1 (en) | Alarm processing method and apparatus | |
| CN110334126A (en) | Timed task processing method, device and computer equipment based on Spring MVC | |
| CN111008246A (en) | Database log synchronization method and device, computer equipment and readable storage medium | |
| CN104503912A (en) | Monitoring method and device for service responding process | |
| US11121912B2 (en) | Method and apparatus for processing information | |
| CN108052409B (en) | SKB application information display method and device | |
| CN106162715A (en) | Method for managing and monitoring and device | |
| CN111324480A (en) | Large host transaction fault positioning system and method | |
| EP3945420A1 (en) | Method and apparatus for data processing, server and storage medium | |
| CN108763046A (en) | Thread operation and monitoring method, device, computer equipment and storage medium | |
| CN110852571A (en) | House resource management method for franchisee, computer-readable storage medium, and server | |
| CN114036179A (en) | Method and device for processing slow query operation | |
| CN117332412B (en) | Detection method and device for data security system and electronic equipment | |
| CN117520181B (en) | Method and device for debugging business process, electronic equipment and storage medium | |
| KR102056529B1 (en) | Cloud service based security information acquisition method for mobile terminal, terminal and storage medium, cloud service based security information delivery method and server for mobile terminal | |
| CN112328602A (en) | Method, device and equipment for writing data into Kafka | |
| KR100747467B1 (en) | Device management system and log data generation and control method using log management object | |
| CN113778800B (en) | Error information processing method, device, system, equipment and storage medium | |
| CN106789304B (en) | Network equipment configuration synchronization method and device | |
| CN116126687A (en) | Interface simulation method and device, electronic equipment and storage medium | |
| CN112711523A (en) | Program problem positioning method and device, electronic equipment and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |