Re: [PATCH RFC] hist lookups

From: David Miller
Date: Mon Nov 05 2018 - 23:03:44 EST


From: David Miller <davem@xxxxxxxxxxxxx>
Date: Mon, 05 Nov 2018 19:45:42 -0800 (PST)

> Build fix for sparc below, I'm playing with this now.

I get various assertion failures and crashes during make -j128 kernel
builds on my sparc64 box:

====================
perf: Segmentation fault
-------- backtrace --------
/lib/sparc-linux-gnu/libc.so.6(+0x38918)[0xf7264918]
./perf(thread__set_namespaces+0x30)[0x10b2f0]
./perf(machine__process_namespaces_event+0x134)[0xfad54]
./perf[0x517b8]
./perf(queued_events__flush+0xc8)[0x109288]
./perf[0x5133c]
/lib/sparc-linux-gnu/libpthread.so.0(+0x6714)[0xf7c7e714]
/lib/sparc-linux-gnu/libc.so.6(+0xf70b4)[0xf73230b4]
/lib/sparc-linux-gnu/libpthread.so.0(+0x6a84)[0xf7c7ea84]
davem@patience:~/src/GIT/sparc/tools/perf$
====================

and:

====================
perf: /home/davem/src/GIT/sparc/tools/include/linux/refcount.h:131: refcount_sub_and_test: Assertion `!(new > val)' failed.
====================

I don't have a lot of time to try and debug this, but let me know if you
want any fixes tested.

I did look at the changes and I like what you're trying to do.