Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
lttng.cpp File Reference
#include "lttng.h"
#include "provider.h"
#include "helpers.h"
#include "panic.h"
#include "qtheaders.h"
#include <qfile.h>
#include <qfileinfo.h>
#include <qtextstream.h>
#include <qdebug.h>
+ Include dependency graph for lttng.cpp:

Go to the source code of this file.

Functions

static void writeCtfMacro (QTextStream &stream, const Provider &provider, const Tracepoint::Field &field)
 
static void writePrologue (QTextStream &stream, const QString &fileName, const Provider &provider)
 
static void writeEpilogue (QTextStream &stream, const QString &fileName)
 
static void writeWrapper (QTextStream &stream, const Tracepoint &tracepoint, const Provider &provider)
 
static void writeTracepoint (QTextStream &stream, const Provider &provider, const Tracepoint &tracepoint, const QString &providerName)
 
static void writeEnums (QTextStream &stream, const Provider &provider)
 
static void writeFlags (QTextStream &stream, const Provider &provider)
 
static void writeTracepoints (QTextStream &stream, const Provider &provider)
 
void writeLttng (QFile &file, const Provider &provider)
 

Function Documentation

◆ writeCtfMacro()

static void writeCtfMacro ( QTextStream stream,
const Provider provider,
const Tracepoint::Field field 
)
static

◆ writeEnums()

static void writeEnums ( QTextStream stream,
const Provider provider 
)
static

Definition at line 216 of file lttng.cpp.

References aggregateListValues(), QList< T >::append(), QListSpecialMethodsBase< T >::contains(), e, Provider::enumerations, Provider::name, typeToTypeName(), and QList< T >::value().

Referenced by writeLttng().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ writeEpilogue()

static void writeEpilogue ( QTextStream stream,
const QString fileName 
)
static

Definition at line 137 of file lttng.cpp.

References fileName, and includeGuard().

Referenced by writeLttng().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ writeFlags()

static void writeFlags ( QTextStream stream,
const Provider provider 
)
static

Definition at line 236 of file lttng.cpp.

References aggregateListValues(), QList< T >::append(), QListSpecialMethodsBase< T >::contains(), Provider::flags, includeGuard(), Provider::name, QStringLiteral, and typeToTypeName().

Referenced by writeLttng().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ writeLttng()

void writeLttng ( QFile file,
const Provider provider 
)

Definition at line 288 of file lttng.cpp.

References file, QFileInfo::fileName(), QFile::fileName(), fileName, writeEnums(), writeEpilogue(), writeFlags(), writePrologue(), and writeTracepoints().

Referenced by main().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ writePrologue()

static void writePrologue ( QTextStream stream,
const QString fileName,
const Provider provider 
)
static

Definition at line 102 of file lttng.cpp.

References fileName, includeGuard(), Provider::name, Provider::prefixText, QStringLiteral, qtHeaders(), and writeCommonPrologue().

Referenced by writeLttng().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ writeTracepoint()

static void writeTracepoint ( QTextStream stream,
const Provider provider,
const Tracepoint tracepoint,
const QString providerName 
)
static

Definition at line 182 of file lttng.cpp.

References arg, Tracepoint::Field::FlagType, i, tracepoint, and writeCtfMacro().

Referenced by writeTracepoints().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ writeTracepoints()

static void writeTracepoints ( QTextStream stream,
const Provider provider 
)
static

Definition at line 280 of file lttng.cpp.

References Provider::name, Provider::tracepoints, writeTracepoint(), and writeWrapper().

Referenced by writeLttng().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ writeWrapper()

static void writeWrapper ( QTextStream stream,
const Tracepoint tracepoint,
const Provider provider 
)
static

Definition at line 145 of file lttng.cpp.

References formatFunctionSignature(), formatParameterList(), includeGuard(), LTTNG, Provider::name, QStringLiteral, and tracepoint.

Referenced by writeTracepoints().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: