aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/compiler/meta.go
Commit message (Collapse)AuthorAgeFilesLines
* pkg/compiler: add automatic metaDmitry Vyukov2024-12-111-5/+18
| | | | | | Mark the whole file with "meta automatic" instead of marking each syscall. This reduces size of descriptions + allows to do special things with the whole file (e.g. we already treat auto consts specially).
* pkg/ast, pkg/compiler: support per-file metadataDmitry Vyukov2022-04-291-0/+88
We have a bunch of hacks in syz-extract, syz-sysgen and syz-check with respect to description files unsupported on some arches, or that must not be part of make extract. Add 2 meta attribtues to files: meta noextract Tells `make extract` to not extract constants for this file. Though, `syz-extract` can still be invoked manually on this file. meta arches["arch1", "arch2"] Restricts this file only to the given set of architectures. `make extract` and ``make generate` will not use it on other architectures. Later we can potentially use meta attributes to specify git tree/commit that must be used for extraction. Maybe something else. Fixes #2754