Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

Commit

Permalink
[LibOS] Add number_of_sets path to sysfs cache info
Browse files Browse the repository at this point in the history
This commit adds `number_of_sets` path to sysfs cache info
that was missed while refactoring sysfs. Also, updated the
test script to validate this path.

Signed-off-by: Vijay Dhanraj <vijay.dhanraj@intel.com>
  • Loading branch information
vijaydhanraj committed Sep 19, 2021
1 parent 67658e5 commit 63f6412
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions LibOS/shim/src/fs/sys/fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ static void init_cpu_dir(struct pseudo_node* cpu) {
pseudo_add_str(indexX, "type", &sys_cache_load);
pseudo_add_str(indexX, "size", &sys_cache_load);
pseudo_add_str(indexX, "coherency_line_size", &sys_cache_load);
pseudo_add_str(indexX, "number_of_sets", &sys_cache_load);
pseudo_add_str(indexX, "physical_line_partition", &sys_cache_load);
}

Expand Down
1 change: 1 addition & 0 deletions LibOS/shim/test/regression/test_libos.py
Original file line number Diff line number Diff line change
Expand Up @@ -816,6 +816,7 @@ def test_040_sysfs(self):
self.assertIn(f'{cache}/type: file', lines)
self.assertIn(f'{cache}/size: file', lines)
self.assertIn(f'{cache}/coherency_line_size: file', lines)
self.assertIn(f'{cache}/number_of_sets: file', lines)
self.assertIn(f'{cache}/physical_line_partition: file', lines)

self.assertIn('/sys/devices/system/node: directory', lines)
Expand Down

0 comments on commit 63f6412

Please sign in to comment.