Blame SOURCES/procps-ng-3.3.10-ps-full-wchan-name.patch

6909f1
diff -up ./proc/ksym.c.ori ./proc/ksym.c
6909f1
--- ./proc/ksym.c.ori	2006-06-25 08:57:18.000000000 +0200
6909f1
+++ ./proc/ksym.c	2016-11-16 13:34:31.902836748 +0100
6909f1
@@ -567,11 +567,7 @@ static const char * read_wchan_file(unsi
6909f1
 
6909f1
   // lame ppc64 has a '.' in front of every name
6909f1
   if(*ret=='.') ret++;
6909f1
-  switch(*ret){
6909f1
-    case 's': if(!strncmp(ret, "sys_", 4)) ret += 4;   break;
6909f1
-    case 'd': if(!strncmp(ret, "do_",  3)) ret += 3;   break;
6909f1
-    case '_': while(*ret=='_') ret++;                  break;
6909f1
-  }
6909f1
+  while(*ret=='_') ret++; 
6909f1
   return ret;
6909f1
 }
6909f1
 
6909f1
@@ -616,11 +612,7 @@ const char * lookup_wchan(unsigned KLONG
6909f1
   ret = good_symb->name;
6909f1
   // lame ppc64 has a '.' in front of every name
6909f1
   if(*ret=='.') ret++;
6909f1
-  switch(*ret){
6909f1
-    case 's': if(!strncmp(ret, "sys_", 4)) ret += 4;   break;
6909f1
-    case 'd': if(!strncmp(ret, "do_",  3)) ret += 3;   break;
6909f1
-    case '_': while(*ret=='_') ret++;                  break;
6909f1
-  }
6909f1
+  while(*ret=='_') ret++;
6909f1
   /* if(!*ret) ret = fail.name; */  /* not likely (name was "sys_", etc.) */
6909f1
 
6909f1
   /* cache name after abbreviation */