aboutsummaryrefslogtreecommitdiffstats
path: root/tapset
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2021-02-18 14:56:46 +0100
committerHarald Welte <laforge@osmocom.org>2021-02-22 09:58:00 +0100
commit3217d5187f222592799897baa5422fc8ef491a70 (patch)
tree9dfbedd10e7ebfd90a04edbd4e4818fee183a765 /tapset
parent6e9dd02bf8ca7a02bedc39d8bc1ce7eb9f3240e7 (diff)
support for stats static userspace probes via systemtap
We currently only have probes for the logging sub-system. This patch adds two tracepoints for tracing the performance impact of statistics reporting: stat_start and stat_done. They can be used to trace the amount of time a libosmocore-using application spends in reporting/exporting statistics. This includes both the CPU time for encoding the statistics, as well as the system calls for sending them. Change-Id: I7208c45f6d051505dd2435305c67b4d26c0b1dd2 Related: OS#4311 Related: SYS#4877
Diffstat (limited to 'tapset')
-rw-r--r--tapset/libosmocore.stp11
1 files changed, 11 insertions, 0 deletions
diff --git a/tapset/libosmocore.stp b/tapset/libosmocore.stp
index 0ec3c423..a3e8f211 100644
--- a/tapset/libosmocore.stp
+++ b/tapset/libosmocore.stp
@@ -16,3 +16,14 @@ probe libosmocore_log_done = process("libosmocore").mark("log_done")
{
probestr = sprintf("%s", $$name);
}
+
+probe libosmocore_stats_start = process("libosmocore").mark("statsd_start")
+{
+ count = $arg1;
+ probestr = sprintf("%s(count=%d), $$name, count);
+}
+
+probe libosmocore_stats_done = process("libosmocore").mark("statsd_done")
+{
+ probestr = sprintf("%s", $$name);
+}