53 Commits

Author SHA1 Message Date
Sebastian Huber
a78d940bf0 trace/wscript: Improve C++ standard selection
Use the latest C++ standard available up to C++20.

Close #4908.
Close #4965.
2024-01-19 07:45:53 +01:00
Chris Johns
75ffa6781a python: Updates for Python 3.12
- Change SafeConfigParser to ConfigParser

- Fix escape sequences in strings

Updates #4968
2023-11-21 15:47:17 +11:00
Sebastian Huber
66b81d6baf record: Fix thread name handling
Reset the thread name at thread create and ID events.
2022-11-30 19:11:20 +01:00
Ryan Long
83b3d58c4d record-main-lttng.cc: Change size of empty string
CID 1503017: Out-of-bounds access in CopyThreadName().

Change size of kEmptyThreadName from THREAD_API_COUNT to
THREAD_NAME_SIZE.

Closes #4519
2021-10-07 09:25:22 -05:00
Ryan Long
7c37893893 record-client.c: Ignore return value from visit()
CID 1503011: Unchecked return value in resolve_hold_back().

Closes #4423
2021-09-30 11:09:09 -05:00
Ryan Long
7b5dc22c5d record-filter-zlib.cc: Initialize stream_'s fields
CID 1503020: Uninitialized pointer field

Closes #4434
2021-09-27 17:20:47 -05:00
Joel Sherrill
c71a836310 trace/wscript: Specify C language version
CentOS 7 has gcc 4.8 which defaults to C90 and this results in warnings
for code that is valid C99 but not C90.
2021-04-02 09:29:57 -05:00
Christian Mauderer
37ad446d9d trace: Use c++14 instead of c++11 if possible
llvm version 10 uses features from c++14 standard in the headers. With
that, the record/record-main-lttng.cc doesn't build any more. This patch
makes sure that c++14 is used if it is available.
2020-07-23 18:33:01 +02:00
Sebastian Huber
16eff9bc02 record: Increase input buffer and alignment
Update #3904.
2020-03-17 11:36:05 +01:00
Sebastian Huber
390522a4fa record: Add support for zlib compressed input
Update #3904.
2020-03-17 11:36:05 +01:00
Sebastian Huber
5fa2c3b3cb record: Add zlib filter class
Update #3904.
2020-03-17 11:36:05 +01:00
Sebastian Huber
d96417111a record: Add support for base64 encoded input
Update #3904.
2020-03-17 11:36:05 +01:00
Sebastian Huber
5bc9f73a48 record: Add base64 filter class
Update #3904.
2020-03-17 11:36:05 +01:00
Sebastian Huber
bfc8f2de78 record: Add filter base class
Update #3904.
2020-03-17 11:36:05 +01:00
Sebastian Huber
b066705a55 record: Add option to print config default values
Update #3904.
2020-03-17 11:36:05 +01:00
Sebastian Huber
9d16a1789d record: Add support for user defined event names 2020-03-17 11:36:05 +01:00
Sebastian Huber
b60abbfa83 record: Add INI file parser
Import from:

https://github.com/benhoyt/inih

