rostedt / libtracefs Goto Github PK
View Code? Open in Web Editor NEWClone of libtracefs from kernel.org
Clone of libtracefs from kernel.org
The official repository is here: https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/ This repository requires libtraceevent to be installed: https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/ To build: make; sudo make install; To build in a specific directory outside of the source directory: make O=/path/to/build; sudo make O=/path/to/build Note that the path needs to exist before building. To set the install path (the expected final location): make prefix=/usr; sudo make O=/path/to/build To install in a directory not for the local system (for use to move to another machine): make DESTDIR=/path/to/dest/ install Note, if you have write permission to the DESTDIR, then there is no reason to use sudo or switch to root. Note, DESTDIR must end with '/', otherwise the files will be appended to the path, which will most likely have unwanted results. Contributions: For questions about the use of the library, please send email to: [email protected] Subscribe: http://vger.kernel.org/vger-lists.html#linux-trace-users Archives: https://lore.kernel.org/linux-trace-users/ For contributions to development, please send patches to: [email protected] Subscribe: http://vger.kernel.org/vger-lists.html#linux-trace-devel Archives: https://lore.kernel.org/linux-trace-devel/ Note, this project follows the style of submitting patches as described by the Linux kernel. https://www.kernel.org/doc/html/v5.4/process/submitting-patches.html
Makefile installs into /usr/include/tracefs/tracefs.h, while meson installs into /usr/include/libtracefs/tracefs.h. Linux's perf includes the header with #include <tracefs/tracefs.h>
, so in Gentoo, where the ebuild uses meson to install libtracefs, we need a patch so that perf can find the header in the right place:
https://gitweb.gentoo.org/repo/gentoo.git/tree/dev-util/perf/files/perf-6.4-libtracefs.patch
It would be nice if the Makefile and meson builds installed into the same place, then I could drop the patch for perf:
diff --git a/include/meson.build b/include/meson.build
index 52db432..3a9f140 100644
--- a/include/meson.build
+++ b/include/meson.build
@@ -7,5 +7,5 @@ headers = [
]
foreach h : headers
- install_headers(h, subdir : 'libtracefs')
+ install_headers(h, subdir : 'tracefs')
endforeach
diff --git a/src/meson.build b/src/meson.build
index 31fd9ed..4853912 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -53,7 +53,7 @@ pkg = import('pkgconfig')
pkg.generate(
libtracefs,
libraries: [libtraceevent_dep],
- subdirs: 'libtracefs',
+ subdirs: 'tracefs',
filebase: meson.project_name(),
name: meson.project_name(),
version: meson.project_version(),
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.