[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1398609395.1689.17.camel@leonhard>
Date: Sun, 27 Apr 2014 23:36:35 +0900
From: Namhyung Kim <namhyung@...nel.org>
To: Jiri Olsa <jolsa@...hat.com>
Cc: linux-kernel@...r.kernel.org,
Corey Ashford <cjashfor@...ux.vnet.ibm.com>,
David Ahern <dsahern@...il.com>,
Frederic Weisbecker <fweisbec@...il.com>,
Ingo Molnar <mingo@...nel.org>,
Paul Mackerras <paulus@...ba.org>,
Peter Zijlstra <a.p.zijlstra@...llo.nl>,
Arnaldo Carvalho de Melo <acme@...nel.org>,
Jean Pihet <jean.pihet@...aro.org>
Subject: Re: [PATCH 2/3] perf tools: Cache dso data file descriptor
2014-04-17 (목), 19:39 +0200, Jiri Olsa:
> Keeping the data file description open for the whole life
> of the dso object.
I suspect there might be an issue for reporting very large data file
with this approach - like open file limit?
[SNIP]
> @@ -168,8 +174,8 @@ int dso__data_fd(struct dso *dso, struct machine *machine)
> };
> int i = 0;
>
> - if (dso->binary_type != DSO_BINARY_TYPE__NOT_FOUND)
> - return open_dso(dso, machine);
Why did you remove this line?
Thanks,
Namhyung
> + if (dso->data_fd >= 0)
> + return dso->data_fd;
>
> do {
> int fd;
> @@ -178,7 +184,7 @@ int dso__data_fd(struct dso *dso, struct machine *machine)
>
> fd = open_dso(dso, machine);
> if (fd >= 0)
> - return fd;
> + return dso->data_fd = fd;
>
> } while (dso->binary_type != DSO_BINARY_TYPE__NOT_FOUND);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists