Skip to content

Instantly share code, notes, and snippets.

@mfleming
Created March 27, 2024 22:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mfleming/7c8e150542f88966710a2e755b3f53dd to your computer and use it in GitHub Desktop.
Save mfleming/7c8e150542f88966710a2e755b3f53dd to your computer and use it in GitHub Desktop.
FROM ubuntu AS build
RUN apt-get update
RUN apt-get install -y git-core make gcc make flex bison pkg-config
RUN git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
RUN NO_LIBTRACEEVENT=1 NO_JEVENTS=1 NO_LIBELF=1 make -C linux/tools/perf
FROM ubuntu
COPY --from=build linux/tools/perf/perf /bin/perf
ENTRYPOINT ["/bin/perf", "bench", "sched", "pipe"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment