Journal obtaining method and controlling program and storage medium thereof

An acquisition method and log technology, applied in the field of log processing, can solve the problems of spending a lot of man-hours, deteriorating the referentiality of processing logs, and increasing the workload of processing logs, etc., to achieve the effect of reducing the number of working hours

Inactive Publication Date: 2004-10-06
CANON KK
View PDF1 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] (1) In order to continuously acquire processing logs in the user's operating environment, it is necessary to modify the module itself of the software and add a processing log acquisition routine, which increases the workload for processing log acquisition
[0005] (2) Since the processing log is obtained by each module, the generated processing log is based on the module, and it is difficult to obtain the overall processing of the software as a completely chronological processing log
Therefore, the referenceability of the entire processing log deteriorates, and it takes a lot of man-hours to analyze the processing log and find out the cause of the failure.

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
  • Journal obtaining method and controlling program and storage medium thereof
  • Journal obtaining method and controlling program and storage medium thereof
  • Journal obtaining method and controlling program and storage medium thereof

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0053] This embodiment is a configuration when a function existing in another module is called from a certain module. By using the imported function addresses held in the memory and the virtual function address table (Virtual Address Table) to hook function calls between modules and record them in the processing log, without modifying the software module itself, the processing of the entire software can be treated as a chronological process. to obtain the processing log. Specific instructions are given below.

[0054]

[0055] FIG. 1 is a diagram showing the configuration of a computer (software evaluation system) for realizing the log acquisition method of each embodiment of the present invention. To simplify the description, in this embodiment, the software evaluation system is constructed within one PC, but the log acquisition method of the present invention may be constructed within one PC or on multiple PCs as a network system.

[0056] The software evaluation system ...

no. 2 example

[0079] [Second Embodiment (Part 1)]

[0080]In the first embodiment above, all processing logs of the functions / methods called by the EXE are acquired. However, at this time, it is considered that the number of acquired processing logs is too large. Therefore, in this embodiment, the case where the acquisition object of a process log is limited in the function / method called by EXE is demonstrated.

[0081] Generally, the module structure of the software is divided into a DLL of the OS part and a DLL of the application part through the OS surface. FIG. 12 is a diagram showing an example of a general software module structure. In the figure, 1200 is APP.EXE, and 1201 to 1203 are respectively ModuleA.dll, ModuleB.dll, and ModuleC.dll, which are DLLs of the application part. On the other hand, 1205 to 1210 are respectively User32.dll, GDI32.dll, Ntdll.dll, Ws232.dll, and Unidrv.dll, which are DLLs of the OS part.

[0082] Therefore, in the present embodiment, in the software i...

no. 3 example

[0107] [Third Embodiment (Part 1)]

[0108] In the above-mentioned first embodiment, the function definition file describes the DLL name / interface name / function name / method name and the parameters corresponding to the function / method and the type of the return value (referring to Fig. 10), but realizing the present invention The description of the function definition file of the software evaluation system of the log acquisition method is not limited to this. In this embodiment, a method of writing a function definition file and a method of obtaining a log of the function definition file in the case of obtaining a log of a function including DEVMODE which is special structure data will be described.

[0109] DEVMODE is a Windows (registered trademark) structure representing the print setting content that can be set on the user interface of the printer driver. In DEVMODE, there is a part defined publicly by OS and a part (extended area) that can be extended and used by printer v...

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

A log acquisition method which can easily acquire processing logs of software, and can reduce the number of processes required to analyze bugs is provided. More specifically, a log acquisition method for a program having functions, includes a step of identifying a designated one of functions in an OS which are called upon execution of the program, and a step of rewriting the address of the loaded functions that execute predetermined processes and the address of the designated function in the OS to that of a function for log acquisition. The function for log acquisition includes a step of calling the functions that execute predetermined processes and the designated function in the OS and passing the execution result of the called functions to the program, and a step of recording predetermined information upon calling the functions that execute predetermined processes and the designated function in the OS, and predetermined information upon receiving the result.

Description

technical field [0001] The present invention relates to a technique for acquiring a processing log of software divided into a plurality of modules. Background technique [0002] Originally, for software failures with a low recurrence rate, it is often necessary to obtain software processing logs, analyze the processing logs to find out the cause of the failure, and discuss countermeasures (for example, refer to JP-A-11-296145). [0003] However, the acquisition of the above-mentioned conventional processing logs has the following problems. [0004] (1) In order to continuously acquire processing logs in the user's operating environment, it is necessary to modify the software module itself and add a processing log acquisition routine, which increases the workload for processing log acquisition. [0005] (2) Since the processing log is acquired for each module, the generated processing log is based on the module, and it is difficult to acquire the processing of the whole soft...

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/28G06F9/44G06F9/46
CPCG06F11/3636
Inventor 饭塚利明
Owner CANON KK
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products