Home
last modified time | relevance | path

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

123

/linux/io_uring/
H A Dnet.c161 static void io_netmsg_iovec_free(struct io_async_msghdr *kmsg) in io_netmsg_iovec_free()
163 if (kmsg->vec.iovec) in io_netmsg_iovec_free()
164 io_vec_free(&kmsg->vec); in io_netmsg_iovec_free()
202 struct io_async_msghdr *kmsg) in io_mshot_prep_retry()
353 struct io_async_msghdr *kmsg = req->async_data; in io_send_setup()
363 kmsg->msg.msg_name = NULL; in io_send_setup()
364 kmsg->msg.msg_namelen = 0; in io_send_setup()
365 kmsg->msg.msg_control = NULL; in io_send_setup()
366 kmsg->msg.msg_controllen = 0; in io_send_setup()
367 kmsg in io_send_setup()
160 io_netmsg_iovec_free(struct io_async_msghdr * kmsg) io_netmsg_iovec_free() argument
203 io_mshot_prep_retry(struct io_kiocb * req,struct io_async_msghdr * kmsg) io_mshot_prep_retry() argument
354 struct io_async_msghdr *kmsg = req->async_data; io_send_setup() local
395 struct io_async_msghdr *kmsg = req->async_data; io_sendmsg_setup() local
466 io_bundle_nbufs(struct io_async_msghdr * kmsg,int ret) io_bundle_nbufs() argument
498 io_net_kbuf_recyle(struct io_kiocb * req,struct io_async_msghdr * kmsg,int len) io_net_kbuf_recyle() argument
507 io_send_finish(struct io_kiocb * req,int * ret,struct io_async_msghdr * kmsg,unsigned issue_flags) io_send_finish() argument
543 struct io_async_msghdr *kmsg = req->async_data; io_sendmsg() local
590 io_send_select_buffer(struct io_kiocb * req,unsigned int issue_flags,struct io_async_msghdr * kmsg) io_send_select_buffer() argument
641 struct io_async_msghdr *kmsg = req->async_data; io_send() local
750 struct io_async_msghdr *kmsg; io_recvmsg_prep_setup() local
850 io_recv_finish(struct io_kiocb * req,int * ret,struct io_async_msghdr * kmsg,bool mshot_finished,unsigned issue_flags) io_recv_finish() argument
932 io_recvmsg_prep_multishot(struct io_async_msghdr * kmsg,struct io_sr_msg * sr,void __user ** buf,size_t * len) io_recvmsg_prep_multishot() argument
963 io_recvmsg_multishot(struct socket * sock,struct io_sr_msg * io,struct io_async_msghdr * kmsg,unsigned int flags,bool * finished) io_recvmsg_multishot() argument
1019 struct io_async_msghdr *kmsg = req->async_data; io_recvmsg() local
1103 io_recv_buf_select(struct io_kiocb * req,struct io_async_msghdr * kmsg,size_t * len,unsigned int issue_flags) io_recv_buf_select() argument
1179 struct io_async_msghdr *kmsg = req->async_data; io_recv() local
1454 struct io_async_msghdr *kmsg = req->async_data; io_send_zc_import() local
1467 struct io_async_msghdr *kmsg = req->async_data; io_send_zc() local
1536 struct io_async_msghdr *kmsg = req->async_data; io_sendmsg_zc() local
1904 struct io_async_msghdr *kmsg = (struct io_async_msghdr *) entry; io_netmsg_cache_free() local
[all...]
/linux/net/
H A 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 …]
H A Dsocket.c2506 int __copy_msghdr(struct msghdr *kmsg, in __copy_msghdr()
2512 kmsg->msg_control_is_user = true; in __copy_msghdr()
2513 kmsg->msg_get_inq = 0; in __copy_msghdr()
2514 kmsg->msg_control_user = msg->msg_control; in __copy_msghdr()
2515 kmsg->msg_controllen = msg->msg_controllen; in __copy_msghdr()
2516 kmsg->msg_flags = msg->msg_flags; in __copy_msghdr()
2518 kmsg->msg_namelen = msg->msg_namelen; in __copy_msghdr()
2520 kmsg->msg_namelen = 0; in __copy_msghdr()
2522 if (kmsg->msg_namelen < 0) in __copy_msghdr()
2525 if (kmsg in __copy_msghdr()
2493 __copy_msghdr(struct msghdr * kmsg,struct user_msghdr * msg,struct sockaddr __user ** save_addr) __copy_msghdr() argument
2539 copy_msghdr_from_user(struct msghdr * kmsg,struct user_msghdr __user * umsg,struct sockaddr __user ** save_addr,struct iovec ** iov) copy_msghdr_from_user() argument
[all...]
/linux/tools/testing/selftests/livepatch/
H A Dtest-livepatch.sh60 grep 'live patched' /proc/cmdline > /dev/kmsg
61 grep 'live patched' /proc/meminfo > /dev/kmsg
65 grep 'live patched' /proc/cmdline > /dev/kmsg
66 grep 'live patched' /proc/meminfo > /dev/kmsg
71 grep 'live patched' /proc/cmdline > /dev/kmsg
72 grep 'live patched' /proc/meminfo > /dev/kmsg
77 grep 'live patched' /proc/cmdline > /dev/kmsg
78 grep 'live patched' /proc/meminfo > /dev/kmsg
124 grep 'live patched' /proc/cmdline > /dev/kmsg
125 grep 'live patched' /proc/meminfo > /dev/kmsg
[all …]
H A Dfunctions.sh21 echo "$1" > /dev/kmsg
113 echo "livepatch: $err" | sed 's#/proc/sys/kernel/#kernel.#' > /dev/kmsg
120 echo "livepatch: kernel.ftrace_enabled = $result" > /dev/kmsg
/linux/Documentation/ABI/testing/
H A 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
/linux/tools/testing/selftests/drivers/net/
H A Dnetpoll_basic.py56 # Number of writes to /dev/kmsg per iteration
309 with open("/dev/kmsg", "w", encoding="utf-8") as kmsg:
312 kmsg.write(f"{msg}-{j}\n")
314 # in some cases, kmsg can be busy, so, we will retry
318 logging.info("Failed to write to kmsg. Retrying")
322 f"Failed to write to kmsg: {exception}"
H A Dnetcons_fragmented_msg.sh24 # The content of kmsg will be save to the following file
105 echo "${MSG}: ${TARGET}" > /dev/kmsg
119 echo "${MSG}: ${TARGET}" > /dev/kmsg
H A Dnetcons_cmdline.sh39 # The content of kmsg will be save to the following file
51 echo "${MSG}: ${TARGET}" > /dev/kmsg
H A Dnetcons_basic.sh26 # The content of kmsg will be save to the following file
58 echo "${MSG}: ${TARGET}" > /dev/kmsg
/linux/Documentation/devicetree/bindings/reserved-memory/
H A 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.
/linux/tools/testing/selftests/devices/error_logs/
H A Dtest_device_error_logs.py25 kmsg = "/dev/kmsg" variable
41 with open(kmsg) as f:
/linux/drivers/gpu/drm/
H A DKconfig95 the user to reboot the system, or "kmsg" which will display the last
96 lines of kmsg.
107 code. The QR code will contain the last lines of kmsg and other debug
117 the QR code will contain the URL and the kmsg compressed with zlib as
118 a URL parameter. If it's empty, the QR code will contain the kmsg as
120 There is a demo code in javascript, to decode and uncompress the kmsg
/linux/fs/pstore/
H A DKconfig135 int "Size in Kbytes of kmsg dump log to store"
139 This just sets size of kmsg dump (oops, panic, etc) log for
146 int "Maximum kmsg dump reason to store"
150 The maximum reason for kmsg dumps to store. The default is
H A 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 …]
/linux/Documentation/networking/
H A Dnetconsole.rst202 echo "This is a message" > /dev/kmsg
226 echo "This is a message" > /dev/kmsg
268 echo "This is a message" > /dev/kmsg
289 echo "This is a message" > /dev/kmsg
320 echo "This is a message" > /dev/kmsg
367 echo "This is message #1" > /dev/kmsg
368 echo "This is message #2" > /dev/kmsg
385 following format which is the same as /dev/kmsg::
/linux/include/linux/
H A Dpstore_blk.h31 * @max_reason: Maximum kmsg dump reason to store to block device
32 * @kmsg_size: Total size of for kmsg dumps
/linux/fs/proc/
H A Dkmsg.c3 * linux/fs/proc/kmsg.c
60 proc_create("kmsg", S_IRUSR, NULL, &kmsg_proc_ops); in proc_kmsg_init()
H A DMakefile34 proc-$(CONFIG_PRINTK) += kmsg.o
/linux/drivers/hv/
H A Dhv_common.c118 * sysctl option to allow the user to control whether kmsg data should be
147 * kmsg dumper is used [see hv_kmsg_dump()], which provides more
173 * be calling hv_kmsg_dump() later with kmsg data, don't do the in hv_die_panic_notify_crash()
183 * Callback from kmsg_dump. Grab as much as possible from the end of the kmsg
252 pr_err("Hyper-V: kmsg dump register error 0x%x\n", ret); in hv_kmsg_dump_register()
329 * Hyper-V expects to get crash register data or kmsg when in hv_common_init()
353 * Register for panic kmsg callback only if the right in hv_common_init()
/linux/net/batman-adv/
H A Dlog.h113 * batadv_info() - Store message in debug buffer and print it to kmsg buffer
127 * batadv_err() - Store error in debug buffer and print it to kmsg buffer
/linux/tools/testing/selftests/wireguard/qemu/
H A 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()
/linux/arch/powerpc/platforms/powernv/
H A Dopal-kmsg.c3 * kmsg dumper that ensures the OPAL console fully flushes panic messages
/linux/arch/um/kernel/
H A Dkmsg_dump.c23 * the kmsg buffer to stdout. in kmsg_dumper_stdout()
/linux/include/net/
H A Dcompat.h49 int __get_compat_msghdr(struct msghdr *kmsg, struct compat_msghdr *msg,

123