Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Diff of /pp_interface [19da09] .. [d7f07c] Maximize Restore

  Switch to unified view

a/pp_interface b/pp_interface
...
...
187
187
188
We need to encode a number of the above things in the filename.
188
We need to encode a number of the above things in the filename.
189
189
190
3.19 The format is
190
3.19 The format is
191
191
192
$SAMPLES_DIR/session/{root}/path/to/binary/event.count.unitmask.tgid.tid.cpu
192
$SAMPLES_DIR/session/{root}/path/to/binary/{dep}/{root}/path/to/binary/event.count.unitmask.tgid.tid.cpu
193
$SAMPLES_DIR/session/{root}/path/to/binary/{dep}/{root}/path/to/lib/event.count.unitmask.tgid.tid.cpu
193
$SAMPLES_DIR/session/{root}/path/to/binary/{dep}/{root}/path/to/lib/event.count.unitmask.tgid.tid.cpu
194
194
195
The latter is to be used when using --separate=lib (or with kernel, perhaps with {kern})
195
The latter is to be used when using --separate=lib (or with kernel, perhaps with {kern}). Note the former always encode the {dep} even not strictly needed,
196
a sample file is a dependant it's a cg file and {cg} part != {dep} part or
197
if {dep} is different 'first' part.
196
198
197
(in decimal where relevant) 
199
(in decimal where relevant) 
198
For example,
200
For example,
199
201
200
$SAMPLES_DIR/current/{root}/bin/ls/{dep}/{root}/lib/libc.so/CPU_CLK_UNHALTED.30000.0.434.434.0
202
$SAMPLES_DIR/current/{root}/bin/ls/{dep}/{root}/lib/libc.so/CPU_CLK_UNHALTED.30000.0.434.434.0
...
...
218
220
219
3.23 As well as "{root}" dir (representing the / fs), there is a "{kern}" dir,
221
3.23 As well as "{root}" dir (representing the / fs), there is a "{kern}" dir,
220
which will contain the 2.5 modules and the vmlinux file when profiling
222
which will contain the 2.5 modules and the vmlinux file when profiling
221
with --no-vmlinux,  e.g :
223
with --no-vmlinux,  e.g :
222
224
223
$SAMPLES_DIR/current/{kern}/oprofile/CPU_CLK_UNHALTED.30000.0.434.434.0
225
$SAMPLES_DIR/current/{kern}/oprofile/{dep}/{kern}/oprofile/CPU_CLK_UNHALTED.30000.0.434.434.0
224
$SAMPLES_DIR/current/{root}/bin/ls/{dep}/{kern}/oprofile/CPU_CLK_UNHALTED.30000.0.434.434.0
226
$SAMPLES_DIR/current/{root}/bin/ls/{dep}/{kern}/oprofile/CPU_CLK_UNHALTED.30000.0.434.434.0
225
227
226
  {kern} can be followed only by a single path component. The name following
228
  {kern} can be followed only by a single path component. The name following
227
a {kern} are first searched as it and, if not found, a second search is done
229
a {kern} are first searched as it and, if not found, a second search is done
228
with a ".ko" suffix. FIXME: must we special case vmlinux and always add a .ko
230
with a ".ko" suffix. FIXME: must we special case vmlinux and always add a .ko
...
...
232
  at a syntactic point of view i.e. we don't have to look for existing path
234
  at a syntactic point of view i.e. we don't have to look for existing path
233
  or file.
235
  or file.
234
236
235
3.25 To clarify things here are the four allowed form of samples filename
237
3.25 To clarify things here are the four allowed form of samples filename
236
238
237
{root}/path/to/bin/CPU_CLK_UNHALTED.100000.255.33.34.0
239
{root}/path/to/bin/{dep}/{root}/path/to/bin/CPU_CLK_UNHALTED.100000.255.33.34.0
238
{kern}/name/CPU_CLK_UNHALTED.100000.255.33.34.0
240
{kern}/name/{dep}/{kern}/name/CPU_CLK_UNHALTED.100000.255.33.34.0
239
{root}/path/to/bin/{dep}/{root}/path/to/lib/CPU_CLK_UNHALTED.100000.255.33.34.0
241
{root}/path/to/bin/{dep}/{root}/path/to/lib/CPU_CLK_UNHALTED.100000.255.33.34.0
240
{root}/path/to/bin/{dep}/{kern}/name/CPU_CLK_UNHALTED.100000.255.33.34.0
242
{root}/path/to/bin/{dep}/{kern}/name/CPU_CLK_UNHALTED.100000.255.33.34.0
241
243
242
Resolution algorithm
244
Resolution algorithm
243
--------------------
245
--------------------