From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 127878 invoked by alias); 30 Jun 2015 14:54:59 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 127803 invoked by uid 89); 30 Jun 2015 14:54:59 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.9 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mga03.intel.com Received: from mga03.intel.com (HELO mga03.intel.com) (134.134.136.65) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 30 Jun 2015 14:54:55 +0000 Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga103.jf.intel.com with ESMTP; 30 Jun 2015 07:54:28 -0700 X-ExtLoop1: 1 Received: from irsmsx154.ger.corp.intel.com ([163.33.192.96]) by orsmga002.jf.intel.com with ESMTP; 30 Jun 2015 07:54:27 -0700 Received: from irsmsx104.ger.corp.intel.com ([169.254.5.171]) by IRSMSX154.ger.corp.intel.com ([169.254.12.91]) with mapi id 14.03.0224.002; Tue, 30 Jun 2015 15:54:21 +0100 From: "Metzger, Markus T" To: Pedro Alves CC: "gdb-patches@sourceware.org" Subject: RE: [PATCH 1/5] configure: check for libipt Date: Tue, 30 Jun 2015 14:54:00 -0000 Message-ID: References: <1435047418-21611-1-git-send-email-markus.t.metzger@intel.com> <1435047418-21611-2-git-send-email-markus.t.metzger@intel.com> <559291F2.4010504@redhat.com> In-Reply-To: <559291F2.4010504@redhat.com> Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2015-06/txt/msg00640.txt.bz2 > -----Original Message----- > From: gdb-patches-owner@sourceware.org [mailto:gdb-patches- > owner@sourceware.org] On Behalf Of Pedro Alves > Sent: Tuesday, June 30, 2015 2:56 PM > To: Metzger, Markus T > Cc: gdb-patches@sourceware.org > Subject: Re: [PATCH 1/5] configure: check for libipt >=20 > On 06/23/2015 09:16 AM, Markus Metzger wrote: > > Check for libipt, an Intel(R) Processor Trace decoder library. The sou= rces > > can be found on github at: > > > > https://github.com/01org/processor-trace > > > > 2015-06-23 Markus Metzger > > > > * configure.ac: Check for libipt > > * configure: Regenerate. > > * config.in: Regenerate. > > * Makefile.in (LIBIPT): New. > > (CLIBS): Add $LIBIPT. >=20 > OK. >=20 > Is the library host independent? That is, does it handle > host vs target endianness, integer types, etc.? E.g., is a big endian PPC > host debugging against an x86-64 gdbserver able to use libipt? Another > example would be a big endian PPC host loading an x86-64 core dump that > includes ipt data (once we get to it). No. It may not be too hard to make it work, though. Most of the memory accesses are byte-wise, already. I don't have a PPC system to test this configuration. Is this something where Sergio's buildbot can help? How is this cross-platform testing usually handled? Until libipt is available for PPC, you simply can't build a GDB with Intel = PT support on PPC. When you configure GDB, HAVE_LIBIPT will be undefined and GDB will fall back to BTS or report an error. We're not breaking anyth= ing. The feature will just not be available on all platforms. Regards, Markus. Intel GmbH Dornacher Strasse 1 85622 Feldkirchen/Muenchen, Deutschland Sitz der Gesellschaft: Feldkirchen bei Muenchen Geschaeftsfuehrer: Christian Lamprechter, Hannes Schwaderer, Douglas Lusk Registergericht: Muenchen HRB 47456 Ust.-IdNr./VAT Registration No.: DE129385895 Citibank Frankfurt a.M. (BLZ 502 109 00) 600119052