[lkml]   [2009]   [May]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 03/11] tracing: export stats of ring buffers to userspace

* Steven Rostedt <> wrote:

> From: Steven Rostedt <>
> This patch adds stats to the ftrace ring buffers:
> # cat /debugfs/tracing/per_cpu/cpu0/stats
> entries: 42360
> overrun: 30509326
> commit overrun: 0
> nmi dropped: 0
> Where entries are the total number of data entries in the buffer.
> overrun is the number of entries not consumed and were overwritten by
> the writer.
> commit overrun is the number of entries dropped due to nested writers
> wrapping the buffer before the initial writer finished the commit.
> nmi dropped is the number of entries dropped due to the ring buffer
> lock being held when an nmi was going to write to the ring buffer.
> Note, this field will be meaningless and will go away when the ring
> buffer becomes lockless.
> [ Impact: let userspace know what is happening in the ring buffers ]

nice! I was always wondering about these properties - Frederic
reported that we drop a lot of trace entries when filtering is
enabled, due to the rather stupid:


common sequence we do on heavily filtered input.


 \ /
  Last update: 2009-05-06 10:31    [W:0.088 / U:3.268 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site