CN107609120B - Log information reporting method and device, storage medium, ADSP and terminal - Google Patents

Log information reporting method and device, storage medium, ADSP and terminal Download PDF

Info

Publication number
CN107609120B
CN107609120B CN201710824064.7A CN201710824064A CN107609120B CN 107609120 B CN107609120 B CN 107609120B CN 201710824064 A CN201710824064 A CN 201710824064A CN 107609120 B CN107609120 B CN 107609120B
Authority
CN
China
Prior art keywords
log information
log
reporting
target
digital signal
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
Application number
CN201710824064.7A
Other languages
Chinese (zh)
Other versions
CN107609120A (en
Inventor
张强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710824064.7A priority Critical patent/CN107609120B/en
Publication of CN107609120A publication Critical patent/CN107609120A/en
Application granted granted Critical
Publication of CN107609120B publication Critical patent/CN107609120B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The embodiment of the application discloses a log information reporting method, a log information reporting device, a storage medium, an ADSP and a terminal. The method comprises the following steps: the method comprises the steps that a current audio digital signal processor receives a log obtaining instruction which is sent by an application processor of a terminal and used for obtaining target log information, wherein the log type of the target log information is a target log type; setting a log information processing rule according to the log obtaining instruction, wherein the log information processing rule indicates that the current audio digital signal processor only generates or only reports the target log information so as to reduce the frequency of reporting the log information to an application processor by the current audio digital signal processor; and reporting the target log information to the application processor according to the log information processing rule. According to the technical scheme provided by the embodiment of the application, the reporting quantity of the log information is reduced, the frequency of reporting the log information to the application processor by the audio digital signal processor is reduced, and the power consumption of the application processor is reduced.

Description

Log information reporting method and device, storage medium, ADSP and terminal
Technical Field
The embodiment of the application relates to the technical field of log control of a mobile terminal, in particular to a log information reporting method, a log information reporting device, a storage medium, an ADSP (automatic dependent Surveillance protocol) and a terminal.
Background
An Audio Digital Signal Processor (ADSP) is generally disposed on the mobile terminal, and the Processor may centrally manage all sensors on the mobile terminal, so as to save many resources of an Application Processor (AP) of the mobile terminal. Because the ADSP and the AP are two independent processors, a transfer and storage mechanism of sensor log (log) information is very complex, and a log reporting control method in the related art has defects and needs to be improved.
Disclosure of Invention
The embodiment of the application provides a log information reporting method, a log information reporting device, a storage medium, an ADSP and a terminal, and can optimize the log information reporting scheme of the ADSP.
In a first aspect, an embodiment of the present application provides a method for reporting log information, including:
the method comprises the steps that a current audio digital signal processor receives a log obtaining instruction which is sent by an application processor of a terminal and used for obtaining target log information, wherein the log type of the target log information is a target log type;
setting a log information processing rule according to the log obtaining instruction, wherein the log information processing rule indicates that the current audio digital signal processor only generates or only reports the target log information so as to reduce the frequency of reporting the log information to the application processor by the current audio digital signal processor;
and reporting the target log information to the application processor according to the log information processing rule.
In a second aspect, an embodiment of the present application provides a log information reporting apparatus, including:
the system comprises a log obtaining instruction receiving module, a log obtaining instruction receiving module and a log obtaining module, wherein the log obtaining instruction receiving module is used for receiving a log obtaining instruction which is sent by an application processor of a terminal and used for obtaining target log information, and the log type of the target log information is the target log type;
a log information processing rule setting module, configured to set a log information processing rule according to the log obtaining instruction, where the log information processing rule indicates that the current audio digital signal processor only generates or only reports the target log information, so as to reduce a frequency of reporting the log information to the application processor by the current audio digital signal processor;
and the log information reporting module is used for reporting the target log information to the application processor according to the log information processing rule.
In a third aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the log information reporting method provided in the first aspect.
In a fourth aspect, an embodiment of the present application provides a mobile terminal, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor, when executing the computer program, implements the log information reporting method provided in the first aspect.
According to the embodiment of the application, the target log information to be acquired is determined by the application processor of the mobile terminal, the log type of the target log information is the target log type, the generated log acquisition instruction for acquiring the target log information is sent to the audio digital signal processor of the mobile terminal, the audio digital signal processor sets the log information processing rule according to the log acquisition instruction, the target log information is reported to the application processor according to the log information processing rule, the reporting quantity of the log information is reduced, the frequency of the audio digital signal processor reporting the log information to the application processor is reduced, and the power consumption of the application processor is reduced.
Drawings
Fig. 1 is a schematic diagram of a log information reporting process provided in an embodiment of the present application
Fig. 2 is a flowchart of a method for reporting log information according to an embodiment of the present application;
fig. 3 is a flowchart of another log information reporting method according to an embodiment of the present application;
fig. 4 is a flowchart of another log information reporting method according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a log information reporting apparatus according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application;
fig. 7 is another schematic structural diagram of a mobile terminal according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, specific embodiments of the present application will be described in detail with reference to the accompanying drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be further noted that, for the convenience of description, only some but not all of the relevant portions of the present application are shown in the drawings. Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
In order to facilitate understanding of the embodiments of the present application, the ADSP log transmission process is briefly described below by taking an Audio Digital Signal Processor (ADSP) architecture of a high-pass platform as an example. Wherein, the ADSP architecture refers to: the sensors are mounted on the ADSP, the ADSP manages all the sensors in the terminal, and under the structure, all the sensors interact with the ADSP, and then the ADSP interacts with an Application Processor (AP). The log information generated on the ADSP is mainly the log information of the sensor, and also includes the system log information of the ADSP in power-on and power-off states.
The ADSP can be provided with sensors such as an ambient light Sensor, a proximity Sensor, a gyroscope, an acceleration Sensor and The like, The sensors generate Sensor logs (Sensor L og), wherein The Sensor logs can include status information of The sensors (such as whether a fault occurs, what kind of working status exists and The like) and various data involved in The working Process (such as collected data and various decision thresholds and The like), The generated Sensor logs may be different for different sensors, The embodiment of The present invention does not exemplify one by one, fig. 1 is a log information reporting Process schematic diagram provided by The embodiment of The present invention, The Sensor logs are generated by The sensors, The sensors are mounted on The ADSP, so that The Sensor logs need to be transmitted to AP. through The ADSP to generate log information and then directly stored in a log buffer of The ADSP, The log information in The log buffer is reported to The AP through a Communication path between The ADSP and The AP in a certain reporting manner after The log buffer is full, The log information in The log buffer can be transmitted to The AP through a Shared Memory (Memory), a Communication path between The ADSP and The AP, The log information can be transmitted to The AP, and The log information can be transmitted to The AP, so that a high-efficiency analysis of The log information can be performed by a high-throughput log analysis tool, and a trace log analysis tool, The log analysis of The log information can be performed by a high-trace, and a trace data analysis tool, The log information after The log analysis of The log information is performed by a trace, The trace system, The trace of The log information is performed by a trace, The trace of The trace system, The trace information, The trace of The trace system, The trace of The log information, The trace of The log information, The trace of The log information, The trace of The log information after The trace of The log information, The trace of The.
Next, a related data structure of the log information and a reading scenario of the log information will be separately described.
1. The associated data structure of the log information.
Figure BDA0001407053890000041
The struct loader entry is a structure used to describe an L og record, the len member variable records the length of the payload of this record, the payload specifies the length of the log record itself, the __ pad member variable is used to align the structure, the pid and tid member variables are used to record which process written this record, respectively.
Figure BDA0001407053890000042
The structure struct log _ log is the place actually used for storing the log. The buffer member variable is a memory buffer for storing log information, and the size of the buffer member variable is determined by the size member variable. As can be seen from the misc member variable, the device used by the journal driver belongs to a misc type of device, and the wq member variable is a wait queue for holding processes that are waiting to read the journal. The readers member variable is used for storing the process currently reading the log, and the process currently reading the log is described by a structure loader _ reader. The mutex member variable is a mutex that is used to protect the log's concurrent access. The w _ off member variable is used to record where the next log should be written from. The head member variable is used to indicate from which location in the open log file the log should be read.
2. And (4) reading the log information.
The method for reading the log device file is loader _ read:
Figure BDA0001407053890000051
when a log device file is newly opened, the log is read from a log- > head position and is stored in a member variable r _ off of a structlogger _ reader, while a while loop at a start label is read when the log is waited to be read, if no new log is readable, the read process enters a sleep state, and wakes up after waiting for writing of the new log, which is realized by two calls of prefix _ wait and schedule.
Fig. 2 is a flowchart of a method for reporting log information according to an embodiment of the present disclosure, where the method according to this embodiment may be executed by a log information reporting apparatus, the apparatus may be implemented in a hardware and/or software manner, and the apparatus may be set inside a mobile terminal as a part of the mobile terminal, for example, in an ADSP of the mobile terminal. The method provided by the embodiment is suitable for the situation that the ADSP in the mobile terminal generates the log information and reports the log information to the AP.
As shown in fig. 2, the log information reporting method provided in this embodiment includes the following steps:
step 101, an application processor of a terminal sends a log obtaining instruction for obtaining target log information, wherein the log type of the target log information is a target log type.
And 102, the current audio digital signal processor receives the log acquisition instruction sent by the application processor. The current audio digital signal processor is the audio digital signal processor on the terminal.
The terminal described in the present application includes, but is not limited to, a device such as a mobile phone, a notebook, or a computer, which is equipped with an audio digital signal processor and an application processor.
The log obtaining instruction sent by the application processing may be generated after the application processor receives an operation instruction of a user acting on the terminal. The application processor receives a log obtaining instruction acted on the mobile terminal by a user, and then sends the log obtaining instruction to the audio digital signal processor, for example, the application processor receives the log obtaining instruction generated by clicking a log switch of an application program by the user, determines target log information as the log information of the application program, and sends the log obtaining instruction for obtaining the application program to the audio digital signal processor. The reason why this step is so set is that: the application processor determines the target log information to be acquired according to the operation of the user, and the audio digital signal processor can process only the target log information in a targeted manner, so that the processing amount of the log information and the frequency of log reporting are greatly reduced, and the power consumption of the application processor is reduced.
The log type can be classified based on sensor type, log information content, log level or ADSP architecture functional domain, etc. Several categories are listed below as illustrative examples.
Optionally, when classifying based on sensor types, the sensor types may be classified according to sensor names, for example, the sensor names correspond to log types one to one; the functions of the sensors can be classified according to the functions of the sensors, for example, the sensors such as a gyroscope, an acceleration sensor and the like are used for detecting the motion data of the mobile terminal and can correspond to the types of motion logs, and the ambient light sensor and the proximity sensor are used for detecting the changes of the external environment and can correspond to the types of environment logs; the sensor logs can be classified according to the priorities of the sensors, and the priorities can be used for representing the priorities reported by the sensor logs.
Optionally, when the log information content is classified based on the log information content, the log information content may be classified according to the type of the log information content, for example, the working state of the sensor is one type, the abnormal condition of the sensor is one type, the data acquired by the sensor is one type, the calibration data of the sensor is one type, the determination threshold of the sensor is one type, and the like; the log information may also be classified according to the importance of the log information content, for example, the importance of the state information of the sensor is higher than the data collected by the sensor and the determination threshold, the state information of different sensors may be associated with one log type, and the data collected by different sensors and the determination threshold may be associated with another log type.
Alternatively, when sorting based on log level, generally from low to high in log level, there may be some categories including DEBUG (DEBUG, representing all reasonable logs for DEBUG), INFO (information, representing logs in normal use), WARN (alert, representing possible problems, no ERRORs yet occurred), ERROR (ERROR, representing problematic and causing ERRORs), FATA L (fatal, representing that there is a problem causing a fatal ERROR at runtime, usually causing a restart).
Optionally, when classifying the functional domains based on the ADSP architecture, log information generated by different functional domains (functional modules) may be respectively corresponding to a log type. For example, a sensor management module (Sensors Manager, Smgr) corresponds to one log type, a sensor Calibration management module (Sensors Calibration Manager) corresponds to one log type, a sensor algorithm management module (Sensors algorithm Manager) corresponds to one log type, and so on.
Of course, the classification of the log types may also be based on other factors, for example, the log information is classified into two types based on the currently running application program and the audio digital signal processor system, and the log types may also be classified based on other classification methods, which is not limited in this embodiment.
In the above log type classification, the application processor may first determine target log information having a target log type, and issue a log obtaining instruction for obtaining the target log information to the audio digital signal processor, where the audio digital signal processor receives the log obtaining instruction.
For example, the type of the target log is a currently running application, and the target log information is all log information generated by the currently running application, for example, if the currently running application is a call, and the proximity sensor, the acceleration sensor, and the ambient light sensor are in an operating state under a general call application, and log information of each sensor is generated accordingly, then the log information of the proximity sensor, the acceleration sensor, and the ambient light sensor is taken as the target log information.
And 103, setting a log information processing rule by the audio digital signal processor according to the log obtaining instruction, wherein the log information processing rule indicates that the current audio digital signal processor only generates or only reports the target log information so as to reduce the frequency of reporting the log information to the application processor by the current audio digital signal processor.
After receiving a log obtaining instruction sent by an application processor, setting a processing rule of log information, wherein the processing rule breaks through the processing rule of the log information in the prior art and indicates a current audio digital signal processor to only generate or only report the target log information, and the reason for the setting is as follows: the frequency of the current audio digital signal processor reporting the log information to the application processor is reduced, so that the frequency of waking up the application processor is reduced, and the power consumption of the application processor is further reduced.
For example, if the log obtaining instruction is used to obtain log information of the application program of the call, the audio dsp may set a corresponding log information processing rule, that is, only log information of the application program of the call is generated, or only log information of the application program of the call is reported.
And step 104, the audio digital signal processor reports the target log information to the application processor according to the log information processing rule.
When the log information processing rule is that only target log information is generated, only the target log information is generated and reported to the application processor; and when the log information processing rule is that only the target log information is reported, generating the target log information and reporting the target log information to the application processor.
In the log information reporting method provided by this embodiment, the application processor of the mobile terminal determines target log information to be acquired, where the log type of the target log information is the target log type, and sends a generated log acquisition instruction for acquiring the target log information to the audio digital signal processor of the mobile terminal, and the audio digital signal processor sets a log information processing rule according to the log acquisition instruction, and reports the target log information to the application processor according to the log information processing rule, so that the reporting number of log information is reduced, the frequency of reporting the log information to the application processor by the audio digital signal processor is reduced, and the power consumption of the application processor is reduced.
Fig. 3 is a flowchart of another log information reporting method according to an embodiment of the present application. As shown in fig. 3, the method provided by this embodiment includes the following steps:
step 201, the application processor determines target log information to be acquired.
Step 202, the application processor issues a log obtaining instruction for obtaining target log information to the audio digital signal processor, wherein the log type of the target log information is a target log type, and the target log type includes a target sensor type.
Various sensors are mounted on the audio digital signal processing, and in some cases, an abnormal condition may occur on one or more sensors, and only log information of the one or more sensors is needed, so that the type of the one or more sensors can be taken as a target sensor type. For example, a proximity sensor and an ambient light sensor are taken as target sensor types.
Step 203, the audio digital signal processor receives the log obtaining instruction.
And step 204, the audio digital signal processor sets a log information processing rule according to the log obtaining instruction, wherein the log information processing rule indicates that the audio digital signal processor only reports the target log information.
Step 205, the audio digital signal processor generates log information of all log types.
And step 206, the audio digital signal processor reports only the target log information of the log type including the target sensor type to the application processor according to a first reporting frequency, wherein the first reporting frequency is a log reporting default frequency of the audio digital signal processor.
The first reporting frequency of the log information may be a frequency that is default for the audio digital signal processor, for example, reporting 20 times in 1 second, or reporting 1 time when a set condition is met, for example, reporting when a log buffer for audio digital signal processing is full, or may be other frequency setting methods, which is not limited in this embodiment.
The reason why all log information of the log types are generated in this embodiment is that although only the target log information needs to be acquired currently, there may be a case that log information of other log types needs to be acquired subsequently, and in order to collect log information of other log types when it is subsequently necessary, all log information of the log types is generated first, and other log information except the target log information of the target log type is stored in the setting storage space of the audio digital signal processor. Illustratively, if the target log type is a call of the currently running application, the log information of the proximity sensor, the acceleration sensor and the ambient light sensor of the currently running application is correspondingly generated as the target log information. If the fingerprint sensor and the GPS sensor are in working states at the same time, the log information of the fingerprint sensor and the GPS sensor is correspondingly generated, and only the target log information is reported when the reporting operation is executed.
Optionally, after generating log information of all log types, the method may further include: and reporting other target log information of which the log type does not comprise the target sensor type to the application processor according to a second reporting frequency, wherein the second reporting frequency is less than the first reporting frequency.
Illustratively, the log information of the fingerprint sensor and the GPS sensor is reported to the application processor according to a second reporting frequency.
According to the method provided by the embodiment, the target log information is only reported to the application processor, so that the reporting quantity of the log information is reduced, the frequency of reporting the log information to the application processor by the audio digital signal processor is reduced, and the power consumption of the application processor is reduced.
Fig. 4 is a flowchart of another log information reporting method according to an embodiment of the present application. As shown in fig. 4, the log information reporting method provided in this embodiment includes the following steps:
step 301, the application processor determines target log information to be acquired.
Step 302, the application processor issues a log obtaining instruction for obtaining target log information to the audio digital signal processor, wherein the log type of the target log information is a target log type, and the target log type includes a target sensor type.
And step 303, the audio digital signal processor receives the log obtaining instruction.
And step 304, the audio digital signal processor sets a log information processing rule according to the log obtaining instruction, wherein the log information processing rule instructs the audio digital signal processor to only generate the target log information.
Step 305, the audio digital signal processing only generates target log information of a log type including a target sensor type.
And step 306, reporting the target log information to the application processor according to a first reporting frequency by the audio digital signal processing. The first reporting rate is a log reporting default frequency of the audio digital signal processor.
The first reporting frequency of the log information may be a frequency that is default for the audio digital signal processor, for example, reporting 20 times in 1 second, or reporting 1 time when a set condition is met, for example, reporting when a log buffer for audio digital signal processing is full, or may be other frequency setting methods, which is not limited in this embodiment.
In this embodiment, only target log information of which the log type includes the target sensor type is generated according to the log obtaining instruction and the set log information processing rule, and after the target log information is generated, the target log information is reported to the application processor.
Illustratively, if the target log type is a call of the currently running application, the log information of the proximity sensor, the acceleration sensor and the ambient light sensor of the currently running application is correspondingly generated as the target log information. If the fingerprint sensor and the GPS sensor are also in an operating state at the same time, the operation of generating the log information of the fingerprint sensor and the GPS sensor is not performed.
According to the method provided by the embodiment, the target log information including the type of the target sensor is generated and reported to the application processor, so that the reporting quantity of the log information is reduced, the frequency of reporting the log information to the application processor by the audio digital signal processor is reduced, and the power consumption of the application processor is reduced.
Fig. 5 is a schematic structural diagram of a log information reporting apparatus according to an embodiment of the present disclosure, where the log information reporting apparatus may be implemented by software and/or hardware, and is integrated in a mobile terminal, for example, an audio digital signal processor of the mobile terminal. As shown in fig. 5, the apparatus includes a log obtaining instruction receiving module 41, a log information processing rule setting module 42, and a log information reporting module 43.
The log obtaining instruction receiving module 41 is configured to receive, by the current audio digital signal processor, a log obtaining instruction for obtaining target log information, where the log obtaining instruction is sent by an application processor of a terminal where the current audio digital signal processor is located, and a log type of the target log information is a target log type;
the log information processing rule setting module 42 is configured to set a log information processing rule according to the log obtaining instruction, where the log information processing rule indicates that the current audio digital signal processor only generates or only reports the target log information, so as to reduce a frequency of reporting the log information to the application processor by the current audio digital signal processor;
the log information reporting module 43 is configured to report the target log information to the application processor according to the log information processing rule.
In the device provided by this embodiment, target log information to be acquired is determined by an application processor of a mobile terminal, where the log type of the target log information is a target log type, and a generated log acquisition instruction for acquiring the target log information is sent to an audio digital signal processor of the mobile terminal, and the audio digital signal processor sets a log information processing rule according to the log acquisition instruction, and reports the target log information to the application processor according to the log information processing rule, so that the number of reported log information is reduced, the frequency of reporting the log information to the application processor by the audio digital signal processor is reduced, and the power consumption of the application processor is reduced.
On the basis of the foregoing embodiments, the log obtaining instruction sent by the application processing is generated after the application processor receives an operation instruction acted on the terminal by the user.
On the basis of the above embodiments, the log type is classified based on a sensor type, a log information content, a log level, or an ADSP architecture functional domain.
On the basis of the foregoing embodiments, the target log type includes a target sensor type, and the log information reporting module is specifically configured to:
generating log information of all log types, and acquiring target log information of the log types including a target sensor type;
reporting the target log information to the application processor according to a first reporting frequency, wherein the first reporting frequency is a log reporting default frequency of an audio digital signal processor;
alternatively, the first and second electrodes may be,
generating only target log information of which the log type includes a target sensor type;
and reporting the target log information to the application processor according to a first reporting frequency.
On the basis of the foregoing embodiments, the log information reporting module may be further configured to:
after generating the log information of all log types, reporting other target log information of which the log types do not include the target sensor type to the application processor according to a second reporting frequency, wherein the second reporting frequency is less than the first reporting frequency.
On the basis of the foregoing embodiments, the generating log information of all log types by the log information reporting module, and reporting only target log information of the log types including the target sensor type to the application processor according to a first reporting frequency includes:
generating log information of all log types, and setting the reporting priority of the log types including target log information of a target sensor type to be highest;
and acquiring log information from the log buffer area in real time, and reporting the current log information to the application processor when the reporting priority of the acquired current log information is the highest priority.
On the basis of the foregoing embodiments, the generating, by the log information reporting module, only the target log information whose log type includes the target sensor type includes:
the generation state of other log information of which the log type does not include the target sensor type is set to a non-enabled state, and only target log information of which the log type includes the target sensor type is generated.
An embodiment of the present application further provides a storage medium containing computer-executable instructions, where the computer-executable instructions are executed by a computer processor to perform a log information reporting method, and the method includes:
the method comprises the steps that a current audio digital signal processor receives a log obtaining instruction which is sent by an application processor of a terminal and used for obtaining target log information, wherein the log type of the target log information is a target log type;
setting a log information processing rule according to the log obtaining instruction, wherein the log information processing rule indicates that the current audio digital signal processor only generates or only reports the target log information so as to reduce the frequency of reporting the log information to the application processor by the current audio digital signal processor;
and reporting the target log information to the application processor according to the log information processing rule.
Storage medium-any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk, or tape devices; computer system memory or random access memory such as DRAM, DDR RAM, SRAM, EDO RAM, Lanbas (Rambus) RAM, etc.; non-volatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system connected to the first computer system through a network (such as the internet). The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations, such as in different computer systems that are connected by a network. The storage medium may store program instructions (e.g., embodied as a computer program) that are executable by one or more processors.
Of course, the storage medium including the computer-executable instructions provided in the embodiments of the present application is not limited to the above-described log information reporting operation, and may also perform related operations in the log information reporting method provided in any embodiments of the present application.
The present embodiment provides an audio digital signal processor, on which a computer program is stored, where the computer program, when executed by the audio digital signal processor, implements the log information reporting method provided in any embodiment of the present application.
The embodiment of the application provides a mobile terminal, which can comprise a log information reporting device provided by any embodiment of the application. Fig. 6 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application, and as shown in fig. 6, the mobile terminal may include: the system comprises a sensor 501, a memory 502, a processor (the processor comprises an audio digital signal processor 503 and an application processor 504), and a computer program stored on the memory and capable of running on the audio digital signal processor 504, wherein when the audio digital signal processor executes the computer program, any log information reporting method according to the embodiment of the present application is implemented. The memory 502 includes a shared memory of the audio digital signal processor 503 and the application processor, and further includes storage spaces of the audio digital signal processor 503 and the application processor, which are independent of each other.
Fig. 7 is another schematic structural diagram of a mobile terminal according to an embodiment of the present application, and as shown in fig. 7, the mobile terminal may include: a memory 601, a Central Processing Unit (CPU) 602 (also called a processor, hereinafter referred to as CPU), where the CPU includes an application processor AP, and the memory 601 is used for storing executable program codes; the processor 602 executes a program corresponding to the executable program code by reading the executable program code stored in the memory 601, for performing: the method comprises the steps that a current audio digital signal processor receives a log obtaining instruction which is sent by an application processor of a terminal and used for obtaining target log information, wherein the log type of the target log information is a target log type; setting a log information processing rule according to the log obtaining instruction, wherein the log information processing rule indicates that the current audio digital signal processor only generates or only reports the target log information so as to reduce the frequency of reporting the log information to the application processor by the current audio digital signal processor; and reporting the target log information to the application processor according to the log information processing rule.
The mobile terminal further includes: peripheral interface 603, RF (Radio Frequency) circuitry 605, audio circuitry 606, audio digital signal processor 613, sensors 614, speakers 611, power management chip 608, input/output (I/O) subsystem 609, touch screen 612, other input/control devices 610, and external port 604, which communicate through one or more communication buses or signal lines 607.
It should be understood that the illustrated mobile terminal 600 is merely one example of a mobile terminal and that the mobile terminal 600 may have more or fewer components than shown, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
The following describes in detail the mobile terminal for reporting log information provided in this embodiment, where the mobile terminal takes a mobile phone as an example.
A memory 601, the memory 601 being accessible by the CPU602, the peripheral interface 603, and the like, the memory 601 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other volatile solid state storage devices.
A peripheral interface 603, said peripheral interface 603 may connect input and output peripherals of the device to the CPU502 and the memory 601.
An I/O subsystem 609, the I/O subsystem 609 may connect input and output peripherals on the device, such as a touch screen 612 and other input/control devices 610, to the peripheral interface 603. The I/O subsystem 609 may include a display controller 6091 and one or more input controllers 6092 for controlling other input/control devices 610. Where one or more input controllers 6092 receive electrical signals from or transmit electrical signals to other input/control devices 610, the other input/control devices 610 may include physical buttons (push buttons, rocker buttons, etc.), dials, slide switches, joysticks, click wheels. It is noted that the input controller 6092 may be connected to any one of: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
A touch screen 612, which touch screen 612 is an input interface and an output interface between the user terminal and the user, displays visual output to the user, which may include graphics, text, icons, video, and the like.
The display controller 6091 in the I/O subsystem 609 receives electrical signals from the touch screen 612 or transmits electrical signals to the touch screen 612. The touch screen 612 detects a contact on the touch screen, and the display controller 6091 converts the detected contact into an interaction with a user interface object displayed on the touch screen 612, that is, to implement a human-computer interaction, where the user interface object displayed on the touch screen 612 may be an icon for running a game, an icon networked to a corresponding network, or the like. It is worth mentioning that the device may also comprise a light mouse, which is a touch sensitive surface that does not show visual output, or an extension of the touch sensitive surface formed by the touch screen.
The RF circuit 605 is mainly used to establish communication between the mobile phone and the wireless network (i.e., network side), and implement data reception and transmission between the mobile phone and the wireless network. Such as sending and receiving short messages, e-mails, etc. In particular, RF circuitry 605 receives and transmits RF signals, also referred to as electromagnetic signals, through which RF circuitry 605 converts electrical signals to or from electromagnetic signals and communicates with a communication network and other devices. RF circuitry 605 may include known circuitry for performing these functions including, but not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC (CODEC) chipset, a Subscriber Identity Module (SIM), and so forth.
The audio circuit 606 is mainly used to receive audio data from the peripheral interface 603, convert the audio data into an electric signal, and transmit the electric signal to the speaker 611.
An Audio Digital Signal Processor (ADSP)613 for controlling and managing the sensors.
The sensors 614 include an ambient light sensor, a proximity sensor, a gyroscope, an acceleration sensor, and the like.
The speaker 611 is used to convert the voice signal received by the handset from the wireless network through the RF circuit 605 into sound and play the sound to the user.
And a power management chip 608 for supplying power and managing power to the hardware connected to the CPU602, the I/O subsystem, and the peripheral interface 603.
The log information reporting device, the storage medium and the mobile terminal provided in the above embodiments can execute the log information reporting method provided in any embodiment of the present application, and have corresponding functional modules and beneficial effects for executing the method. For technical details that are not described in detail in the above embodiments, reference may be made to a log information reporting method provided in any embodiment of the present application.
The foregoing is considered as illustrative of the preferred embodiments of the invention and the technical principles employed. The present application is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present application has been described in more detail with reference to the above embodiments, the present application is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the claims.

Claims (10)

1. A log information reporting method is characterized by comprising the following steps:
the method comprises the steps that a current audio digital signal processor receives a log obtaining instruction which is sent by an application processor of a terminal and used for obtaining target log information, wherein the log type of the target log information is a target log type;
setting a log information processing rule according to the log obtaining instruction, wherein the log information processing rule indicates that the current audio digital signal processor only generates or only reports the target log information so as to reduce the frequency of reporting the log information to the application processor by the current audio digital signal processor;
reporting the target log information to the application processor according to the log information processing rule;
the target log type includes a target sensor type, and reporting the target log information to the application processor according to the log information processing rule includes:
generating log information of all log types, and acquiring target log information of the log types including a target sensor type;
reporting the target log information to the application processor according to a first reporting frequency, wherein the first reporting frequency is a log reporting default frequency of an audio digital signal processor;
alternatively, the first and second electrodes may be,
generating only target log information of which the log type includes a target sensor type;
and reporting the target log information to the application processor according to a first reporting frequency.
2. The method according to claim 1, wherein the log obtaining instruction sent by the application processor is generated after the application processor receives an operation instruction of a user on the terminal.
3. The method of claim 1, wherein the log type is classified based on sensor type, log information content, log level, or ADSP architecture functional domain.
4. The method of claim 1, further comprising, after generating log information for all log types:
and reporting other target log information of which the log type does not comprise the target sensor type to the application processor according to a second reporting frequency, wherein the second reporting frequency is less than the first reporting frequency.
5. The method of claim 1, wherein generating log information of all log types and reporting only target log information of log types including a target sensor type to the application processor according to a first reporting frequency comprises:
generating log information of all log types, and setting the reporting priority of the log types including target log information of a target sensor type to be highest;
and acquiring log information from the log buffer area in real time, and reporting the current log information to the application processor when the reporting priority of the acquired current log information is the highest priority.
6. The method of claim 1, wherein generating only target log information of log types including a target sensor type comprises:
the generation state of other log information of which the log type does not include the target sensor type is set to a non-enabled state, and only target log information of which the log type includes the target sensor type is generated.
7. A log information reporting device is characterized by comprising:
the system comprises a log obtaining instruction receiving module, a log obtaining instruction receiving module and a log obtaining module, wherein the log obtaining instruction receiving module is used for receiving a log obtaining instruction which is sent by an application processor of a terminal and used for obtaining target log information, and the log type of the target log information is the target log type;
a log information processing rule setting module, configured to set a log information processing rule according to the log obtaining instruction, where the log information processing rule indicates that the current audio digital signal processor only generates or only reports the target log information, so as to reduce a frequency of reporting the log information to the application processor by the current audio digital signal processor;
a log information reporting module, configured to report the target log information to the application processor according to the log information processing rule;
the target log type includes a target sensor type, and the log information reporting module is specifically configured to:
generating log information of all log types, and acquiring target log information of the log types including a target sensor type;
reporting the target log information to the application processor according to a first reporting frequency, wherein the first reporting frequency is a log reporting default frequency of an audio digital signal processor;
alternatively, the first and second electrodes may be,
generating only target log information of which the log type includes a target sensor type;
and reporting the target log information to the application processor according to a first reporting frequency.
8. A computer-readable storage medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the log information reporting method according to any one of claims 1 to 6.
9. An audio digital signal processor having a computer program stored thereon, wherein the program, when executed by the audio digital signal processor, implements the log information reporting method according to any one of claims 1 to 6.
10. A mobile terminal, comprising a memory, an audio digital signal processor, an application processor and a computer program stored in the memory and being executable on the audio digital signal processor, wherein the audio digital signal processor implements the log information reporting method according to any one of claims 1 to 6 when executing the computer program.
CN201710824064.7A 2017-09-13 2017-09-13 Log information reporting method and device, storage medium, ADSP and terminal Active CN107609120B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710824064.7A CN107609120B (en) 2017-09-13 2017-09-13 Log information reporting method and device, storage medium, ADSP and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710824064.7A CN107609120B (en) 2017-09-13 2017-09-13 Log information reporting method and device, storage medium, ADSP and terminal

Publications (2)

Publication Number Publication Date
CN107609120A CN107609120A (en) 2018-01-19
CN107609120B true CN107609120B (en) 2020-07-31

Family

ID=61063671

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710824064.7A Active CN107609120B (en) 2017-09-13 2017-09-13 Log information reporting method and device, storage medium, ADSP and terminal

Country Status (1)

Country Link
CN (1) CN107609120B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108833132A (en) * 2018-04-26 2018-11-16 努比亚技术有限公司 log acquisition control method, terminal and computer readable storage medium
CN110888769B (en) * 2018-09-07 2021-09-07 华为技术有限公司 Data processing method and computer equipment
CN110851313B (en) * 2019-11-14 2024-02-20 东莞市小精灵教育软件有限公司 Sensor debugging method, intelligent terminal, storage medium and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102790686A (en) * 2011-05-17 2012-11-21 浙江核新同花顺网络信息股份有限公司 Log data collecting method and system and log collecting server
US20140149972A1 (en) * 2012-04-12 2014-05-29 Tencent Technology (Shenzhen) Company Limited Method, device and terminal for improving running speed of application
CN106326342A (en) * 2016-08-04 2017-01-11 北京京东尚科信息技术有限公司 Reporting method and device of page flow data and electronic equipment
CN106776385A (en) * 2016-12-06 2017-05-31 广东欧珀移动通信有限公司 A kind of transmission method of daily record log information, device and terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102790686A (en) * 2011-05-17 2012-11-21 浙江核新同花顺网络信息股份有限公司 Log data collecting method and system and log collecting server
US20140149972A1 (en) * 2012-04-12 2014-05-29 Tencent Technology (Shenzhen) Company Limited Method, device and terminal for improving running speed of application
CN106326342A (en) * 2016-08-04 2017-01-11 北京京东尚科信息技术有限公司 Reporting method and device of page flow data and electronic equipment
CN106776385A (en) * 2016-12-06 2017-05-31 广东欧珀移动通信有限公司 A kind of transmission method of daily record log information, device and terminal

Also Published As

Publication number Publication date
CN107609120A (en) 2018-01-19

Similar Documents

Publication Publication Date Title
CN107545067B (en) Log information reporting method and device, storage medium, ADSP and terminal
US11442747B2 (en) Method for establishing applications-to-be preloaded prediction model based on preorder usage sequence of foreground application, storage medium, and terminal
CN108512695B (en) Method and device for monitoring application blockage
EP3579104B1 (en) Method and apparatus for establishing an application prediction model, storage medium and terminal
CN107402835B (en) Application program exception handling method and device, storage medium and mobile terminal
US11604660B2 (en) Method for launching application, storage medium, and terminal
JP6333965B2 (en) Technology to track wake clock usage
CN109064538B (en) View rendering method and device, storage medium and intelligent terminal
CN109947496B (en) Application program preloading method and device, storage medium and mobile terminal
CN108153647B (en) Log processing method and device, terminal equipment and storage medium
US20190370657A1 (en) Method and apparatus for updating application prediction model, storage medium, and terminal
JP6955092B2 (en) Methods for reducing terminal power consumption, and terminals
CN107609120B (en) Log information reporting method and device, storage medium, ADSP and terminal
CN111078523B (en) Log acquisition method and device, storage medium and electronic equipment
WO2019214476A1 (en) Screen direction setting method and device, storage medium and terminal
WO2019214477A1 (en) Application program pre-loading method and device, storage medium and terminal
CN107609114B (en) Log information reporting method and device, storage medium, ADSP and terminal
CN107577542B (en) Log information reporting method and device, storage medium and mobile terminal
CN109165114B (en) Application program no-response processing method and device, storage medium and intelligent terminal
CN107562602B (en) Log information reporting method and device, storage medium, ADSP and terminal
WO2019019818A1 (en) Method and apparatus for accelerating black screen gesture processing, storage medium, and mobile terminal
CN108076223B (en) Task switching method and device, terminal equipment and storage medium
CN107609117B (en) Log information reporting method and device, storage medium, ADSP and terminal
CN110765085A (en) Log information writing method, system, storage medium and mobile terminal
CN107818036B (en) Black screen detection method, mobile terminal and computer readable 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
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant