|
8 | 8 | module ConverterEvtReaders { |
9 | 9 | use FastOTF2; |
10 | 10 | use ConverterCommon; |
| 11 | + use ConverterParams; |
11 | 12 | use Time; |
12 | 13 | use CallGraphModule; |
13 | 14 | use List; |
@@ -119,8 +120,8 @@ module ConverterEvtReaders { |
119 | 120 | region: OTF2_RegionRef): OTF2_CallbackCode { |
120 | 121 | var ctxPtr = userData: c_ptr(EvtCallbackContext); |
121 | 122 | if ctxPtr == nil then return OTF2_CALLBACK_ERROR; |
| 123 | + if noopCallbacks then return OTF2_CALLBACK_SUCCESS; |
122 | 124 | ref ctx = ctxPtr.deref(); |
123 | | - if ctx.evtArgs.noopCallbacks then return OTF2_CALLBACK_SUCCESS; |
124 | 125 | var cbSw: stopwatch; cbSw.start(); |
125 | 126 | ref defCtx = ctx.defContext; |
126 | 127 |
|
@@ -152,8 +153,8 @@ module ConverterEvtReaders { |
152 | 153 | region: OTF2_RegionRef): OTF2_CallbackCode { |
153 | 154 | var ctxPtr = userData: c_ptr(EvtCallbackContext); |
154 | 155 | if ctxPtr == nil then return OTF2_CALLBACK_ERROR; |
| 156 | + if noopCallbacks then return OTF2_CALLBACK_SUCCESS; |
155 | 157 | ref ctx = ctxPtr.deref(); |
156 | | - if ctx.evtArgs.noopCallbacks then return OTF2_CALLBACK_SUCCESS; |
157 | 158 | var cbSw: stopwatch; cbSw.start(); |
158 | 159 | ref defCtx = ctx.defContext; |
159 | 160 |
|
@@ -188,8 +189,8 @@ module ConverterEvtReaders { |
188 | 189 | metricValues: c_ptrConst(OTF2_MetricValue)): OTF2_CallbackCode { |
189 | 190 | var ctxPtr = userData: c_ptr(EvtCallbackContext); |
190 | 191 | if ctxPtr == nil then return OTF2_CALLBACK_ERROR; |
| 192 | + if noopCallbacks then return OTF2_CALLBACK_SUCCESS; |
191 | 193 | ref ctx = ctxPtr.deref(); |
192 | | - if ctx.evtArgs.noopCallbacks then return OTF2_CALLBACK_SUCCESS; |
193 | 194 | var cbSw: stopwatch; cbSw.start(); |
194 | 195 | ref defCtx = ctx.defContext; |
195 | 196 | const (locName, locGroup, _) = getLocationAndRegionInfo(defCtx, location, 0); |
|
0 commit comments