lkml.org 
[lkml]   [2009]   [Feb]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 04/15] ftrace: break up ftrace_match_records into smaller components

* Steven Rostedt <rostedt@goodmis.org> wrote:

> +static void ftrace_match_records(char *buff, int len, int enable)
> +{
> + char *search;
> + struct ftrace_page *pg;
> + struct dyn_ftrace *rec;
> + int type;
> + unsigned long flag = enable ? FTRACE_FL_FILTER : FTRACE_FL_NOTRACE;
> + unsigned search_len;
> + int not;

Small style nit, the above looks better as:

> + unsigned int search_len;
> + struct ftrace_page *pg;
> + struct dyn_ftrace *rec;
> + unsigned long flag;
> + char *search;
> + int type;
> + int not;
> +
> + flag = enable ? FTRACE_FL_FILTER : FTRACE_FL_NOTRACE;

and this is what we do in other places of the tracing code.

(Also note the change of 'unsigned search_len' to 'unsigned int
search_len'.)

Ingo


\
 
 \ /
  Last update: 2009-02-18 12:23    [W:0.153 / U:2.640 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site