Home
last modified time | relevance | path

Searched full:kmsg (Results 1 – 25 of 118) sorted by relevance

12345

/kernel/linux/linux-6.6/net/
Dcompat.c36 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 …]
/kernel/linux/linux-5.10/net/
Dcompat.c36 int __get_compat_msghdr(struct msghdr *kmsg, in __get_compat_msghdr() argument
47 kmsg->msg_flags = msg.msg_flags; in __get_compat_msghdr()
48 kmsg->msg_namelen = msg.msg_namelen; in __get_compat_msghdr()
51 kmsg->msg_namelen = 0; in __get_compat_msghdr()
53 if (kmsg->msg_namelen < 0) in __get_compat_msghdr()
56 if (kmsg->msg_namelen > sizeof(struct sockaddr_storage)) in __get_compat_msghdr()
57 kmsg->msg_namelen = sizeof(struct sockaddr_storage); in __get_compat_msghdr()
59 kmsg->msg_control_is_user = true; in __get_compat_msghdr()
60 kmsg->msg_control_user = compat_ptr(msg.msg_control); in __get_compat_msghdr()
61 kmsg->msg_controllen = msg.msg_controllen; in __get_compat_msghdr()
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/livepatch/
Dtest-livepatch.sh58 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 …]
/kernel/linux/linux-6.6/tools/testing/selftests/livepatch/
Dtest-livepatch.sh58 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 …]
Dfunctions.sh17 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
/kernel/linux/linux-6.6/io_uring/
Dnet.c178 struct io_async_msghdr *kmsg, in io_setup_async_msg() argument
187 kfree(kmsg->free_iov); in io_setup_async_msg()
191 memcpy(async_msg, kmsg, sizeof(*kmsg)); in io_setup_async_msg()
199 if (iter_is_iovec(&kmsg->msg.msg_iter) && !kmsg->free_iov) { in io_setup_async_msg()
200 size_t fast_idx = iter_iov(&kmsg->msg.msg_iter) - kmsg->fast_iov; in io_setup_async_msg()
406 struct io_async_msghdr iomsg, *kmsg; in io_sendmsg() local
417 kmsg = req->async_data; in io_sendmsg()
418 kmsg->msg.msg_control_user = sr->msg_control; in io_sendmsg()
423 kmsg = &iomsg; in io_sendmsg()
428 return io_setup_async_msg(req, kmsg, issue_flags); in io_sendmsg()
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/reserved-memory/
Dramoops.txt33 - record-size: maximum size in bytes of each kmsg dump.
48 - max-reason: if present, sets maximum type of kmsg dump reasons to store
50 store all kmsg dumps. See include/linux/kmsg_dump.h KMSG_DUMP_* for other
51 kmsg dump reason values. Setting this to 0 (KMSG_DUMP_UNDEF), means the
/kernel/linux/linux-5.10/Documentation/ABI/testing/
Ddev-kmsg1 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
/kernel/linux/linux-6.6/Documentation/ABI/testing/
Ddev-kmsg1 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
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/reserved-memory/
Dramoops.yaml46 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.
/kernel/linux/linux-6.6/drivers/hv/
Dhv_common.c138 * sysctl option to allow the user to control whether kmsg data should be
168 * kmsg dumper is used [see hv_kmsg_dump()], which provides more
194 * be calling hv_kmsg_dump() later with kmsg data, don't do the in hv_die_panic_notify_crash()
204 * Callback from kmsg_dump. Grab as much as possible from the end of the kmsg
273 pr_err("Hyper-V: kmsg dump register error 0x%x\n", ret); in hv_kmsg_dump_register()
287 * Hyper-V expects to get crash register data or kmsg when in hv_common_init()
311 * Register for panic kmsg callback only if the right in hv_common_init()
/kernel/linux/linux-5.10/fs/pstore/
DKconfig222 int "Size in Kbytes of kmsg dump log to store"
226 This just sets size of kmsg dump (oops, panic, etc) log for
233 int "Maximum kmsg dump reason to store"
237 The maximum reason for kmsg dumps to store. The default is
Dzone.c42 * 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
98 * @kmsg_read_cnt: counter of total read kmsg dumps
99 * @kmsg_write_cnt: counter of total kmsg dump writes
413 pr_debug("no valid data in kmsg dump zone %lu\n", i); in psz_kmsg_recover_meta()
[all …]
/kernel/linux/linux-6.6/fs/pstore/
DKconfig177 int "Size in Kbytes of kmsg dump log to store"
181 This just sets size of kmsg dump (oops, panic, etc) log for
188 int "Maximum kmsg dump reason to store"
192 The maximum reason for kmsg dumps to store. The default is
Dzone.c42 * 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 …]
/kernel/linux/linux-6.6/include/linux/
Dpstore_blk.h31 * @max_reason: Maximum kmsg dump reason to store to block device
32 * @kmsg_size: Total size of for kmsg dumps
/kernel/linux/linux-6.6/fs/proc/
Dkmsg.c3 * linux/fs/proc/kmsg.c
60 proc_create("kmsg", S_IRUSR, NULL, &kmsg_proc_ops); in proc_kmsg_init()
/kernel/linux/linux-5.10/fs/proc/
Dkmsg.c3 * linux/fs/proc/kmsg.c
63 proc_create("kmsg", S_IRUSR, NULL, &kmsg_proc_ops); in proc_kmsg_init()
/kernel/linux/linux-5.10/tools/testing/selftests/
Drun_kselftest.sh90 [ -w /dev/kmsg ] && echo "kselftest: Running tests in $collection" >> /dev/kmsg
/kernel/linux/linux-6.6/tools/testing/selftests/
Drun_kselftest.sh95 [ -w /dev/kmsg ] && echo "kselftest: Running tests in $collection" >> /dev/kmsg
/kernel/linux/linux-5.10/kernel/printk/
Dprintk.c344 * /dev/kmsg exports the structured data in the following line format:
361 * The logbuf_lock protects kmsg buffer, indices, counters. This can be taken
397 /* the next printk record to read by syslog(READ) or /proc/kmsg */
559 * If this is from /proc/kmsg and we've already opened it, then we've in check_syslog_permissions()
668 /* /dev/kmsg - userspace message inject/listen interface */
845 * like issued by 'dmesg -c'. Reading /dev/kmsg itself in devkmsg_llseek()
1695 * Short-cut for poll(/"proc/kmsg") which simply checks in do_syslog()
2051 * /dev/kmsg and syslog() users. in vprintk_emit()
2423 * If there is output waiting, we wake /dev/kmsg and syslog() users.
3182 * kmsg_dump_unregister - unregister a kmsg dumper.
[all …]
/kernel/linux/linux-5.10/include/linux/
Dpstore_blk.h94 * @max_reason: Maximum kmsg dump reason to store to block device
95 * @kmsg_size: Total size of for kmsg dumps
/kernel/linux/linux-6.6/net/batman-adv/
Dlog.h116 * 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
/kernel/linux/linux-5.10/net/batman-adv/
Dlog.h116 * 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
/kernel/linux/linux-6.6/tools/testing/selftests/wireguard/qemu/
Dinit.c134 file = fopen("/proc/kmsg", "r"); in kmod_selftests()
136 panic("fopen(kmsg)"); in kmod_selftests()
138 panic("fcntl(kmsg, nonblock)"); in kmod_selftests()

12345