696c6f
--- crash-trace-command-2.0/trace.c.orig
696c6f
+++ crash-trace-command-2.0/trace.c
696c6f
@@ -1536,23 +1535,21 @@ static struct command_table_entry comman
696c6f
 
696c6f
 static int ftrace_initialized;
696c6f
 
696c6f
-int _init(void)
696c6f
+void __attribute__((constructor))
696c6f
+trace_init(void)
696c6f
 {
696c6f
 	if (ftrace_init() < 0)
696c6f
-		return 0;
696c6f
+		return;
696c6f
 
696c6f
 	ftrace_initialized = 1;
696c6f
 	register_extension(command_table);
696c6f
-
696c6f
-	return 1;
696c6f
 }
696c6f
 
696c6f
-int _fini(void)
696c6f
+void __attribute__((destructor))
696c6f
+trace_fini(void)
696c6f
 {
696c6f
 	if (ftrace_initialized)
696c6f
 		ftrace_destroy();
696c6f
-
696c6f
-	return 1;
696c6f
 }
696c6f
 
696c6f
 #define TRACE_CMD_FILE_VERSION_STRING "6"