Supercharge Your Innovation With Domain-Expert AI Agents!

Simple and convenient log recording method for VxWorks operating system system

A technology of vxworks, operating system, applied in the direction of instrument, digital data processing, hardware monitoring, etc., can solve the problems of complicated configuration of file writing method of custom system log, inconvenient use of file writing function, low security, etc. , to achieve the effect of low cost, simple configuration and high security

Active Publication Date: 2021-01-15
TIANJIN JINHANG COMP TECH RES INST
View PDF12 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The technical problem to be solved by the present invention is how to provide a simple VxWorks operating system system log recording method to solve the file writing of the log library that comes with the VxWorks operating system The input function is very inconvenient to use, and the file writing method of the user-defined system log has problems such as complex configuration, high cost, and low security.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Simple and convenient log recording method for VxWorks operating system system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0020] In order to make the purpose, content and advantages of the present invention clearer, the specific implementation manners of the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments.

[0021] The embodiment of the present invention proposes a relatively simple VxWorks operating system system log recording method, which can use the built-in mechanism of the supporting development environment of the VxWorks operating system to easily replace the related processing of the system log library LogLib in compiling the VxWorks Image project Method to implement custom logging system logs.

[0022] The implementation method of the VxWorks operating system system log record of the embodiment of the present invention includes:

[0023] Add the system log library source file logLib.c attached to the VxWorks operating system development environment to the VxWorks Image project.

[0024] Modify logLib.c in the VxWo...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to a simple and convenient log recording method for a VxWorks operating system system, and belongs to the field of embedded software development. The method comprises the following steps: adding a system log library source file logLib.c attached to a VxWorks operating system development environment into a VxWorks Image project; modifying logLib.c in a VxWorks Image project, and adding a mounting point of a self-defined log processing function into the logLib.c; developing a related system log recording program on the basis of the function format of the self-defined mounting point, and integrating the related system log recording program into a VxWorks Image project; and modifying the compiling sequence of each source file in the VxWorks Image project, moving the logLib.o to the forefront, and compiling and running the VxWorks Image project. According to the log recording method for the VxWorks operating system, related configurations such as write-in frequency, error processing and timeout of logs can be simply and conveniently controlled, a user-defined log recording function can be easily achieved, and the invention is simple in configuration, low in cost, high in safety and capable of being conveniently used.

Description

technical field [0001] The invention belongs to the field of embedded software development, and in particular relates to a simple VxWorks operating system system log recording method. Background technique [0002] System logs are important data for recording and analyzing the running process of the operating system. As a commonly used operating system in the embedded field, VxWorks operating system provides its own system log library LogLib, and can mount standard file IO file descriptors in the log library to write system logs into persistent storage such as hard disk, media such as memory cards. [0003] However, the file writing function of the system's built-in log library does not provide configuration properties about writing frequency, error handling, etc., which is very inconvenient to use. If the user wants to customize the file writing method of the system log, there are two general methods. The first is to customize the VxWorks Source Build project, edit and mo...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/30
CPCG06F11/3065
Inventor 赵继伟
Owner TIANJIN JINHANG COMP TECH RES INST
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More