From: Namhyung Kim <namhyung@kernel.org>
To: Yicong Yang <yangyicong@huawei.com>
Cc: yangyicong@hisilicon.com, acme@kernel.org, peterz@infradead.org,
mingo@redhat.com, linux-perf-users@vger.kernel.org,
mark.rutland@arm.com, alexander.shishkin@linux.intel.com,
jolsa@kernel.org, irogers@google.com, linuxarm@huawei.com,
Guilherme Amadio <amadio@gentoo.org>, Leo Yan <leo.yan@arm.com>
Subject: Re: [PATCH] perf build: Add missing cflags when building with custom libtraceevent
Date: Mon, 4 Nov 2024 22:08:11 -0800 [thread overview]
Message-ID: <Zym2S-7rdqlfMaUK@google.com> (raw)
In-Reply-To: <260274f8-3188-cc77-4783-ee04d98eeb44@huawei.com>
On Tue, Nov 05, 2024 at 10:06:34AM +0800, Yicong Yang wrote:
> On 2024/11/4 20:51, Guilherme Amadio wrote:
> > Hi Namhyung,
> >
> > On Mon, Nov 04, 2024 at 10:47:41AM +0000, Leo Yan wrote:
> >> On Fri, Nov 01, 2024 at 11:23:27PM -0700, Namhyung Kim wrote:
> >>
> >> [...]
> >>
> >>>>> Checked how we handle with libtracefs currently:
> >>>>> ifeq ($(feature-libtracefs), 1)
> >>>>> CFLAGS += $(shell $(PKG_CONFIG) --cflags libtracefs) # we've added the cflags from pkg-config
> >>>>> LDFLAGS += $(shell $(PKG_CONFIG) --libs-only-L libtracefs)
> >>>>
> >>>> The libtracefs.pc file claims requesting libtraceevent, as a result, it
> >>>> returns the header paths for both libtraceevent and libtracefs:
> >>>>
> >>>> $ pkg-config --cflags libtracefs
> >>>> -I/usr/local/include/tracefs -I/usr/local/include/traceevent
> >>>>
> >>>> I checked the packages libtraceevent-dev and libtracefs-dev and either
> >>>> can be installed independently. Therefore, it seems to me that this
> >>>> patch is correct for finding the traceevent header path, with no
> >>>> dependency on tracefs.
> >>>
> >>> I'm ok with the patch itself. Can I get your Acked-by, Leo?
> >>
> >> Yes.
> >>
> >> Reviewed-by: Leo Yan <leo.yan@arm.com>
> >
> > I agree that this was a mistake I made in my patch. I added the cflags
> > to the feature check in tools/build/Makefile.feature, but in Makefile.config
> > I added it only for libtracefs and missed it for libtraceevent. The fixes tag
> > is correct. This patch fixes my mistake.
> >
> > Reviewed-by: Guilherme Amadio <amadio@gentoo.org>
> >
>
> Thanks for the review by Leo and Guilherme!
>
> Hi Namhyung,
>
> As you noticed we should use the include path from pkg-config [1]. Would you like
> to post a patch yourself or want me to post this as well? It's correct and we also
> need this. (I didn't found this may because I changed my custom libtraceevent.pc when
> debugging and currently approach is ok if libtraceevent's installed system wide).
Please do that as a follow-up.
Thanks,
Namhyung
next prev parent reply other threads:[~2024-11-05 6:08 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-24 13:32 [PATCH] perf build: Add missing cflags when building with custom libtraceevent Yicong Yang
2024-10-30 0:12 ` Namhyung Kim
2024-10-30 2:45 ` Yicong Yang
2024-10-30 11:04 ` Leo Yan
2024-11-02 6:23 ` Namhyung Kim
2024-11-04 10:47 ` Leo Yan
2024-11-04 12:51 ` Guilherme Amadio
2024-11-05 2:06 ` Yicong Yang
2024-11-05 6:08 ` Namhyung Kim [this message]
2024-11-05 16:41 ` Namhyung Kim
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=Zym2S-7rdqlfMaUK@google.com \
--to=namhyung@kernel.org \
--cc=acme@kernel.org \
--cc=alexander.shishkin@linux.intel.com \
--cc=amadio@gentoo.org \
--cc=irogers@google.com \
--cc=jolsa@kernel.org \
--cc=leo.yan@arm.com \
--cc=linux-perf-users@vger.kernel.org \
--cc=linuxarm@huawei.com \
--cc=mark.rutland@arm.com \
--cc=mingo@redhat.com \
--cc=peterz@infradead.org \
--cc=yangyicong@hisilicon.com \
--cc=yangyicong@huawei.com \
/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 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).