Skip to content
Commit c600cfa8 authored by Pierre Gondois's avatar Pierre Gondois
Browse files

lisa._assets.kmodules.lisa: Create VFS for lisa module



In order to configure lisa features and their parameters at
runtime, add support for a VFS in the lisa module.

The lisa VFS can be mounted as:
$ mount -t lisa none /sys/fs/lisa

It contains the following files/folders:
lisa_fs
\-activate                  # Activate this config
\-available_features        # List of available features
\-event__lisa__perf_counter # (E.g.) Dir to configure perf_counter feature
  \-generic_counters        # Generic counter to track
  \-pmu_raw_counters        # PMU raw counters to track
\-configs                   # Allow multiple configurations
  \-custom_conf_0           # Custom configuration ()
    \- ...                  # Similar files as in lisa_fs/
\-set_features              # Features to enable

A feature can have various parameters. For instance, the
'event__lisa__perf_counter' feature has two parameters that can
be configured: 'generic_counters', 'pmu_raw_counters'.

Multiple configurations can co-exist. The 'main' configuration is shown
above, and other custom configurations can be created in the 'configs'
directory.
Upon activation, the configuration is provided to all features. Each
feature is then responsible of merging/aggregating the configurations.

Original-author: Beata Michalska <beata.michalska@arm.com>
Signed-off-by: Pierre Gondois's avatarPierre Gondois <pierre.gondois@arm.com>
parent c8ea59d0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment