Skip to content

Commit 7530a27

Browse files
author
laborant
committed
fix: porting the code to ubuntu 24.04 with llvm 18 and libssl 3.0
1 parent 6806d84 commit 7530a27

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

openssl-tracer/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# SPDX-License-Identifier: Apache-2.0
1616

1717
openssl_tracer: openssl_tracer.cc probe_deployment.cc
18-
clang++ --std=c++17 -o $@ $^ -lbcc
18+
clang++ --std=c++17 -o $@ $^ -lbcc -I /usr/lib/llvm-18 -I/usr/include/llvm-18
1919

2020
clean:
2121
rm openssl_tracer

openssl-tracer/openssl_tracer.cc

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,37 +22,38 @@
2222
#include <iostream>
2323
#include <streambuf>
2424
#include <string>
25+
#include <stdint.h>
2526

2627
#include "openssl_tracer_types.h"
2728
#include "probe_deployment.h"
2829

2930
// A probe on entry of SSL_write
3031
UProbeSpec kSSLWriteEntryProbeSpec{
31-
.obj_path = "/usr/lib/x86_64-linux-gnu/libssl.so.1.1",
32+
.obj_path = "/usr/lib/x86_64-linux-gnu/libssl.so.3",
3233
.symbol = "SSL_write",
3334
.attach_type = BPF_PROBE_ENTRY,
3435
.probe_fn = "probe_entry_SSL_write",
3536
};
3637

3738
// A probe on return of SSL_write
3839
UProbeSpec kSSLWriteRetProbeSpec{
39-
.obj_path = "/usr/lib/x86_64-linux-gnu/libssl.so.1.1",
40+
.obj_path = "/usr/lib/x86_64-linux-gnu/libssl.so.3",
4041
.symbol = "SSL_write",
4142
.attach_type = BPF_PROBE_RETURN,
4243
.probe_fn = "probe_ret_SSL_write",
4344
};
4445

4546
// A probe on entry of SSL_read
4647
UProbeSpec kSSLReadEntryProbeSpec{
47-
.obj_path = "/usr/lib/x86_64-linux-gnu/libssl.so.1.1",
48+
.obj_path = "/usr/lib/x86_64-linux-gnu/libssl.so.3",
4849
.symbol = "SSL_read",
4950
.attach_type = BPF_PROBE_ENTRY,
5051
.probe_fn = "probe_entry_SSL_read",
5152
};
5253

5354
// A probe on return of SSL_read
5455
UProbeSpec kSSLReadRetProbeSpec{
55-
.obj_path = "/usr/lib/x86_64-linux-gnu/libssl.so.1.1",
56+
.obj_path = "/usr/lib/x86_64-linux-gnu/libssl.so.3",
5657
.symbol = "SSL_read",
5758
.attach_type = BPF_PROBE_RETURN,
5859
.probe_fn = "probe_ret_SSL_read",

0 commit comments

Comments
 (0)