|
@@ -151,7 +151,6 @@ static int event__synthesize_mmap_events(pid_t pid, pid_t tgid,
|
|
continue;
|
|
continue;
|
|
pbf += n + 3;
|
|
pbf += n + 3;
|
|
if (*pbf == 'x') { /* vm_exec */
|
|
if (*pbf == 'x') { /* vm_exec */
|
|
- u64 vm_pgoff;
|
|
|
|
char *execname = strchr(bf, '/');
|
|
char *execname = strchr(bf, '/');
|
|
|
|
|
|
/* Catch VDSO */
|
|
/* Catch VDSO */
|
|
@@ -162,12 +161,7 @@ static int event__synthesize_mmap_events(pid_t pid, pid_t tgid,
|
|
continue;
|
|
continue;
|
|
|
|
|
|
pbf += 3;
|
|
pbf += 3;
|
|
- n = hex2u64(pbf, &vm_pgoff);
|
|
|
|
- /* pgoff is in bytes, not pages */
|
|
|
|
- if (n >= 0)
|
|
|
|
- ev.mmap.pgoff = vm_pgoff << getpagesize();
|
|
|
|
- else
|
|
|
|
- ev.mmap.pgoff = 0;
|
|
|
|
|
|
+ n = hex2u64(pbf, &ev.mmap.pgoff);
|
|
|
|
|
|
size = strlen(execname);
|
|
size = strlen(execname);
|
|
execname[size - 1] = '\0'; /* Remove \n */
|
|
execname[size - 1] = '\0'; /* Remove \n */
|