lkml.org 
[lkml]   [2018]   [Feb]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 5/9] perf utils: add support for arch standard events
On Wed, Feb 07, 2018 at 01:45:00AM +0800, John Garry wrote:

SNIP

> @@ -940,6 +1090,7 @@ int main(int argc, char *argv[])
> const char *output_file;
> const char *start_dirname;
> struct stat stbuf;
> + struct event_struct *es1, *es2;
>
> prog = basename(argv[0]);
> if (argc < 4) {
> @@ -984,17 +1135,28 @@ int main(int argc, char *argv[])
>
> maxfds = get_maxfds();
> mapfile = NULL;
> + rc = nftw(ldirname, preprocess_arch_std_files, get_maxfds(), 0);

you could use maxfds variable in here

jirka

\
 
 \ /
  Last update: 2018-02-08 14:55    [W:0.083 / U:2.488 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site