This patch makes changes to the stdlib based on the gem5 Vision project. Firstly, a MongoDB database is supported. A JSON database's support is continued. The JSON can either be a local path or a raw GitHub link. The data for these databases is stored in src/python under "gem5-config.json". This will be used by default. However, the configuration can be overridden: - by providing a path using the GEM5_CONFIG env variable. - by placing a gem5-config.json file in the current working directory. An AbstractClient is an abstract class that implements searching and sorting relevant to the databases. Clients is an optional list that can be passed while defining any Resource class and obtain_resource. These databases can be defined in the config JSON. Resources now have versions. This allows for a single version, e.g., 'x86-ubuntu-boot', to have multiple versions. As such, the key of a resource is its ID and Version (e.g., 'x86-ubuntu-boot/v2.1.0'). Different versions of a resource might be compatible with different versions of gem5. By default, it picks the latest version compatible with the gem5 Version of the user. A gem5 resource schema now has additional fields. These are: - source_url: Stores URL of GitHub Source of the resource. - license: License information of the resource. - tags: Words to identify a resource better, like hello for hello-world - example_usage: How to use the resource in a simulation. - gem5_versions: List of gem5 versions that resource is compatible with. - resource_version: The version of the resource itself. - size: The download size of the resource, if it exists. - code_examples: List of objects. These objects contain the path to where a resource is used in gem5 example config scripts, and if the resource itself is used in tests or not. - category: Category of the resource, as defined by classes in src/python/gem5/resources/resource.py. Some fields have been renamed: - "name" is changed to "id" - "documentation" is changed to "description" Besides these, the schema also supports resource specialization. It adds fields relevant to a specific resource as specified in src/python/gem5/resources/resource.py These changes have been made to better present information on the new gem5 Resources website. But, they do not affect the way resources are used by a gem5 user. This patch is also backwards compatible. Existing code doesn't break with this new infrastructure. Also, refs in the tests have been changed to match this new schema. Tests have been changed to work with the two clients. Change-Id: Ia9bf47f7900763827fd5e873bcd663cc3ecdba40 Co-authored-by: Kunal Pai <kunpai@ucdavis.edu> Co-authored-by: Parth Shah <helloparthshah@gmail.com> Co-authored-by: Harshil Patel <harshilp2107@gmail.com> Co-authored-by: aarsli <arsli@ucdavis.edu> Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/70858 Tested-by: kokoro <noreply+kokoro@google.com> Maintainer: Jason Lowe-Power <power.jg@gmail.com> Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
182 lines
5.7 KiB
JSON
182 lines
5.7 KiB
JSON
[
|
|
{
|
|
"category": "kernel",
|
|
"id": "kernel-example",
|
|
"description": "kernel-example documentation.",
|
|
"architecture": "RISCV",
|
|
"is_zipped": false,
|
|
"md5sum": "60a53c7d47d7057436bf4b9df707a841",
|
|
"url": "http://dist.gem5.org/dist/develop/kernels/x86/static/vmlinux-5.4.49",
|
|
"source": "src/linux-kernel",
|
|
"resource_version": "1.0.0",
|
|
"gem5_versions": [
|
|
"23.0"
|
|
]
|
|
},
|
|
{
|
|
"category": "disk-image",
|
|
"id": "disk-image-example",
|
|
"description": "disk-image documentation.",
|
|
"architecture": "X86",
|
|
"is_zipped": true,
|
|
"md5sum": "90e363abf0ddf22eefa2c7c5c9391c49",
|
|
"url": "http://dist.gem5.org/dist/develop/images/x86/ubuntu-18-04/x86-ubuntu.img.gz",
|
|
"source": "src/x86-ubuntu",
|
|
"root_partition": "1",
|
|
"resource_version": "1.0.0",
|
|
"gem5_versions": [
|
|
"23.0"
|
|
]
|
|
},
|
|
{
|
|
"category": "binary",
|
|
"id": "binary-example",
|
|
"description": "binary-example documentation.",
|
|
"architecture": "ARM",
|
|
"is_zipped": false,
|
|
"md5sum": "71b2cb004fe2cda4556f0b1a38638af6",
|
|
"url": "http://dist.gem5.org/dist/develop/test-progs/hello/bin/arm/linux/hello64-static",
|
|
"source": "src/simple",
|
|
"resource_version": "1.0.0",
|
|
"gem5_versions": [
|
|
"23.0"
|
|
]
|
|
},
|
|
{
|
|
"category": "bootloader",
|
|
"id": "bootloader-example",
|
|
"description": "bootloader documentation.",
|
|
"is_zipped": false,
|
|
"md5sum": "71b2cb004fe2cda4556f0b1a38638af6",
|
|
"url": "http://dist.gem5.org/dist/develop/test-progs/hello/bin/arm/linux/hello64-static",
|
|
"resource_version": "1.0.0",
|
|
"gem5_versions": [
|
|
"23.0"
|
|
]
|
|
},
|
|
{
|
|
"category": "checkpoint",
|
|
"id": "checkpoint-example",
|
|
"description": "checkpoint-example documentation.",
|
|
"architecture": "RISCV",
|
|
"is_zipped": false,
|
|
"md5sum": "3a57c1bb1077176c4587b8a3bf4f8ace",
|
|
"source": null,
|
|
"is_tar_archive": true,
|
|
"url": "http://dist.gem5.org/dist/develop/checkpoints/riscv-hello-example-checkpoint.tar",
|
|
"resource_version": "1.0.0",
|
|
"gem5_versions": [
|
|
"23.0"
|
|
]
|
|
},
|
|
{
|
|
"category": "git",
|
|
"id": "git-example",
|
|
"description": null,
|
|
"is_zipped": false,
|
|
"is_tar_archive": true,
|
|
"md5sum": "71b2cb004fe2cda4556f0b1a38638af6",
|
|
"url": "http://dist.gem5.org/dist/develop/checkpoints/riscv-hello-example-checkpoint.tar",
|
|
"resource_version": "1.0.0",
|
|
"gem5_versions": [
|
|
"23.0"
|
|
]
|
|
},
|
|
{
|
|
"category": "file",
|
|
"id": "file-example",
|
|
"description": null,
|
|
"is_zipped": false,
|
|
"md5sum": "71b2cb004fe2cda4556f0b1a38638af6",
|
|
"url": "http://dist.gem5.org/dist/develop/checkpoints/riscv-hello-example-checkpoint.tar",
|
|
"source": null,
|
|
"resource_version": "1.0.0",
|
|
"gem5_versions": [
|
|
"23.0"
|
|
]
|
|
},
|
|
{
|
|
"category": "directory",
|
|
"id": "directory-example",
|
|
"description": "directory-example documentation.",
|
|
"is_zipped": false,
|
|
"md5sum": "3a57c1bb1077176c4587b8a3bf4f8ace",
|
|
"source": null,
|
|
"is_tar_archive": true,
|
|
"url": "http://dist.gem5.org/dist/develop/checkpoints/riscv-hello-example-checkpoint.tar",
|
|
"resource_version": "1.0.0",
|
|
"gem5_versions": [
|
|
"23.0"
|
|
]
|
|
},
|
|
{
|
|
"category": "simpoint-directory",
|
|
"id": "simpoint-directory-example",
|
|
"description": "simpoint directory documentation.",
|
|
"is_zipped": false,
|
|
"md5sum": "3fcffe3956c8a95e3fb82e232e2b41fb",
|
|
"source": null,
|
|
"is_tar_archive": true,
|
|
"url": "http://dist.gem5.org/dist/develop/simpoints/x86-print-this-15000-simpoints-20221013.tar",
|
|
"simpoint_interval": 1000000,
|
|
"warmup_interval": 1000000,
|
|
"simpoint_file": "simpoint.simpt",
|
|
"weight_file": "simpoint.weight",
|
|
"workload_name": "Example Workload",
|
|
"resource_version": "1.0.0",
|
|
"gem5_versions": [
|
|
"23.0"
|
|
]
|
|
},
|
|
{
|
|
"category": "simpoint",
|
|
"id": "simpoint-example",
|
|
"description": "simpoint documentation.",
|
|
"simpoint_interval": 1000000,
|
|
"warmup_interval": 23445,
|
|
"simpoint_list": [
|
|
2,
|
|
3,
|
|
4,
|
|
15
|
|
],
|
|
"weight_list": [
|
|
0.1,
|
|
0.2,
|
|
0.4,
|
|
0.3
|
|
],
|
|
"resource_version": "1.0.0",
|
|
"gem5_versions": [
|
|
"23.0"
|
|
]
|
|
},
|
|
{
|
|
"category": "looppoint-pinpoint-csv",
|
|
"id": "looppoint-pinpoint-csv-resource",
|
|
"description": "A looppoint pinpoints csv file.",
|
|
"is_zipped": false,
|
|
"md5sum": "199ab22dd463dc70ee2d034bfe045082",
|
|
"url": "http://dist.gem5.org/dist/develop/pinpoints/x86-matrix-multiply-omp-100-8-global-pinpoints-20230127",
|
|
"source": null,
|
|
"resource_version": "1.0.0",
|
|
"gem5_versions": [
|
|
"23.0"
|
|
]
|
|
},
|
|
{
|
|
"category": "looppoint-json",
|
|
"id": "looppoint-json-restore-resource-region-1",
|
|
"description": "A looppoint json file resource.",
|
|
"is_zipped": false,
|
|
"region_id": "1",
|
|
"md5sum": "a71ed64908b082ea619b26b940a643c1",
|
|
"url": "http://dist.gem5.org/dist/develop/looppoints/x86-matrix-multiply-omp-100-8-looppoint-json-20230128",
|
|
"source": null,
|
|
"resource_version": "1.0.0",
|
|
"gem5_versions": [
|
|
"23.0"
|
|
]
|
|
}
|
|
]
|