diff options
| author | Ondrej Mosnacek <[email protected]> | 2020-04-07 18:28:58 +0000 |
|---|---|---|
| committer | Paul Moore <[email protected]> | 2020-04-17 19:20:22 +0000 |
| commit | e67b2ec9f6171895e774f6543626913960e019df (patch) | |
| tree | e1520bce539fd62639ab310c6c9385522b48c73f /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | selinux: drop unnecessary smp_load_acquire() call (diff) | |
| download | kernel-e67b2ec9f6171895e774f6543626913960e019df.tar.gz kernel-e67b2ec9f6171895e774f6543626913960e019df.zip | |
selinux: store role transitions in a hash table
Currently, they are stored in a linked list, which adds significant
overhead to security_transition_sid(). On Fedora, with 428 role
transitions in policy, converting this list to a hash table cuts down
its run time by about 50%. This was measured by running 'stress-ng --msg
1 --msg-ops 100000' under perf with and without this patch.
Signed-off-by: Ondrej Mosnacek <[email protected]>
Signed-off-by: Paul Moore <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions
