Skip to content

Commit 1751c9c

Browse files
authored
[backport release-24.11] systemtap-sdt: init (#393244)
2 parents 1b4fe58 + 3bb25f8 commit 1751c9c

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{ linuxPackages }:
2+
linuxPackages.systemtap.override {
3+
withStap = false;
4+
}
5+
// {
6+
meta = linuxPackages.systemtap.meta // {
7+
description = "Build USDT tracepoints with the 'dtrace' executable on Linux";
8+
mainProgram = "dtrace";
9+
};
10+
}

pkgs/development/libraries/glib/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ let
4646
else if (stdenv.hostPlatform.extensions.library == ".dll") then "2.0-0.dll"
4747
else "2.0-0.lib";
4848

49-
systemtap' = buildPackages.linuxPackages.systemtap.override { withStap = false; };
49+
systemtap' = buildPackages.systemtap-sdt;
5050
withDtrace =
5151
lib.meta.availableOn stdenv.buildPlatform systemtap' &&
5252
# dtrace support requires sys/sdt.h header

pkgs/development/tools/profiling/systemtap/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
gnumake,
1212
python3,
1313
nixosTests,
14-
withStap ? true, # avoid cyclic dependency with glib
14+
withStap ? true, # avoid cyclic dependency with glib, reduce closure size substantially
1515
}:
1616

1717
let

0 commit comments

Comments
 (0)