46 Commits

Author SHA1 Message Date
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
Sebastian Huber
e8a709ac8e record: Improve overflow handling
Signal the accumulated item overflow count with the time of the first
new item.
2019-08-26 13:31:18 +02:00
Ravindra Meena
ba6b8af8bb record: Add support for LTTNG sched_switch 2019-08-20 22:45:35 +02:00
Sebastian Huber
f9dce02507 record: New program
Update #3665.
2019-08-20 22:42:39 +02:00