[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Current Eclair analysis


  • To: Jan Beulich <jbeulich@xxxxxxxx>
  • From: Nicola Vetrini <nicola.vetrini@xxxxxxxxxxx>
  • Date: Thu, 11 Dec 2025 16:53:55 +0100
  • Arc-authentication-results: i=1; bugseng.com; arc=none smtp.remote-ip=162.55.131.47
  • Arc-message-signature: i=1; d=bugseng.com; s=openarc; a=rsa-sha256; c=relaxed/relaxed; t=1765468435; h=DKIM-Signature:MIME-Version:Date:From:To:Cc:Subject:In-Reply-To: References:Message-ID:X-Sender:Organization:Content-Type: Content-Transfer-Encoding; bh=edBA1z/pXzn+Zf6HmhT9Cd0ynY3hmVg0pQTsm5cTPDU=; b=vq5ZYyZnVsMrGdgCMEC72/TXeYjTBTj4Wcre3bJZAteqrHUgusel7dJEtXptfP3VIoLU XYafCW4kj+hO/7o2zQ4ZDmODfprhcYQ/gGCGFaQlGPK0e1i81QprU6U8ivsokeypD80yX kR2bZ2MBcpZ5QlFWYLxtSep4BXNGmdkj1v6XLXeJkmD2ODEPcsl6jWjFNH4x7cLgF2Ic9 pK05SuoqmUm7p/FkG5tu5rDgBKTH0cruw1q88BpA8dEwsbbpOJWUWqdWxxkuut2DioYyJ bgZzr65Dh9IxqkDYoBmcNiGJACz5vQKHrmPODZhrWpgRpdhl3aABq3aqbwuD/7FrRWUzO Gb5TSOrk7S+ap8CPIVrDTzLdNNAZEc/bbk2brl8++ppTpb9Fz/OgWN9krNZTyp+q9Fgi6 lvuJUR61fPpBNH3u6H5ITaixJgY9njBOr6eem1yYIl+wS4WMA326qeJdhVNoxAb1bF3QO Q93VL4acXHOapF0sRNpqIJ5GogjNAB/qJuGj7IXZOFk8ldCW3Wr1dsKPAvAjLq/O4dBZa I5kbYXYr63jgEPoBXrGyCRRTzFt5eyn1VgXAql7+64Fz5aOapEFGIJ+tzmGN+aegh4uYi KqPUu9yyurAYIuQfgrT/wAgJRk2n/7nulcaB9k+yvKRfN6X1Tz1gyJTTNiU+i44=
  • Arc-seal: i=1; d=bugseng.com; s=openarc; a=rsa-sha256; cv=none; t=1765468435; b=Rmxg0UOE7LDNSQ+OakoJd9aOn0bPQtNOD4WpxRgMHu3hEkJETn9FwZN2zaYTNyIlWNdA KejWnRcHTXKe2OY9NElRklJljSB5rg9cyZ42Hh2R1lsDujEveX/cLkgy5BqREcChQAi9H YNO33nJz5Zv9H/PcyDt651hl0LM0NDD0PJSzn2A0o8yFZpDvAcULl9LWBj3Fgx/UhttRS 6QmhlZHx1CXqBS9qKvKP3vV4Ju83LHDE+uJts4zFsH1jebaiCfjdc0o6j99FvXDEArtBp xqUhpEqyYcQe1LYjNFgHjhzaGtYbqlq5xe2X8glJ5lAYP2Cn9IQ/pyC9uJJmMC3sXqHK9 o/HF9f4/3t1AaLxU8WGZNwGoHF3boEulvaDGXXY7UKxEWWyPZshtI9kwHmfCv3XFAddxC rRuqrOLkzMmmiH71a3B8n3PgU6KFxjDt5zyKyrgC7WOZGcnEadU3FQ3QXXVMNyWM/DOcq 2521/Hszbm+tTEskw3LIygeEMoanmE0+zzGsUvBtLJzfCcYHWjRfElzHPk3pD7u46lv3M wJopMlg31Ppy9jKs5wwfcIA3/uHxPJo4YcvLG7smB2RhGZNo31SJC5O3Ul300D16iXemz zMe9CnW6wQnEJuFyLRtnzY6Whbycz1vq0d/ZZe/nfK6ghdsT4X82gH8BYm9xZf8=
  • Authentication-results: bugseng.com; arc=none smtp.remote-ip=162.55.131.47
  • Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Bertrand Marquis <Bertrand.Marquis@xxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>
  • Delivery-date: Thu, 11 Dec 2025 15:54:05 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 2025-12-11 11:50, Jan Beulich wrote:
On 11.12.2025 11:08, Nicola Vetrini wrote:
On 2025-12-11 11:00, Jan Beulich wrote:
On 10.12.2025 19:14, Andrew Cooper wrote:
The Eclair step is now the dominating aspect of wallclock time.  While
the recent changes were a step in the right direction, we need some
adjustments.

One other question, related to the "dominating" aspect, but not to any
of the points raised so far. Can scan results possibly be recorded
somehow, somewhere, such that upon re-scanning the same tree (pre-push test followed by post-push test) the identical re-scan can be avoided? And perhaps even incrementally - if only .c files change within a (set
of) commit(s), only re-scan those, rather than everything? Could be
extended to .h files if dependencies were properly taken into account.

We support incremental analysis, but it requires non-trivial changes to
the current Xen integration. If someone wants to invest time and/or
resources in it, I can support the effort, but it requires a fair deal
of rearrangements of scripting in order to avoid losing information

What about the initial part of the question, scanning the exact same tree a 2nd time? Is that merely a special case of "incremental", and hence would
require the same amount of effort?

Jan

I originally misinterpreted your question, and in fact I had an internal discussion on this. What you are asking is not directly supported by eclair because ECLAIR acts based on compiler invocations triggered by the build system, so two different builds are entirely independent of each other, unless a correspondence between analyzed artifacts (analysis frames in ECLAIR jargon) is estabilished. Overall, in our opinion this is best done not internally by ECLAIR, but at a higher (or lower, depending on how you represent it) level, which is the build system level. The idea is basically as follows:

- set up ccache with a remote storage backend (one per machine where runners are hosted is probably the best approximation); - let ccache be used transparently across multiple runs; it will trigger re-compilation only when the file is not already in its cache, and as a consequence trigger the analysis of that TU or program. Due to the dockerization of builds and how gitlab is set up this may require some fumbling with env vars to point to the right compilation cache, but should be doable without too much effort;
- For each run:
  - fetch the result from the base run (for some meaning of "base")
- run an eclair incremental analysis using option +project. This runs the Xen build as usual, but using ccache (I think other projects such as Zephyr already do something similar in their CI); - load new results in the old database, substituting evidences related to the same TU (done with a specific eclair_report flag).

In essence this covers both usecases, but it requires a nontrivial amount of effort.

N.B. ECLAIR does not use ccache internally: its concept of incremental analysis is completely orthogonal to the one that ccache uses.


--
Nicola Vetrini, B.Sc.
Software Engineer
BUGSENG (https://bugseng.com)
LinkedIn: https://www.linkedin.com/in/nicola-vetrini-a42471253



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.