"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "stress-uprobe.c" between
stress-ng-0.13.04.tar.xz and stress-ng-0.13.05.tar.xz

About: stress-ng will stress test a computer system in various selectable ways. It was designed to exercise various physical subsystems of a computer as well as the various operating system kernel interfaces.

stress-uprobe.c  (stress-ng-0.13.04.tar.xz):stress-uprobe.c  (stress-ng-0.13.05.tar.xz)
skipping to change at line 102 skipping to change at line 102
while (fgets(buf, sizeof(buf), fp)) { while (fgets(buf, sizeof(buf), fp)) {
int n; int n;
n = sscanf(buf, "%" SCNx64 "-%" SCNx64 "%4s %" SCNx64 " %" SCNx64 n = sscanf(buf, "%" SCNx64 "-%" SCNx64 "%4s %" SCNx64 " %" SCNx64
":%" SCNx64 " %" SCNu64 "%" X_STR(PATH_MAX) "s\n", ":%" SCNx64 " %" SCNu64 "%" X_STR(PATH_MAX) "s\n",
&start, &end, perm, &offset, &dev_major, &dev_minor, &start, &end, perm, &offset, &dev_major, &dev_minor,
&inode, libc_path); &inode, libc_path);
/* /*
* name *libc-*.so found? * name /libc-*.so or /libc.so found?
*/ */
if ((n == 8) && strstr(libc_path, "/libc-") && if ((n == 8) && !strncmp(perm, "r-xp", 4) &&
strstr(libc_path, ".so") && !strncmp(perm, "r-xp", 4)) { strstr(libc_path, ".so")) {
addr = (void *)(intptr_t)(start - offset); if (strstr(libc_path, "/libc-") ||
break; strstr(libc_path, "/libc.so")) {
addr = (void *)(intptr_t)(start - offset);
break;
}
} }
} }
(void)fclose(fp); (void)fclose(fp);
return addr; return addr;
} }
/* /*
* stress_uprobe() * stress_uprobe()
* stress uprobe events * stress uprobe events
 End of changes. 2 change blocks. 
5 lines changed or deleted 8 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)