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