[리눅스커널] 인터럽트 핸들러 실행 시각 측정 디버깅 패치

Guillermo Austin Kim|2019년 12월 7일
Posts

[리눅스커널] 인터럽트 핸들러 실행 시각 측정 디버깅 패치

Guillermo Austin Kim|2019년 12월 7일

가끔 인터럽트 핸들러의 처리 시간이 조금 더 정확히 보고 싶을 때가 있습니다.이때, 다음과 같은 패치 코드를 적용하면 인터럽트 핸들러의 실행 시간을 측정할 수 있습니다. 패치 코드는 다음과 같습니다. diff --git a/drivers/mailbox/bcm2835-mailbox.c b/drivers/mailbox/bcm2835-mailbox.cindex a03aeed..e353beb 100644--- a/drivers/mailbox/bcm2835-mailbox.c+++ b/drivers/mailbox/bcm2835-mailbox.c@@ -72,17 +72,29 @@ static struct bcm2835_mbox *bcm2835_link_mbox(struct mbox_chan *link)