/Linux-v6.1/net/ |
D | compat.c | 36 int __get_compat_msghdr(struct msghdr *kmsg, in __get_compat_msghdr() argument 42 kmsg->msg_flags = msg->msg_flags; in __get_compat_msghdr() 43 kmsg->msg_namelen = msg->msg_namelen; in __get_compat_msghdr() 46 kmsg->msg_namelen = 0; in __get_compat_msghdr() 48 if (kmsg->msg_namelen < 0) in __get_compat_msghdr() 51 if (kmsg->msg_namelen > sizeof(struct sockaddr_storage)) in __get_compat_msghdr() 52 kmsg->msg_namelen = sizeof(struct sockaddr_storage); in __get_compat_msghdr() 54 kmsg->msg_control_is_user = true; in __get_compat_msghdr() 55 kmsg->msg_get_inq = 0; in __get_compat_msghdr() 56 kmsg->msg_control_user = compat_ptr(msg->msg_control); in __get_compat_msghdr() [all …]
|
D | socket.c | 2359 int __copy_msghdr(struct msghdr *kmsg, in __copy_msghdr() argument 2365 kmsg->msg_control_is_user = true; in __copy_msghdr() 2366 kmsg->msg_get_inq = 0; in __copy_msghdr() 2367 kmsg->msg_control_user = msg->msg_control; in __copy_msghdr() 2368 kmsg->msg_controllen = msg->msg_controllen; in __copy_msghdr() 2369 kmsg->msg_flags = msg->msg_flags; in __copy_msghdr() 2371 kmsg->msg_namelen = msg->msg_namelen; in __copy_msghdr() 2373 kmsg->msg_namelen = 0; in __copy_msghdr() 2375 if (kmsg->msg_namelen < 0) in __copy_msghdr() 2378 if (kmsg->msg_namelen > sizeof(struct sockaddr_storage)) in __copy_msghdr() [all …]
|
/Linux-v6.1/io_uring/ |
D | net.c | 152 struct io_async_msghdr *kmsg, in io_setup_async_msg() argument 161 kfree(kmsg->free_iov); in io_setup_async_msg() 165 memcpy(async_msg, kmsg, sizeof(*kmsg)); in io_setup_async_msg() 169 if (!kmsg->free_iov) { in io_setup_async_msg() 170 size_t fast_idx = kmsg->msg.msg_iter.iov - kmsg->fast_iov; in io_setup_async_msg() 271 struct io_async_msghdr iomsg, *kmsg; in io_sendmsg() local 282 kmsg = req->async_data; in io_sendmsg() 287 kmsg = &iomsg; in io_sendmsg() 292 return io_setup_async_msg(req, kmsg, issue_flags); in io_sendmsg() 298 min_ret = iov_iter_count(&kmsg->msg.msg_iter); in io_sendmsg() [all …]
|
/Linux-v6.1/tools/testing/selftests/livepatch/ |
D | test-livepatch.sh | 58 grep 'live patched' /proc/cmdline > /dev/kmsg 59 grep 'live patched' /proc/meminfo > /dev/kmsg 63 grep 'live patched' /proc/cmdline > /dev/kmsg 64 grep 'live patched' /proc/meminfo > /dev/kmsg 69 grep 'live patched' /proc/cmdline > /dev/kmsg 70 grep 'live patched' /proc/meminfo > /dev/kmsg 75 grep 'live patched' /proc/cmdline > /dev/kmsg 76 grep 'live patched' /proc/meminfo > /dev/kmsg 119 grep 'live patched' /proc/cmdline > /dev/kmsg 120 grep 'live patched' /proc/meminfo > /dev/kmsg [all …]
|
D | functions.sh | 17 echo "$1" > /dev/kmsg 90 echo "livepatch: $err" | sed 's#/proc/sys/kernel/#kernel.#' > /dev/kmsg 97 echo "livepatch: kernel.ftrace_enabled = $result" > /dev/kmsg
|
/Linux-v6.1/Documentation/ABI/testing/ |
D | dev-kmsg | 1 What: /dev/kmsg 5 Description: The /dev/kmsg character device node provides userspace access 116 the console, /proc/kmsg or the syslog() syscall. 121 disabled and /dev/kmsg output will contain more fragments. If 124 may be removed entirely and /dev/kmsg users are recommended to
|
/Linux-v6.1/Documentation/devicetree/bindings/reserved-memory/ |
D | ramoops.yaml | 46 description: maximum size in bytes of each kmsg dump 81 If present, sets maximum type of kmsg dump reasons to store. 82 This can be set to INT_MAX to store all kmsg dumps. 83 See include/linux/kmsg_dump.h KMSG_DUMP_* for other kmsg dump reason values.
|
/Linux-v6.1/fs/pstore/ |
D | Kconfig | 216 int "Size in Kbytes of kmsg dump log to store" 220 This just sets size of kmsg dump (oops, panic, etc) log for 227 int "Maximum kmsg dump reason to store" 231 The maximum reason for kmsg dumps to store. The default is
|
D | zone.c | 42 * struct psz_kmsg_header - kmsg dump-specific header to flush to storage 44 * @magic: magic num for kmsg dump header 45 * @time: kmsg dump trigger time 47 * @counter: kmsg dump counter 48 * @reason: the kmsg dump reason (e.g. oops, panic, etc) 51 * This is a sub-header for a kmsg dump, trailing after &psz_buffer. 92 * @kpszs: kmsg dump storage zones 97 * @kmsg_read_cnt: counter of total read kmsg dumps 98 * @kmsg_write_cnt: counter of total kmsg dump writes 407 pr_debug("no valid data in kmsg dump zone %lu\n", i); in psz_kmsg_recover_meta() [all …]
|
D | blk.c | 24 MODULE_PARM_DESC(kmsg_size, "kmsg dump record size in kbytes"); 29 "maximum reason for kmsg dump (default 2: Oops and Panic)");
|
/Linux-v6.1/include/linux/ |
D | pstore_blk.h | 31 * @max_reason: Maximum kmsg dump reason to store to block device 32 * @kmsg_size: Total size of for kmsg dumps
|
D | pstore_zone.h | 20 * @max_reason: Maximum kmsg dump reason to store.
|
/Linux-v6.1/fs/proc/ |
D | kmsg.c | 3 * linux/fs/proc/kmsg.c 60 proc_create("kmsg", S_IRUSR, NULL, &kmsg_proc_ops); in proc_kmsg_init()
|
D | Makefile | 34 proc-$(CONFIG_PRINTK) += kmsg.o
|
/Linux-v6.1/tools/testing/selftests/ |
D | run_kselftest.sh | 90 [ -w /dev/kmsg ] && echo "kselftest: Running tests in $collection" >> /dev/kmsg
|
/Linux-v6.1/net/batman-adv/ |
D | log.h | 116 * batadv_info() - Store message in debug buffer and print it to kmsg buffer 130 * batadv_err() - Store error in debug buffer and print it to kmsg buffer
|
/Linux-v6.1/tools/testing/selftests/wireguard/qemu/ |
D | init.c | 134 file = fopen("/proc/kmsg", "r"); in kmod_selftests() 136 panic("fopen(kmsg)"); in kmod_selftests() 138 panic("fcntl(kmsg, nonblock)"); in kmod_selftests()
|
/Linux-v6.1/arch/powerpc/platforms/powernv/ |
D | opal-kmsg.c | 3 * kmsg dumper that ensures the OPAL console fully flushes panic messages
|
D | Makefile | 15 obj-y += opal-kmsg.o opal-powercap.o opal-psr.o opal-sensor-groups.o
|
/Linux-v6.1/arch/um/kernel/ |
D | kmsg_dump.c | 20 /* only dump kmsg when no console is available */ in kmsg_dumper_stdout()
|
/Linux-v6.1/net/bpfilter/ |
D | main.c | 58 debug_f = fopen("/dev/kmsg", "w"); in main()
|
/Linux-v6.1/kernel/printk/ |
D | printk.c | 347 * /dev/kmsg exports the structured data in the following line format: 364 /* the next printk record to read by syslog(READ) or /proc/kmsg */ 521 * If this is from /proc/kmsg and we've already opened it, then we've in check_syslog_permissions() 630 /* /dev/kmsg - userspace message inject/listen interface */ 810 * like issued by 'dmesg -c'. Reading /dev/kmsg itself in devkmsg_llseek() 1737 * Short-cut for poll(/"proc/kmsg") which simply checks in do_syslog() 3597 * kmsg_dump_unregister - unregister a kmsg dumper. 3646 * retrieve the kmsg records with kmsg_dump_get_line() or 3675 * kmsg_dump_get_line - retrieve one kmsg log line 3676 * @iter: kmsg dump iterator [all …]
|
/Linux-v6.1/include/net/ |
D | compat.h | 49 int __get_compat_msghdr(struct msghdr *kmsg, struct compat_msghdr *msg,
|
/Linux-v6.1/arch/m68k/tools/amiga/ |
D | dmesg.c | 30 #define SAVEKMSG_MAGIC2 0x4B4D5347 /* 'KMSG' */
|
/Linux-v6.1/tools/testing/selftests/powerpc/scripts/ |
D | hmi.sh | 59 echo "Injecting HMI on core $core, chip $chip" | tee /dev/kmsg
|