forked from pool/libtracefs
Compare commits
3 Commits
Author | SHA256 | Date | |
---|---|---|---|
d55652c139 | |||
ea04d2f7ec | |||
bc289b3898 |
@ -1,89 +0,0 @@
|
||||
From: Daniel Wagner <dwagner@suse.de>
|
||||
Date: Thu Jun 15 11:48:53 AM PDT 2023
|
||||
Subject: Add explicit meson thread dependency
|
||||
Patch-mainline: mailed to mailing list
|
||||
References: none
|
||||
Signed-off-by: Tony Jones <tonyj@suse.de>
|
||||
|
||||
Older version of meson do not add automatically the pthread dependency.
|
||||
Thus add it explicitly to the build.
|
||||
|
||||
Signed-off-by: Daniel Wagner <dwagner@suse.de>
|
||||
---
|
||||
meson.build | 1 +
|
||||
samples/meson.build | 4 ++--
|
||||
src/meson.build | 4 ++--
|
||||
utest/meson.build | 2 +-
|
||||
4 files changed, 6 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/meson.build b/meson.build
|
||||
index d0f0e2dafc8a..9d42d78ad957 100644
|
||||
--- a/meson.build
|
||||
+++ b/meson.build
|
||||
@@ -17,6 +17,7 @@ project(
|
||||
library_version = meson.project_version()
|
||||
|
||||
libtraceevent_dep = dependency('libtraceevent', version: '>= 1.7.0', required: true)
|
||||
+threads_dep = dependency('threads', required: true)
|
||||
cunit_dep = dependency('cunit', required : false)
|
||||
|
||||
prefixdir = get_option('prefix')
|
||||
diff --git a/samples/meson.build b/samples/meson.build
|
||||
index 5e8ad270f812..112b12217a04 100644
|
||||
--- a/samples/meson.build
|
||||
+++ b/samples/meson.build
|
||||
@@ -30,7 +30,7 @@ foreach ex : examples
|
||||
executable(
|
||||
ex.underscorify(),
|
||||
src,
|
||||
- dependencies: [libtracefs_dep, libtraceevent_dep],
|
||||
+ dependencies: [libtracefs_dep, libtraceevent_dep, threads_dep],
|
||||
include_directories: [incdir])
|
||||
endforeach
|
||||
|
||||
@@ -39,7 +39,7 @@ src = gen.process(meson.current_source_dir() + '/../Documentation/libtracefs-sql
|
||||
executable(
|
||||
'sqlhist',
|
||||
src,
|
||||
- dependencies: [libtracefs_dep, libtraceevent_dep],
|
||||
+ dependencies: [libtracefs_dep, libtraceevent_dep, threads_dep],
|
||||
include_directories: [incdir],
|
||||
install: true,
|
||||
install_dir: bindir)
|
||||
diff --git a/src/meson.build b/src/meson.build
|
||||
index 56087e2301bf..5b7655453f50 100644
|
||||
--- a/src/meson.build
|
||||
+++ b/src/meson.build
|
||||
@@ -36,14 +36,14 @@ libtracefs = library(
|
||||
'tracefs',
|
||||
sources, lfiles, pfiles,
|
||||
version: library_version,
|
||||
- dependencies: [libtraceevent_dep],
|
||||
+ dependencies: [libtraceevent_dep, threads_dep],
|
||||
include_directories: [incdir],
|
||||
install: true)
|
||||
|
||||
libtracefs_static = static_library(
|
||||
'tracefs_static',
|
||||
sources, lfiles, pfiles,
|
||||
- dependencies: [libtraceevent_dep],
|
||||
+ dependencies: [libtraceevent_dep, threads_dep],
|
||||
include_directories: [incdir],
|
||||
install: false)
|
||||
|
||||
diff --git a/utest/meson.build b/utest/meson.build
|
||||
index 91a526fca2bf..c79313c7c1fb 100644
|
||||
--- a/utest/meson.build
|
||||
+++ b/utest/meson.build
|
||||
@@ -11,7 +11,7 @@ e = executable(
|
||||
'trace-utest',
|
||||
source,
|
||||
include_directories: [incdir],
|
||||
- dependencies: [libtraceevent_dep, cunit_dep],
|
||||
+ dependencies: [libtraceevent_dep, threads_dep, cunit_dep],
|
||||
link_with: libtracefs_static)
|
||||
|
||||
test('trace-utest', e)
|
||||
--
|
||||
2.40.1
|
||||
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:411fcbf3434ecbaefa6c2b1bf092266293a672e2d7ee46fdd6b402753cb8bd16
|
||||
size 205716
|
BIN
libtracefs-1.8.1.tar.gz
(Stored with Git LFS)
Normal file
BIN
libtracefs-1.8.1.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -1,3 +1,83 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Jul 27 17:57:36 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
- Update to release 1.8.1
|
||||
* Plug some memory leaks
|
||||
- Delete 0001-libtracefs-meson-build-tracefs-mmap-by-default.patch
|
||||
(merged)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 17 14:22:13 UTC 2024 - Daniel Wagner <daniel.wagner@suse.com>
|
||||
|
||||
- Update to v1.8.0
|
||||
* remove: add-explicit-meson-thread-dependency.patch
|
||||
* tracefs_follow_event_clear() and tracefs_follow_missed_events_clear()
|
||||
API to clean up followers if the tracefs instance is going to be used
|
||||
for other iterations
|
||||
* tracefs_instance_file_write_number()
|
||||
A simple helper function to make it easier to write numbers into the
|
||||
tracefs files. It does the conversion from number to string, as the
|
||||
files expect strings and not numbers.
|
||||
* Add API to work with kbuffer, which gives more control to the application
|
||||
and speeds it up:
|
||||
tracefs_cpu_read_buf()
|
||||
tracefs_cpu_buffered_read_buf()
|
||||
tracefs_cpu_flush_buf()
|
||||
* tracefs_instance_get_buffer_percent() and tracefs_instance_set_buffer_percent()
|
||||
Modify the buffer_percent file that allows readers to block until the buffer
|
||||
is filled to a given percent. This keeps the reader from causing events that
|
||||
will add noise to the trace.
|
||||
* tracefs_instance_clear()
|
||||
Helper to clear the contents of the current trace instance.
|
||||
* tep_get_sub_buffer_data_size()
|
||||
Helper to retrieve the current sub-buffer data size. The Linux kernel tracing
|
||||
ring buffer is broken up into smaller sub-buffers. This returns the size of
|
||||
the data portion of those sub-buffers (does not include the sub-buffer meta
|
||||
data).
|
||||
* tracefs_load_headers()
|
||||
API to just load the information about the sub-buffers and nothing more.
|
||||
* API to extract tracing ring buffer statistics
|
||||
tracefs_instance_get_stat()
|
||||
tracefs_instance_put_stat()
|
||||
tracefs_buffer_stat_entries()
|
||||
tracefs_buffer_stat_overrun()
|
||||
tracefs_buffer_stat_commit_overrun()
|
||||
tracefs_buffer_stat_bytes()
|
||||
tracefs_buffer_stat_event_timestamp()
|
||||
tracefs_buffer_stat_timestamp()
|
||||
tracefs_buffer_stat_dropped_events
|
||||
* tracefs_instance_set_subbuf_size() and tracefs_instance_get_subbuf_size()
|
||||
API to modify the sub-buffers size of the tracing ring buffer.
|
||||
* Added TIMESTAMP_DELTA and TIMESTAMP_DELTA_USECS to tracefs_sql() as a shortcut
|
||||
for (end.TIMESTAMP - start.TIMESTAMP) and (end.TIMESTAMP_USECS - start.TIMESTAMP_USECS)
|
||||
respectively
|
||||
* Add PID filtering API:
|
||||
tracefs_filter_pid_function()
|
||||
tracefs_filter_pid_events()
|
||||
tracefs_filter_pid_function_clear()
|
||||
tracefs_filter_pid_events_clear()
|
||||
* Added tracefs_cpu_snapshot_open() to read the raw data of snapshot buffers
|
||||
* Added snapshot functions:
|
||||
tracefs_snapshot_snap()
|
||||
tracefs_snapshot_clear()
|
||||
tracefs_snapshot_free()
|
||||
* Added ring buffer memory mapping APIs
|
||||
tracefs_cpu_open_mapped()
|
||||
tracefs_cpu_is_mapped()
|
||||
tracefs_mapped_is_supported()
|
||||
tracefs_cpu_map()
|
||||
tracefs_cpu_unmap()
|
||||
* Updates:
|
||||
- Increase pipe max size to max value when using splice.
|
||||
- Clear "max_graph_depth" on tracefs_instance_reset()
|
||||
- Add missing headers to syscall() and SYS_* defines
|
||||
- Add dependency fixes to meson build
|
||||
- Fix some documentation / man page issues
|
||||
- Fix memory leaks
|
||||
- Fix cscope rule
|
||||
- Fix issues in unit tests
|
||||
- Added many more unit tests
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jun 15 18:50:11 UTC 2023 - Tony Jones <tonyj@suse.com>
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package libtracefs
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
Name: libtracefs
|
||||
%define lname libtracefs1
|
||||
Version: 1.7.0
|
||||
Version: 1.8.1
|
||||
Release: 0
|
||||
Summary: Linux kernel trace file system library
|
||||
License: LGPL-2.1-only
|
||||
@ -35,7 +35,6 @@ BuildRequires: source-highlight
|
||||
BuildRequires: xmlto
|
||||
BuildRequires: xz
|
||||
BuildRequires: pkgconfig(libtraceevent) >= 1.3
|
||||
Patch1: add-explicit-meson-thread-dependency.patch
|
||||
|
||||
%description
|
||||
This library provides C APIs to access the kernel trace file system.
|
||||
|
Loading…
Reference in New Issue
Block a user