All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] tools/tracing: Use tools/build makefiles like perf
@ 2024-03-08 17:50 Daniel Bristot de Oliveira
  2024-03-08 17:50 ` [PATCH 1/3] tools/tracing: Use tools/build makefiles on latency-collector Daniel Bristot de Oliveira
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Daniel Bristot de Oliveira @ 2024-03-08 17:50 UTC (permalink / raw)
  To: Linus Torvalds, Steven Rostedt, Arnaldo Carvalho de Melo
  Cc: Daniel Bristot de Oliveira, Josh Poimboeuf, John Kacur,
	Namhyung Kim, Jiri Olsa, linux-perf-users, linux-trace-kernel,
	linux-kernel

tools/tracing and tools/verification/rv are using standalone Makefiles.
However, This approach has some drawbacks. For example, code
duplication and lack of proper dependency handling, making things
harder for users. 

Linus suggested using perf's build system, and it is indeed the best way to go.

This series replaces tools/tracing and tools/verification/rv makefiles
with makefiles inspired by perf and objtool that use tools/build/
infrastructure.

Thanks, Arnaldo, for the pointers via chat.

Link: https://lore.kernel.org/lkml/CAHk-=wjQ9BJKBPi3sJN2Dy5jVwPO03u9aOc6-g8AnLcGq-E4-g@mail.gmail.com/

Daniel Bristot de Oliveira (3):
  tools/tracing: Use tools/build makefiles on latency-collector
  tools/verification: Use tools/build makefiles on rv
  tools/rtla: Use tools/build makefiles to build rtla

 tools/tracing/latency/.gitignore       |   1 +
 tools/tracing/latency/Build            |   1 +
 tools/tracing/latency/Makefile         |  48 ++++---
 tools/tracing/latency/Makefile.config  |  28 ++++
 tools/tracing/rtla/.gitignore          |   4 +-
 tools/tracing/rtla/Build               |   1 +
 tools/tracing/rtla/Makefile            | 177 +++++--------------------
 tools/tracing/rtla/Makefile.config     |  44 ++++++
 tools/tracing/rtla/Makefile.rtla       |  77 +++++++++++
 tools/tracing/rtla/Makefile.standalone |  24 ++++
 tools/tracing/rtla/src/Build           |  11 ++
 tools/verification/rv/.gitignore       |   2 +
 tools/verification/rv/Build            |   1 +
 tools/verification/rv/Makefile         | 166 +++++------------------
 tools/verification/rv/Makefile.config  |  44 ++++++
 tools/verification/rv/Makefile.rv      |  49 +++++++
 tools/verification/rv/src/Build        |   4 +
 17 files changed, 387 insertions(+), 295 deletions(-)
 create mode 100644 tools/tracing/latency/Build
 create mode 100644 tools/tracing/latency/Makefile.config
 create mode 100644 tools/tracing/rtla/Build
 create mode 100644 tools/tracing/rtla/Makefile.config
 create mode 100644 tools/tracing/rtla/Makefile.rtla
 create mode 100644 tools/tracing/rtla/Makefile.standalone
 create mode 100644 tools/tracing/rtla/src/Build
 create mode 100644 tools/verification/rv/.gitignore
 create mode 100644 tools/verification/rv/Build
 create mode 100644 tools/verification/rv/Makefile.config
 create mode 100644 tools/verification/rv/Makefile.rv
 create mode 100644 tools/verification/rv/src/Build

-- 
2.44.0


^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: [PATCH 3/3] tools/rtla: Use tools/build makefiles to build rtla
  2024-03-08 17:50 ` [PATCH 3/3] tools/rtla: Use tools/build makefiles to build rtla Daniel Bristot de Oliveira
@ 2024-03-28  6:12 ` kernel test robot
  -1 siblings, 0 replies; 6+ messages in thread
From: kernel test robot @ 2024-03-21  4:28 UTC (permalink / raw)
  To: oe-kbuild; +Cc: lkp

:::::: 
:::::: Manual check reason: "low confidence bisect report"
:::::: 

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
In-Reply-To: <facb7d2e23dbf5e8a411a9e9d02b7c8baab99b88.1709914259.git.bristot@kernel.org>
References: <facb7d2e23dbf5e8a411a9e9d02b7c8baab99b88.1709914259.git.bristot@kernel.org>
TO: Daniel Bristot de Oliveira <bristot@kernel.org>

Hi Daniel,

kernel test robot noticed the following build errors:

[auto build test ERROR on linux/master]
[also build test ERROR on v6.8 next-20240320]
[cannot apply to linus/master rostedt-trace/for-next rostedt-trace/for-next-urgent acme/perf/core]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Daniel-Bristot-de-Oliveira/tools-tracing-Use-tools-build-makefiles-on-latency-collector/20240309-015731
base:   linux/master
patch link:    https://lore.kernel.org/r/facb7d2e23dbf5e8a411a9e9d02b7c8baab99b88.1709914259.git.bristot%40kernel.org
patch subject: [PATCH 3/3] tools/rtla: Use tools/build makefiles to build rtla
:::::: branch date: 12 days ago
:::::: commit date: 12 days ago
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240321/202403211207.MQN0DSRb-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/r/202403211207.MQN0DSRb-lkp@intel.com/

All errors (new ones prefixed by >>):

   /usr/bin/ld: cannot find tools/tracing/latency/fixdep-in.o: No such file or directory
   collect2: error: ld returned 1 exit status
   make[5]: *** [Makefile:50: tools/tracing/latency/fixdep] Error 1
   make[4]: *** [tools/build/Makefile.include:5: fixdep] Error 2
   make[3]: *** [Makefile:11: latency] Error 2
   make[3]: *** Waiting for unfinished jobs....
>> /usr/bin/ld: cannot find tools/tracing/rtla/fixdep-in.o: No such file or directory
   collect2: error: ld returned 1 exit status
   make[5]: *** [Makefile:50: tools/tracing/rtla/fixdep] Error 1
   make[4]: *** [tools/build/Makefile.include:5: fixdep] Error 2
   make[3]: *** [Makefile:20: rtla] Error 2

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-03-28  6:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-08 17:50 [PATCH 0/3] tools/tracing: Use tools/build makefiles like perf Daniel Bristot de Oliveira
2024-03-08 17:50 ` [PATCH 1/3] tools/tracing: Use tools/build makefiles on latency-collector Daniel Bristot de Oliveira
2024-03-08 17:50 ` [PATCH 2/3] tools/verification: Use tools/build makefiles on rv Daniel Bristot de Oliveira
2024-03-08 17:50 ` [PATCH 3/3] tools/rtla: Use tools/build makefiles to build rtla Daniel Bristot de Oliveira
  -- strict thread matches above, loose matches on Subject: below --
2024-03-21  4:28 kernel test robot
2024-03-28  6:12 ` kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.