Skip to contentSkip to conversation

infra: don't be verbose when calling the instrumentation steps

PATCH New Yann E. MORIN 2 participants 7 messages Feb 22, 2020 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 infra: don't be verbose when calling the instrumentation steps

Commit 509db3b88a added calls to (parts of) the instrumentation steps. However, those calls are echoed, unlike the other places where we call them (in the package infra).

Cc Thomas De Schampheleire <[email protected]>
---
 Makefile | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
Makefile +6 -6
index 9662987bb4..b61a20a354 100644
@@ -807,12 +807,12 @@ endif # merged /usr
 # AFTER ALL FILE-CHANGING ACTIONS:
 # Update timestamps in internal file list to fix attribution of files
 # to packages on subsequent builds
-	$(call step_pkg_size_file_list,$(TARGET_DIR))
-	$(call step_pkg_size_finalize)
-	$(call step_pkg_size_file_list,$(STAGING_DIR),-staging)
-	$(call step_pkg_size_finalize,-staging)
-	$(call step_pkg_size_file_list,$(HOST_DIR),-host)
-	$(call step_pkg_size_finalize,-host)
+	@$(call step_pkg_size_file_list,$(TARGET_DIR))
+	@$(call step_pkg_size_finalize)
+	@$(call step_pkg_size_file_list,$(STAGING_DIR),-staging)
+	@$(call step_pkg_size_finalize,-staging)
+	@$(call step_pkg_size_file_list,$(HOST_DIR),-host)
+	@$(call step_pkg_size_finalize,-host)
 
 .PHONY: target-post-image
 target-post-image: $(TARGETS_ROOTFS) target-finalize staging-finalize
Signature · 1 line
2.20.1
#1 lore raw

PATCH 1/1 infra: don't be verbose when calling the instrumentation steps

Hi Yann,

Quoted 20 lines · On Sat, Feb 22, 2020, 11:38 Yann E. MORIN <[email protected]> wrote:

Commit 509db3b88a added calls to (parts of) the instrumentation steps. However, those calls are echoed, unlike the other places where we call them (in the package infra).

Cc Thomas De Schampheleire <[email protected]>
---
 Makefile | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
Makefile +0 -2
index 9662987bb4..b61a20a354 100644
@@ -807,12 +807,12 @@ endif # merged /usr
 # AFTER ALL FILE-CHANGING ACTIONS:
 # Update timestamps in internal file list to fix attribution of files
 # to packages on subsequent builds
-       $(call step_pkg_size_file_list,$(TARGET_DIR))
-       $(call step_pkg_size_finalize)

Makefile endif # merged /usr · line 815

Quoted 10 lines
Makefile +6 -4
-       $(call step_pkg_size_file_list,$(STAGING_DIR),-staging)
-       $(call step_pkg_size_finalize,-staging)
-       $(call step_pkg_size_file_list,$(HOST_DIR),-host)
-       $(call step_pkg_size_finalize,-host)
+       @$(call step_pkg_size_file_list,$(TARGET_DIR))
+       @$(call step_pkg_size_finalize)
+       @$(call step_pkg_size_file_list,$(STAGING_DIR),-staging)
+       @$(call step_pkg_size_finalize,-staging)
+       @$(call step_pkg_size_file_list,$(HOST_DIR),-host)
+       @$(call step_pkg_size_finalize,-host)

Perhaps this should rather be $(Q) than @?
I quite like the fact that you can see what's going on, mostly relevant when investigating an issue...

Thanks,
Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20200222/ef78015e/attachment.html>

#2 lore raw

PATCH 1/1 infra: don't be verbose when calling the instrumentation steps

Thomas, All,

On 2020-02-22 11:59 +0100, Thomas De Schampheleire spake thusly:

Quoted 33 lines · On Sat, Feb 22, 2020, 11:38 Yann E. MORIN < [1][email protected]> wrote:

Commit 509db3b88a added calls to (parts of) the instrumentation steps. However, those calls are echoed, unlike the other places where we call them (in the package infra).

