/DragonOS/docs/ |
H A D | index.rst | 21 kernel/configuration/index 22 kernel/boot/index 23 kernel/core_api/index 24 kernel/locking/index 25 kernel/process_management/index 26 kernel/sched/index 27 kernel/ipc/index 28 kernel/memory_management/index 29 kernel/filesystem/index 30 kernel/debug/index [all …]
|
/DragonOS/ |
H A D | triagebot.toml | 67 trigger_files = ["kernel/src/filesystem"] 70 trigger_files = ["kernel/src/arch/x86_64"] 73 trigger_files = ["kernel/src/arch/riscv64"] 77 "kernel/src/driver", 78 "kernel/src/arch/x86_64/driver", 79 "kernel/src/arch/riscv64/driver", 83 trigger_files = ["kernel/src/virt", "kernel/src/arch/x86_64/kvm"] 87 "/kernel/crates/rbpf", 88 "/kernel/crates/kprobe", 89 "/kernel/src/debug/kprobe", [all …]
|
H A D | Makefile | 7 SUBDIRS = kernel user tools build-scripts 39 all: kernel user 42 .PHONY: kernel 43 kernel: target 44 mkdir -p bin/kernel/ 46 $(MAKE) -C ./kernel all ARCH=$(ARCH) || (sh -c "echo 内核编译失败" && exit 1) 65 …cppcheck kernel user --platform=unix64 --std=c11 -I user/libs/ -I=kernel/ --force -j $(NPROCS) --x… 68 cppcheck kernel user --platform=unix64 --std=c11 -I user/libs/ -I=kernel/ --force -j $(NPROCS) 153 FMT_CHECK=$(FMT_CHECK) $(MAKE) fmt -C kernel
|
H A D | .gitmodules | 1 [submodule "kernel/submodules/DragonStub"] 2 path = kernel/submodules/DragonStub
|
H A D | .gitignore | 7 kernel/kernel
|
/DragonOS/kernel/src/ |
H A D | Makefile | 3 GARBAGE_PATTERNS := *.o *.s~ *.s *.S~ *.c~ *.h~ kernel 46 all: kernel 64 kernel: $(kernel_subdirs) kernel_rust target 68 …$(LD) -b elf64-littleriscv -z muldefs $(LDFLAGS_UNWIND) -o kernel $(shell find . -name "*.o") ../t… 69 …$(OBJCOPY) -I elf64-littleriscv -O elf64-littleriscv -R ".eh_frame" kernel ../../bin/kernel/kernel… 70 @rm kernel 77 …$(LD) -b elf64-x86-64 -z muldefs $(LDFLAGS_UNWIND) -o kernel $(shell find . -name "*.o") ../target… 90 …$(LD) -b elf64-x86-64 -z muldefs $(LDFLAGS_UNWIND) -o kernel $(shell find . -name "*.o") ../target… 94 $(OBJCOPY) -I elf64-x86-64 -O elf64-x86-64 kernel ../../bin/kernel/kernel.elf 96 $(OBJCOPY) -I elf64-x86-64 -O elf64-x86-64 -R ".eh_frame" kernel ../../bin/kernel/kernel.elf [all …]
|
/DragonOS/tools/ |
H A D | dump_kernel.sh | 4 objdump -D ../bin/kernel/kernel.elf > ../bin/kernel/kernel.txt
|
H A D | .gdbinit | 2 file bin/kernel/kernel.elf
|
H A D | write_disk_image.sh | 19 kernel="${root_folder}/bin/kernel/kernel.elf" 49 bins[0]=${kernel} 62 if ${GRUB_PATH_I386_LEGACY_FILE} --is-x86-multiboot2 ${kernel}; then 110 cp ${kernel} ${root_folder}/bin/disk_mount/boot/
|
H A D | run-qemu.sh | 203 sudo ${QEMU} -kernel ${RISCV64_UBOOT_PATH}/u-boot.bin ${QEMU_ARGUMENT} 214 sudo ${QEMU} -kernel ${RISCV64_UBOOT_PATH}/u-boot.bin ${QEMU_ARGUMENT}
|
/DragonOS/tools/debugging/logmonitor/src/backend/ |
H A D | loader.rs | 14 pub fn load(kernel: &PathBuf) -> AppResult<KernelMetadata> { in load() 15 info!("Loading kernel: {:?}", kernel); in load() 16 let kernel_bytes = std::fs::read(kernel)?; in load() 23 let mut result = KernelMetadata::new(kernel.clone()); in load() 31 info!("Loaded kernel: {:?}", kernel); in load() 38 pub kernel: PathBuf, field 43 pub fn new(kernel: PathBuf) -> Self { in new() 45 kernel, in new()
|
/DragonOS/docs/kernel/debug/ |
H A D | traceback.md | 5   内核栈traceback的功能位于`kernel/debug/traceback/`文件夹中。为内核态提供traceback的功能,打印调用栈到屏幕上。 15   该接口定义于`kernel/debug/traceback/traceback.h`中,将会对给定内核栈进行traceback,并打印跟踪结果到屏幕上。 27   当内核第一次链接之后,将会通过Makefile中的命令,运行`kernel/debug/kallsyms`程序,提取内核文件的符号表,然后生成`kernel/debug/ka…
|
H A D | index.rst | 11 debug-kernel-with-gdb
|
/DragonOS/.github/workflows/ |
H A D | makefile.yml | 31 printf "\n" >> kernel/src/include/bindings/bindings.rs 34 kernel-static-test: 49 - name: Run kernel static test 96 run: source ~/.bashrc && source ~/.cargo/env && make kernel -j $(nproc)
|
/DragonOS/docs/kernel/configuration/ |
H A D | config.md | 5   在内核目录下,用kernel.config来设置内核编译配置信息,以类似解析toml文件的方式去解析该文件,然后接着去解析各模块下的d.config以获取feature的启用… 9 **kernel.config** 58 - **[[module.include]]:** 当前模块下所包含的模块,与kernel.config下的相同
|
/DragonOS/docs/kernel/core_api/ |
H A D | casting.md | 8   上述没有特殊标明的函数,都是在`kernel/src/libs/casting.rs`中实现的。 16 SystemError枚举类型使用了这种方式,您可以在`kernel/src/syscall/mod.rs`中找到它的用法。 44 …dyn U>`转换为`Arc<T>`的具体类型指针时,我们要为`U`这个trait实现`DowncastArc`trait。这个trait定义在`kernel/src/libs/casting.r…
|
H A D | atomic.md | 5   DragonOS实现了原子变量,类型为atomic_t. 原子变量是基于具体体系结构的原子操作指令实现的。具体实现在`kernel/common/atomic.h`中。
|
/DragonOS/docs/kernel/boot/ |
H A D | bootloader.md | 10 在DragonOS的note段,有一段PVH header,允许qemu使用`-kernel`参数启动DragonOS内核。 16 opensbi --> uboot --> DragonStub --> kernel
|
/DragonOS/docs/kernel/libs/ |
H A D | id-allocation.md | 9 内核提供了一个名为`IdAllocator`的ID分配器,位于`kernel/crates/ida`中。
|
H A D | unified-init.md | 11 该库位于`kernel/crates/unified-init`中.
|
/DragonOS/kernel/ |
H A D | .gitignore | 2 src/kernel
|
/DragonOS/docs/community/code_contribution/ |
H A D | conventional-commit.md | 10 …于scope: 如无特殊说明,以子模块/系统/目录名作为范围,例如代码变动是发生在`kernel/src/driver/net`中的特性追加,那么应当命名为`feat(driver/net):`,…
|
/DragonOS/kernel/src/debug/ |
H A D | Makefile | 20 nm -n -C $(kernel_root_path)/kernel | ./kallsyms > kallsyms.S
|
/DragonOS/tools/debugging/logmonitor/src/ |
H A D | command.rs | 9 pub kernel: PathBuf, field
|
/DragonOS/tools/debugging/logmonitor/ |
H A D | Cargo.toml | 9 klog_types = { path = "../../../kernel/crates/klog_types" }
|