[리눅스커널] GCC: notrace 옵션 - no_instrument_function
Post
원문 보기 →[리눅스커널] GCC: notrace 옵션 - no_instrument_function
walk_stackframe() 함수의 구현부를 보면 notrace 키워드로 선언됐음을 알 수 있습니다. notrace walk_stackframe(struct stackframe *frame, int (*fn)(struct stackframe *, void *), void *data){ while (1) { int ret; if (fn(frame, data)) break; ret = unwind_frame(frame); if (ret < 0) break; }}EXPORT_SYMBOL(walk_stackframe); 이 함수를 전처리 코드에서 확인하면 구현부는 다음과 같습니다. void __attribute__((no_instrument_function)) walk_s



