IP Library Granted Patent US 11,507,413
Granted Patent B2
US 11,507,413 · App. 16/726,669 · Granted Nov 22, 2022

Tracking method, apparatus, device, and machine-readable medium

Inventors: Lingjun Chen (Hangzhou, CN); Bin Wang (Hangzhou, CN); Liangliang Zhu (Hangzhou, CN); Xu Zeng (Hangzhou, CN); Zilong Liu (Hangzhou, CN); Junjie Cai (Hangzhou, CN)
Assignee: Alibaba Group Holding Limited
G06F9/4812G06F9/4418G06F9/544G06F13/24
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,507,413
App. No.
16/726,669
Granted
Nov 22, 2022
Kind
B2
Abstract

A tracking method, an apparatus, a device, and a machine-readable medium are provided. The method specifically includes: writing a tracking result of an activity of an operating system and/or a running activity of a program into a buffer when an interrupt is disabled; and reading and sending the tracking result from the buffer when the interrupt is enabled. The embodiments of the present disclosure can effectively shorten the maximum time during which interrupts are disabled for an operating system, and thereby can effectively improve the performance of the operating system and/or a program.

Claims (60)

1. A method implemented by one or more processors of a computing device, the method comprising:

tracking an activity of an operating system or a running activity of a program;

writing a tracking result of the activity of the operating system or the running activity of the program into a buffer in response to determining that an interrupt is disabled;

enabling the interrupt after the tracking result is written into the buffer;

reading the tracking result from the buffer and sending the tracking result to a device via a communication interface according to a preset period in response to determining that the interrupt is enabled; and

entering a sleep state according to the preset period after sending the tracking result.

2. The method of claim 1 , wherein: prior to writing the tracking result of the activity of the operating system or the running activity of the program into the buffer in response to determining that the interrupt is disabled, the method further comprises disabling the interrupt in response to detecting that an API of the operating system or the program is called, and corresponding calling information satisfies a preset condition.

3. The method of claim 1 , further comprising detecting that an API of the operating system or the program is called, prior to writing the tracking result of the activity of the operating system or the running activity of the program into the buffer in response to determining that the interrupt is disabled.

4. The method of claim 3 , further comprising tracking a corresponding activity of the operating system or a corresponding running activity of the program of the API to obtain the tracking result of the activity of the operating system or the running activity of the program, in response to detecting that the API of the operating system or the program is called.

5. An apparatus comprising:

one or more processors;

memory;

a write buffer module stored in the memory and executable by the one or more processors to track an activity of an operating system or a running activity of a program and write a tracking result of the activity of the operating system or the running activity of the program into a buffer in response to determining that an interrupt is disabled;

an interrupt enabling module configured to enable the interrupt after the tracking result is written into the buffer;

a read buffer module stored in the memory and executable by the one or more processors to read the tracking result from the buffer in response to determining that the interrupt is enabled; and

a sending module stored in the memory and executable by the one or more processors to send the read tracking result to a device via a communication interface according to a preset period in response to determining that the interrupt is enabled, and enter a sleep state according to a preset period after the sending module sends the tracking result.

6. The apparatus of claim 5 , further comprising an interrupt disabling module configured to disable the interrupt in response to detecting that an API of the operating system is called and corresponding calling information satisfies a preset condition, before the write buffer module writes the tracking result of the activity of the operating system or the running activity of the program into the buffer in response to determining that the interrupt is disabled.

7. The apparatus of claim 5 , further comprising a tracking module configured to detect that an API of the operating system or the program is called, before the write buffer module writes the tracking result of the activity of the operating system or the running activity of the program into the buffer in response to determining that the interrupt is disabled.

8. The apparatus of claim 7 , wherein the tracking module is further configured to track a corresponding activity of the operating system or a corresponding running activity of the program of the API to obtain the tracking result of the activity of the operating system or the running activity of the program.

9. One or more machine-readable media storing instructions that, when executed by one or more processors, cause the one or more processors to perform acts comprising:

tracking an activity of an operating system or a running activity of a program;

writing a tracking result of the activity of the operating system or the running activity of the program into a buffer in response to determining that an interrupt is disabled;

enabling the interrupt after the tracking result is written into the buffer;

reading the tracking result from the buffer and sending the tracking result to a device via a communication interface according to a preset period in response to determining that the interrupt is enabled; and

entering a sleep state according to the preset period after sending the tracking result.

10. The one or more machine-readable media of claim 9 , wherein:

prior to writing the tracking result of the activity of the operating system or the running activity of the program into the buffer in response to determining that the interrupt is disabled, the acts further comprise disabling the interrupt in response to detecting that an API of the operating system or the program is called, and corresponding calling information satisfies a preset condition.

11. The one or more machine-readable media of claim 9 , the acts further comprising:

detecting that an API of the operating system or the program is called, prior to writing the tracking result of the activity of the operating system or the running activity of the program into the buffer in response to determining that the interrupt is disabled; and

tracking a corresponding activity of the operating system or a corresponding running activity of the program of the API to obtain the tracking result of the activity of the operating system or the running activity of the program, in response to detecting that the API of the operating system or the program is called.

12. The method of claim 1 , wherein the activity of the operating system includes at least one of:

a task deletion,

a task creation,

a change of task priority,

a creation of a semaphore, or

a creation of a mutex lock.

13. The method of claim 1 , wherein the preset period is 10 milliseconds.

14. The method of claim 2 , wherein the preset condition includes at least one of:

a calling party and a called party involved in the calling information being different, or

a calling party involved in the calling information being not idle.

15. The apparatus of claim 5 , wherein the activity of the operating system includes at least one of:

a task deletion,

a task creation,

a change of task priority,

a creation of a semaphore, or

a creation of a mutex lock.

16. The apparatus of claim 5 , wherein the preset period is 10 milliseconds.

17. The apparatus of claim 6 , wherein the preset condition includes at least one of:

a calling party and a called party involved in the calling information being different, or

a calling party involved in the calling information being not idle.

18. The one or more machine-readable media of claim 9 , wherein the activity of the operating system includes at least one of:

a task deletion,

a task creation,

a change of task priority,

a creation of a semaphore, or

a creation of a mutex lock.

19. The one or more machine-readable media of claim 9 , wherein the preset period is 10 milliseconds.

20. The one or more machine-readable media of claim 10 , wherein the preset condition includes at least one of:

a calling party and a called party involved in the calling information being different, or

a calling party involved in the calling information being not idle.

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 21, 2026
From: ALIBABA GROUP HOLDING LIMITED
To: CLOUD INTELLIGENCE ASSETS HOLDING (SINGAPORE) PRIVATE LIMITED
Reel/Frame 075478/0225 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Aug 5, 2020
From: CHEN, LINGJUN; WANG, BIN; ZHU, LIANGLIANG; ZENG, XU; LIU, ZILONG; CAI, JUNJIE
To: ALIBABA GROUP HOLDING LIMITED
Reel/Frame 053414/0886 →
Priority Claims (1)
CN 201710500931.1 · Jun 27, 2017 · national
Continuity (2)
Continuation PCTCN2018091990 · Jun 20, 2018
Related Publication 20200133714A1 · Apr 30, 2020