Hello community, here is the log from the commit of package libpfm checked in at Fri Apr 20 15:57:30 CEST 2007. -------- --- arch/ia64/libpfm/libpfm.changes 2007-03-31 15:45:03.000000000 +0200 +++ /mounts/work_src_done/STABLE/libpfm/libpfm.changes 2007-04-20 13:46:24.000000000 +0200 @@ -1,0 +2,5 @@ +Fri Apr 20 13:45:59 CEST 2007 - schwab@suse.de + +- Fix missing event labels [#266376]. + +------------------------------------------------------------------- New: ---- pfm-find-event-byname.diff ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libpfm.spec ++++++ --- /var/tmp/diff_new_pack.a13872/_old 2007-04-20 15:56:57.000000000 +0200 +++ /var/tmp/diff_new_pack.a13872/_new 2007-04-20 15:56:57.000000000 +0200 @@ -14,7 +14,7 @@ BuildRequires: libelf ncurses-devel Summary: Linux Performance Library Version: 3.2_070206 -Release: 5 +Release: 7 %define libpfm_version %(echo %version | sed s/_/-/g) Group: Development/Tools/Debuggers License: X11/MIT @@ -24,6 +24,7 @@ Obsoletes: pfmon-devel %endif Source: libpfm-%{libpfm_version}.tar.gz +Patch: pfm-find-event-byname.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build ExclusiveArch: ia64 %ix86 x86_64 @@ -40,6 +41,7 @@ %prep %setup -q -n %{name}-%{libpfm_version} +%patch %build make OPTIM="$RPM_OPT_FLAGS" @@ -68,6 +70,8 @@ %{_docdir}/%{name} %changelog +* Fri Apr 20 2007 - schwab@suse.de +- Fix missing event labels [#266376]. * Sat Mar 31 2007 - schwab@suse.de - Add ncurses-devel to BuildRequires. * Fri Mar 02 2007 - schwab@suse.de ++++++ pfm-find-event-byname.diff ++++++ --- lib/pfmlib_common.c +++ lib/pfmlib_common.c @@ -229,7 +229,7 @@ int pfm_find_event_byname(const char *n, unsigned int *idx) { - char *p; + char *p, *e; unsigned int i; size_t len; @@ -250,7 +250,8 @@ /* we do case insensitive comparisons */ for(i=0; i < pfm_current->pme_count; i++) { - if (!strncasecmp(pfm_current->get_event_name(i), n, len)) goto found; + e = pfm_current->get_event_name(i); + if (!strncasecmp(e, n, len) && e[len] == 0) goto found; } return PFMLIB_ERR_NOTFOUND; found: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org