summaryrefslogtreecommitdiffstats
path: root/tapset/LKET/process.stp
diff options
context:
space:
mode:
Diffstat (limited to 'tapset/LKET/process.stp')
-rwxr-xr-xtapset/LKET/process.stp6
1 files changed, 4 insertions, 2 deletions
diff --git a/tapset/LKET/process.stp b/tapset/LKET/process.stp
index 238f1b20..84a2bd80 100755
--- a/tapset/LKET/process.stp
+++ b/tapset/LKET/process.stp
@@ -36,6 +36,7 @@ function process_snapshot()
%{
struct task_struct *tsk;
struct list_head *cur, *head;
+ _stp_pbuf *pb;
int cpu = smp_processor_id();
char *total_length;
head = &(current->tasks);
@@ -47,8 +48,9 @@ function process_snapshot()
_lket_trace(_GROUP_PROCESS, _HOOKID_PROCESS_SNAPSHOT, "%4b%4b%4b%0s",
(_FMT_)tsk->pid, (_FMT_)tsk->tgid, (_FMT_)tsk->parent->tgid, tsk->comm);
#if !defined(ASCII_TRACE)
- total_length = &_stp_pbuf[cpu][STP_PRINT_BUF_START];
- *(int16_t *)total_length = _stp_pbuf_len[cpu] - 4;
+ pb = &__get_cpu_var(Stp_pbuf);
+ total_length = &pb->buf[0];
+ *(int16_t *)total_length = pb->len - 4;
#endif
_stp_print_flush();
}