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