~ondrak/+git/snapd:interfaces-aa-parser-tuning

Last commit made on 2023-07-05
Get this branch:
git clone -b interfaces-aa-parser-tuning https://git.launchpad.net/~ondrak/+git/snapd
Only Ondrej Kubik can upload to this branch. If you are Ondrej Kubik please log in for upload directions.

Branch merges

Branch information

Name:
interfaces-aa-parser-tuning
Repository:
lp:~ondrak/+git/snapd

Recent commits

d3672d0... by Ondrej Kubik

interfaces: fwupd: tune generated aa profile to be more aa_parser friendly

Signed-off-by: Ondrej Kubik <email address hidden>

c3d4642... by Ondrej Kubik

interfaces: browser-support: tune generated aa profile to be more aa_parser friendly

Signed-off-by: Ondrej Kubik <email address hidden>

66b2ad5... by Ondrej Kubik

interfaces: camera: tune generated aa profile to be more aa_parser friendly

Signed-off-by: Ondrej Kubik <email address hidden>

55f422e... by Ondrej Kubik

interfaces: template: tune generated aa profile to be more aa_parser friendly

Optimize apparmor profile to make parser's life easier.
Intention of this change is to make profile easier but still with identical
result once parsed.
This change makes every profile a bit faster to parse, but as it is used by
every profile, gain is multiplied by the number of profiles.
As reference on arm63 (1 GHz Cortex® A53) this gains ~400ms per profile
On tested embedded device with ~40 profiles, snapd refresh could speed up by ~16 seconds

Signed-off-by: Ondrej Kubik <email address hidden>

cc79851... by Samuele Pedroni

i/mount: use testutil.DeepUnsortedMatches instead of explicit sorting

thanks @MiguelPires

b618145... by Samuele Pedroni

i/mount: the new .fstab is kept even if snapd-update-ns fails

no undo at this level itself

c12e59f... by Samuele Pedroni

interfaces: add some tests for the mount backend ns update case

befebe0... by Alfonso Sanchez-Beato

gadget: check partial schema is ok in updates/remodeling

bf6c94a... by Alfonso Sanchez-Beato

gadget: remove impossible checks for empty schema

Schema is set when the gadget information is read, unless we have a
partial schema. Either case, these tests cannot really fail.

8a9f3c8... by Alfonso Sanchez-Beato

many: move helper gadgettest function to gadget

Move SetEnclosingVolumeInStructs from gadgettest to gadget package so
it can be used from production code.