Change-Id: If03c1de7cff15874d229449254ebe4726d65dc92
This commit is contained in:
Neels Janosch Hofmeyr
2024-07-31 05:44:18 +02:00
parent feca23d45f
commit ff2b29e303
4 changed files with 2 additions and 52 deletions

View File

@@ -1,44 +0,0 @@
BEGIN {
@poll__last_nsecs = nsecs;
}
tracepoint:syscalls:sys_enter_poll /comm == "osmo-upf"/ {
$elapsed = (nsecs - @poll__last_nsecs)/1000000;
@poll__last_nsecs = nsecs;
@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;
}
uretprobe:/usr/local/lib/libnftables.so.1.1.0:nft_run_cmd_from_buffer {
$nft_run_cmd_from_buffer__duration = (nsecs - @nft_run_cmd_from_buffer__start)/1000000;
@nft_run_cmd_from_buffer__ms = hist($nft_run_cmd_from_buffer__duration);
}
uprobe:/usr/local/lib/libosmocore.so.20.0.0:logp2 {
@logp2__start = nsecs;
}
uretprobe:/usr/local/lib/libosmocore.so.20.0.0:logp2 {
$logp2__duration = (nsecs - @logp2__start)/1000;
@logp2__us = hist($logp2__duration);
}
interval:s:10 {
printf("==========================================================");
time("%Y-%m-%d %H:%M:%S\n");
print(@poll__ms);
print(@logp2__us);
print(@up_gtp_action_enable__us);
print(@nft_run_cmd_from_buffer__ms);
}

View File

@@ -1,5 +1,5 @@
log stderr
logging level set-all info
logging level set-all error
timer pfcp x23 5
timer pfcp x24 5000

View File

@@ -6,11 +6,7 @@ log stderr
logging print category-hex 0
logging print file basename last
logging print timestamp date
logging level set-all notice
logging level session debug
logging level nft debug
logging level gtp debug
#logging level set-all debug
logging level set-all error
line vty
bind 127.0.0.1

View File

@@ -1,7 +1,5 @@
pfcp-peer 127.0.0.1
tx assoc-setup-req
sleep 1
n 10000 session create tunmap
wait responses
sleep 5