<div dir="ltr"><div>Looks like it did not take much to actually come back with an answer.<br></div>So,<br><br>In file:<br><a href="https://github.com/torvalds/linux/blob/v4.1/tools/perf/Makefile.perf">https://github.com/torvalds/linux/blob/v4.1/tools/perf/Makefile.perf</a><br>Line 75: # Define NO_LZMA if you do not want to support compressed (xz) kernel modules<br><div><br></div><div>Then file:<br><a href="https://github.com/torvalds/linux/blob/v4.1/tools/perf/config/Makefile">https://github.com/torvalds/linux/blob/v4.1/tools/perf/config/Makefile</a><br></div><div>Lines 544-553:<br><pre>ifndef NO_LZMA
ifeq ($(feature-lzma), 1)
CFLAGS += -DHAVE_LZMA_SUPPORT
EXTLIBS += -llzma
$(call detected,CONFIG_LZMA)
else
msg := $(warning No liblzma found, disables xz kernel module decompression, please install xz-devel/liblzma-dev);
NO_LZMA := 1
endif
endif</pre>In my case it seems to enable by default.<br></div><div><br></div><div>Looking at the same files in 3.18:<br><a href="https://github.com/torvalds/linux/blob/v3.18/tools/perf/config/Makefile">https://github.com/torvalds/linux/blob/v3.18/tools/perf/config/Makefile</a><br></div><div><div><div class="gmail_extra"><a href="https://github.com/torvalds/linux/blob/v3.18/tools/perf/Makefile.perf">https://github.com/torvalds/linux/blob/v3.18/tools/perf/Makefile.perf</a><br><br></div><div class="gmail_extra">No mention of these.<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Going a bit deeper, I found this commit:<br><a href="https://github.com/torvalds/linux/commit/80a32e5b498a7547073e5e4b2b804edc7219979d">https://github.com/torvalds/linux/commit/80a32e5b498a7547073e5e4b2b804edc7219979d</a><br></div><div class="gmail_extra">where LZMA compression gets added to perf.<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Looks like it was enabled default in upstream.<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">So, I guess, we could build perf with NO_LZMA:=1 defined and we could disable it.<br></div><div class="gmail_extra">No strong preferences from me.<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Your call :)<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 26, 2015 at 12:58 PM, John Crispin <span dir="ltr"><<a href="mailto:blogic@openwrt.org" target="_blank">blogic@openwrt.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">thanks ! the patch looks good but i am failing to understand why the<br>
lzma needs to be added :)<br>
<span class="im"><br>
On 26/10/2015 11:52, Alexandru Ardelean wrote:<br>
> Ah, sorry about this.<br>
> I forgot about it ; completely swamped.<br>
><br>
> Will add it in my desktop notes that I keep and come back with an answer<br>
> asap (hopefully today/tomorrow).<br>
><br>
><br>
> On Mon, Oct 26, 2015 at 12:13 PM, John Crispin <<a href="mailto:blogic@openwrt.org">blogic@openwrt.org</a><br>
</span><div class=""><div class="h5">> <mailto:<a href="mailto:blogic@openwrt.org">blogic@openwrt.org</a>>> wrote:<br>
><br>
><br>
><br>
> On 21/10/2015 20:03, John Crispin wrote:<br>
> ><br>
> ><br>
> > On 15/10/2015 15:01, Alexandru Ardelean wrote:<br>
> >> This fix contains 2 parts:<br>
> >> - kernel 4.1: backport upstream patch "perf build: Do not fail on missing Build file"<br>
> >> - add +liblzma dependency<br>
> >><br>
> ><br>
> > did you find out why there is suddenly a dependency on lzma ?<br>
> ><br>
> > John<br>
><br>
><br>
> ping ...<br>
><br>
><br>
</div></div></blockquote></div><br></div></div></div></div>