diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-09-11 16:22:43 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-09-11 16:22:43 -0400 |
commit | 4f0ac854167846bd55cd81dbc9a36e03708aa01c (patch) | |
tree | 0eb34d18a667f8e68ad9255f791560b028fed2a6 /tools/perf/util/run-command.c | |
parent | b9356c53ba2f593081e5aa45eb67adcce243d1c0 (diff) | |
parent | 6b58e7f146f8d79c08f62087f928e1f01747de71 (diff) |
Merge branch 'perfcounters-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'perfcounters-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: (60 commits)
perf tools: Avoid unnecessary work in directory lookups
perf stat: Clean up statistics calculations a bit more
perf stat: More advanced variance computation
perf stat: Use stddev_mean in stead of stddev
perf stat: Remove the limit on repeat
perf stat: Change noise calculation to use stddev
x86, perf_counter, bts: Do not allow kernel BTS tracing for now
x86, perf_counter, bts: Correct pointer-to-u64 casts
x86, perf_counter, bts: Fail if BTS is not available
perf_counter: Fix output-sharing error path
perf trace: Fix read_string()
perf trace: Print out in nanoseconds
perf tools: Seek to the end of the header area
perf trace: Fix parsing of perf.data
perf trace: Sample timestamps as well
perf_counter: Introduce new (non-)paranoia level to allow raw tracepoint access
perf trace: Sample the CPU too
perf tools: Work around strict aliasing related warnings
perf tools: Clean up warnings list in the Makefile
perf tools: Complete support for dynamic strings
...
Diffstat (limited to 'tools/perf/util/run-command.c')
-rw-r--r-- | tools/perf/util/run-command.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/perf/util/run-command.c b/tools/perf/util/run-command.c index a3935343091a..2b615acf94d7 100644 --- a/tools/perf/util/run-command.c +++ b/tools/perf/util/run-command.c | |||
@@ -262,7 +262,7 @@ int run_hook(const char *index_file, const char *name, ...) | |||
262 | { | 262 | { |
263 | struct child_process hook; | 263 | struct child_process hook; |
264 | const char **argv = NULL, *env[2]; | 264 | const char **argv = NULL, *env[2]; |
265 | char index[PATH_MAX]; | 265 | char idx[PATH_MAX]; |
266 | va_list args; | 266 | va_list args; |
267 | int ret; | 267 | int ret; |
268 | size_t i = 0, alloc = 0; | 268 | size_t i = 0, alloc = 0; |
@@ -284,8 +284,8 @@ int run_hook(const char *index_file, const char *name, ...) | |||
284 | hook.no_stdin = 1; | 284 | hook.no_stdin = 1; |
285 | hook.stdout_to_stderr = 1; | 285 | hook.stdout_to_stderr = 1; |
286 | if (index_file) { | 286 | if (index_file) { |
287 | snprintf(index, sizeof(index), "PERF_INDEX_FILE=%s", index_file); | 287 | snprintf(idx, sizeof(idx), "PERF_INDEX_FILE=%s", index_file); |
288 | env[0] = index; | 288 | env[0] = idx; |
289 | env[1] = NULL; | 289 | env[1] = NULL; |
290 | hook.env = env; | 290 | hook.env = env; |
291 | } | 291 | } |