summaryrefslogtreecommitdiff
path: root/src/tools/tracegen/ctf.cpp
Commit message (Collapse)AuthorAgeFilesLines
* tracegen: Add common prologueAntti Määttä2023-04-261-0/+1
| | | | | | | | | | Add common prologue and add error message when tracing is used in a module that doesn't have Q_TRACEPOINT enabled, but tracing is enabled. Pick-to: 6.5 Change-Id: I64ca074942f6e89b4f5b5e3b6048b2b713c06df8 Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io> Reviewed-by: Janne Koskinen <janne.p.koskinen@qt.io>
* tracegen: Fix handling enumerators with duplicate valuesAntti Määttä2023-02-101-6/+23
| | | | | | | | | | Aggregate the names of the same value enumerators. The values can also be hexadecimal so handle them also. Pick-to: 6.5 Change-Id: I89693d7e3b8f6c051b298401dcbe8a9f5c0a38aa Reviewed-by: Antti Määttä <antti.maatta@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* tracegen: Add support for QSizeF and QRectF typesAntti Määttä2023-02-101-0/+12
| | | | | | | Pick-to: 6.5 Change-Id: Ie19523b84026312c3d5a597914abc2622dba3f68 Reviewed-by: Antti Määttä <antti.maatta@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* CTF: Move event metadata generation to the wrapperAntti Määttä2023-02-101-74/+143
| | | | | | | | | | | This fixes the metadata generation when cross compiling. The metadata needs to be generated based on the type info of the target. Currently the metadata is generated in the tool based on the host type info. Task-number: QTBUG-110270 Pick-to: 6.5 Change-Id: Ibcdcbd690620afc532d6007cf036229342bdcc31 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* CTF: Remove irrelevant commentAntti Määttä2023-01-231-1/+0
| | | | | | | | Remove comment about lttng not relevant to ctf backend. Pick-to: 6.5 Change-Id: I4d4432b1075a27d024db38a3cdd7807a1e94e7ec Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* Add CTF tracing backendAntti Määttä2023-01-131-0/+278
Implement platform independent tracing backend in Common trace format. This allows tracing in platforms without own/existing backend and analysing all platforms with the same tooling. The backend is the basis for further work in application level profiling area. The backend is implemented as a plugin that is loaded immediately when the application starts in order to process all trace events. The backend avoids using Qt classes so that it doesn't generate trace events itself. Adds plumbing to configure the new backend. Modifies the tracegen and tracepointgen tools to support the new backend. Task-number: QTBUG-106399 Pick-to: 6.5 Change-Id: I80711be52d4d48e1acbc72edffbdf3f379fce52a Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>