Method for transmitting log data for execution of computer program

By separating static and dynamic log data and deserializing it on the receiving end, the problem of low log data transmission efficiency in vehicle control software is solved, efficient log recording and processing is achieved, and user-defined log statement parameter data types are supported.

CN118901060APending Publication Date: 2024-11-05ROBERT BOSCH GMBH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202280093907.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2022-01-20
Filing Date
2022-12-28
Publication Date
2024-11-05

AI Technical Summary

Technical Problem

In security-related applications, such as vehicle control software, it is difficult for the prior art to efficiently transmit and process execution log data of computer programs, especially in a limited computing resource environment, and it is difficult to flexibly define log data structures to support user-defined log statement parameters Data type.

Method used

By separating static and dynamic log data, static log data is transmitted in advance, and dynamic log data is transmitted during program execution. The dynamic log data contains the index of user-defined log statement parameter data type, and the receiver performs deserialization to realize log data efficient transmission and processing.

Benefits of technology

It significantly improves the performance capabilities of logging, supports flexible definition of log data structures, is suitable for visualization and forensic reconstruction of program execution, reduces transmission overhead and improves data processing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118901060A_ABST
    Figure CN118901060A_ABST
Patent Text Reader

Abstract

According to various embodiments, a method for transmitting log data for execution of a computer program is described, having: generating an index list of identifiers of user-defined log statement parameter data types; before the program is executed, for each log statement of a log statement set for outputting log data contained in the program, static log data is transmitted to a log data receiver, and the static log data is log data which remains unchanged between execution of the program for the log statements; when executing a program, for each log statement of a set of log statements executed when executing the program, dynamic log data for the log statement is transmitted, the dynamic log data being log data that may change between respective execution of the program, if the log statement uses one of the user-defined log statement parameter data types for outputting the dynamic log data, the dynamic log data includes an index of an identifier of the log statement parameter data type.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a method for transmitting log data of the execution of a computer program. Background Art

[0002] Computer programs typically have to be checked for errors. This applies in particular to control programs in safety-related applications, such as control software for (possibly autonomous) vehicles. This occurs by examining log data of the execution of the corresponding computer program. In certain applications, such as control software in vehicles, it is desirable to be able to use flexible (e.g. user-defined) data structures for such log data and at the same time to reduce the overhead for the sender (here the vehicle), for example because it has limited computing resources. Summary of the invention

[0003] According to different embodiments, a method for transmitting log data of the execution of a computer program is provided, the method comprising: generating an index list of identifiers of user-defined log statement parameter data types (Log-Anweisungs-Argument-Datentypen); before executing the program, for each log statement of a log statement set for outputting log data contained in the program, transmitting static log data to a log data recipient, wherein the static log data are those log data that remain unchanged for the log statement between each execution of the program; and, when executing the program, for each log statement of the log statement set executed when executing the program, transmitting dynamic log data for the log statement, wherein the dynamic log data are those log data that may change between each execution of the program, the static log data are those log data that remain unchanged for the log statement between each execution of the program, and wherein, if the log statement uses one of the user-defined log statement parameter data types for outputting the dynamic log data, the dynamic log data contains the index of the identifier of the log statement parameter data type.

[0004] The method described above enables efficient transmission of log data (and therefore efficient logging) by separating statistical and dynamic log data. This occurs in particular for user-defined log statement parameter data types and therefore for flexibly definable data types for the transmission of log data (and its architecture).

[0005] Separating static and dynamic log data significantly improves the performance capabilities of logging. In this context, the use of user-defined log statement parameter data types (also simply referred to as log data types) enables logging of architectural log data. This can be used, for example, for tracing (for visualization and forensic reconstruction of program execution) for tracing in situations where (downstream) deserialization is used.

[0006] Various embodiments are described below.

[0007] Embodiment 1 is the method described above for transmitting log data of execution of a computer program.

[0008] Embodiment 2 is a method according to embodiment 1, wherein if a log statement uses one of the user-defined log statement parameter data types to output dynamic log data, the dynamic log data includes raw data for the log statement parameter data type and a description of a data set of the raw data.