commit 351217124ddb3e3fe2b982248a04c672350bb0af
Author: Stephan Lachnit <stephanlachnit@protonmail.com>
Date:   Sun Mar 1 07:31:28 2020 +0100

    r48 release (#100)

    * Bump copyright to 2020
    * Remove makefile for static library
    * meson: version 48

    Signed-off-by: Stephan Lachnit <stephanlachnit@protonmail.com>

Update #3904.
2020-03-17 11:36:05 +01:00
Sebastian Huber
8db5ce1e95 record: Format file header
Update #3904.
2020-03-17 11:36:05 +01:00
Sebastian Huber
4aa0d5f42f record: Guard config.h include
Update #3904.
2020-03-17 11:36:05 +01:00
Sebastian Huber
14f0957b00 record: Fix format
Update #3904.
2020-03-17 11:36:05 +01:00
Christian Mauderer
beeeb59cea record: Allow to compile with recent llvm version.
It seems that the API for symbolizeCode changed between llvm8 and llvm9.
This patch uses the same adaption that is used for the llvm-symbolizer
tool in llvm commit b2c4b8bded3ff2efaaebe0d8b33c65116f9ef8de.
2019-12-18 09:11:35 +01:00
Sebastian Huber
e2c8c49a6c Fix build issues on Debian 10 2019-12-18 07:05:17 +01:00
Sebastian Huber
d1486f25f5 record: Remove unused constant 2019-11-18 07:00:35 +01:00
Sebastian Huber
12bd8f77ba record: Fix use of std::min
Update #3665.
2019-09-10 12:49:41 +02:00
Sebastian Huber
5d80d0b2e1 record: Optionally use LLVM to resolve addresses
Update #3665.
2019-09-10 11:01:00 +02:00
Sebastian Huber
a2e7158792 record: Windows compatibility
Update #3665.
2019-09-10 10:54:28 +02:00
Sebastian Huber
f8f91d6507 record: Add generic record events
Update #3665.
2019-09-05 10:47:45 +02:00
Sebastian Huber
07829ca0b4 record: Use C++ header files and namespace std
Update #3665.
2019-09-05 10:44:31 +02:00
Sebastian Huber
0b12f00de9 record: Clean up metadata
Update #3665.
2019-09-05 10:38:31 +02:00
Chris Johns
1eaa300b3c waf: Clean up trace's wscript 2019-09-05 09:47:01 +10:00
Sebastian Huber
71929ce0d6 record: Add limit option
Update #3665.
2019-09-04 14:42:51 +02:00
Sebastian Huber
876ace89bc record: Simplify command line options
Update #3665.
2019-09-04 14:03:26 +02:00
Sebastian Huber
58edee96f5 record: Simplify content and packet size
Update #3665.
2019-09-04 13:47:00 +02:00
Sebastian Huber
0df7b2f392 record: Add support for interrupt handlers
Update #3665.
2019-09-04 13:47:00 +02:00
Sebastian Huber
ff942d52fd record: Simplify CopyThreadName()
Update #3665.
2019-09-04 07:17:06 +02:00
Sebastian Huber
ce308fad89 record: Only create necessary stream files
Rename the files to stream_* so that they appear after the metadata
file.  This makes it easier to open a new trace in Trace Compass.

Update #3665.
2019-09-04 07:17:06 +02:00
Sebastian Huber
fb5b75a9f3 record: Use exceptions
Update #3665.
2019-09-03 14:59:35 +02:00
Sebastian Huber
a124bdb851 record: Add Client base class
Update #3665.
2019-09-03 14:59:33 +02:00
Sebastian Huber
e0ac299e06 record: Convert to C++
Formatted with:

clang-format -style=Chromium -i trace/record/record-main-lttng.cc

Update #3665.
2019-09-03 14:59:00 +02:00
Sebastian Huber
7cb3a0fe7d record: Synchronize with RTEMS
Update #3665.
2019-09-02 07:50:34 +02:00
Sebastian Huber
f12734196b record: Synchronize with RTEMS
Update #3665.
2019-08-30 19:49:35 +02:00
Sebastian Huber
67f76380ea record: Synchronize with RTEMS
Update #3665.
2019-08-30 11:51:48 +02:00
Sebastian Huber
b1abc7d93a record: Synchronize with RTEMS
Update #3665.
2019-08-29 16:05:24 +02:00
Sebastian Huber
3c426562a5 record: Support thread names on 32-bit targets
Update #3665.
2019-08-27 08:48:31 +02:00
Sebastian Huber
3f45f38fc8 record: Add data size to client
This is necessary to get the thread names properly on 32-bit and 64-bit
targets.

Update #3665.
2019-08-27 08:48:28 +02:00
Sebastian Huber
6c4b7702df record: Add CPU to idle thread names
Update #3665.
2019-08-27 08:48:27 +02:00
Sebastian Huber
e488c98b80 record: Move base context to client context
Update #3665.
2019-08-27 08:48:25 +02:00
Sebastian Huber
91d0d1d848 record: Simplify packet context setup
Update #3665.
2019-08-27 08:48:24 +02:00
Sebastian Huber
577f98659a record: Move per-CPU variables to separate context
Update #3665.
2019-08-27 08:48:05 +02:00
Sebastian Huber
0c986b2f6a record: Fix client destruction 2019-08-26 13:31:38 +02:00