public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] gprofng: Add version symbols to libgprofng.ver
@ 2023-03-30  6:10 Vladimir Mezentsev
  0 siblings, 0 replies; only message in thread
From: Vladimir Mezentsev @ 2023-03-30  6:10 UTC (permalink / raw)
  To: bfd-cvs, gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=f2f9bde5cde7ff34ed0a4c4682a211d402aa1086

commit f2f9bde5cde7ff34ed0a4c4682a211d402aa1086
Author: Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
Date:   Wed Mar 29 20:13:14 2023 -0700

    gprofng: Add version symbols to libgprofng.ver
    
    gprofng/ChangeLog
    2023-03-29  Vladimir Mezentsev  <vladimir.mezentsev@oracle.com>
    
            PR gprofng/30089
            * libcollector/libgprofng.ver: Add version symbols.
            * libcollector/synctrace.c: Fix typo for pthread_mutex_lock.

Diff:
---
 gprofng/libcollector/libgprofng.ver | 98 ++++++++++++++++++++++---------------
 gprofng/libcollector/synctrace.c    |  6 +--
 2 files changed, 62 insertions(+), 42 deletions(-)

diff --git a/gprofng/libcollector/libgprofng.ver b/gprofng/libcollector/libgprofng.ver
index dbb3212aa1e..2433f15cf6a 100644
--- a/gprofng/libcollector/libgprofng.ver
+++ b/gprofng/libcollector/libgprofng.ver
@@ -20,54 +20,71 @@
 
 GLIBC_2.0 {
   global:
+    dlclose;
+    dlopen;
+    fclose;
+    fdopen;
+    fgetpos;
+    fopen;
+    fsetpos;
+    popen;
+    pthread_cond_timedwait;
+    pthread_cond_wait;
     pthread_create;
-    pthread_mutex_lock;
-    pthread_mutex_unlock;
+    pthread_join;
     pthread_sigmask;
-    popen;
+    sem_wait;
+    timer_create;
 };
 
 GLIBC_2.1 {
   global:
-    pthread_create;
+    dlopen;
+    fclose;
+    fdopen;
+    fgetpos64;
+    fopen;
+    fsetpos64;
     popen;
+    pthread_create;
+    sem_wait;
 } GLIBC_2.0;
 
 GLIBC_2.2 {
   global:
+    fgetpos;
+    fgetpos64;
+    fsetpos;
+    fsetpos64;
     open64;
     posix_spawn;
     posix_spawnp;
     pread;
-    pwrite;
-    pwrite64;
     timer_create;
-    fgetpos;
-    fsetpos;
-    fgetpos64;
-    fsetpos64;
 } GLIBC_2.1;
 
 GLIBC_2.2.5 {
   global:
-    posix_spawn;
-    posix_spawnp;
-    pthread_mutex_lock;
-    pthread_mutex_unlock;
-    pthread_sigmask;
-    pthread_join;			
-    sem_wait;		
-    pthread_create;
+    dlclose;
     dlopen;
-    popen;
-    timer_create;
-    pthread_cond_wait;		
-    pthread_cond_timedwait;
-    fopen;
     fclose;
     fdopen;
     fgetpos;
+    fgetpos64;
+    fopen;
     fsetpos;
+    fsetpos64;
+    popen;
+    posix_spawn;
+    posix_spawnp;
+    pthread_cond_timedwait;
+    pthread_cond_wait;
+    pthread_create;
+    pthread_join;
+    pthread_sigmask;
+    sem_wait;
+    timer_create;
+    timer_create;
 } GLIBC_2.2 ;
 
 GLIBC_2.3.2 {
@@ -89,24 +106,26 @@ GLIBC_2.15 {
 
 GLIBC_2.17 {
   global:
-    posix_spawn;
-    posix_spawnp;
-    pthread_mutex_lock;
-    pthread_mutex_unlock;
-    pthread_sigmask;
-    pthread_join;			
-    sem_wait;		
-    pthread_create;
+    dlclose;
     dlopen;
-    popen;
-    timer_create;
-    pthread_cond_wait;		
-    pthread_cond_timedwait;
-    fopen;
     fclose;
     fdopen;
     fgetpos;
+    fgetpos64;
+    fopen;
     fsetpos;
+    fsetpos64;
+    popen;
+    posix_spawn;
+    posix_spawnp;
+    pthread_cond_timedwait;
+    pthread_cond_wait;
+    pthread_create;
+    pthread_join;
+    pthread_sigmask;
+    sem_wait;
+    timer_create;
+    timer_create;
 } GLIBC_2.15;
 
 GLIBC_2.32 {
@@ -116,10 +135,11 @@ GLIBC_2.32 {
 
 GLIBC_2.34 {
   global:
-    pthread_join;	
-    sem_wait;
-    pthread_create;
+    dlclose;
     dlopen;
+    pthread_create;
+    pthread_join;
+    sem_wait;
     timer_create;
 } GLIBC_2.32;
 
diff --git a/gprofng/libcollector/synctrace.c b/gprofng/libcollector/synctrace.c
index 3d53d1fc882..a00691fd958 100644
--- a/gprofng/libcollector/synctrace.c
+++ b/gprofng/libcollector/synctrace.c
@@ -615,9 +615,9 @@ gprofng_pthread_mutex_lock (int (real_func) (pthread_mutex_t *),
     return gprofng_pthread_mutex_lock (real_f, mp); \
   }
 
-DCL_FUNC_VER (DCL_PTHREAD_MUTEX_LOCK, pthread_mutex_lock_2_17, timer_create@GLIBC_2.17)
-DCL_FUNC_VER (DCL_PTHREAD_MUTEX_LOCK, pthread_mutex_lock_2_2_5, timer_create@GLIBC_2.2.5)
-DCL_FUNC_VER (DCL_PTHREAD_MUTEX_LOCK, pthread_mutex_lock_2_0, timer_create@GLIBC_2.0)
+DCL_FUNC_VER (DCL_PTHREAD_MUTEX_LOCK, pthread_mutex_lock_2_17, pthread_mutex_lock@GLIBC_2.17)
+DCL_FUNC_VER (DCL_PTHREAD_MUTEX_LOCK, pthread_mutex_lock_2_2_5, pthread_mutex_lock@GLIBC_2.2.5)
+DCL_FUNC_VER (DCL_PTHREAD_MUTEX_LOCK, pthread_mutex_lock_2_0, pthread_mutex_lock@GLIBC_2.0)
 DCL_PTHREAD_MUTEX_LOCK (pthread_mutex_lock, CALL_REAL (pthread_mutex_lock))
 
 /*------------------------------------------------------------- pthread_cond_wait */

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-03-30  6:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-30  6:10 [binutils-gdb] gprofng: Add version symbols to libgprofng.ver Vladimir Mezentsev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).