|
From: Balaji I. <bri...@nc...> - 2003-11-03 08:46:33
|
Hello,
i am trying to modify cachgrind so it tells me the percentage of hits and
misses attributable to a particular address range. I went through the code
in cg_sim_gen.c and cg_main.c and have the following questions.
1. #define CACHESIM(L, MISS_TREATMENT)
this macro is defined in cg_sim_gen.c and I am not able to determine
where it is used
2. the function: void cachesim_##L##_doref(Addr a, UChar size, ULong* m1,
ULong *m2)
is defined as part of the above macro, how is the ##L## translated to _I1_
and _D1_
3. If I have to make cachegrind except more command line arguments such as
the starting address and range, wher would i make these changes.
4. Also what would help is a general description of the sequence in which the
functions are called, because at this point I am totally at bay and dont
quite understand what is happening where in the code.
5. Could somebody highlight a brief set of steps that is required to do this
sort of thing (seggregate cache misses/hits depending on the address space in
the memory )
thanks a bunch
regards
-Balaji.
Nicholas Nethercote wrote:
> On Tue, 28 Oct 2003, Balaji Rs Iyengar wrote:
>
> > is there a way to seggregate cache misses/hits depending on the address
> > space in the memory i.e given an address range what percentage of cache
> > misses/hits are attributable to this address range.
>
> No, but it wouldn't be too hard to augment Cachegrind with another data
> structure to do this. The cache simulation stuff is in
> cachegrind/cg_sim_gen.c, and shouldn't be too hard to understand.
>
> N
|