2024-05-15 15:13:03

by James Clark

[permalink] [raw]
Subject: [PATCH] MAINTAINERS: perf: arm64: Catch all Arm files and folders

Catch all files and folders with Arm in the name in tools/perf/ up to
two levels deep. There currently no false positives.

This catches lots of missing items like these and more:

* util/arm-spe-decoder/
(The existing util/arm-spe* entry only matched files not folders)
* util/perf-regs-arch/perf_regs_arm.c
* scripts/python/arm-cs-trace-disasm.py
* tests/shell/test_arm_spe.sh

Signed-off-by: James Clark <[email protected]>
---
MAINTAINERS | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/MAINTAINERS b/MAINTAINERS
index ec0284125e8f..c5d0256d32dd 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -17318,9 +17318,10 @@ R: Leo Yan <[email protected]>
L: [email protected] (moderated for non-subscribers)
S: Supported
F: tools/build/feature/test-libopencsd.c
-F: tools/perf/arch/arm*/
-F: tools/perf/pmu-events/arch/arm64/
-F: tools/perf/util/arm-spe*
+F: tools/perf/*/*/*arm*
+F: tools/perf/*/*/*arm*/
+F: tools/perf/*/*arm*
+F: tools/perf/*/*arm*/
F: tools/perf/util/cs-etm*

PERSONALITY HANDLING
--
2.34.1



2024-05-16 04:35:13

by Anshuman Khandual

[permalink] [raw]
Subject: Re: [PATCH] MAINTAINERS: perf: arm64: Catch all Arm files and folders



On 5/15/24 20:42, James Clark wrote:
> Catch all files and folders with Arm in the name in tools/perf/ up to
> two levels deep. There currently no false positives.
>
> This catches lots of missing items like these and more:
>
> * util/arm-spe-decoder/
> (The existing util/arm-spe* entry only matched files not folders)
> * util/perf-regs-arch/perf_regs_arm.c
> * scripts/python/arm-cs-trace-disasm.py
> * tests/shell/test_arm_spe.sh

Agreed.

>
> Signed-off-by: James Clark <[email protected]>
> ---
> MAINTAINERS | 7 ++++---
> 1 file changed, 4 insertions(+), 3 deletions(-)
>
> diff --git a/MAINTAINERS b/MAINTAINERS
> index ec0284125e8f..c5d0256d32dd 100644
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -17318,9 +17318,10 @@ R: Leo Yan <[email protected]>
> L: [email protected] (moderated for non-subscribers)
> S: Supported
> F: tools/build/feature/test-libopencsd.c
> -F: tools/perf/arch/arm*/
> -F: tools/perf/pmu-events/arch/arm64/
> -F: tools/perf/util/arm-spe*
> +F: tools/perf/*/*/*arm*
> +F: tools/perf/*/*/*arm*/
> +F: tools/perf/*/*arm*
> +F: tools/perf/*/*arm*/
> F: tools/perf/util/cs-etm*

Very minor nit, these regular expressions should be arranged as per
the increasing directory depth levels, just to make it apparent in
terms of which files are being covered here ?

F: tools/perf/*/*arm*
F: tools/perf/*/*arm*/
F: tools/perf/*/*/*arm*
F: tools/perf/*/*/*arm*/

But regardless, with or without the above changes

Reviewed-by: Anshuman Khandual <[email protected]>

>
> PERSONALITY HANDLING

2024-05-16 09:58:04

by Leo Yan

[permalink] [raw]
Subject: Re: [PATCH] MAINTAINERS: perf: arm64: Catch all Arm files and folders

On 5/15/24 16:12, James Clark wrote:
> Catch all files and folders with Arm in the name in tools/perf/ up to
> two levels deep. There currently no false positives.
>
> This catches lots of missing items like these and more:
>
> * util/arm-spe-decoder/
> (The existing util/arm-spe* entry only matched files not folders)
> * util/perf-regs-arch/perf_regs_arm.c
> * scripts/python/arm-cs-trace-disasm.py
> * tests/shell/test_arm_spe.sh
>
> Signed-off-by: James Clark <[email protected]>
> ---
> MAINTAINERS | 7 ++++---
> 1 file changed, 4 insertions(+), 3 deletions(-)
>
> diff --git a/MAINTAINERS b/MAINTAINERS
> index ec0284125e8f..c5d0256d32dd 100644
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -17318,9 +17318,10 @@ R: Leo Yan <[email protected]>
> L: [email protected] (moderated for non-subscribers)
> S: Supported
> F: tools/build/feature/test-libopencsd.c
> -F: tools/perf/arch/arm*/
> -F: tools/perf/pmu-events/arch/arm64/
> -F: tools/perf/util/arm-spe*
> +F: tools/perf/*/*/*arm*
> +F: tools/perf/*/*/*arm*/
> +F: tools/perf/*/*arm*
> +F: tools/perf/*/*arm*/
> F: tools/perf/util/cs-etm*

Also looks good to me:

Reviewed-by: Leo Yan <[email protected]>

2024-05-16 10:36:32

by James Clark

[permalink] [raw]
Subject: Re: [PATCH] MAINTAINERS: perf: arm64: Catch all Arm files and folders



On 16/05/2024 06:35, Anshuman Khandual wrote:
>
>
> On 5/15/24 20:42, James Clark wrote:
>> Catch all files and folders with Arm in the name in tools/perf/ up to
>> two levels deep. There currently no false positives.
>>
>> This catches lots of missing items like these and more:
>>
>> * util/arm-spe-decoder/
>> (The existing util/arm-spe* entry only matched files not folders)
>> * util/perf-regs-arch/perf_regs_arm.c
>> * scripts/python/arm-cs-trace-disasm.py
>> * tests/shell/test_arm_spe.sh
>
> Agreed.
>
>>
>> Signed-off-by: James Clark <[email protected]>
>> ---
>> MAINTAINERS | 7 ++++---
>> 1 file changed, 4 insertions(+), 3 deletions(-)
>>
>> diff --git a/MAINTAINERS b/MAINTAINERS
>> index ec0284125e8f..c5d0256d32dd 100644
>> --- a/MAINTAINERS
>> +++ b/MAINTAINERS
>> @@ -17318,9 +17318,10 @@ R: Leo Yan <[email protected]>
>> L: [email protected] (moderated for non-subscribers)
>> S: Supported
>> F: tools/build/feature/test-libopencsd.c
>> -F: tools/perf/arch/arm*/
>> -F: tools/perf/pmu-events/arch/arm64/
>> -F: tools/perf/util/arm-spe*
>> +F: tools/perf/*/*/*arm*
>> +F: tools/perf/*/*/*arm*/
>> +F: tools/perf/*/*arm*
>> +F: tools/perf/*/*arm*/
>> F: tools/perf/util/cs-etm*
>
> Very minor nit, these regular expressions should be arranged as per
> the increasing directory depth levels, just to make it apparent in
> terms of which files are being covered here ?
>
> F: tools/perf/*/*arm*
> F: tools/perf/*/*arm*/
> F: tools/perf/*/*/*arm*
> F: tools/perf/*/*/*arm*/
>

Checkpatch has an alphabetical sort which says they have to be the other
way around, but yes I agree I did write it your way initially.

> But regardless, with or without the above changes
>
> Reviewed-by: Anshuman Khandual <[email protected]>
>
>>
>> PERSONALITY HANDLING