@@ -5,6 +5,7 @@ Function tracer profiler for autotest.
"""
import logging, os, signal, time
from autotest_lib.client.bin import profiler, utils
+from autotest_lib.client.common_lib import error
class ftrace(profiler.profiler):
@@ -88,5 +88,5 @@ _tests_map = {
# now register some trigger actions otherwise nothing will be done for the new
# kernel versions
-trigger.add_action(trigger_module.map_action(_tests_map, 'kerntest-%s'))
-trigger.add_action(trigger_module.email_action('test@test.com'))
+trigger_module.trigger.add_action(trigger_module.map_action(_tests_map, 'kerntest-%s'))
+trigger_module.trigger.add_action(trigger_module.email_action('test@test.com'))
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com> --- client/profilers/ftrace/ftrace.py | 1 + mirror/config-sample.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-)