[lkml]   [2012]   [Jul]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 16/17] perf, tool: Add dso data caching
On Sun, Jul 22, 2012 at 02:14:39PM +0200, Jiri Olsa wrote:
> Adding dso data caching so we don't need to open/read/close,
> each time we want dso data.
> The DSO data caching affects following functions:
> dso__data_read_offset
> dso__data_read_addr
> Each DSO read tries to find the data (based on offset) inside
> the cache. If it's not present it fills the cache from file,
> and returns the data. If it is present, data are returned
> with no file read.
> Each data read is cached by reading cache page sized/aligned
> amount of DSO data. The cache page size is hardcoded to 4096.
> The cache is using RB tree with file offset as a sort key.
> Signed-off-by: Jiri Olsa <>

Nice idea.

> ---
> tools/perf/util/symbol.c | 154 ++++++++++++++++++++++++++++++++++++++++------

There seem to be an increasing need to move dso related things
to some util/dso.c file. Just suggesting.

 \ /
  Last update: 2012-07-25 20:01    [W:0.271 / U:7.960 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site