Skip to content

Commit 275b272

Browse files
author
cyh21
committed
2025-3-13v1
1 parent 324380b commit 275b272

8 files changed

Lines changed: 38 additions & 2 deletions

File tree

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# 第三周
2+
3+
## times
4+
5+
定位times时好时坏的问题
6+
- 可能的原因返回的isize转换为int的时候溢出
7+
8+
```
9+
Testing times:
10+
========== START test_times ==========
11+
monotonic_time_nanos: 668484057600
12+
nanos_to_ticks: 6684840576
13+
ticks as isize: 6684840576
14+
15+
--- Assert Fatal ! ---
16+
```
17+
18+
- 解决:郑友捷修改测例
19+
20+
## loongarch下execve
21+
- mmap的问题,由郑友捷解决
22+
23+
## clone问题(学习)
24+
- lazy map机制将新的area映射到物理地址的0x0(在读写时会触发 page fault 进行重新映射),并且页表项的部分位在riscv中有设置,在loongarch中没有,导致页表项在query的时候返回NotMapped(is_unused)
25+
26+
- 解决:特殊处理NotMapped:使用page fault进行重新映射

docs/日报/2025-3-10.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44

55
- 分析libctest
66
- 学习本地运行x86测例,观察系统调用情况
7-
![alt text](image-2.png)
7+
![alt text](../img/s-week3/image-2.png)
88

9-
![alt text](image-3.png)
9+
![alt text](../img/s-week3/image-3.png)

docs/日报/2025-3-11.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- 更新代码,学习NotMapped的原因

docs/日报/2025-3-12.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
- 分析libctest
2+
3+
| 文件名 | 内容1 | 内容2 | 内容3 |
4+
|----------|-------|-------|-------|
5+
| brk | time | malloc_0 | mbc |
6+
| mmap | stat | time | malloc_0 |
7+
| munmap | stat | utime | malloc_0 |
8+
| mprotect | pthread_once_deadlock_syscall_list | pthread_tsd | pthread_cond_smasher |
9+

0 commit comments

Comments
 (0)