Skip to content

Commit

Permalink
riscv:configs: Add xuantie related defconfig and configs
Browse files Browse the repository at this point in the history
Added some fragment configs to combine into different types of defconfig
for xuantie processor testing.

Signed-off-by: Chen Pei <[email protected]>
  • Loading branch information
cp0613 authored and RevySR committed Nov 13, 2024
1 parent 7ace0a2 commit 76f0e6a
Show file tree
Hide file tree
Showing 9 changed files with 61 additions and 0 deletions.
8 changes: 8 additions & 0 deletions arch/riscv/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -212,3 +212,11 @@ rv32_nommu_virt_defconfig:
PHONY += rv64ilp32_defconfig
rv64ilp32_defconfig:
$(Q)$(MAKE) -f $(srctree)/Makefile defconfig 64ilp32.config

PHONY += xuantie_defconfig
xuantie_defconfig:
$(Q)$(MAKE) -f $(srctree)/Makefile defconfig 12HZ.config thp.config fs.config

PHONY += xuantie_debug_defconfig
xuantie_debug_defconfig:
$(Q)$(MAKE) -f $(srctree)/Makefile defconfig thp.config fs.config debug.config ftrace.config ebpf.config kdump.config sched.config
1 change: 1 addition & 0 deletions arch/riscv/configs/12HZ.config
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONFIG_HZ_12=y
2 changes: 2 additions & 0 deletions arch/riscv/configs/debug.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CONFIG_DEBUG_INFO=y
CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
18 changes: 18 additions & 0 deletions arch/riscv/configs/ebpf.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
CONFIG_UPROBES=y
CONFIG_UPROBE_EVENTS=y
CONFIG_KPROBES=y
CONFIG_KPROBE_EVENTS=y
CONFIG_KPROBES_ON_FTRACE=y
CONFIG_KRETPROBES=y
CONFIG_BPF_KPROBE_OVERRIDE=y
CONFIG_FUNCTION_ERROR_INJECTION=y
CONFIG_CGROUP_BPF=y
CONFIG_NET_CLS_BPF=y
CONFIG_BPF_JIT=y
CONFIG_BPF_SYSCALL=y
CONFIG_DEBUG_INFO=y
CONFIG_DEBUG_INFO_BTF=y
CONFIG_DEBUG_INFO_BTF_MODULES=y
CONFIG_MODULE_ALLOW_BTF_MISMATCH=y
CONFIG_IKHEADERS=y
CONFIG_KALLSYMS_ALL=y
8 changes: 8 additions & 0 deletions arch/riscv/configs/fs.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
CONFIG_BLK_DEV_NBD=y
CONFIG_FUSE_FS=y
CONFIG_NET_9P=y
CONFIG_NET_9P_VIRTIO=y
CONFIG_NET_9P_DEBUG=y
CONFIG_9P_FS=y
CONFIG_9P_FS_POSIX_ACL=y
CONFIG_9P_FS_SECURITY=y
15 changes: 15 additions & 0 deletions arch/riscv/configs/ftrace.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
CONFIG_FTRACE=y
CONFIG_TASKS_RUDE_RCU=y
CONFIG_TRACER_MAX_TRACE=y
CONFIG_GENERIC_TRACER=y
CONFIG_FUNCTION_TRACER=y
CONFIG_FUNCTION_GRAPH_TRACER=y
CONFIG_DYNAMIC_FTRACE=y
CONFIG_DYNAMIC_FTRACE_WITH_REGS=y
CONFIG_STACK_TRACER=y
CONFIG_SCHED_TRACER=y
CONFIG_FTRACE_SYSCALLS=y
CONFIG_TRACER_SNAPSHOT=y
CONFIG_TRACER_SNAPSHOT_PER_CPU_SWAP=y
CONFIG_FTRACE_MCOUNT_RECORD=y
CONFIG_FTRACE_MCOUNT_USE_RECORDMCOUNT=y
3 changes: 3 additions & 0 deletions arch/riscv/configs/kdump.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
CONFIG_KEXEC=y
CONFIG_CRASH_DUMP=y
CONFIG_MAGIC_SYSRQ=y
5 changes: 5 additions & 0 deletions arch/riscv/configs/sched.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
CONFIG_SCHED_MC=y
CONFIG_SCHEDSTATS=y
CONFIG_SCHED_DEBUG=y
CONFIG_CGROUP_SCHED=y
CONFIG_FAIR_GROUP_SCHED=y
1 change: 1 addition & 0 deletions arch/riscv/configs/thp.config
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONFIG_TRANSPARENT_HUGEPAGE=y

0 comments on commit 76f0e6a

Please sign in to comment.