All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: Jiri Slaby <jslaby@suse.cz>
Cc: acme@redhat.com, stable@vger.kernel.org, stable-commits@vger.kernel.org
Subject: Re: Patch "perf test: Ignore kcore files in the "vmlinux matches kallsyms" test" has been added to the 4.4-stable tree
Date: Mon, 8 Aug 2016 15:18:34 +0200	[thread overview]
Message-ID: <20160808131834.GA9357@kroah.com> (raw)
In-Reply-To: <bfca00e8-53c8-81ed-eba9-15d4054aacf6@suse.cz>

On Mon, Aug 08, 2016 at 11:37:56AM +0200, Jiri Slaby wrote:
> On 08/02/2016, 09:03 AM, gregkh@linuxfoundation.org wrote:
> > From: Arnaldo Carvalho de Melo <acme@redhat.com>
> > Date: Tue, 19 Apr 2016 12:16:55 -0300
> > Subject: perf test: Ignore kcore files in the "vmlinux matches kallsyms" test
> > 
> > From: Arnaldo Carvalho de Melo <acme@redhat.com>
> > 
> > commit 53d0fe68275dbdaf6a532bb4e87f00db5d36c140 upstream.
> ...
> > --- a/tools/perf/tests/vmlinux-kallsyms.c
> > +++ b/tools/perf/tests/vmlinux-kallsyms.c
> > @@ -54,8 +54,14 @@ int test__vmlinux_matches_kallsyms(void)
> >  	 * Step 3:
> >  	 *
> >  	 * Load and split /proc/kallsyms into multiple maps, one per module.
> > +	 * Do not use kcore, as this test was designed before kcore support
> > +	 * and has parts that only make sense if using the non-kcore code.
> > +	 * XXX: extend it to stress the kcorre code as well, hint: the list
> > +	 * of modules extracted from /proc/kcore, in its current form, can't
> > +	 * be compacted against the list of modules found in the "vmlinux"
> > +	 * code and with the one got from /proc/modules from the "kallsyms" code.
> >  	 */
> > -	if (machine__load_kallsyms(&kallsyms, "/proc/kallsyms", type, NULL) <= 0) {
> > +	if (__machine__load_kallsyms(&kallsyms, "/proc/kallsyms", type, true, NULL) <= 0) {
> 
> __machine__load_kallsyms is only in 4.7+. So this patch breaks build of
> perf:
> perf-in.o: In function `test__vmlinux_matches_kallsyms':
> tools/perf/tests/vmlinux-kallsyms.c:64: undefined reference to
> `__machine__load_kallsyms'
> collect2: error: ld returned 1 exit status
> Makefile.perf:316: recipe for target 'perf' failed
> 
> It is only a test fix, so I think the patch should be dropped from both
> 4.4 and 4.6.

Yeah, I got another report of this over the weekend, I've now dropped
this patch, sorry about that.

greg k-h

      reply	other threads:[~2016-08-08 13:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-02  7:03 Patch "perf test: Ignore kcore files in the "vmlinux matches kallsyms" test" has been added to the 4.4-stable tree gregkh
2016-08-08  9:37 ` Jiri Slaby
2016-08-08 13:18   ` Greg KH [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160808131834.GA9357@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=acme@redhat.com \
    --cc=jslaby@suse.cz \
    --cc=stable-commits@vger.kernel.org \
    --cc=stable@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.