1차 시도
include/linux/syscalls.h --> +unsigned long how_many_syscall;
arch/x86/kernel/cpu/common.c --> +how_many_syscall=0;
arch/x86/entry/common.c --> +how_many_syscall++;
hello/hello.c --> +printk("The total amount of system calls called is %lu\n",how_many_syscall);
이유:
system call이 몇번 불렸는지 count하는 변수를 선언,초기화,증가 시키며
hello라는 syscall에서 값을 출력한다.
실패: 'syscall_init'에서 how_many_syscall 인지를 못 함
2차 시도
arch/x86/kernel/cpu/common.c --> -how_many_syscall=0;
이유:
실패:
'실험실 (커널 오류)' 카테고리의 다른 글
[NOVA] system call argument 추가 오류(2) (0) | 2021.07.19 |
---|---|
[NOVA] system call argument 추가 오류(1) (0) | 2021.07.17 |
[kernel build] NOVA vanilla code build 오류 (0) | 2021.07.16 |
[kernel build]System Call 추가하기 오류 기록(02/08) (0) | 2021.02.08 |
Linux Kernel build_오류에서 온 의문 (0) | 2021.01.29 |