public inbox for linux-audit@redhat.com
 help / color / mirror / Atom feed
From: Steve Grubb <sgrubb@redhat.com>
To: linux-audit@redhat.com
Subject: Re: cross-compiling difficulty with on-the-fly gen/build/use paradigm
Date: Sat, 18 Aug 2012 09:10:41 -0400	[thread overview]
Message-ID: <16409035.K1xsEVS8pz@x2> (raw)
In-Reply-To: <loom.20120817T220540-441@post.gmane.org>

On Friday, August 17, 2012 08:19:48 PM John Baron wrote:
> I'm having a problem trying to cross-compile audit.  The problem is that
> gen_actiontabs_h is built using the cross-compiler (for ARM), and then it's
> asked to run on the host (x86_64).  [I've seen some discussion of cross-
> compiling, but this issue hasn't been brought up, AFAICT]
> 
> Is there a simple way around this?  A complex way, perhaps?  Extra points
> for simple!

Unfortunately no. This code has been there for quite a while. The issue is 
basically that we were doing performance analysis of ausearch/report and 
libauparse. We found that the integer to string lookups were causing a 
performance hit. Mirek wrote some code to turn these from a serial search into 
a sorted list that I think are now searched using a b-tree algorithm. So, at 
compile time what happens is these tables are sorted so that later they are 
fast. This improved performance quite a bit.

-Steve

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

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-17 20:19 cross-compiling difficulty with on-the-fly gen/build/use paradigm John Baron
2012-08-18 13:10 ` Steve Grubb [this message]
2012-08-20 16:47 ` Miloslav Trmac

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=16409035.K1xsEVS8pz@x2 \
    --to=sgrubb@redhat.com \
    --cc=linux-audit@redhat.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