Home
last modified time | relevance | path

Searched refs:printf (Results 1 – 25 of 34) sorted by relevance

12

/DragonOS/user/apps/about/
H A Dabout.c7 printf(" ____ ___ ____ \n"); in print_ascii_logo()
8 printf("| _ \\ _ __ __ _ __ _ ___ _ __ / _ \\ / ___| \n"); in print_ascii_logo()
9 printf("| | | || '__| / _` | / _` | / _ \\ | '_ \\ | | | |\\___ \\ \n"); in print_ascii_logo()
10 printf("| |_| || | | (_| || (_| || (_) || | | || |_| | ___) |\n"); in print_ascii_logo()
11 printf("|____/ |_| \\__,_| \\__, | \\___/ |_| |_| \\___/ |____/ \n"); in print_ascii_logo()
12 printf(" |___/ \n"); in print_ascii_logo()
17 printf(" DragonOS - An opensource operating system.\n"); in print_copyright()
18 printf(" Copyright: DragonOS Community. 2022-2024, All rights reserved.\n"); in print_copyright()
19 printf(" Version: "); in print_copyright()
20 printf("\033[1;32m%s\033[0m", "V0.1.10\n"); in print_copyright()
[all …]
/DragonOS/user/apps/test_shm/
H A Dtest_info.c14 printf("ipc_perm:\n"); in print_shmidds()
15 printf("ipc_perm_key: %d\n", shm_perm.__key); in print_shmidds()
16 printf("uid: %d\n", shm_perm.uid); in print_shmidds()
17 printf("gid: %d\n", shm_perm.gid); in print_shmidds()
18 printf("cuid: %d\n", shm_perm.cuid); in print_shmidds()
19 printf("cgid: %d\n", shm_perm.cgid); in print_shmidds()
20 printf("mode: %d\n", shm_perm.mode); in print_shmidds()
21 printf("seq: %d\n", shm_perm.__seq); in print_shmidds()
22 printf("\n"); in print_shmidds()
24 printf("shmid_ds:\n"); in print_shmidds()
[all …]
/DragonOS/user/apps/test_fstat/
H A Dmain.c12 printf("fd = %d\n", fd); in main()
15 printf("stat size = %lu\n", sizeof(struct stat)); in main()
17 printf("====================\n"); in main()
18 printf("st address: %p\n", st); in main()
19 printf("st_dev = %lu\n", (*st).st_dev); in main()
20 printf("st_ino = %lu\n", (*st).st_ino); in main()
21 printf("st_mode = %d\n", (*st).st_mode); in main()
22 printf("st_nlink = %lu\n", (*st).st_nlink); in main()
23 printf("st_uid = %d\n", (*st).st_uid); in main()
24 printf("st_gid = %d\n", (*st).st_gid); in main()
[all …]
/DragonOS/user/apps/test_fstatfs/
H A Dmain.c10 printf("fd = %d\n", fd); in main()
17 printf("Total_size=%llu B =%llu KB =%llu MB = %llu GB\n", in main()
23 printf("Disk_free=%llu MB =%llu GB Disk_available=%llu MB = %llu GB\n", in main()
27 printf("====================\n"); in main()
28 printf("diskInfo address: %p\n", diskInfo); in main()
29 printf("f_type= %lu\n", diskInfo.f_type); in main()
30 printf("f_bsize = %lu\n", diskInfo.f_bsize); in main()
31 printf("f_blocks = %d\n", diskInfo.f_blocks); in main()
32 printf("f_bfree = %lu\n", diskInfo.f_bfree); in main()
33 printf("b_avail = %d\n", diskInfo.f_bavail); in main()
[all …]
/DragonOS/user/apps/test_statfs/
H A Dmain.c12 printf("Total_size=%llu B =%llu KB =%llu MB = %llu GB\n", in main()
18 printf("Disk_free=%llu MB =%llu GB Disk_available=%llu MB = %llu GB\n", in main()
22 printf("====================\n"); in main()
23 printf("diskInfo address: %p\n", diskInfo); in main()
24 printf("f_type= %lu\n", diskInfo.f_type); in main()
25 printf("f_bsize = %lu\n", diskInfo.f_bsize); in main()
26 printf("f_blocks = %d\n", diskInfo.f_blocks); in main()
27 printf("f_bfree = %lu\n", diskInfo.f_bfree); in main()
28 printf("b_avail = %d\n", diskInfo.f_bavail); in main()
29 printf("f_files = %d\n", diskInfo.f_files); in main()
[all …]
/DragonOS/user/apps/test_cred/
H A Dmain.c8printf("Current uid: %d, euid: %d, gid: %d, egid: %d\n\n", getuid(), geteuid(), getgid(), getegid(… in main()
11 printf("Set uid 1000\n"); in main()
15 printf("Current uid:%d\n\n", uid); in main()
18 printf("Set gid 1000\n"); in main()
22 printf("Current gid:%d\n\n", gid); in main()
25 printf("Setg euid 1000\n"); in main()
29 printf("Current euid:%d\n\n", euid); in main()
32 printf("Set egid 1000\n"); in main()
36 printf("Current egid:%d\n\n", egid); in main()
39 printf("Try to setuid for non_root.\n"); in main()
[all …]
/DragonOS/user/apps/test_sqlite3/
H A Dmain.c13 printf("%s = %s\n", azColName[i], (argv[i] ? argv[i] : "NULL")); in callback()
16 printf("\n"); in callback()
23 printf("sqlite exec:\n %s\n", sql); in exec()
27 printf("sqlite exec error: %s\n", errmsg); in exec()
33 printf("sqlite query:\n %s\n", sql); in query()
38 printf("%s\n", errmsg); in query()
70 printf("sqlite open memory\n"); in memory()
72 printf("sqlite open memory status %d \n", ret); in memory()
81 printf("sqlite open /file.sqlite status %d \n", ret); in file()
84 printf("sqlite open error"); in file()
[all …]
/DragonOS/kernel/src/debug/
H A Dkallsyms.c133 printf(".section .rodata\n\n"); in generate_result()
134 printf(".global kallsyms_address\n"); in generate_result()
135 printf(".align 8\n\n"); in generate_result()
137 printf("kallsyms_address:\n"); // 地址数组 in generate_result()
153 printf("\t.quad\t%#llx\n", symbol_table[i].vaddr); in generate_result()
162 printf(".global kallsyms_num\n"); in generate_result()
163 printf(".align 8\n"); in generate_result()
164 printf("kallsyms_num:\n"); in generate_result()
165 printf("\t.quad\t%lld\n", total_syms_to_write); in generate_result()
170 printf(".global kallsyms_names_index\n"); in generate_result()
[all …]
/DragonOS/user/apps/test_filemap/
H A Dmain.c27 printf("File content: %s\n", buf); in main()
37 printf("mmap address: %p\n", map); in main()
44 printf("change 'H' to 'G'\n"); in main()
46 printf("mmap content: %s\n", fileContent); in main()
49 printf("unmap\n"); in main()
58 printf("File content: %s\n", buf); in main()
/DragonOS/user/apps/test_overlayfs/
H A Dmain.c37 printf("step1 : success\n"); in create_directories()
53 printf("step2 : success\n"); in create_lower_file()
68 printf("OverlayFS mounted successfully.\n"); in mount_overlayfs()
69 printf("step3 : success\n"); in mount_overlayfs()
82 printf("Directory created in merged: %s\n", dirpath); in create_directory_in_merged()
83 printf("step4 : success\n"); in create_directory_in_merged()
/DragonOS/user/apps/test_signal/
H A Dmain.c29 printf("handle %d\n", sig); in handler()
37 printf("registered.\n"); in main()
42 printf("Test signal running\n"); in main()
46 printf("Handle OK!\n"); in main()
/DragonOS/user/apps/test_bind/
H A Dmain.c53 printf("===TEST 4 PASSED===\n"); in test_tcp_bind()
62 printf("===TEST 5 PASSED===\n"); in test_tcp_bind()
79 printf("===TEST 6 PASSED===\n"); in test_tcp_bind()
115 printf("===TEST 7 PASSED===\n"); in test_udp_bind()
124 printf("===TEST 8 PASSED===\n"); in test_udp_bind()
141 printf("===TEST 9 PASSED===\n"); in test_udp_bind()
165 printf("===TEST 10===\n"); in test_all_ports()
166 printf("count: %d\n", count); in test_all_ports()
204 printf("===TEST 1 PASSED===\n"); in main()
212 printf("===TEST 2 PASSED===\n"); in main()
[all …]
/DragonOS/user/apps/test_kvm/
H A Dmain.c64 printf("Test kvm running...\n"); in main()
65 printf("Open /dev/kvm\n"); in main()
68 printf("vmfd=%d\n", vmfd); in main()
88 printf("code=%p\n", code); in main()
101 printf("vcpufd=%d\n", vcpufd); in main()
/DragonOS/user/apps/test_eventfd/
H A Dmain.c28 printf("Child writing %s to efd\n", argv[j]); in main()
35 printf("Child completed write loop\n"); in main()
42 printf("Parent about to read\n"); in main()
46 printf("Parent read %"PRIu64" (%#"PRIx64") from efd\n", u, u); in main()
/DragonOS/user/apps/test_pty/
H A Dtest_pty.c19 printf("slave name: %s fd: %d\n", name,pts); in main()
27 printf("before print to pty slave\n"); in main()
34 printf("read %ld bytes from slave: %.*s", n, (int)n, buf); in main()
42 printf("read %ld bytes from master: %.*s", nn, (int)nn, nbuf); in main()
/DragonOS/user/apps/test_uart/
H A Dmain.c17 printf("Received: %s\n", buf); // 打印接收到的数据 in main()
23 printf("fd: %d", fd); in main()
27 printf("len: %d", len); in main()
/DragonOS/user/apps/dmesg/
H A Ddmesg.c51 printf("dmesg: unknown level '%s'\n", arg); in getlevel()
78 printf("%s\n", help_msg); in print_help_msg()
87 printf("%s\n", bad_usage_msg); in print_bad_usage_msg()
/DragonOS/user/apps/test_sigint/
H A Dmain.c11 printf("Caught SIGINT (Ctrl+C). Exiting gracefully...\n"); in handle_signal()
24 printf("Running... Press Ctrl+C to stop.\n"); in main()
/DragonOS/user/apps/http_server/
H A Dmain.c74 printf("send_file: path: %s\n", path); in send_file()
87 printf("send_file: content_length: %d\n", content_length); in send_file()
106 printf("send_file failed: wsize: %d\n", wsize); in send_file()
127 printf("handle_request: method: %s, url: %s, http_version: %s\n", method, url, http_version); in handle_request()
217 printf("Waiting for a client...\n"); in main()
228 printf("%s\n", buffer); in main()
/DragonOS/user/apps/test_gettimeofday/
H A Dmain.c14 printf("%ld.%06ld\n", tv->tv_sec, tv->tv_usec); in main()
21 printf("tv = %ld.%06ld\n", tv->tv_sec, tv->tv_usec); in main()
/DragonOS/user/apps/test_mkfifo/
H A Dmain.c43 printf("Child process received message: %s\n", buffer); in main()
73 printf("Child process exited with status: %d\n", WEXITSTATUS(status)); in main()
/DragonOS/kernel/src/bpf/helper/
H A Dprint.rs9 pub unsafe extern "C" fn printf(w: &mut impl Write, str: *const c_char, mut args: ...) -> c_int { in printf() function
24 unsafe { printf(&mut TerminalOut, fmt_ptr as _, arg3, arg4, arg5) as u64 } in trace_printf()
/DragonOS/user/apps/riscv_init/
H A Dmain.c5 printf("\033[43;37mHello, World!\033[0m\n"); in main()
/DragonOS/user/apps/test_utimensat/
H A Dmain.c11 printf("utimensat res = %d\n", res); in main()
/DragonOS/user/apps/test_dup3/
H A Dmain.c25 printf("Data:\n %.*s\n", bytes_read, buffer); in main()

12