[리눅스 커널] ftrace: 부팅 시간 측정

Guillermo Austin Kim|2020년 8월 19일
Posts

[리눅스 커널] ftrace: 부팅 시간 측정

Guillermo Austin Kim|2020년 8월 19일

아래 패치를 적용하면, 부팅 과정의 init call 실행 시간을 측정할 수 있다. diff --git a/include/trace/events/boot.h b/include/trace/events/boot.hnew file mode 100644index 0000000..6a542ce--- /dev/null+++ b/include/trace/events/boot.h@@ -0,0 +1,131 @@+/* SPDX-License-Identifier: GPL-2.0-only */+/*+ * Copyright (c) 2016, 2018, The Linux Foundation. All rights reserved.+ */++#undef TRACE_SYSTEM+#define TRACE_SYSTEM boot++#if