# US 2013/0297920 A1 · Method and device for saving running log

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2013/0297920 A1
- Document ID: US20130297920A1
- Status: Published application
- Kind: A1
- Application number: 13/869,688
- Filed: 2013-04-24
- Published: 2013-11-07
- Earliest claimed: 2012-04-24
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Yu Liu; Zhihui Jia; Cong Yao; Xiang Li
- Web page: https://patentgrep.com/patent/US20130297920A1

## CPC

- G06F 11/002: {protecting against parasitic influences, e.g. noise, temperatures}
- G06F 1/24: Resetting means
- G06F 1/26: Power supply means, e.g. regulation thereof (for memories G11C)
- G06F 11/0742: {in a data processing system embedded in a mobile device, e.g. mobile phones, handheld devices}
- G06F 11/0778: {Dumping, i.e. gathering error/state information after a fault for later diagnosis}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Embodiments of the present application disclose a method for saving a running log, including: when a running exception occurs in an operating system, configuring that a random access memory adapted to record a running log of the operating system works in a self-refresh mode; performing reset on an application processor of the operating system and keeping a power management unit working normally, where the power management unit is adapted to manage power of the application processor and the random access memory; acquiring the running log of the operating system from the random access memory and saving the running log of the operating system, after reset of the application processor is completed. The embodiments of the present application further disclose a device. By adopting the present application, it can be ensured that a log is saved completely during a preset process of the system.

## Claims

### Claim 1

A method for saving a running log, comprising:
when a running exception occurs in an operating system, configuring a random access memory to work in a self-refresh mode wherein the random access memory is adapted to record the running log of the operating system;
performing reset on an application processor of the operating system, and keeping a power management unit working normally, wherein the power management unit is adapted to manage power of the application processor and the random access memory; and
after the reset of the application processor is completed, acquiring the running log of the operating system from the random access memory and saving the running log of the operating system.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the configuring the random access memory to work in the self-refresh mode, comprises:
when a running exception occurs in an Android operating system, invoking a panic function in the Android operating system, and configuring, the random access memory to work in the self-refresh mode, by configuring the panic function.

### Claim 3 (depends on 1)

The method according to claim 1, wherein the performing the reset on the application processor of the operating system, and keeping the power management unit working normally comprises:
sending a reset signal to the application processor;
invalidating, by the application processor, the received reset signal, and then outputting the invalid reset signal to the power management unit; and
performing, by the application processor, the reset according to the received reset signal.

### Claim 4 (depends on 3)

The method according to claim 3, wherein,
the sending the reset signal to the application processor comprises: sending the reset signal to an application processing core unit in the application processor;
the invalidating, by the application processor, the received reset signal, and then outputting the invalid reset signal to the power management unit comprises the following (a) and (b):
(a) outputting, by the application processing core unit, a reset control signal and the reset signal to a reset control unit in the application processor when the application processing core unit receives the reset signal; and
(b) when the reset control signal is used to indicate performing local reset, invalidating, by the reset control unit, the reset signal, and then outputting the invalid reset signal to the power management unit, and outputting the reset signal back to the application processing core unit; and
the performing, by the application processor, the reset according to the received reset signal comprises:
performing, by the application processing core unit, the reset according to the reset signal that is output back.

### Claim 5 (depends on 4)

The method according to claim 4, wherein,
when the reset control signal is used to indicate performing global reset, the reset control unit outputs the reset signal to the power management unit;
after performing the reset according to the reset signal, the power management unit outputs a global reset signal to the application processing core unit and the random access memory; and
performing, by the application processing core unit and the random access memory, the reset according to the global reset signal.

### Claim 6

A device, comprising:
a configuration module, adapted to, when a running exception occurs in an operating system, configure a random access memory to work in a self-refresh mode, wherein the random access memory is adapted to record a running log of the operating system;
a processing module, comprising: an application processor for running the operating system, a power management unit and the random access memory, wherein the processing module is adapted to perform reset on the application processor and keep the power management unit working normally, and the power management unit is adapted to manage power of the application processor and the random access memory; and
a log processing module, adapted to, after the reset of the application processor is completed, acquire the running log of the operating system from the random access memory and save the running log of the operating system.

### Claim 7 (depends on 6)

The device according to claim 6, wherein,
the configuration module is adapted to, when a running exception occurs in an Android operating system, invoke a panic function in the Android operating system, and configure, the random access memory to work in the self-refresh mode, by configuring the panic function.

### Claim 8 (depends on 6)

The device according to claim 6, wherein the processing module further comprises:
a sending unit, adapted to send a reset signal to the application processor; wherein
the application processor is adapted to invalidate the received reset signal from the sending unit, and then output the invalid reset signal to the power management unit, and
perform the reset according to the received reset signal.

### Claim 9 (depends on 8)

The device according to claim 8, wherein the application processor comprises: an application processing core unit and a reset control unit;
the sending unit is adapted to send the reset signal to the application processing core unit;
the application processing core unit is adapted to output a reset control signal and the reset signal to the reset control unit when receiving the reset signal;
the reset control unit is adapted to: when the reset control signal is used to indicate performing local reset, invalidate the reset signal, and then output the invalid reset signal to the power management unit, and output the reset signal back to the application processing core unit; and
the application processing core unit is further adapted to perform the reset according to the reset signal that is output back.

### Claim 10 (depends on 9)

The device according to claim 9, wherein,
the reset control unit is adapted to output the reset signal to the power management unit when the reset control signal is used to indicate performing global reset;
the power management unit is adapted to output a global reset signal to the application processing core unit and the random access memory after performing the reset according to the reset signal; and
the application processing core unit and the random access memory are adapted to perform the reset according to the global reset signal.
