From 16194aaede4784da098dd29344bea92cae6a3470 Mon Sep 17 00:00:00 2001 From: Olivier Dion Date: Mon, 5 May 2025 08:42:04 -0400 Subject: [PATCH] gnu: Add yactfr. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/instrumentation.scm (yactfr): New variable. Change-Id: I48203e19513cd52ebd97faa307ad524b8a5c5dcd Signed-off-by: Ludovic Courtès Modified-by: Ludovic Courtès --- gnu/packages/instrumentation.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/instrumentation.scm b/gnu/packages/instrumentation.scm index 09314519a9be8b2e623884896781a857b4768808..31120026c8733e684fae943076e4990580920e28 100644 --- a/gnu/packages/instrumentation.scm +++ b/gnu/packages/instrumentation.scm @@ -655,3 +655,33 @@ kind of commands and filters to help analysis of the program execution and performance. It provides the command @command{uftrace}. By default, it is bundled with python-3 and luajit that you can delete in a package variant.") (license license:gpl2))) + +(define-public yactfr + (let ((commit "796eaff018e2432ecc8f1f103101afafc9f38518") + (revision "0")) + (package + (name "yactfr") + (version (git-version "1.0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/eepp/yactfr") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1p4nqsq689hr2srdvg59v9yfig2aaq9psdy6fhwnya0vszssyvn5")))) + (build-system cmake-build-system) + (arguments `(#:test-target "check")) + (native-inputs (list boost python-pytest)) + (home-page "https://github.com/eepp/yactfr") + (synopsis "CTF reading library offering a C++14 API") + (description "While the @acronym{CTF, Common Trace Format} reading +libraries focus on decoding and providing completed and ordered event record +objects, the yactfr API offers a lower level of CTF processing. Allowing +iteration over individual element sequences to obtain elements: beginning/end +of packet, beginning/end of event record, beggining/end of structure, +individual data stream scalar values like fixed-length integers, fixed-length +floating point numbers, and null-terminated strings, specific clock value +update, known data stream ID, and the rest.") + (license license:expat))))