summaryrefslogtreecommitdiffstats
path: root/tapset/LKET/lket_trace.stp
diff options
context:
space:
mode:
Diffstat (limited to 'tapset/LKET/lket_trace.stp')
-rwxr-xr-xtapset/LKET/lket_trace.stp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tapset/LKET/lket_trace.stp b/tapset/LKET/lket_trace.stp
index 57c4c96d..32577524 100755
--- a/tapset/LKET/lket_trace.stp
+++ b/tapset/LKET/lket_trace.stp
@@ -183,8 +183,8 @@ static inline int this_event_len(void)
function update_record()
%{
#if !defined(ASCII_TRACE)
- _stp_pbuf *pb = &__get_cpu_var(Stp_pbuf);
- char *total_length = &pb->buf[0];
+ _stp_pbuf *pb = per_cpu_ptr(Stp_pbuf, smp_processor_id());
+ char *total_length = &(pb->buf[0]);
*(int16_t *)total_length = pb->len - 4;
#endif
%}