[0009] In this way, the raw data set transmitted with the aid of the user-defined log statement parameter data type can be flexibly set, since it is part of the dynamic data for the log statement parameter data type (and is not statically fixed).

[0010] Embodiment 3 is the method according to embodiment 1 or 2, and the method has the transmission of dynamic log data through a communication channel, the reception of dynamic log data through a receiver, and the checking of whether the dynamic log data contains the index of the log statement parameter data type. If the dynamic log data contains the index of the log statement parameter data type, the information about the log statement parameter data type is obtained, and the dynamic log data is converted into a data structure according to the information about the log statement parameter data type. This conversion can be regarded as the deserialization of the essence of the user-defined log data. For example, the checking, obtaining the information about the log statement parameter data type and the conversion occur on the receiver side of the log data (e.g., a server and / or cloud), which performs the analysis of the log data. In contrast, the sender of the log data (e.g., a vehicle) does not perform such complex processing, and writes the log data, for example, one-to-one to an archive (for later forwarding to the receiver side).

[0011] In this way, a recipient (eg, a server or host that analyzes log data and / or prepares log data for a user) can correctly structure and further process dynamic data (particularly raw data) transmitted for the log statement parameter data type.

[0012] Embodiment 4 is a method according to embodiment 3, wherein the information about the log statement parameter data type includes an identifier of an element of the log statement parameter data type.

[0013] For example, this enables the display of raw data transmitted for a log statement parameter data type with the correct identification for the user.For example, the log data can be directly and hierarchically represented in a visualization of the execution of a computer program.

[0014] Embodiment 5 is a method according to any one of embodiments 1 to 4, wherein the identifier of each log statement parameter data type is a hash value of the syntax tree of the log statement parameter data type.

[0015] The use of such a hash value enables the simple generation of a unique and unambiguous identifier.

[0016] Embodiment 6 is a method according to any one of embodiments 1 to 5, wherein the static log data is the location of the log statement, the channel severity level of the log message output by the log statement and / or the parameter layout of the log statement.

[0017] This information does not change between program executions. By transmitting it in advance (e.g. to a server), the amount of log data transmitted during program execution can be reduced. In particular, channels can represent severity levels. Examples of channels are TIME, TRACE, EVENT, DEBUG, STATUS, INFO, WARNING, ERROR, and FATAL.

[0018] Embodiment 7 is a method according to any one of embodiments 1 to 6, wherein the log data type is a class of an object-oriented programming language.

[0019] This enables a flexible schema for log data.

[0020] Embodiment 8 is a data processing device, which is configured to execute the method described in any one of embodiments 1 to 7.

[0021] Embodiment 9 is a computer program having instructions. When the instructions are executed by one or more processors, the instructions cause the one or more processors to perform the method according to any one of embodiments 1 to 7.

[0022] Embodiment 10 is a computer-readable medium storing instructions. When the instructions are executed by one or more processors, the instructions cause the one or more processors to execute the method according to any one of embodiments 1 to 7. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] In the accompanying drawings, similar reference numerals typically refer to the same components in completely different views. The accompanying drawings are not necessarily drawn to scale, but typically emphasis is placed on illustrating the principles of the invention. In the description hereinafter, various aspects are described with reference to the following drawings.

[0024] Figure 1 The vehicle is shown.

[0025] Figure 2 A logging system for logging of software running on a control device is shown with further details.

[0026] Figure 3 A linked list is shown, which contains a chain of nodes starting from the head of the list.

[0027] Figure 4 A flow chart is shown which illustrates a method for transmitting log data of the execution of a computer program according to one specific embodiment. DETAILED DESCRIPTION

[0028] The following detailed description refers to the accompanying drawings, which illustrate specific details and aspects of the present disclosure in which the present invention may be practiced for explanation. Other aspects may be used and structural, logical and electrical changes may be made without departing from the scope of protection of the present invention. Various aspects of the present disclosure are not necessarily mutually exclusive, as some aspects of the present disclosure may be combined with one or more other aspects of the present disclosure to form new aspects.

