The kernel ring buffer is also used for some events after the system is booted. These include certain program failures and hot-plug events.
在系统启动后,内核环缓冲区也可以用于一些事件,其中包括某些程序失败和热插拔事件。
Sometimes ring buffer logging can come to the rescue when other traditional logging methods fail.
有时,当其他传统的日志记录方法失败时,可以使用循环缓冲区日志记录。
Ring buffer logging consists of a fixed size of allocated memory buffer that is used by the process for logging.
循环缓冲区日志记录由一个固定大小的内存缓冲区构成,进程使用这个内存缓冲区进行日志记录。
This circular, in-memory buffer is known as ring buffer.
这个循环的、内存中的缓冲区称为循环缓冲区。
This command USES the klogctl system call to read the kernel ring buffer and emit it to standard output (stdout).
这个命令使用klogctl系统调用来读取内核环缓冲区,并将它转发到标准输出(stdout)。
You may display the kernel ring buffer using the dmesg command, which displays these messages on standard output.
可以使用dmesg命令显示内核环缓冲区,会在标准输出上显示这些消息。
dump ringbuffer -- to dump the trace ring buffer to a file.
dumpringbuffer——将跟踪的环形缓冲器放置到文件中。
The dmesg command can also be used to print and control the kernel ring buffer.
dmesg命令也可用于打印和控制内核环缓冲区。
Note that kernel output goes to the kernel ring buffer and not to stdout, because stdout is process specific.
注意,内核的输出进到了内核回环缓冲区中,而不是打印到stdout上,这是因为stdout是进程特有的环境。
The string passed into printk is then copied into the kernel log buffer using a special function that manages the bounds of the ring (emit_log_char).
这个字符串会被传递给printk,然后它会被一个管理缓冲边界(emit_log_char)的特殊函数复制到内核日志缓冲区中。
The KERN_INFO symbol is a string that you can use to filter information from entering the kernel ring buffer (much like syslog).
kern_info符号是一个字符串,可以用来对进入内核回环缓冲区的信息进行过滤(非常类似于syslog)。
Some commands (such as clearing the ring buffer) ignore the bufp and len arguments.
有一些命令(如清除环缓冲)是忽略bufp和len这两个参数的。
A ring buffer is a logging technique for applications whereby the relevant data to be logged is kept in memory instead of writing it to a file on a disk every time.
循环缓冲区是一种用于应用程序的日志记录技术,它可以将相关的数据保存在内存中,而不是每次都将其写入到磁盘上的文件中。
Listing 4 and Listing 5 show samples of writing the data to a ring buffer and dumping its contents to file.
清单4和清单5显示了对循环缓冲区写入数据并且将其内容转储到文件的示例。
This article discusses common implementations for ring buffer and proposes some ideas for enabling a ring buffer mechanism in multi-threaded programs.
本文讨论了循环缓冲区的一些常见实现,并对多线程程序中循环缓冲区的启用机制提出了一些观点。
Since you are overwriting the previous contents in a ring buffer, you lose data by doing so.
因为您覆盖了循环缓冲区中以前的内容,所以在完成该操作后,您将丢失以前的数据。
A ring buffer makes logging efficient by using memory operations in place of file operations.
通过使用内存操作代替文件操作,循环缓冲区使得日志记录的效率更高。
This section discusses some important points to consider when using a ring buffer to enable logging in a multi-threaded application.
这个部分介绍了在多线程应用程序中使用循环缓冲区启用日志记录时需要考虑的一些重要方面。
A ring buffer provides the following advantages over the traditional file logging mechanism.
与传统的文件日志记录机制相比,循环缓冲区提供了下列优势。
The Vickers commission recommended that systemically important Banks should set aside 10% of capital as a buffer against hard times and ring-fence their retail operations.
维氏委员会建议具有系统重要性的银行应留出10%的资本以应对低潮并限制其零售运营体系。
Figure 1 shows the states of a ring buffer when two entries of a log are written into it.
图1显示了将两个条目写入到循环缓冲区后该缓冲区的状态。
The size of the kernel ring buffer was originally 4kb but in recent kernels is sized at 16kb (and up to 1mb, depending on the architecture).
内核缓冲缓冲区的大小初始值为4kb,但是最新的内核大小已经升级到16 KB(在不同的体系架构上,这个值最高可以达到1mb)。
A message pipe is internally organized as a ring buffer, too.
消息管道内部也是组织成一个环形缓冲区。
Using a ring buffer in multi-threaded programs.
在多线程程序中使用循环缓冲区。
A data pipe is a memory, which is organized internally as a ring buffer.
数据管道本质是一个环形缓冲区结构的内存区。
A process in the wait state. A process waits on a ring buffer or semaphore, unable to change state and resume execution until the ring buffer or.
处于等待状态的一个进程,该进程在一个环形缓冲区或信号灯处等待,直到另一个进程发出释放。
In the communications program, frequently used as a ring buffer data structure to store communications to send and receive data.
在通信程序中,经常使用环形缓冲区作为数据结构来存放通信中发送和接收的数据。
Ring buffer is a FIFO buffer of the cycle can be provided to the communication program of the mutually exclusive access to the buffer zone.
环形缓冲区是一个先进先出的循环缓冲区,可以向通信程序提供对缓冲区的互斥访问。
The elastic protective ring has buffer action when the enamelware accidentally falls or crashes, so fragile enamel is prevented from stripping.
弹性保护圈逐起缓冲作用。避免了脆性搪瓷的剥离。
The elastic protective ring has buffer action when the enamelware accidentally falls or crashes, so fragile enamel is prevented from stripping.
弹性保护圈逐起缓冲作用。避免了脆性搪瓷的剥离。
应用推荐