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