CN-121996377-A - Scheduling tracking method and system
Abstract
The application provides a scheduling tracking method and system, wherein the system comprises an input layer, a processing layer and an output layer, the input layer is used for realizing scheduling tracking of a tracking object based on a hook function corresponding to the tracking object, obtaining corresponding scheduling tracking information and sending the scheduling tracking information to the processing layer, the tracking object comprises an operating system and a runtime environment which are included in an automobile open system architecture, the processing layer is used for performing behavior analysis processing on the tracking object according to the scheduling tracking information, obtaining behavior analysis information of the tracking object and sending the behavior analysis information to the output layer, and the output layer is used for outputting the behavior analysis information to a corresponding output medium. Therefore, more comprehensive and flexible scheduling tracking and behavior analysis of an operating system and a runtime environment in the automobile open system architecture are realized, and the scheduling tracking in the automobile open system architecture is better realized.
Inventors
- WANG HUIPENG
- MENG CHAO
- ZHOU LIN
- SUN DONGMING
- ZHANG JIE
Assignees
- 零束科技有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20260121
Claims (10)
- 1. A schedule tracking method, applied to a schedule tracking system, the schedule tracking system including an input layer, a processing layer, and an output layer, the method comprising: The input layer realizes scheduling tracking of a tracking object based on a hook function corresponding to the tracking object, obtains corresponding scheduling tracking information, and sends the scheduling tracking information to the processing layer, wherein the tracking object comprises an operating system and a runtime environment which are included in an automobile open system architecture; The processing layer performs behavior analysis processing on the tracked object according to the scheduling tracking information to obtain behavior analysis information of the tracked object, and sends the behavior analysis information to the output layer; And the output layer outputs the behavior analysis information to a corresponding output medium.
- 2. The method of claim 1, wherein the input layer implements the schedule tracking for the tracked object based on a hook function corresponding to the tracked object, and obtains corresponding schedule tracking information, including: The input layer obtains event information of corresponding tracking events through a corresponding interface based on task hook functions corresponding to the operating system so as to realize scheduling tracking of the operating system and obtain corresponding scheduling tracking information of the operating system, and the input layer is used for acquiring the event information of the corresponding tracking events through the corresponding interface so as to realize scheduling tracking of the operating system and obtain the corresponding scheduling tracking information of the operating system The input layer obtains event information of corresponding tracking events through a corresponding interface based on the executable entity hook function corresponding to the runtime environment so as to realize scheduling tracking of the runtime environment and obtain corresponding runtime environment scheduling tracking information.
- 3. The method according to claim 2, wherein the processing layer includes a real-time processing layer and a statistical processing layer, and the processing layer performs behavior analysis processing on the tracked object according to the schedule tracking information to obtain behavior analysis information of the tracked object, including: the real-time processing layer performs real-time dynamic behavior analysis processing on the tracking object according to the scheduling tracking information to obtain real-time dynamic behavior analysis information of the tracking object; And the statistical processing layer performs periodic behavior analysis processing on the tracked object according to the scheduling tracking information to obtain periodic behavior analysis information of the tracked object.
- 4. The method of claim 3, wherein the step of, The real-time processing layer performs real-time dynamic behavior analysis processing on the tracked object according to the scheduling tracking information to obtain real-time dynamic behavior analysis information of the tracked object, and the real-time processing layer comprises the following steps: The real-time processing layer performs time stamping on the dynamic behavior of the tracked object according to the scheduling tracking information and then records the dynamic behavior according to a target format to obtain real-time dynamic behavior analysis information of the tracked object; the statistical processing layer performs periodic behavior analysis on the tracked object according to the scheduling tracking information to obtain periodic behavior analysis information of the tracked object, and the statistical processing layer comprises the following steps: And the statistical processing layer performs statistics of various indexes on the behavior of the tracked object in a periodic task according to the scheduling tracking information to obtain periodic behavior analysis information of the tracked object.
- 5. The method of claim 4, wherein the step of determining the position of the first electrode is performed, The data format of the real-time dynamic behavior analysis information comprises a time stamp field and a plurality of trace event fields, and the event type of the trace event comprises a thread type and an executable entity type; the periodic behavior analysis information includes performance metrics including execution cycle, net execution time, total execution time, net CPU utilization, and core load.
- 6. The method of claim 5, wherein the output medium is configured to store and parse the behavior analysis information, obtain corresponding behavior analysis result information according to the behavior analysis information, and present the behavior analysis result information.
- 7. The method of claim 6, wherein the output medium comprises at least one of a system on chip, an ethernet host, and a test debugger.
- 8. The method of claim 7, wherein the step of determining the position of the probe is performed, In the case where the output medium includes the system on chip and the ethernet host computer, the ethernet host computer includes a dispatch tracking analysis tool, The output layer outputs the behavior analysis information to a corresponding output medium, including: The output layer outputs the behavior analysis information to the corresponding system-in-chip; the output medium analyzes the behavior analysis information, obtains corresponding behavior analysis result information according to the behavior analysis information, and presents the behavior analysis result information, and comprises the following steps: the Ethernet upper computer obtains the behavior analysis information from the system-in-chip based on the dispatching tracking analysis tool, analyzes the behavior analysis information, obtains corresponding behavior analysis result information according to the behavior analysis information, and presents the behavior analysis result information, wherein, When the behavior analysis information is the real-time dynamic behavior analysis information, the behavior analysis result information is a real-time information presentation interface, and the real-time information presentation interface presents information by taking time as a horizontal axis and taking tracking event parameters corresponding to the operating system and tracking event parameters corresponding to the runtime environment as vertical axes; in the case that the behavior analysis information is the periodic behavior analysis information, the behavior analysis result information includes a statistical index file; In the case where the output medium is the test debugger, The output layer outputs the behavior analysis information to a corresponding output medium, and the method comprises the following steps: the output layer outputs the behavior analysis information to the corresponding test debugger; the output medium analyzes the behavior analysis information, obtains corresponding behavior analysis result information according to the behavior analysis information, and presents the behavior analysis result information, and comprises the following steps: The test debugger acquires the behavior analysis information in real time, analyzes the behavior analysis information according to the debugging analysis operation of a user, obtains corresponding behavior analysis result information according to the behavior analysis information, and presents the behavior analysis result information.
- 9. The method of any of claims 1-8, wherein the schedule tracking system further comprises a configuration layer, the method comprising: The configuration layer is used for realizing the function configuration processing of the dispatching tracking system according to the function configuration operation information of the dispatching tracking system through a dispatching tracking system configuration tool by a user, wherein the function configuration processing comprises at least one of the function configuration processing of the input layer, the function configuration processing of the processing layer and the function configuration processing of the output layer.
- 10. A dispatch tracking system comprising an input layer, a processing layer, and an output layer, wherein, The input layer is used for realizing tracking of the tracking object based on a hook function corresponding to the tracking object, obtaining corresponding scheduling tracking information and sending the scheduling tracking information to the processing layer, wherein the tracking object comprises an operating system and a runtime environment which are included in an automobile open system architecture; The processing layer is used for carrying out behavior analysis processing on the tracked object according to the scheduling tracking information to obtain behavior analysis information of the tracked object; The output layer is used for outputting the behavior analysis information to a corresponding output medium and sending the behavior analysis information to the output layer.
Description
Scheduling tracking method and system Technical Field The application relates to the technical field of scheduling tracking in an automobile open system architecture, in particular to a scheduling tracking method and system. Background An automobile open System architecture (Automotive Open System ARchitecture, AUTOSAR) is a standard in the field of automobile electronic software, and its hierarchical architecture mainly includes an Operating System (OS) corresponding to a base software layer and a runtime Environment (RTE) located between an application layer and the base software layer. In the development of a complex electric control system based on an automobile open system architecture, efficient and accurate tracking and analysis of the scheduling behavior of tasks in an operating system and the execution state of an executable entity in a runtime environment are key to performance optimization, time sequence verification and fault diagnosis. However, in the prior art, due to the problems of incomplete tracking granularity, missing real-time analysis capability and insufficient output flexibility, the scheduling tracking requirement in an open system architecture of an automobile is difficult to well meet. Thus, there is a need for a more comprehensive, flexible dispatch tracking solution to better enable dispatch tracking in an automotive open system architecture. Disclosure of Invention The application aims to solve the problem that the dispatching tracking scheme in the automobile open system architecture in the prior art is not comprehensive and flexible enough. In order to solve the technical problems, in a first aspect, the embodiment of the application provides a scheduling tracking method, which is applied to a scheduling tracking system, wherein the scheduling tracking system comprises an input layer, a processing layer and an output layer; the processing layer performs behavior analysis processing on the tracked object according to the scheduling tracking information to obtain behavior analysis information of the tracked object, and sends the behavior analysis information to the output layer, and the output layer outputs the behavior analysis information to a corresponding output medium. By adopting the method, the system for tracking the following schedule and the method based on the system are provided, and the following schedule tracking system performs scheduling tracking and behavior analysis on an operating system and a runtime environment in an open system architecture of an automobile through hierarchical architecture design. The input layer acquires the scheduling tracking information by utilizing the hook functions aiming at different tracking objects to acquire the information corresponding to the operating system and the runtime environment, so that the scheduling tracking aiming at the operating system and the runtime environment can be realized, the tracking range and granularity are expanded, and the problems of single tracking object and rough tracking granularity are solved. The processing layer carries out real-time association analysis on the collected scheduling tracking information, so that the integrity of real-time behavior analysis is improved. The output layer adapts the structured behavior analysis information to different output media, so that flexibility and usability of result presentation are enhanced. Therefore, the comprehensive and flexible scheduling tracking and behavior analysis of components such as an operating system and a runtime environment in the automobile open system architecture are realized, and the scheduling tracking in the automobile open system architecture is better realized. In one possible implementation of the first aspect, the input layer realizes the scheduling tracking of the tracking object based on the hook function corresponding to the tracking object to obtain the corresponding scheduling tracking information, and the method includes that the input layer obtains event information of a corresponding tracking event through a corresponding interface based on the task hook function corresponding to the operating system to realize the scheduling tracking of the operating system to obtain the corresponding operating system scheduling tracking information, and obtains event information of the corresponding tracking event through the corresponding interface based on the executable entity hook function corresponding to the runtime environment to realize the scheduling tracking of the runtime environment to obtain the corresponding runtime environment scheduling tracking information. By adopting the method, the input layer realizes the scheduling tracking of the tracked object based on the hook function corresponding to the tracked object, obtains the corresponding scheduling tracking information, and realizes the targeted data acquisition of different levels and different objects by distinguishing the tracking mechanism of the operating sys