fix: Update pyyaml to avoid build failures with cython 3
[barectf.git] / README.adoc
CommitLineData
2fe524ac
PP
1// Render with Asciidoctor
2
4c8d4e9e
PP
3:version: 3.1
4
2fe524ac
PP
5ifndef::env-github[]
6:toc: left
7endif::env-github[]
8
9= barectf
4c8d4e9e 108 March 2022
2fe524ac
PP
11Philippe Proulx
12
13image::https://barectf.org/barectf-logo.svg[{nbsp}]
14
15https://pypi.python.org/pypi/barectf[image:https://img.shields.io/pypi/v/barectf.svg[]]
4729c383 16https://ci.lttng.org/view/barectf/job/barectf_stable-{version}_linuxbuild/[image:https://img.shields.io/jenkins/build?jobUrl=https%3A%2F%2Fci.lttng.org%2Fview%2Fbarectf%2Fjob%2Fbarectf_stable-{version}_linuxbuild%2F[]]
2fe524ac
PP
17
18[.lead]
19https://barectf.org/[**_barectf_**] (from _bare_ metal and _CTF_)
20is a generator of
b5abce2b 21https://en.wikipedia.org/wiki/Tracing_(software)[tracers] that produce
2fe524ac
PP
22https://diamon.org/ctf/[CTF] data streams.
23
24[NOTE]
25====
26This README mostly documents barectf development.
27
28To learn how to use barectf, read its
4c8d4e9e 29https://barectf.org/docs/barectf/{version}/[documentation].
2fe524ac
PP
30====
31
32== Install barectf
33
34See the barectf documentation's
4c8d4e9e 35https://barectf.org/docs/barectf/{version}/install.html[Install barectf]
2fe524ac
PP
36page.
37
38== Build barectf
39
40barectf is a https://python-poetry.org/[Poetry] project.
41
42To build barectf from this repository:
43
44. https://python-poetry.org/docs/#installation[Install Poetry].
45
46. Build the project:
47+
48----
49$ poetry build
50----
51+
52The `dist` directory contains the distribution archives.
53
54== Build the barectf documentation
55
56This repository contains an
4c8d4e9e 57https://docs.antora.org/antora/latest/component-version/[Antora
2fe524ac
PP
58documentation component version] under the `docs` directory.
59
60This component version is the source of the
4c8d4e9e
PP
61https://barectf.org/docs/{version}/[barectf documentation website]
62(version{nbsp}{version}).
2fe524ac
PP
63
64You can refer to this component version in your
4c8d4e9e 65https://docs.antora.org/antora/latest/playbook/[Antora playbook file],
2fe524ac
PP
66for example:
67
68[source,yaml]
69----
70site:
71 # ...
72content:
73 sources:
74 - url: https://github.com/efficios/barectf
4c8d4e9e 75 branches: [stable-3.1]
2fe524ac
PP
76 start_path: docs
77 # ...
78ui:
79 # ...
80----
81
82== Test barectf
83
84To run the barectf tests:
85
86. Make sure you have the testing requirements:
87** A little-endian architecture.
88+
89YAML configuration files of tracing tests use a little-endian
90native byte order.
91
47876c55 92** https://tox.wiki/en/latest/installation.html[tox]
2fe524ac
PP
93** A C{nbsp}compiler.
94+
95If your C{nbsp}compiler is not the command `cc`, then set the `CC`
96environment variable to your compiler's path and export it to run
97the barectf tests.
98
99** https://www.gnu.org/software/make/[GNU Make]
100
101. Run the tests:
102+
103----
104$ tox
105----
106
107== Get help
108
109See the barectf documentation's
4c8d4e9e 110https://barectf.org/docs/barectf/{version}/get-help.html[Get help]
2fe524ac 111page.
This page took 0.026623 seconds and 4 git commands to generate.