* [PATCH] perf tools: exclude the include/perf/ directory
@ 2022-11-03 4:03 Donglin Peng
2022-11-03 7:08 ` Adrian Hunter
0 siblings, 1 reply; 3+ messages in thread
From: Donglin Peng @ 2022-11-03 4:03 UTC (permalink / raw)
To: peterz; +Cc: adrian.hunter, linux-kernel, linux-perf-users, Donglin Peng
Commit 3af1dfdd51e0 ("perf build: Move perf_dlfilters.h in the
source tree") moved perf_dlfilters.h to the include/perf/ directory
without updating the .gitignore file, causing new files in the
include/perf/ directory will be ignored.
Add !include/perf/ to perf's .gitignore file.
Signed-off-by: Donglin Peng <dolinux.peng@gmail.com>
---
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] perf tools: exclude the include/perf/ directory
2022-11-03 4:03 [PATCH] perf tools: exclude the include/perf/ directory Donglin Peng
@ 2022-11-03 7:08 ` Adrian Hunter
2022-11-03 8:07 ` Donglin Peng
0 siblings, 1 reply; 3+ messages in thread
From: Adrian Hunter @ 2022-11-03 7:08 UTC (permalink / raw)
To: Donglin Peng, Arnaldo Carvalho de Melo
Cc: linux-kernel, linux-perf-users, peterz
On 3/11/22 06:03, Donglin Peng wrote:
> Commit 3af1dfdd51e0 ("perf build: Move perf_dlfilters.h in the
> source tree") moved perf_dlfilters.h to the include/perf/ directory
> without updating the .gitignore file, causing new files in the
> include/perf/ directory will be ignored.
Note:
include/perf is ignored because it has 'perf' in the name
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.
>
> Signed-off-by: Donglin Peng <dolinux.peng@gmail.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
> ---
> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] perf tools: exclude the include/perf/ directory
2022-11-03 7:08 ` Adrian Hunter
@ 2022-11-03 8:07 ` Donglin Peng
0 siblings, 0 replies; 3+ messages in thread
From: Donglin Peng @ 2022-11-03 8:07 UTC (permalink / raw)
To: Adrian Hunter, Arnaldo Carvalho de Melo
Cc: linux-kernel, linux-perf-users, peterz
On Thu, Nov 3, 2022 at 3:08 PM Adrian Hunter <adrian.hunter@intel.com> wrote:
>
> On 3/11/22 06:03, Donglin Peng wrote:
> > Commit 3af1dfdd51e0 ("perf build: Move perf_dlfilters.h in the
> > source tree") moved perf_dlfilters.h to the include/perf/ directory
> > without updating the .gitignore file, causing new files in the
> > include/perf/ directory will be ignored.
>
> Note:
>
> include/perf is ignored because it has 'perf' in the name
>
Right.
> 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
>
Thanks,I will modify the commit log and send a v2.
> >
> > Add !include/perf/ to perf's .gitignore file.
> >
> > Signed-off-by: Donglin Peng <dolinux.peng@gmail.com>
>
> Acked-by: Adrian Hunter <adrian.hunter@intel.com>
>
> > ---
> > 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
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-11-03 8:07 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-03 4:03 [PATCH] perf tools: exclude the include/perf/ directory Donglin Peng
2022-11-03 7:08 ` Adrian Hunter
2022-11-03 8:07 ` Donglin Peng
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®