[0029] Various examples are described in more detail below.

[0030] Figure 1 A vehicle 101 is shown.

[0031] exist Figure 1 In the example of FIG. 1 , a vehicle 101 , such as a passenger car or a truck, is equipped with a vehicle control device (such as an electronic control unit (ECU)) 102 .

[0032] The vehicle control device 102 has data processing components such as a processor (eg, a CPU (Central Processing Unit)) 103 and a memory 104 for storing control software 107 according to which the vehicle control device 102 operates, and data processed by the processor 103 .

[0033] For example, the stored control software (computer program) has statements which, when executed by the processor, cause the processor 103 to implement a driving assistance function (or also collect driving data) or even autonomously control the vehicle.

[0034] In this context, it is of great importance to reliably and quickly detect errors in control software 107 or during the execution of control software 107 .

[0035] Thus, according to different implementations, log data are generated when the control software 107 is executed (e.g. "on site", i.e. when the vehicle is driving). For example, these data are initially stored by the processor 103 in a memory 104 (e.g. a working memory) and transmitted from the memory 104 to a recording device 105. They can then be transmitted by the recording device to a server 108 via a network 106. In the case of control software in a vehicle, the network 106 is a wireless network. In the case of control software arranged in a control device of a static robotic device (e.g. an industrial robot arm), the network 106 can be a wired network (e.g. Ethernet).

[0036] The log data can be transmitted from the control device 102 (ie its memory 104 ) via an interface at a high data rate (eg PCIe (Peripheral Component Interconnect Express)).

[0037] The server 108 can then analyze the log data in different ways. For example, the server 108 can generate a representation of the execution of the control software 107 in the form of a Gantt diagram with the aid of a process trace, which contains, for example, activation points, execution duration, data flows, any (user) log messages for performance measurements, specific algorithm trajectories, etc.

[0038] Messages with log data (also called log messages) generated and output by the processor when executing the control software 107 are, for example:

[0039] Text-based log messages with or without message parameters and severity levels (also called log levels, such as fatal, error, warning, info, etc.)

[0040] Trace information that contains or is accompanied by the process trace context (data flow, execution order, etc.)

[0041] Profiling messages that contain or come with temporal context (time point, time span identification)

[0042] Event, if applicable, without further included or accompanying data (e.g. only event identification)

[0043] · Tagged utilization data messages (as in measurement systems)

[0044] The first four message types in the above volume are typically small and contain both static and dynamic parts. The last type of information (i.e., tagged utilization data messages) can be very large (e.g., more than 100MB for special internal state data). However, in order to establish an integrated mechanism for analyzing log data, all types of data must be available and associated with a common time frame when logging, because this allows, for example, the corresponding developer to track and reproduce the system behavior when using special playback and (graphic) analysis tools.

[0045] Due to the overall mechanism taken into account, “logging”, ie the collection of log data, means both the ascertainment of log data (eg measurement) and the recording thereof.

[0046] Figure 2 A logging system 200 for logging of software executed on a control device 201 is shown with further details.

[0047] The control device 201 corresponds to the control device 107, for example, and is connected to a recording device 202, which corresponds to the recording device 105, for example, via a PCIe bus 203. To this end, the control device 201 and the recording device 202 have corresponding PCIe drivers 204 and PCIe interfaces 205.

[0048] The recording device 202 also has an Ethernet driver 206 and an Ethernet interface 207, for example, for communication with the server 108. As described above, this can also be a wireless communication interface (with corresponding driver software or communication software). The data transmission can be carried out by a "logger" (for example in the vehicle 101), which takes over the forwarding to the server 108. For example, the logger can be responsible for packaging the recorded data and transmitting it to the server 108 via a wireless connection.