Cc Thomas De Schampheleire < [3][email protected]>

---

  ?Makefile | 12 ++++++------

?1 file changed, 6 insertions(+), 6 deletions(-)

  diff --git a/Makefile b/Makefile
  index 9662987bb4..b61a20a354 100644
  --- a/Makefile
  +++ b/Makefile
  @@ -807,12 +807,12 @@ endif # merged /usr
  ?# AFTER ALL FILE-CHANGING ACTIONS:
  ?# Update timestamps in internal file list to fix attribution of files
  ?# to packages on subsequent builds
  -? ? ? ?$(call step_pkg_size_file_list,$(TARGET_DIR))
  -? ? ? ?$(call step_pkg_size_finalize)
  -? ? ? ?$(call step_pkg_size_file_list,$(STAGING_DIR),-staging)
  -? ? ? ?$(call step_pkg_size_finalize,-staging)
  -? ? ? ?$(call step_pkg_size_file_list,$(HOST_DIR),-host)
  -? ? ? ?$(call step_pkg_size_finalize,-host)
  +? ? ? ?@$(call step_pkg_size_file_list,$(TARGET_DIR))
  +? ? ? ?@$(call step_pkg_size_finalize)
  +? ? ? ?@$(call step_pkg_size_file_list,$(STAGING_DIR),-staging)
  +? ? ? ?@$(call step_pkg_size_finalize,-staging)
  +? ? ? ?@$(call step_pkg_size_file_list,$(HOST_DIR),-host)
  +? ? ? ?@$(call step_pkg_size_finalize,-host)
Quoted 1 line

Perhaps this should rather be $(Q) than @?

We're using @ in all other places where we call the hooks, and this patch is just doing the same here. If we want $(Q) here (which I think is a good idea), we'd want to *also* change the existing calls to steps in the package infra at the same time.

I just want to have a minimalist patch here, that aligns the very recent changes to the long-existing code.

Quoted 2 lines

I quite like the fact that you can see what's going on, mostly relevant when investigating an issue...

Yes, I do agree.

Care to send a patch afterwards, that changes the existing code? ;-)

Regards,
Yann E. MORIN.

Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
#3 lore raw

PATCH 1/1 infra: don't be verbose when calling the instrumentation steps

El s?b., 22 feb. 2020 a las 12:05, Yann E. MORIN
(<[email protected]>) escribi?:

Quoted 47 lines

Thomas, All,

On 2020-02-22 11:59 +0100, Thomas De Schampheleire spake thusly:

Quoted 33 lines · On Sat, Feb 22, 2020, 11:38 Yann E. MORIN < [1][email protected]> wrote:

Commit 509db3b88a added calls to (parts of) the instrumentation steps. However, those calls are echoed, unlike the other places where we call them (in the package infra).

Cc Thomas De Schampheleire < [3][email protected]>

---

   Makefile | 12 ++++++------
   1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/Makefile b/Makefile
index 9662987bb4..b61a20a354 100644
--- a/Makefile
+++ b/Makefile
@@ -807,12 +807,12 @@ endif # merged /usr
# AFTER ALL FILE-CHANGING ACTIONS:
# Update timestamps in internal file list to fix attribution of files

   # to packages on subsequent builds
  -       $(call step_pkg_size_file_list,$(TARGET_DIR))
  -       $(call step_pkg_size_finalize)
  -       $(call step_pkg_size_file_list,$(STAGING_DIR),-staging)
  -       $(call step_pkg_size_finalize,-staging)
  -       $(call step_pkg_size_file_list,$(HOST_DIR),-host)
  -       $(call step_pkg_size_finalize,-host)
  +       @$(call step_pkg_size_file_list,$(TARGET_DIR))
  +       @$(call step_pkg_size_finalize)
  +       @$(call step_pkg_size_file_list,$(STAGING_DIR),-staging)
  +       @$(call step_pkg_size_finalize,-staging)
  +       @$(call step_pkg_size_file_list,$(HOST_DIR),-host)
  +       @$(call step_pkg_size_finalize,-host)
