From: compudj Date: Wed, 21 Jun 2006 17:45:19 +0000 (+0000) Subject: revert the current thread change X-Git-Tag: v0.12.20~1546 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=358f8354d75418337e567bd76a01b891ac22e210;p=lttv.git revert the current thread change git-svn-id: http://ltt.polymtl.ca/svn@1943 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/genevent/genevent.c b/genevent/genevent.c index faf362e5..c788d85a 100644 --- a/genevent/genevent.c +++ b/genevent/genevent.c @@ -1508,7 +1508,7 @@ int print_event_logging_function(char *basename, facility_t *fac, print_tabs(1, fd); fprintf(fd, "preempt_disable();\n"); print_tabs(1, fd); - fprintf(fd, "current->ltt_nesting++;\n"); + fprintf(fd, "ltt_nesting[smp_processor_id()]++;\n"); /* Get facility index */ @@ -1632,7 +1632,7 @@ int print_event_logging_function(char *basename, facility_t *fac, /* Release locks */ print_tabs(1, fd); - fprintf(fd, "current->ltt_nesting--;\n"); + fprintf(fd, "ltt_nesting[smp_processor_id()]--;\n"); print_tabs(1, fd); fprintf(fd, "preempt_enable_no_resched();\n");