[0049] The control device 201 can execute a plurality of processes 208 by means of a plurality of threads 209. The threads 209 generate log data, which are output by the processor in the form of log messages 212 and which are stored (or their contents) in a common memory 210, which corresponds, for example, to the memory 104. A logging gateway 211 controls the transmission to the logging device 202, which has a logging bridge and / or a logging balancer 213, which controls the forwarding of the log data to the server 108.

[0050] In order to enable analysis of the software 107 not only during its software development phase but also during operation (e.g. during its execution in a vehicle in the above example), it is desirable that the log records have the following properties:

[0051] • No interference (eg, no synchronization of common resources should be performed, ie, software threads 209 should be able to be logged independently of each other).

[0052] Deterministic execution (e.g., non-deterministic actions such as accessing heap memory are not allowed)

[0053] Reliable data transmission (i.e. no data should be lost, as otherwise a complete analysis would not be possible)

[0054] The above requirements have a significant impact on the design of the logging mechanism, because the log messages 212 written by the thread 209 (i.e., the processor) to the memory 210 should be as compact as possible so that they do not generate unnecessary runtime overhead and minimize runtime interference (a process may also output different amounts of log messages during its execution).

[0055] The logging system 200 decouples logging from the actual transmission of logged data.

[0056] According to different implementations, in order to make the log message 212 as small as possible, each log message 212 is divided into a static part (i.e., static log data) and a dynamic part (i.e., dynamic log data). The static log data is collected at the compile time of the software 107 (collected by each data processing device that performs the compilation). Therefore, this data can be obtained before the software 107 is executed (i.e., before the main() function is executed, for example, when the software is written in C language). Figure 3 As shown, this is achieved by forming a linked list at compile time.

[0057] Figure 3 A linked list 300 is shown, comprising a chain of nodes 302 starting from a header 301 .

[0058] Each node 302 contains identification, static log data and pointers 303 to subsequent nodes 302 (where the last node points to NULL 304).

[0059] The static log data contains all data that can be extracted from the software source code when the software is not executed. This means that at compile time, each data processing device that compiles traverses the software source code and extracts the static log message contained therein from each statement for outputting log data (i.e., it always remains the same when the statement is executed), attaches the relevant node 302 to the chain 302, and inserts the static log message into the node 302.

[0060] An example of static log data for such a statement (also called a "log statement") is as follows

[0061] Severity level (Fatal, Error, ...)

[0062] The location of the log statement (software component, function, file, line...)

[0063] The parameters of the logging statement (a parameter list, an identifier for the method with parameter names and parameter types, or a reference to an AST (abstract syntax tree) that describes a non-trivial layout of the parameters)

[0064] Format string (used to delay the generation of emails, i.e. transfer the work from the sender to the receiver)

[0065] Static context information when necessary

[0066] The static log data may be pre-stored, for example, in the server 108 , and then only the relevant dynamic log data needs to be transmitted to send the log message 212 .

[0067] The log statement has access to all information created at compile time and only transmits the dynamic part (i.e. the dynamic log data). This can be achieved, for example, by the C++ language paradigm "template metaprogramming".

[0068] Dynamic log data only needs to contain the runtime portion of the log message, such as

[0069] The value of the log statement parameter

[0070] Identification of the message (as a reference to static log data in a log statement).

[0071] Run-time context information (e.g., identification of the thread 209 that executed the log statement)

[0072] Table 1 shows static log data and dynamic log data of a log message issued by an example log statement.

[0073] Static log data Dynamic log data Log Level Message Identification Format String Timestamp Place Thread context … … Parameter layout Parameter data 1: Type, ID 1:42 2: Type, ID 2:666.6 … …

[0074] Table 1

[0075] For example, since dynamic (ie, heap) memory cannot be used in embedded real-time systems, the data structure of log data has a fixed size (especially the data structure that carries dynamic log data for each log message). This means that the number of parameters of a log statement must be limited.

[0076] In the above example, the parameter "type" represents common types such as int (integer) and float (floating point number).

[0077] However, according to different implementations, support for user-defined (e.g., original) log statement parameter data types (also referred to as log data types) can also be increased by mapping them to specific type identifiers. Specifically, a type list is created at compile time (by each data processing device performing the compilation), and a type identifier is assigned to each type (also at compile time) (e.g., a hash in a type hash list, which can be specified by a related hash index).

