contrib/perf/bpftrace.txt: separate id lookups from nft

Change-Id: Ic821b3a2375f91d5ad1becde8239481e11be5f5b
This commit is contained in:
Neels Hofmeyr 2023-03-31 08:31:21 +02:00
parent 35c063ba1a
commit f9e04c8592
1 changed files with 8 additions and 10 deletions

View File

@ -8,7 +8,14 @@ tracepoint:syscalls:sys_enter_poll /comm == "osmo-upf"/ {
@poll__ms = hist($elapsed);
}
uprobe:/usr/local/bin/osmo-upf:up_gtp_action_enable {
@up_gtp_action_enable__start = nsecs;
}
uprobe:/usr/local/lib/libnftables.so.1.1.0:nft_run_cmd_from_buffer {
$up_gtp_action_enable__duration = (nsecs - @up_gtp_action_enable__start)/1000;
@up_gtp_action_enable__us = hist($up_gtp_action_enable__duration);
@nft_run_cmd_from_buffer__start = nsecs;
}
@ -17,15 +24,6 @@ uretprobe:/usr/local/lib/libnftables.so.1.1.0:nft_run_cmd_from_buffer {
@nft_run_cmd_from_buffer__ms = hist($nft_run_cmd_from_buffer__duration);
}
uprobe:/usr/local/bin/osmo-upf:up_gtp_action_enable {
@up_gtp_action_enable__start = nsecs;
}
uretprobe:/usr/local/bin/osmo-upf:up_gtp_action_enable {
$up_gtp_action_enable__duration = (nsecs - @up_gtp_action_enable__start)/1000000;
@up_gtp_action_enable__ms = hist($up_gtp_action_enable__duration);
}
uprobe:/usr/local/lib/libosmocore.so.20.0.0:logp2 {
@logp2__start = nsecs;
}
@ -41,6 +39,6 @@ interval:s:10 {
time("%Y-%m-%d %H:%M:%S\n");
print(@poll__ms);
print(@logp2__us);
print(@up_gtp_action_enable__ms);
print(@up_gtp_action_enable__us);
print(@nft_run_cmd_from_buffer__ms);
}