lkml.org 
[lkml]   [2009]   [Apr]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] tracing/lockdep: turn lock->name into an array

* Frederic Weisbecker <fweisbec@gmail.com> wrote:

> TP_STRUCT__entry(
> - __field(const char *, name)
> + __array(char, name, LOCK_NAME_SIZE)
> __field(unsigned long, wait_usec)
> __field(unsigned long, wait_nsec_rem)
> ),

Hm. These constants tend to grow - 25 will certainly be too narrow.
But increasing it increases the record size as well.

I think we'll need an embedded __string() type, with a length field
(but still also zero-delimited, for convenience), hm?

Ingo


\
 
 \ /
  Last update: 2009-04-14 01:03    [W:0.739 / U:0.168 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site