]> git.baikalelectronics.ru Git - kernel.git/commit
perf evlist: Add perf_evlist__parse_sample_timestamp function
authorJiri Olsa <jolsa@kernel.org>
Thu, 3 Aug 2017 11:10:28 +0000 (13:10 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 16 Nov 2017 17:50:09 +0000 (14:50 -0300)
commitada7089ad3b671cb88f18edd00a678535839c57a
tree0ada746c3fb3579d5b2fe2abde4556ea2f8b39ab
parent95196b63971d3f4e3c41a1b095acc6cd61897f62
perf evlist: Add perf_evlist__parse_sample_timestamp function

Add perf_evlist__parse_sample_timestamp to retrieve the timestamp of the
sample.

The idea is to use this function instead of the full sample parsing
before we queue the sample. At that time only the timestamp is needed
and we parse the sample once again later on delivery.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-o7syqo8lipj4or7renpu8e8y@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/evlist.c
tools/perf/util/evlist.h
tools/perf/util/evsel.c
tools/perf/util/evsel.h