[0078] The hash value is only needed for user-defined (complex) data types. It is a kind of checksum of the type definition and is used to access an abstract type description (e.g. from a class repository). Such a type description can describe any data type (not just the primitive data types directly supported by the log).

[0079] For example, this can be achieved through metaprogramming (for example, in the case of software written in C++107, C++ type lists can be implemented through C++ metaprogramming).

[0080] The log statement parameter data type can be easily deserialized by a deserialization handler (on the receiving end), i.e. the raw data output when executing a log statement using such a log parameter data type can be converted using a deserialization tool into a data structure that matches the data type (which may be constantly changing, especially during development), such as the content of the log message output by the log statement (e.g. in the console). This is also possible on embedded systems (although embedded systems have restrictions on dynamic memory). On the other hand, non-deterministic serialization or even deserialization is not allowed in embedded systems (e.g. control units).

[0081] The user-defined log statement parameter data type helps to record complex log data structures in an anonymous manner for later analysis. Deserializing complex data structures at runtime requires a lot of calculations, so according to an embodiment, the control device 102 does not perform deserialization, but performs it externally, for example, the server 108 (i.e., the host end) performs a message extraction process, and deserialization is only required when the log data is to be analyzed.

[0082] For user-defined log parameter data types, the static log data of the log statement contains an identifier of a special log parameter type, which indicates to the recipient of the log message sent by the log statement (i.e., the respective log data sink, such as server 108) that the log parameter data in the dynamic log data contained in the log message cannot be interpreted in an ordinary manner, but requires type reflection (Typ-Reflexion).

[0083] Table 2 shows static log data and dynamic log data of a log message issued by an example log statement, wherein the log statement uses the user-defined log parameter data type.

[0084]

[0085] Table 2

[0086] Here, "user defined type" refers to the hash value (or its index in the hash value list) of the user defined logging statement parameter data type. The hash value is the specifier of the logging statement parameter data type. The hash index can be used to access the hash value list where the hash value is stored at compile time. This can further optimize the size of the transmitted data.

[0087] To register a (complex) user-defined log data type, also to add it to the type list and assign a hash value (with an associated hash value index), a registration statement needs to be inserted (e.g. by a user who wishes to use the user-defined log data type) in the software 107. In this way, the user-defined log data type is known to the system (in particular the data processing device that compiles and creates the static log data) before the static log data is created (and stored in the server 108).

[0088] Table 3 shows a program excerpt in which a user-defined log data type ("EinfachesTraceObjekt") is defined, registered via a register statement (REGISTER_LOG_DATA_TYPE), and used by a log statement (LOG_INFO).

[0089]

[0090]

[0091] Table 3

[0092] Before calling LOG_INFO, you can create an instance of EnfachesTraceObject on the stack as follows

[0093] EinfachesTraceObjekt traceObjekt;

[0094] or

[0095] autotraceObject=EinfachesTraceObjekt{};

[0096] Table 4 shows an example of log output generated by deserializing the log message output (assuming the output is in JSON format)

[0097] { "activation_sequence_number":22, "activation_context_id":666, "execution_time_ns":1234567, "data_sequence_numbers":[1,2,3,4] "...":"..." }

[0098] Table 4

[0099] The strings "activation_sequence_number", "activation_context_id", "execution_time_ns", and "data_sequence_numbers" come from (a pool of) type descriptions (e.g., class information) that are enriched when registering user-defined data types. The handle of each type description is a hash value of the corresponding data type.

[0100] Registration of user-defined logging statement parameter data types uses a framework that references a hash value (eg, a class hash value) of the logging parameter data type that identifies the logging parameter data type, which in turn references logging parameter data type information (eg, class information).

