EnglishFrenchSpanish

Ad


OnWorks favicon

lttng-gen-tp - Online in the Cloud

Run lttng-gen-tp in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command lttng-gen-tp that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


lttng-gen-tp — LTTng UST 2.x tracepoint code generator

SYNOPSIS


lttng-gen-tp [OPTIONS] TEMPLATE_FILE

DESCRIPTION


The LTTng project aims at providing highly efficient tracing tools for Linux. Its tracers
help in tracking down performance issues and debugging problems involving multiple
concurrent processes and threads. Tracing across multiple systems is also possible.

The lttng-gen-tp tool simplifies the generation of the UST tracepoint files. It takes a
simple template file and generates the necessary code to use the defined tracepoints in
your application. The section TEMPLATE FILE FORMAT describes the content of the template
file.

Currently, the tool can generate the .h, .c and .o associated with your tracepoint. The
generated .h can be directly included in your application. You can let the tool generate
the .o or compile the .c yourself. You can compile the .c into a .o, .a or .so at your
choice and link it with your application. Refer to the UST documentation for the
advantages and disadvantage of each form. To compile the resulting .c file, you need to
add the options "-llttng-ust -I.".

OPTIONS


This program follows the usual GNU command line syntax with long options starting with two
dashes. Below is a summary of the available options.

-h, --help
Show summary of possible options and commands.

-v, --verbose
Increase verbosity.

-o, --output
Specify the generated file. The type of the generated file depend on the file
extension (.h, .c, .o). This option can be specified multiple times to generate
different file type.

When no output is specified the default files are generated with the same base filename as
the template file. The default files are: .h, .c, .o.

TEMPLATE FILE FORMAT


The template file, which has the usual extension .tp, contains a list of TRACEPOINT_EVENT
definitions and other optional definition entries like TRACEPOINT_LOGLEVEL. (See lttng-
ust(3) for the complete list of available definition.)

You write them as you would write them in a C header file. You can add comments with /*
*/, // and #.

The provider name (the first field of TRACEPOINT_EVENT) must be the same for the whole
file.

Example

TRACEPOINT_EVENT(
sample_tracepoint,
message, // Comment
TP_ARGS(char *, text),
/* Next are the fields */
TP_FIELDS(
ctf_string(message, text)
)
)

ENVIRONMENT VARIABLES


When the tool generates a .o file, it will look for the following environment variables

CC Specify which C compiler to use. If the variable is not specified, the tool will
try "cc" and "gcc"

CFLAGS Flags directly passed to the compiler

Use lttng-gen-tp online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    VASSAL Engine
    VASSAL Engine
    VASSAL is a game engine for creating
    electronic versions of traditional board
    and card games. It provides support for
    game piece rendering and interaction,
    and...
    Download VASSAL Engine
  • 2
    OpenPDF - Fork of iText
    OpenPDF - Fork of iText
    OpenPDF is a Java library for creating
    and editing PDF files with a LGPL and
    MPL open source license. OpenPDF is the
    LGPL/MPL open source successor of iText,
    a...
    Download OpenPDF - Fork of iText
  • 3
    SAGA GIS
    SAGA GIS
    SAGA - System for Automated
    Geoscientific Analyses - is a Geographic
    Information System (GIS) software with
    immense capabilities for geodata
    processing and ana...
    Download SAGA GIS
  • 4
    Toolbox for Java/JTOpen
    Toolbox for Java/JTOpen
    The IBM Toolbox for Java / JTOpen is a
    library of Java classes supporting the
    client/server and internet programming
    models to a system running OS/400,
    i5/OS, o...
    Download Toolbox for Java/JTOpen
  • 5
    D3.js
    D3.js
    D3.js (or D3 for Data-Driven Documents)
    is a JavaScript library that allows you
    to produce dynamic, interactive data
    visualizations in web browsers. With D3
    you...
    Download D3.js
  • 6
    Shadowsocks
    Shadowsocks
    A fast tunnel proxy that helps you
    bypass firewalls This is an application
    that can also be fetched from
    https://sourceforge.net/projects/shadowsocksgui/.
    It ha...
    Download Shadowsocks
  • More »

Linux commands

Ad