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