[GIT]: libpfm4 branch, master, updated. v4.2.0-23-g1eb41a9
Status: Beta
Brought to you by:
seranian
From: seranian <ser...@us...> - 2012-03-02 17:50:53
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "libpfm4". The branch, master has been updated via 1eb41a9a63803646aa746cc990d3ca7ada865c89 (commit) from 181247ed4bfb8a86ee8fb600cb9f8a4e34f6562d (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 1eb41a9a63803646aa746cc990d3ca7ada865c89 Author: Stephane Eranian <er...@gm...> Date: Fri Mar 2 18:50:21 2012 +0100 preserve perf_event_attr initialization across library calls Callers may have already initialized certain fields inside the perf_event_attr struct pass to pfm_get_os_event_encoding() for perf_event. For instance, the attr->size field. It is important that the library preserve this field. The caller and library may have different versions of that struct. The library may not use all the fields inside perf_event_attr and therefore those should not be destroyed. Signed-off-by: Stephane Eranian <er...@gm...> ----------------------------------------------------------------------- Summary of changes: docs/man3/pfm_get_os_event_encoding.3 | 3 +- lib/pfmlib_perf_event.c | 59 +++++++++++++++++++++++++-------- perf_examples/perf_util.c | 5 ++- 3 files changed, 50 insertions(+), 17 deletions(-) hooks/post-receive -- libpfm4 |