gprofng: Add version symbols to libgprofng.ver
authorVladimir Mezentsev <vladimir.mezentsev@oracle.com>
Thu, 30 Mar 2023 03:13:14 +0000 (20:13 -0700)
committerVladimir Mezentsev <vladimir.mezentsev@oracle.com>
Thu, 30 Mar 2023 06:09:40 +0000 (23:09 -0700)
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.

gprofng/libcollector/libgprofng.ver
gprofng/libcollector/synctrace.c

index dbb3212aa1e35c8d00c69120f866a0873d560047..2433f15cf6afabf8dd447ed3ab091c5a14148e1f 100644 (file)
 
 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;
 
index 3d53d1fc8825f59142f2618db4e35d23b63a8780..a00691fd95863cb676d0b8152e56f8c82afcaa2a 100644 (file)
@@ -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 */