<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div><style>/*<![CDATA[*/p.MsoNormal, li.MsoNormal, div.MsoNormal {
margin: 0.0cm;
font-size: 11.0pt;
font-family: Calibri , sans-serif;
}
a:link, span.MsoHyperlink {
color: rgb(5,99,193);
text-decoration: underline;
}
a:visited, span.MsoHyperlinkFollowed {
color: rgb(149,79,114);
text-decoration: underline;
}
pre {
margin: 0.0cm;
font-size: 10.0pt;
font-family: "Courier New";
}
span.EmailStyle17 {
font-family: Calibri , sans-serif;
color: windowtext;
}
span.HTMLPreformattedChar {
font-family: "Courier New";
}
*.MsoChpDefault {
}
div.WordSection1 {
page: WordSection1;
}
/*]]>*/</style></div><div><br></div><div><br></div><div><span id="zwchr" data-marker="__DIVIDER__">----- On Oct 20, 2020, at 2:59 AM, lttng-dev <lttng-dev@lists.lttng.org> wrote:<br></span></div><div data-marker="__QUOTED_TEXT__"><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;">
<div class="WordSection1">
<p class="MsoNormal">Hi All,</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">I’m facing compilation error in build after pulling in the stable kernel LTS(4.14.y) commit -
<a href="https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-4.14.y&id=77322edb99f0176ec67a300b9f263719ba391b89" target="_blank" rel="nofollow noopener noreferrer">
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-4.14.y&id=77322edb99f0176ec67a300b9f263719ba391b89</a><br data-mce-bogus="1"></p>
<p class="MsoNormal"> </p></div></blockquote><div><br></div><div>Hi,<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>lttng-modules tracks the stable kernels through their versions (e.g. 4.14.165). There are ifdefs in the<br data-mce-bogus="1"></div><div>lttng-modules code to choose the right instrumentation implementation based on the kernel version it is<br data-mce-bogus="1"></div><div>built against.<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>Of course, if you don't follow the versioning scheme of the stable kernels and cherry-pick random commits,</div><div>there is little lttng-modules can do to track those changes. We have worked with Ubuntu, Redhat and Debian<br data-mce-bogus="1"></div><div>distributions to ensure their kernels are versioned in a way which is also detected by lttng-modules, in the<br data-mce-bogus="1"></div><div>situations where the kernels diverge from upstream. If you want to create your own kernel which also<br data-mce-bogus="1"></div><div>differs from all other existing kernels out there, you will also need to take care of versioning it and adapt<br data-mce-bogus="1"></div><div>lttng-modules accordingly.<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>Thanks,<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>Mathieu<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><div class="WordSection1">
<p class="MsoNormal">I tried this solution - <a href="https://github.com/lttng/lttng-modules/commit/7318a1e88c8097733f5a05529069e4e03c142cae" target="_blank" rel="nofollow noopener noreferrer">
https://github.com/lttng/lttng-modules/commit/7318a1e88c8097733f5a05529069e4e03c142cae</a><br data-mce-bogus="1"></p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">But this also didn’t resolve my problem. </p>
<p class="MsoNormal" style="margin-top:7.5pt;background:#f1f8ff"><span style="font-size:10pt;font-family:'consolas';color:#7f7f7f">| In file included from
/home/snaaz/elm/8up/main/build_zcu/tmp/work/zcu102_zynqmp_mel-mel-linux/lttng-modules/2.10.9-r0/lttng-modules-2.10.9/probes/../probes/define_trace.h</span><span style="font-size:10pt;font-family:'segoe ui symbol' , sans-serif;color:#7f7f7f">💯</span><span style="font-size:10pt;font-family:'consolas';color:#7f7f7f">0,</span></p>
<p class="MsoNormal" style="margin-top:7.5pt;background:#f1f8ff"><span style="font-size:10pt;font-family:'consolas';color:#7f7f7f">| from
/home/snaaz/elm/8up/main/build_zcu/tmp/work/zcu102_zynqmp_mel-mel-linux/lttng-modules/2.10.9-r0/lttng-modules-2.10.9/probes/../instrumentation/events/lttng-module/writeback.h:735,</span></p>
<p class="MsoNormal" style="margin-top:7.5pt;background:#f1f8ff"><span style="font-size:10pt;font-family:'consolas';color:#7f7f7f">| from
/home/snaaz/elm/8up/main/build_zcu/tmp/work/zcu102_zynqmp_mel-mel-linux/lttng-modules/2.10.9-r0/lttng-modules-2.10.9/probes/lttng-probe-writeback.c:51:</span></p>
<p class="MsoNormal" style="margin-top:7.5pt;background:#f1f8ff"><span style="font-size:10pt;font-family:'consolas';color:#7f7f7f">| /home/snaaz/elm/8up/main/build_zcu/tmp/work/zcu102_zynqmp_mel-mel-linux/lttng-modules/2.10.9-r0/lttng-modules-2.10.9/probes/../probes/lttng-tracepoint-event-impl.h:143:6:
error: conflicting types for 'trace_writeback_queue_io'</span></p>
<p class="MsoNormal" style="margin-top:7.5pt;background:#f1f8ff"><span style="font-size:10pt;font-family:'consolas';color:#7f7f7f">| void trace_##_name(_proto);</span></p>
<p class="MsoNormal" style="margin-top:7.5pt;background:#f1f8ff"><span style="font-size:10pt;font-family:'consolas';color:#7f7f7f">| ^</span></p>
<p class="MsoNormal" style="margin-top:7.5pt;background:#f1f8ff"><span style="font-size:10pt;font-family:'consolas';color:#7f7f7f">| /home/snaaz/elm/8up/main/build_zcu/tmp/work/zcu102_zynqmp_mel-mel-linux/lttng-modules/2.10.9-r0/lttng-modules-2.10.9/probes/../probes/lttng-tracepoint-event-impl.h:55:2:
note: in expansion of macro 'LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP'</span></p>
<p class="MsoNormal" style="margin-top:7.5pt;background:#f1f8ff"><span style="font-size:10pt;font-family:'consolas';color:#7f7f7f">| LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(map,
name, map, PARAMS(proto), PARAMS(args))</span></p>
<p class="MsoNormal" style="margin-top:7.5pt;background:#f1f8ff"><span style="font-size:10pt;font-family:'consolas';color:#7f7f7f">| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</span></p>
<p class="MsoNormal" style="margin-top:7.5pt;background:#f1f8ff"><span style="font-size:10pt;font-family:'consolas';color:#7f7f7f">| /home/snaaz/elm/8up/main/build_zcu/tmp/work/zcu102_zynqmp_mel-mel-linux/lttng-modules/2.10.9-r0/lttng-modules-2.10.9/probes/../probes/lttng-tracepoint-event-impl.h:97:2:
note: in expansion of macro 'LTTNG_TRACEPOINT_EVENT_MAP'</span></p>
<p class="MsoNormal" style="margin-top:7.5pt;background:#f1f8ff"><span style="font-size:10pt;font-family:'consolas';color:#7f7f7f">| LTTNG_TRACEPOINT_EVENT_MAP(name,
name, \</span></p>
<p class="MsoNormal" style="margin-top:7.5pt;background:#f1f8ff"><span style="font-size:10pt;font-family:'consolas';color:#7f7f7f">| ^~~~~~~~~~~~~~~~~~~~~~~~~~</span></p>
<p class="MsoNormal" style="margin-top:7.5pt;background:#f1f8ff"><span style="font-size:10pt;font-family:'consolas';color:#7f7f7f">| /home/snaaz/elm/8up/main/build_zcu/tmp/work/zcu102_zynqmp_mel-mel-linux/lttng-modules/2.10.9-r0/lttng-modules-2.10.9/probes/../instrumentation/events/lttng-module/writeback.h:375:1:
note: in expansion of macro 'LTTNG_TRACEPOINT_EVENT'</span></p>
<p class="MsoNormal" style="margin-top:7.5pt;background:#f1f8ff"><span style="font-size:10pt;font-family:'consolas';color:#7f7f7f">| LTTNG_TRACEPOINT_EVENT(writeback_queue_io,</span></p>
<p class="MsoNormal" style="margin-top:7.5pt;background:#f1f8ff"><span style="font-size:10pt;font-family:'consolas';color:#7f7f7f">| ^~~~~~~~~~~~~~~~~~~~~~</span></p>
<p class="MsoNormal" style="margin-top:7.5pt;background:#f1f8ff"><span style="font-size:10pt;font-family:'consolas';color:#7f7f7f">| In file included from
/home/snaaz/elm/8up/main/build_zcu/tmp/work-shared/zcu102-zynqmp-mel/kernel-source/include/trace/events/writeback.h:8:0,</span></p>
<p class="MsoNormal" style="margin-top:7.5pt;background:#f1f8ff"><span style="font-size:10pt;font-family:'consolas';color:#7f7f7f">| from
/home/snaaz/elm/8up/main/build_zcu/tmp/work/zcu102_zynqmp_mel-mel-linux/lttng-modules/2.10.9-r0/lttng-modules-2.10.9/probes/lttng-probe-writeback.c:33:</span></p>
<p class="MsoNormal" style="margin-top:7.5pt;background:#f1f8ff"><span style="font-size:10pt;font-family:'consolas';color:#7f7f7f">| /home/snaaz/elm/8up/main/build_zcu/tmp/work-shared/zcu102-zynqmp-mel/kernel-source/include/linux/tracepoint.h:187:21:
note: previous definition of 'trace_writeback_queue_io' was here</span></p>
<p class="MsoNormal" style="margin-top:7.5pt;background:#f1f8ff"><span style="font-size:10pt;font-family:'consolas';color:#7f7f7f">| static inline void trace_##name(proto)
\</span></p>
<p class="MsoNormal" style="margin-top:7.5pt;background:#f1f8ff"><span style="font-size:10pt;font-family:'consolas';color:#7f7f7f">| ^</span></p>
<p class="MsoNormal" style="margin-top:7.5pt;background:#f1f8ff"><span style="font-size:10pt;font-family:'consolas';color:#7f7f7f">| /home/snaaz/elm/8up/main/build_zcu/tmp/work-shared/zcu102-zynqmp-mel/kernel-source/include/linux/tracepoint.h:352:2:
note: in expansion of macro '__DECLARE_TRACE'</span></p>
<p class="MsoNormal" style="margin-top:7.5pt;background:#f1f8ff"><span style="font-size:10pt;font-family:'consolas';color:#7f7f7f">| __DECLARE_TRACE(name,
PARAMS(proto), PARAMS(args), \</span></p>
<p class="MsoNormal" style="margin-top:7.5pt;background:#f1f8ff"><span style="font-size:10pt;font-family:'consolas';color:#7f7f7f">| ^~~~~~~~~~~~~~~</span></p>
<p class="MsoNormal" style="margin-top:7.5pt;background:#f1f8ff"><span style="font-size:10pt;font-family:'consolas';color:#7f7f7f">| /home/snaaz/elm/8up/main/build_zcu/tmp/work-shared/zcu102-zynqmp-mel/kernel-source/include/linux/tracepoint.h:488:2:
note: in expansion of macro 'DECLARE_TRACE'</span></p>
<p class="MsoNormal" style="margin-top:7.5pt;background:#f1f8ff"><span style="font-size:10pt;font-family:'consolas';color:#7f7f7f">| DECLARE_TRACE(name,
PARAMS(proto), PARAMS(args))</span></p>
<p class="MsoNormal" style="margin-top:7.5pt;background:#f1f8ff"><span style="font-size:10pt;font-family:'consolas';color:#7f7f7f">| ^~~~~~~~~~~~~</span></p>
<p class="MsoNormal" style="margin-top:7.5pt;background:#f1f8ff"><span style="font-size:10pt;font-family:'consolas';color:#7f7f7f">| /home/snaaz/elm/8up/main/build_zcu/tmp/work-shared/zcu102-zynqmp-mel/kernel-source/include/trace/events/writeback.h:361:1:
note: in expansion of macro 'TRACE_EVENT'</span></p>
<p class="MsoNormal" style="margin-top:7.5pt;background:#f1f8ff"><span style="font-size:10pt;font-family:'consolas';color:#7f7f7f">| TRACE_EVENT(writeback_queue_io,</span></p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Kindly look into it and do the needful. Thanks!</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Regards,</p>
<p class="MsoNormal">Syeda Shagufta Naaz</p>
<p class="MsoNormal" style="background:white"><span style="font-size:10pt;font-family:'arial' , sans-serif;color:#191919;background:white">Software Development Engineer | Mentor Embedded Linux</span></p>
<p class="MsoNormal"><b><span style="font-size:18pt;font-family:'arial' , sans-serif;color:#c00000;background:white">Mentor</span></b><b><span style="font-family:'arial' , sans-serif;color:#191919;background:white">,</span></b><span style="font-size:10pt;color:#2e74b5;background:white">A
Siemens Business</span></p>
<p class="MsoNormal"> </p>
</div>
<br>_______________________________________________<br>lttng-dev mailing list<br>lttng-dev@lists.lttng.org<br>https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev<br></blockquote></div><div><br></div><div data-marker="__SIG_POST__">-- <br></div><div>Mathieu Desnoyers<br>EfficiOS Inc.<br>http://www.efficios.com</div></div></body></html>