|
@@ -2,7 +2,7 @@
|
|
#include <errno.h>
|
|
#include <errno.h>
|
|
#include <inttypes.h>
|
|
#include <inttypes.h>
|
|
#include <regex.h>
|
|
#include <regex.h>
|
|
-#include <sys/mman.h>
|
|
|
|
|
|
+#include <linux/mman.h>
|
|
#include "sort.h"
|
|
#include "sort.h"
|
|
#include "hist.h"
|
|
#include "hist.h"
|
|
#include "comm.h"
|
|
#include "comm.h"
|
|
@@ -1211,7 +1211,7 @@ static int hist_entry__dcacheline_snprintf(struct hist_entry *he, char *bf,
|
|
|
|
|
|
/* print [s] for shared data mmaps */
|
|
/* print [s] for shared data mmaps */
|
|
if ((he->cpumode != PERF_RECORD_MISC_KERNEL) &&
|
|
if ((he->cpumode != PERF_RECORD_MISC_KERNEL) &&
|
|
- map && (map->type == MAP__VARIABLE) &&
|
|
|
|
|
|
+ map && !(map->prot & PROT_EXEC) &&
|
|
(map->flags & MAP_SHARED) &&
|
|
(map->flags & MAP_SHARED) &&
|
|
(map->maj || map->min || map->ino ||
|
|
(map->maj || map->min || map->ino ||
|
|
map->ino_generation))
|
|
map->ino_generation))
|