Add dedicated README and borrow linux .gitignore

This commit is contained in:
Théophile Bastian 2018-06-11 18:14:53 +02:00
parent 1ee9a2e1e1
commit b01c02874b
2 changed files with 129 additions and 36 deletions

142
.gitignore vendored
View file

@ -1,36 +1,106 @@
PERF-CFLAGS #
PERF-GUI-VARS # NOTE! Don't add files that are generated in specific
PERF-VERSION-FILE # subdirectories here. Add them in the ".gitignore" file
FEATURE-DUMP # in that subdirectory instead.
perf #
perf-read-vdso32 # NOTE! Please use 'git ls-files -i --exclude-standard'
perf-read-vdsox32 # command after changing this file, to see if there are
perf-help # any tracked files which get ignored after the change.
perf-record #
perf-report # Normal rules (sorted alphabetically)
perf-stat #
perf-top .*
perf*.1 *.a
perf*.xml *.asn1.[ch]
perf*.html *.bin
common-cmds.h *.bz2
perf.data *.c.[012]*.*
perf.data.old *.dtb
output.svg *.dtb.S
perf-archive *.dwo
perf-with-kcore *.elf
tags *.gcno
TAGS *.gz
cscope* *.i
config.mak *.ko
config.mak.autogen *.lex.c
*-bison.* *.ll
*-flex.* *.lst
*.pyc *.lz4
*.pyo *.lzma
.config-detected *.lzo
util/intel-pt-decoder/inat-tables.c *.mod.c
arch/*/include/generated/ *.o
trace/beauty/generated/ *.o.*
pmu-events/pmu-events.c *.order
pmu-events/jevents *.patch
*.s
*.so
*.so.dbg
*.su
*.symtypes
*.tab.[ch]
*.tar
*.xz
Module.symvers
modules.builtin
#
# RPM spec file (make rpm-pkg)
#
/*.spec
#
# git files that we don't want to ignore even if they are dot-files
#
!.gitignore
!.mailmap
!.cocciconfig
!.clang-format
#
# Generated include files
#
include/config
include/generated
include/ksym
arch/*/include/generated
# stgit generated dirs
patches-*
# quilt's files
patches
series
# cscope files
cscope.*
ncscope.*
# gnu global files
GPATH
GRTAGS
GSYMS
GTAGS
# id-utils files
ID
*.orig
*~
\#*#
#
# Leavings from module signing
#
extra_certificates
signing_key.pem
signing_key.priv
signing_key.x509
x509.genkey
# Kconfig presets
all.config
# Kdevelop4
*.kdev4

23
README.md Normal file
View file

@ -0,0 +1,23 @@
# Perf, `eh_elf` flavour
This repository contains a fork of perf, the profiler from the Linux kernel
repository, modified in a way to interface it with `eh_elfs` and (hopefully)
speeding it up on complicated DWARF frames
## Compiling
Clone the
[Linux kernel repository](https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git)
or get a tarball of its source tree,
then replace the `tools/perf` directory with a clone of this repo.
Then, `cd tools/perf` and `make`, without forgetting to give the compilation
tools the right version of `libunwind`, eg. by setting `LD_RUN_PATH` and
`LIBUNWIND_DIR`:
```sh
export LD_RUN_PATH=$HOME/local/libunwind/lib
export LIBUNWIND_DIR=$HOME/local/libunwind
make
```
This works at least with the linux repository at v4.17-rc5