libtracefs/add-explicit-meson-thread-dependency.patch
Jan Engelhardt 04e87f0360 Accepting request 1181395 from home:wagi:branches:benchmark
Mon 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

OBS-URL: https://build.opensuse.org/request/show/1181395
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libtracefs?expand=0&rev=33
2024-06-18 07:25:40 +00:00

90 lines
2.7 KiB
Diff

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