[0101] This log parameter data type information represents the AST type, which is extracted from the program code during the software 107 architecture. For example, it is extracted through the Clang intermediate representation or DWARF debugging information generated by the compiler. The log parameter data type information also contains ABI (Application Binary Interface) information (for example, in the form of flags), which specifies the byte order (endianness) or standard memory alignment used by dynamic log data.

[0102] The information of the log parameter data type (eg, class information) also includes the name of the data type content in Table 4, such as "activation_sequence_number" in the above example.

[0103] According to different embodiments, the deserialization framework includes tools and libraries for deserializing data streams containing original C++ objects, which have source ABI (i.e., captured directly from memory). It can be deserialized into any data format through a reflection mechanism. After the target ABI, the data can also be converted back to the original C++ object. This framework allows the processing of original C++ data from memory without serialization in the control device 102 (e.g., embedded system) to convert the data into a common representation. In this way, sufficient throughput can be ensured when logging data. (The focus of this method is high data transfer rate and load, so it is write optimization). According to one embodiment, the deserialization framework uses so-called class information and ABI flags to describe the data type (standard) layout, and uses class hash values ​​to identify the data type layout. By inserting this information into the record stream, so as to deserialize in the respective log data sinks (host, server), autonomy can be achieved.

[0104] As mentioned above, when compiling and registering, the hash value (for example, class hash value) of each user-defined log data type is extracted, and as a further optimization measure, the hash value (for example, having four bytes) is assigned an index, which can be searched in a list by this index, and this list is added to the static log data, which is also created at compile time. In addition, information (for example, class information) is also generated for each log parameter data type, and (for example, using a readable memory managed by an independent middleware) is provided in the log data stream transmitted to the server, or it is added to the static log data. Table 5 shows the corresponding program code.

[0105]

[0106] Table 5

[0107] Since the dynamic log data of each log statement is typically small (i.e. the object containing the dynamic log data of a log statement is very small), these data are accumulated before (asynchronous) transmission (e.g. from the memory 210 to the logging gateway 211). The reason for this is that on modern hardware platforms, the transfer of memory contents typically does not require copying, i.e. the memory contents are transferred by DMA (direct memory access), thereby directly taking over the ownership of the corresponding memory area (of the memory 210).

[0108] However, such transmission is expensive (computational or signaling overhead), and therefore is not performed for each log message 212. In contrast, if the dynamic log data set (per log statement), especially the dynamic log data set of user-defined log statement parameter data types, is small, then using a memory-to-memory copy operation (e.g., memcpy) for the dynamic log data of a single log statement is less expensive overall.

[0109] Therefore, according to one embodiment, each thread 209 has a dedicated stack-like data structure in the common memory 210, which is filled with dynamic log data during the execution of the software 107. The log data is then transmitted (e.g., when each thread or process completes) by notifying the corresponding receiver (here, the logging gateway 211, which in turn initiates the asynchronous transmission). Early notification and transmission can prevent overflow.

[0110] Table 6 shows the stack data structure of an example thread.

[0111]

[0112] Table 6

[0113] Different priorities can be associated with log data. For example, if a tracking object is lost, it may not be possible to recompute it. Therefore, the logging process can use the priority functions provided by various interfaces and adapters to implement the priority sorting of log messages.

[0114] In short, if Figure 4 As shown, a method is provided according to different embodiments.

[0115] Figure 4 A flow chart 400 is shown, in which a method for transmitting log data of the execution of a computer program is described according to one specific embodiment.

[0116] An indexed list of identifiers of user-defined log statement parameter data types is generated at 401 .

[0117] In 402, the static log data is transmitted to a log data receiver before executing the program, for outputting log data of each log statement in a set of log statements included in the program, wherein the static log data are those log data that remain unchanged for the log statement from executing the program to each execution of the program.

[0118] In 403, for each log statement in a set of log statements executed between executions of the program, dynamic log data for the log statement is transmitted between executions of the program, wherein the dynamic log data are those log data that may change from execution to execution between executions of the program, and if the log statement uses one of the user-defined log statement parameter data types to output the dynamic log data, then the dynamic log data includes an index of an identifier of the log statement parameter data type.

