Re: [PATCH v2 2/3] perf tools: Record sampling time for each entry

From: David Ahern
Date: Tue Dec 03 2013 - 11:20:32 EST


On 12/3/13, 2:00 AM, Namhyung Kim wrote:
diff --git a/tools/perf/util/evsel.h b/tools/perf/util/evsel.h
index 20a7c653b74b..ac65fc67972c 100644
--- a/tools/perf/util/evsel.h
+++ b/tools/perf/util/evsel.h
@@ -69,6 +69,7 @@ struct perf_evsel {
struct hists hists;
u64 first_timestamp;
u64 last_timestamp;
+ u64 *prev_timestamps;


Why plural and why dynamically allocated? The allocation only does a single u64, not an array.

David
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/