library: don't strip off prefixes from the wchan names
This commit will resolve the RedHat Bugzilla #1322111. [ import from identical commit against master branch ] [ but without trailing whitespace, thank you so much ] Imported by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
@ -46,11 +46,7 @@ const char * lookup_wchan (int pid) {
|
||||
|
||||
// lame ppc64 has a '.' in front of every name
|
||||
if (*ret=='.') ret++;
|
||||
switch (*ret){
|
||||
case 's': if(!strncmp(ret, "sys_", 4)) ret += 4; break;
|
||||
case 'd': if(!strncmp(ret, "do_", 3)) ret += 3; break;
|
||||
case '_': while(*ret=='_') ret++; break;
|
||||
default : break;
|
||||
}
|
||||
while(*ret=='_') ret++;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
Reference in New Issue
Block a user