X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=genevent%2Fgenevent.c;h=faf362e5543426dd05d4124f073e9c89435cf6de;hb=ac493dbc901ee39cbcdfda9432d2b8f64005f1b3;hp=c788d85a92bc8e9298c59f1be82597d05f7a3b71;hpb=c95fb6f7c80ec70788bc45d5ef43c042cc6cfdc6;p=lttv.git diff --git a/genevent/genevent.c b/genevent/genevent.c index c788d85a..faf362e5 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, "ltt_nesting[smp_processor_id()]++;\n"); + fprintf(fd, "current->ltt_nesting++;\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, "ltt_nesting[smp_processor_id()]--;\n"); + fprintf(fd, "current->ltt_nesting--;\n"); print_tabs(1, fd); fprintf(fd, "preempt_enable_no_resched();\n");