diff options
author | aiju <devnull@localhost> | 2018-12-13 10:42:49 +0000 |
---|---|---|
committer | aiju <devnull@localhost> | 2018-12-13 10:42:49 +0000 |
commit | c7304ea03caf68cf035d14f50f6e24e0c16ccdfe (patch) | |
tree | f4b5e8047078c41caa0d98cc0ea3d5012c4d17f9 /sys/src/9/port/dtracytimer.c | |
parent | dae5a44111dfb21a714824a5cec2abee4f9f9080 (diff) |
dtracy: get rid of DTName struct, support more than three parts in a probe name, wildcard matching
Diffstat (limited to 'sys/src/9/port/dtracytimer.c')
-rw-r--r-- | sys/src/9/port/dtracytimer.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/src/9/port/dtracytimer.c b/sys/src/9/port/dtracytimer.c index cb3b636f6..0c39a1042 100644 --- a/sys/src/9/port/dtracytimer.c +++ b/sys/src/9/port/dtracytimer.c @@ -22,13 +22,9 @@ dtracytimer(void *) } static void -timerprovide(DTProvider *prov, DTName) +timerprovide(DTProvider *prov) { - static int provided; - - if(provided) return; - provided = 1; - timerprobe = dtpnew((DTName){"timer", "", "1s"}, prov, nil); + timerprobe = dtpnew("timer::1s", prov, nil); } static int |