From: Vyacheslav Cherkashin Date: Tue, 30 Apr 2013 07:31:06 +0000 (+0400) Subject: [FIX] simultaneous working do_page_fault() and US instrumentation X-Git-Tag: Tizen_SDK_2.3~526 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4d6189a14602eae5124c06ad6bd946a767cd7657;p=kernel%2Fswap-modules.git [FIX] simultaneous working do_page_fault() and US instrumentation --- diff --git a/driver/ec.c b/driver/ec.c index d879314..1a69814 100644 --- a/driver/ec.c +++ b/driver/ec.c @@ -192,9 +192,9 @@ int ec_user_attach (void) pack_event_info(EVENT_FMT_PROBE_ID, RECORD_ENTRY, "x", tmp); event_mask = tmp; - result = set_kernel_probes(); + result = inst_usr_space_proc(); if (result == 0) // instrument user space process - result = inst_usr_space_proc (); + result = set_kernel_probes(); // FIXME: SAFETY CHECK if (result) { // return to safe state @@ -237,9 +237,10 @@ int ec_user_activate (void) pack_event_info(EVENT_FMT_PROBE_ID, RECORD_ENTRY, "x", tmp); event_mask = tmp; - result = set_kernel_probes(); + result = inst_usr_space_proc(); if (result == 0) // instrument user space process - result = inst_usr_space_proc (); + result = set_kernel_probes(); + // FIXME: SAFETY CHECK if (result) { // return to safe state