lttng-dev.lists.lttng.org archive mirror
 help / color / mirror / Atom feed
* [lttng-dev] Compile modules on Centos Stream 9
@ 2024-06-19 15:41 Jean-Marc Chevalier via lttng-dev
  2024-06-20 15:26 ` Kienan Stewart via lttng-dev
  2024-06-20 15:48 ` Kienan Stewart via lttng-dev
  0 siblings, 2 replies; 4+ messages in thread
From: Jean-Marc Chevalier via lttng-dev @ 2024-06-19 15:41 UTC (permalink / raw)
  To: lttng-dev


[-- Attachment #1.1: Type: text/plain, Size: 1598 bytes --]

Hi, 

Is it possible to build the lttng modules againt Centos Stream 9 kernels? I see these warnings at the top when attempting to compile: 

make[1]: Entering directory '/usr/src/kernels/5.14.0-452.el9.x86_64' 
/home/tmp/git/lttng-modules/src/probes/Kbuild:28: File ./mm/slab.h not found. Probe "kmem" is disabled. Use full kernel source tree to enable it. 
/home/tmp/git/lttng-modules/src/probes/Kbuild:79: File ./arch/x86/kvm/lapic.h not found. Probe "kvm" x86-specific is disabled. Use full kernel source tree to enable it. 
/home/tmp/git/lttng-modules/src/probes/Kbuild:181: Files ./mm/internal.h not found. Probe "compaction" is disabled. Use full kernel source tree to enable it. 
/home/tmp/git/lttng-modules/src/probes/Kbuild:190: Files ./fs/ext4/*.h not found. Probe "ext4" is disabled. Use full kernel source tree to enable it. 
/home/tmp/git/lttng-modules/src/probes/Kbuild:213: File ./drivers/base/regmap/trace.h not found. Probe "regmap" is disabled. Use full kernel source tree to enable it. 

I tried with module versions 2.12.17 and 2.13.13 against the kernel 5.14.0-452.el9.x86_64 and I obtain this error: 

/home/tmp/git/lttng-modules/src/probes/../../include/lttng/tracepoint-event-impl.h:133:6: error: conflicting types for 'trace_sched_stat_runtime'; have 'void(struct task_struct *, u64, u64)' {aka 'void(struct task_struct *, long long unsigned int, long long unsigned int)'} 

Any help would be greatly appreciated. 

- JM 

-- 
- Jean-Marc Chevalier 
Technicien 
Génie informatique Génie logiciel 
Local: M-4002 
Téléphone: 514-340-4711 x4266 

[-- Attachment #1.2: Type: text/html, Size: 2219 bytes --]

[-- Attachment #2: make-lttng-2-13-13.txt --]
[-- Type: text/plain, Size: 4017 bytes --]

make -C /lib/modules/5.14.0-452.el9.x86_64/build M=/home/tmp/lttng-modules-2.13.13/src \
	CONFIG_LTTNG=m CONFIG_LTTNG_CLOCK_PLUGIN_TEST=m \
	KCPPFLAGS='' \
	modules
make[1]: Entering directory '/usr/src/kernels/5.14.0-452.el9.x86_64'
/home/tmp/lttng-modules-2.13.13/src/probes/Kbuild:28: File ./mm/slab.h not found. Probe "kmem" is disabled. Use full kernel source tree to enable it.
/home/tmp/lttng-modules-2.13.13/src/probes/Kbuild:83: File ./arch/x86/kvm/lapic.h not found. Probe "kvm" x86-specific is disabled. Use full kernel source tree to enable it.
/home/tmp/lttng-modules-2.13.13/src/probes/Kbuild:210: Files ./mm/internal.h not found. Probe "compaction" is disabled. Use full kernel source tree to enable it.
/home/tmp/lttng-modules-2.13.13/src/probes/Kbuild:219: Files ./fs/ext4/*.h not found. Probe "ext4" is disabled. Use full kernel source tree to enable it.
/home/tmp/lttng-modules-2.13.13/src/probes/Kbuild:248: File ./drivers/base/regmap/trace.h not found. Probe "regmap" is disabled. Need Linux 4.1+ kernel source tree to enable it.
  CC [M]  /home/tmp/lttng-modules-2.13.13/src/probes/lttng-probe-sched.o
In file included from /home/tmp/lttng-modules-2.13.13/src/probes/../../include/lttng/define_trace.h:87,
                 from /home/tmp/lttng-modules-2.13.13/src/probes/../../include/instrumentation/events/sched.h:729,
                 from /home/tmp/lttng-modules-2.13.13/src/probes/lttng-probe-sched.c:28:
/home/tmp/lttng-modules-2.13.13/src/probes/../../include/lttng/tracepoint-event-impl.h:133:6: error: conflicting types for 'trace_sched_stat_runtime'; have 'void(struct task_struct *, u64,  u64)' {aka 'void(struct task_struct *, long long unsigned int,  long long unsigned int)'}
  133 | void trace_##_name(_proto);
      |      ^~~~~~
/home/tmp/lttng-modules-2.13.13/src/probes/../../include/lttng/tracepoint-event-impl.h:45:9: note: in expansion of macro 'LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP'
   45 |         LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(map, name, map, PARAMS(proto), PARAMS(args))
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tmp/lttng-modules-2.13.13/src/probes/../../include/lttng/tracepoint-event-impl.h:87:9: note: in expansion of macro 'LTTNG_TRACEPOINT_EVENT_MAP'
   87 |         LTTNG_TRACEPOINT_EVENT_MAP(name, name,                          \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tmp/lttng-modules-2.13.13/src/probes/../../include/instrumentation/events/sched.h:671:1: note: in expansion of macro 'LTTNG_TRACEPOINT_EVENT'
  671 | LTTNG_TRACEPOINT_EVENT(sched_stat_runtime,
      | ^~~~~~~~~~~~~~~~~~~~~~
In file included from ./include/trace/events/sched.h:10,
                 from /home/tmp/lttng-modules-2.13.13/src/probes/lttng-probe-sched.c:17:
./include/linux/tracepoint.h:256:28: note: previous definition of 'trace_sched_stat_runtime' with type 'void(struct task_struct *, u64)' {aka 'void(struct task_struct *, long long unsigned int)'}
  256 |         static inline void trace_##name(proto)                          \
      |                            ^~~~~~
./include/linux/tracepoint.h:430:9: note: in expansion of macro '__DECLARE_TRACE'
  430 |         __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args),              \
      |         ^~~~~~~~~~~~~~~
./include/linux/tracepoint.h:553:9: note: in expansion of macro 'DECLARE_TRACE'
  553 |         DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
      |         ^~~~~~~~~~~~~
./include/trace/events/sched.h:517:1: note: in expansion of macro 'DEFINE_EVENT'
  517 | DEFINE_EVENT(sched_stat_runtime, sched_stat_runtime,
      | ^~~~~~~~~~~~
make[3]: *** [scripts/Makefile.build:296: /home/tmp/lttng-modules-2.13.13/src/probes/lttng-probe-sched.o] Error 1
make[2]: *** [scripts/Makefile.build:584: /home/tmp/lttng-modules-2.13.13/src/probes] Error 2
make[1]: *** [Makefile:1942: /home/tmp/lttng-modules-2.13.13/src] Error 2
make[1]: Leaving directory '/usr/src/kernels/5.14.0-452.el9.x86_64'
make: *** [Makefile:31: modules] Error 2

[-- Attachment #3: Type: text/plain, Size: 156 bytes --]

_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

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

* Re: [lttng-dev] Compile modules on Centos Stream 9
  2024-06-19 15:41 [lttng-dev] Compile modules on Centos Stream 9 Jean-Marc Chevalier via lttng-dev
@ 2024-06-20 15:26 ` Kienan Stewart via lttng-dev
  2024-06-25 21:52   ` Jean-Marc Chevalier via lttng-dev
  2024-06-20 15:48 ` Kienan Stewart via lttng-dev
  1 sibling, 1 reply; 4+ messages in thread
From: Kienan Stewart via lttng-dev @ 2024-06-20 15:26 UTC (permalink / raw)
  To: Jean-Marc Chevalier, lttng-dev

Hi Jean-Marc,

for the build errors could you try the following patch: 
https://review.lttng.org/c/lttng-modules/+/12885 ?

thanks,
kienan

On 6/19/24 11:41 AM, Jean-Marc Chevalier via lttng-dev wrote:
> Hi,
> 
> Is it possible to build the lttng modules againt Centos Stream 9 
> kernels? I see these warnings at the top when attempting to compile:
> 
> make[1]: Entering directory '/usr/src/kernels/5.14.0-452.el9.x86_64'
> /home/tmp/git/lttng-modules/src/probes/Kbuild:28: File ./mm/slab.h not 
> found. Probe "kmem" is disabled. Use full kernel source tree to enable it.
> /home/tmp/git/lttng-modules/src/probes/Kbuild:79: File 
> ./arch/x86/kvm/lapic.h not found. Probe "kvm" x86-specific is disabled. 
> Use full kernel source tree to enable it.
> /home/tmp/git/lttng-modules/src/probes/Kbuild:181: Files ./mm/internal.h 
> not found. Probe "compaction" is disabled. Use full kernel source tree 
> to enable it.
> /home/tmp/git/lttng-modules/src/probes/Kbuild:190: Files ./fs/ext4/*.h 
> not found. Probe "ext4" is disabled. Use full kernel source tree to 
> enable it.
> /home/tmp/git/lttng-modules/src/probes/Kbuild:213: File 
> ./drivers/base/regmap/trace.h not found. Probe "regmap" is disabled. Use 
> full kernel source tree to enable it.
> 
> I tried with module versions 2.12.17 and 2.13.13 against the kernel 
> 5.14.0-452.el9.x86_64 and I obtain this error:
> 
> /home/tmp/git/lttng-modules/src/probes/../../include/lttng/tracepoint-event-impl.h:133:6: error: conflicting types for 'trace_sched_stat_runtime'; have 'void(struct task_struct *, u64,  u64)' {aka 'void(struct task_struct *, long long unsigned int,  long long unsigned int)'}
> 
> Any help would be greatly appreciated.
> 
> - JM
> 
> -- 
> - Jean-Marc Chevalier
>    Technicien
>    Génie informatique Génie logiciel
>    Local:     M-4002
>    Téléphone: 514-340-4711 x4266
> 
> _______________________________________________
> lttng-dev mailing list
> lttng-dev@lists.lttng.org
> https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

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

* Re: [lttng-dev] Compile modules on Centos Stream 9
  2024-06-19 15:41 [lttng-dev] Compile modules on Centos Stream 9 Jean-Marc Chevalier via lttng-dev
  2024-06-20 15:26 ` Kienan Stewart via lttng-dev
@ 2024-06-20 15:48 ` Kienan Stewart via lttng-dev
  1 sibling, 0 replies; 4+ messages in thread
From: Kienan Stewart via lttng-dev @ 2024-06-20 15:48 UTC (permalink / raw)
  To: Jean-Marc Chevalier, lttng-dev

Hi Jean-Marc,

On 6/19/24 11:41 AM, Jean-Marc Chevalier via lttng-dev wrote:
> Hi,
> 
> Is it possible to build the lttng modules againt Centos Stream 9 
> kernels? I see these warnings at the top when attempting to compile:
> 
> make[1]: Entering directory '/usr/src/kernels/5.14.0-452.el9.x86_64'
> /home/tmp/git/lttng-modules/src/probes/Kbuild:28: File ./mm/slab.h not 
> found. Probe "kmem" is disabled. Use full kernel source tree to enable it.
> /home/tmp/git/lttng-modules/src/probes/Kbuild:79: File 
> ./arch/x86/kvm/lapic.h not found. Probe "kvm" x86-specific is disabled. 
> Use full kernel source tree to enable it.
> /home/tmp/git/lttng-modules/src/probes/Kbuild:181: Files ./mm/internal.h 
> not found. Probe "compaction" is disabled. Use full kernel source tree 
> to enable it.
> /home/tmp/git/lttng-modules/src/probes/Kbuild:190: Files ./fs/ext4/*.h 
> not found. Probe "ext4" is disabled. Use full kernel source tree to 
> enable it.
> /home/tmp/git/lttng-modules/src/probes/Kbuild:213: File 
> ./drivers/base/regmap/trace.h not found. Probe "regmap" is disabled. Use 
> full kernel source tree to enable it.
> 

The message reads to use the full kernel source tree if you want to 
enable those probes.

Those probes depend on internal headers, which are not shipped as part 
of the public header packages e.g. kernel-headers.rpm.

One way to get the full source tree is to extract it from the kernel 
source rpm, e.g. 
https://mirror.stream.centos.org/9-stream/BaseOS/source/tree/Packages/kernel-5.14.0-452.el9.src.rpm

thanks,
kienan

> I tried with module versions 2.12.17 and 2.13.13 against the kernel 
> 5.14.0-452.el9.x86_64 and I obtain this error:
> 
> /home/tmp/git/lttng-modules/src/probes/../../include/lttng/tracepoint-event-impl.h:133:6: error: conflicting types for 'trace_sched_stat_runtime'; have 'void(struct task_struct *, u64,  u64)' {aka 'void(struct task_struct *, long long unsigned int,  long long unsigned int)'}
> 
> Any help would be greatly appreciated.
> 
> - JM
> 
> -- 
> - Jean-Marc Chevalier
>    Technicien
>    Génie informatique Génie logiciel
>    Local:     M-4002
>    Téléphone: 514-340-4711 x4266
> 
> _______________________________________________
> lttng-dev mailing list
> lttng-dev@lists.lttng.org
> https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

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

* Re: [lttng-dev] Compile modules on Centos Stream 9
  2024-06-20 15:26 ` Kienan Stewart via lttng-dev
@ 2024-06-25 21:52   ` Jean-Marc Chevalier via lttng-dev
  0 siblings, 0 replies; 4+ messages in thread
From: Jean-Marc Chevalier via lttng-dev @ 2024-06-25 21:52 UTC (permalink / raw)
  To: Kienan Stewart; +Cc: lttng-dev

Hi Kienan,

Thank you, it worked.

I did not know exactly what I was doing, but I clicked "Open download overlay" and got the patched version in "c469ed7.tar.gz".

The modules are loaded. The teachers will be able to to test it as I dont know myself how to evaluate if it works.

- JM

-- 
- Jean-Marc Chevalier
  Technicien
  Génie informatique Génie logiciel
  Local:     M-4002	
  Téléphone: 514-340-4711 x4266

----- Mail original -----
De: "Kienan Stewart" <kstewart@efficios.com>
À: "Jean-Marc Chevalier" <jean-marc.chevalier@polymtl.ca>, lttng-dev@lists.lttng.org
Envoyé: Jeudi 20 Juin 2024 11:26:25
Objet: Re: [lttng-dev] Compile modules on Centos Stream 9

Hi Jean-Marc,

for the build errors could you try the following patch: 
https://review.lttng.org/c/lttng-modules/+/12885 ?

thanks,
kienan

On 6/19/24 11:41 AM, Jean-Marc Chevalier via lttng-dev wrote:
> Hi,
> 
> Is it possible to build the lttng modules againt Centos Stream 9 
> kernels? I see these warnings at the top when attempting to compile:
> 
> make[1]: Entering directory '/usr/src/kernels/5.14.0-452.el9.x86_64'
> /home/tmp/git/lttng-modules/src/probes/Kbuild:28: File ./mm/slab.h not 
> found. Probe "kmem" is disabled. Use full kernel source tree to enable it.
> /home/tmp/git/lttng-modules/src/probes/Kbuild:79: File 
> ./arch/x86/kvm/lapic.h not found. Probe "kvm" x86-specific is disabled. 
> Use full kernel source tree to enable it.
> /home/tmp/git/lttng-modules/src/probes/Kbuild:181: Files ./mm/internal.h 
> not found. Probe "compaction" is disabled. Use full kernel source tree 
> to enable it.
> /home/tmp/git/lttng-modules/src/probes/Kbuild:190: Files ./fs/ext4/*.h 
> not found. Probe "ext4" is disabled. Use full kernel source tree to 
> enable it.
> /home/tmp/git/lttng-modules/src/probes/Kbuild:213: File 
> ./drivers/base/regmap/trace.h not found. Probe "regmap" is disabled. Use 
> full kernel source tree to enable it.
> 
> I tried with module versions 2.12.17 and 2.13.13 against the kernel 
> 5.14.0-452.el9.x86_64 and I obtain this error:
> 
> /home/tmp/git/lttng-modules/src/probes/../../include/lttng/tracepoint-event-impl.h:133:6: error: conflicting types for 'trace_sched_stat_runtime'; have 'void(struct task_struct *, u64,  u64)' {aka 'void(struct task_struct *, long long unsigned int,  long long unsigned int)'}
> 
> Any help would be greatly appreciated.
> 
> - JM
> 
> -- 
> - Jean-Marc Chevalier
>    Technicien
>    Génie informatique Génie logiciel
>    Local:     M-4002
>    Téléphone: 514-340-4711 x4266
> 
> _______________________________________________
> lttng-dev mailing list
> lttng-dev@lists.lttng.org
> https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

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

end of thread, other threads:[~2024-06-25 21:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-19 15:41 [lttng-dev] Compile modules on Centos Stream 9 Jean-Marc Chevalier via lttng-dev
2024-06-20 15:26 ` Kienan Stewart via lttng-dev
2024-06-25 21:52   ` Jean-Marc Chevalier via lttng-dev
2024-06-20 15:48 ` Kienan Stewart via lttng-dev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).