[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20221103092704.173391-1-dolinux.peng@gmail.com>
Date: Thu, 3 Nov 2022 02:27:04 -0700
From: Donglin Peng <dolinux.peng@...il.com>
To: peterz@...radead.org, acme@...nel.org, adrian.hunter@...el.com
Cc: linux-kernel@...r.kernel.org, linux-perf-users@...r.kernel.org,
Donglin Peng <dolinux.peng@...il.com>
Subject: [PATCH v2] perf tools: exclude the include/perf/ directory
Commit 3af1dfdd51e0 ("perf build: Move perf_dlfilters.h in the
source tree") moved perf_dlfilters.h to the include/perf/ directory
while include/perf is ignored because it has 'perf' in the name.
Newly created files in the include/perf/ directory will be ignored.
Can check:
Before:
$ touch tools/perf/include/perf/junk
$ git status | grep junk
$ git check-ignore -v tools/perf/include/perf/junk
tools/perf/.gitignore:6:perf tools/perf/include/perf/junk
After:
$ git status | grep junk
tools/perf/include/perf/junk
$ git check-ignore -v tools/perf/include/perf/junk
Add !include/perf/ to perf's .gitignore file.
Fixes: 3af1dfdd51e0 ("perf build: Move perf_dlfilters.h in the source tree")
Signed-off-by: Donglin Peng <dolinux.peng@...il.com>
Acked-by: Adrian Hunter <adrian.hunter@...el.com>
---
Changes in v2:
- add 'Fixes:' tag in commit message
- make commit message more clearer
---
tools/perf/.gitignore | 1 +
1 file changed, 1 insertion(+)
diff --git a/tools/perf/.gitignore b/tools/perf/.gitignore
index a653311d9693..fd7a6ff9e7aa 100644
--- a/tools/perf/.gitignore
+++ b/tools/perf/.gitignore
@@ -4,6 +4,7 @@ PERF-GUI-VARS
PERF-VERSION-FILE
FEATURE-DUMP
perf
+!include/perf/
perf-read-vdso32
perf-read-vdsox32
perf-help
--
2.25.1
Powered by blists - more mailing lists