Skip to content

Encountering problems during the build #1

@Niloss

Description

@Niloss

Hi !

I read your article (https://www.vusec.net/projects/drammer/) and wanted to see how was this Rowhammer simulator. ... but I got errors earlier than I thought.

Following the steps described in "How do I get setup ?", I thought my dependencies were ok, but when I launch :

$ make demo

I encountered the following error :

in hammertime/perfev-util :

gcc -std=gnu99 -Wall - Wpedantic -O2 -fPIC -c perfev.c

perferv.c : In function 'attach' :
perfev.c:45:62: 'PERF_FLAG_FD_CLOEXEC' undeclared (first use in this function)
((flags & PERFEV_FLAG_CLOEXEC) ? PERF_FLAG_FD_CLOEXEC : 0);

and I can't figure out what is wrong :

  • hammertime/perfev-util/perfev.h contains the line #include <linux/perf_event.h>
  • uname -r returns "4.4.0-31-generic", so it is greater than 3.18
  • and perfev.c:44 doen't raise an error with the use of PERF_FLAG_PID_CGROUP.

Does anyone have any idea of where my problem comes from ? I would be very grateful.
Thank you in advance !

Niloss

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions