[커널 17차 A조] 21주차
2021.01.18 19:52
2020년 1월 16일
linux version : mainline 5.9
init/main.c. start_kernel();
setup_arch(); 분석중
setup_machine_fdt() 분석
early_init_dt_scan_nodes 내부 분석
early_init_dt_scan_root
early_init_dt_scan_memory
(kernel/jump_label.c)
jump_label_init(); 분석
/*
* Since we are initializing the static_key.enabled field with
* with the 'raw' int values (to avoid pulling in atomic.h) in
* jump_label.h, let's make sure that is safe. There are only two
* cases to check since we initialize to 0 or 1.
*/
BUILD_BUG_ON((int)ATOMIC_INIT(0) != 0);
BUILD_BUG_ON((int)ATOMIC_INIT(1) != 1);
이러한 작업을 하는 이유 (추측입니다.)
기존의 atomic.h의 의존성을 제거하지만 기능을 제거하지 않는 것으로 판단.
atomic_init(0) 과 0이 같은지 비교하고 atomic_init(0)을 모두 0으로 바꾼다.
빌드 시 한 번만 하기 위해 c파일에 설정한 것으로 보인다.
if (static_key_initialized)
return;
이 부분은 이미 설정 되어 있는 경우 진행하지 않고 종료한다.
jump_label_init이 미리 호출 되는 경우가 있다고 한다. arm이 미리 호출 되는 경우이며,
setup_arch 이후에 jump_label_init을 한 번 더 호출한다.
cpus_read_lock(); 진행. 세마포어 생략. 추후 구조를 볼 예정
저녁 시간
이론 분석 - RCU
https://lwn.net/Articles/262464/ (What is RCU, Fundamentally?) (1월 2일 분석)
https://lwn.net/Articles/263130/ (What is RCU? Part 2: Usage) (1월 16일 분석)
https://lwn.net/Articles/264090/#So,%20What%20is%20RCU%20Really? (RCU part 3: the RCU API) (추후 예정)
https://kernel.org/pub/linux/kernel/people/paulmck/perfbook/perfbook.html (보류, 다루지 않을 예정)
자료
댓글 0
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
공지 | [공지] 스터디 정리 노트 공간입니다. | woos | 2016.05.14 | 629 |
247 | 커널 스터디 공개 노트 링크 [1] | 박동하 | 2016.05.20 | 233112 |
246 | [커널 17차] 41주차 | ㅇㅇㅇ | 2021.06.13 | 36551 |
245 | [커널 17차] 56주차 | ㅇㅇㅇ | 2021.10.03 | 27526 |
244 | [커널 18차] 1주차 | V4bel | 2021.05.29 | 3599 |
243 | [커널 17차 6조] 2주차 | 김정근 | 2020.08.31 | 2175 |
242 | [커널 17차 2조] 4주차 | wellbeing | 2020.09.12 | 1518 |
241 | 커널 스터디 13차 D조 스터디 로그 링크입니다. | 목태양 | 2016.05.15 | 1226 |
240 | 해킹&보안 1차 A팀 스터디로그 링크 | 수비니겨 | 2016.05.19 | 1185 |
239 | [커널 16차 B조] 1주차 [1] | kdy0252 | 2019.05.25 | 1084 |
238 | [커널 17차 A조] 20주차 | 주영 | 2021.01.11 | 1019 |
237 | [커널 20차] 24주차 | 이민찬 | 2023.10.22 | 787 |
236 | [커널 17차 2조] 5주차 | wellbeing | 2020.09.19 | 739 |
235 | [커널 17차 8조] 1주차 [3] | JSYoo5B | 2020.08.22 | 716 |
234 | [커널 19차] 0주차 - 오리엔테이션 | 리턴 | 2022.05.07 | 601 |
233 | [커널 17차] 26주차 | 주영 | 2021.03.01 | 540 |
232 | [커널 19차] 37 주차 | Min | 2023.02.04 | 479 |
231 | [커널 19차] 1주차 | 리턴 | 2022.05.16 | 456 |
230 | [커널 17차] 32주차 | ㅇㅇㅇ | 2021.04.11 | 443 |
229 | [커널 17차 A조] 12주차 | 주영 | 2020.11.16 | 410 |
.