Quoted 1 line

Perhaps this should rather be $(Q) than @?

We're using @ in all other places where we call the hooks, and this patch is just doing the same here. If we want $(Q) here (which I think is a good idea), we'd want to *also* change the existing calls to steps in the package infra at the same time.

I just want to have a minimalist patch here, that aligns the very recent changes to the long-existing code.

Quoted 6 lines
Quoted 2 lines

I quite like the fact that you can see what's going on, mostly relevant when investigating an issue...

Yes, I do agree.

Care to send a patch afterwards, that changes the existing code? ;-)

Sure, I can do that.

Best regards,
Thomas

#4 lore raw

PATCH 1/1 infra: don't be verbose when calling the instrumentation steps

Thomas, All,

On 2020-02-22 21:17 +0100, Thomas De Schampheleire spake thusly:

Quoted 4 lines

El s?b., 22 feb. 2020 a las 12:05, Yann E. MORIN
(<[email protected]>) escribi?:

Quoted 2 lines

On 2020-02-22 11:59 +0100, Thomas De Schampheleire spake thusly:

Quoted 1 line · On Sat, Feb 22, 2020, 11:38 Yann E. MORIN < [1][email protected]> wrote:

[--SNIP--]

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
  +       @$(call step_pkg_size_file_list,$(TARGET_DIR))
  +       @$(call step_pkg_size_finalize)
  +       @$(call step_pkg_size_file_list,$(STAGING_DIR),-staging)
  +       @$(call step_pkg_size_finalize,-staging)
  +       @$(call step_pkg_size_file_list,$(HOST_DIR),-host)
  +       @$(call step_pkg_size_finalize,-host)

Perhaps this should rather be $(Q) than @?

[--SNIP--]

Quoted 2 lines
Quoted 1 line

Care to send a patch afterwards, that changes the existing code? ;-)

Sure, I can do that.

Is that an Acked-by or Reviewed-by from you on my patch, then? ;-)

Thanks! :-)

Regards,
Yann E. MORIN.

Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
#5 lore raw

PATCH 1/1 infra: don't be verbose when calling the instrumentation steps

Quoted 16 lines · On Sat, Feb 22, 2020, 21:28 Yann E. MORIN <[email protected]> wrote:

Thomas, All,

On 2020-02-22 21:17 +0100, Thomas De Schampheleire spake thusly:

Quoted 4 lines

El s?b., 22 feb. 2020 a las 12:05, Yann E. MORIN
(<[email protected]>) escribi?:

Quoted 2 lines

On 2020-02-22 11:59 +0100, Thomas De Schampheleire spake thusly:

Quoted 1 line

On Sat, Feb 22, 2020, 11:38 Yann E. MORIN < [1]

yann.morin.1998 at free.fr> wrote:
[--SNIP--]

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
  +       @$(call step_pkg_size_file_list,$(TARGET_DIR))
  +       @$(call step_pkg_size_finalize)
  +       @$(call step_pkg_size_file_list,$(STAGING_DIR),-staging)
  +       @$(call step_pkg_size_finalize,-staging)
  +       @$(call step_pkg_size_file_list,$(HOST_DIR),-host)
  +       @$(call step_pkg_size_finalize,-host)
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line

Perhaps this should rather be $(Q) than @?

[--SNIP--]

Quoted 2 lines
Quoted 1 line

Care to send a patch afterwards, that changes the existing code? ;-)

Sure, I can do that.

Is that an Acked-by or Reviewed-by from you on my patch, then? ;-)

Yep:

Quoted 1 line

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20200222/7a4f5d26/attachment.html>

author Applied
#6 lore raw

PATCH 1/1 infra: don't be verbose when calling the instrumentation steps

Thomas, All,

On 2020-02-22 22:14 +0100, Thomas De Schampheleire spake thusly:

Quoted 1 line

Applied to master, thanks! :-)

Regards,
Yann E. MORIN.

Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'