[0119] Figure 4The method can be performed by one or more computers having one or more data processing units. The term "data processing unit" can be understood as any type of entity that enables processing of data or signals. The data or signal can be processed, for example, according to at least one (i.e., one or more) specific functions performed by the data processing unit. The data processing unit may include an analog circuit, a digital circuit, a logic circuit, a microprocessor, a microcontroller, a central processing unit (CPU), a graphics processing unit (GPU), a digital signal processor (DSP), an integrated circuit of a programmable gate array (FPGA), or any combination thereof, or may be formed by an analog circuit, a digital circuit, a logic circuit, a microprocessor, a microcontroller, a central processing unit (CPU), a graphics processing unit (GPU), a digital signal processor (DSP), an integrated circuit of a programmable gate array (FPGA), or any combination thereof. Any other way to implement the corresponding functions described in more detail herein may also be understood as a data processing unit or a logic circuit device. One or more of the method steps described in detail herein may be performed (e.g., implemented) by a data processing unit through one or more specific functions performed by the data processing unit.

[0120] Figure 4 The method is used for monitoring software. This can be, for example, control software for a robotic device. The term "robotic device" is to be understood as referring to any technical system (with mechanical parts whose movements are controlled), such as a computer-controlled machine, a vehicle, a household appliance, a power tool, a manufacturing machine, a personal assistant or an access control system. By learning the control specifications of the technical system, the physical system can be controlled accordingly. The software can, for example, run on an embedded system.

[0121] Although specific embodiments have been shown and described herein, it is recognized by those skilled in the art that the specific embodiments shown and described may be replaced with various alternative and / or equivalent implementations without departing from the scope of protection of the present invention. The present application should cover any adaptation or variation of the specific embodiments discussed herein. Therefore, the present invention is intended to be limited only by the claims and their equivalents.

Claims

1. A method for transmitting log data of the execution of a computer program, the method comprising: Generate an indexed list of identifiers of user-defined logging statement parameter data types; Before executing the program, for each log statement in a set of log statements included in the program for outputting log data, transmitting static log data to a log data recipient, wherein the static log data are those log data that remain unchanged for the log statement between executions of the program; and When executing the program, for each log statement of a set of log statements executed when executing the program, dynamic log data for the log statement is transmitted, wherein the dynamic log data are those log data that may change between respective executions of the program, and wherein, if the log statement uses one of the user-defined log statement parameter data types for outputting the dynamic log data, the dynamic log data contains an index of an identifier of the log statement parameter data type.

2. The method according to claim 1, wherein: If the log statement uses one of the user-defined log statement parameter data types for outputting dynamic log data, the dynamic log data includes raw data for the log statement parameter data type and a description of a data set of the raw data.

3. The method according to claim 1 or 2, wherein the method comprises the following steps: transmitting the dynamic log data via a communication channel, receiving the dynamic log data via a receiver, and checking whether the dynamic log data contains an index of a log statement parameter data type. If the dynamic log data contains the index of the log statement parameter data type, information about the log statement parameter data type is obtained, and the dynamic log data is converted into a data structure according to the information about the log statement parameter data type.

4. The method according to claim 3, wherein: The information about the log statement parameter data type has an identifier of an element of the log statement parameter data type.

5. The method according to any one of claims 1 to 4, wherein: The identifier of each log statement parameter data type is a hash value of the syntax tree of the log statement parameter data type.

6. The method according to any one of claims 1 to 5, wherein: The static log data is the location of the log statement, the channel of the log message output by the log statement and / or the parameter layout of the log statement.

7. The method according to any one of claims 1 to 6, wherein: The log data type is a class of an object-oriented programming language.

8. A data processing device, the data processing device being configured to execute the method according to any one of claims 1 to 7.

9. A computer program having instructions which, when executed by one or more processors, cause the one or more processors to perform the method according to any one of claims 1 to 7.

10. A computer-readable medium storing instructions, which, when executed by one or more processors, cause the one or more processors to perform the method according to any one of claims 1 to 7.