aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/ifuzz/gen
Commit message (Collapse)AuthorAgeFilesLines
* pkg/ifuzz: reorganize files to allow other architecturesAlexey Kardashevskiy2020-11-202-76449/+0
| | | | | | | | | | | | | | | | | | At the moment ifuzz only generates x86 instructions. In order to support instruction fuzzing for others (ARM, POWERPC), some separation of the common and arch layers is needed. This adds 2 packages: 1. "x86" where x86 instruction generator goes to 2. "ifuzzimpl which contains some common code. The goal was to keep changes to the rand.go to the minimum. The next patch will use this when adding PPC64. This should cause no behavioural change. Signed-off-by: Alexey Kardashevskiy <aik@linux.ibm.com>
* all: mark auto-generated filesDmitry Vyukov2020-07-291-1/+1
| | | | | | | | | | Use the standard Go convention for Go files: https://golang.org/pkg/cmd/go/internal/generate Use github linguish for other files: https://github.com/github/linguist#generated-code Both are understood by github and should result in these files being collapsed in PRs by default.
* all: fix comments formatDmitry Vyukov2020-07-121-1/+1
| | | | | | | Fix capitalization, dots at the end and two spaces after a period. Update #1876
* .golangci.yml: enable funlen checkerDmitry Vyukov2020-06-051-2/+2
| | | | Checks for too long functions (based on lines and statements).
* .golangci.yml: enable gocognit checkerDmitry Vyukov2020-06-051-2/+2
| | | | | Finds too complex functions. Similar to gocyclo, but uses somewhat different metric.
* pkg/ifuzz: update to latest intelxedDmitry Vyukov2019-06-232-3733/+9028
| | | | | Update all-enc-instructions.txt to b7231de4c808db821d64f4018d15412640c34113 and regenerate instruction info.
* .golangci.yml: add codeanalysis build tagDmitry Vyukov2019-05-151-0/+1
| | | | | | | | | Using a build tag to exclude files for golangci-lint reduces memory consumption (it does not parse them). The naive attempt with skip-dirs did not work. So add codeanalysis build tag and use it in auto-generated files. Update #977
* all: fix some static analysis warningsDmitry Vyukov2019-04-231-1/+0
| | | | | | Fix warnings produced by golangci-lint. Update #977
* pkg/ifuzz/generated: change package name to match pathDmitry Vyukov2019-02-191-1/+1
| | | | | Some tools blow up due to the mismatch... Let's use the canonical convention.
* sys/syz-extract: split overly long functionDmitry Vyukov2018-05-071-0/+1
| | | | Update #538
* pkg/ifuzz: move generated code to a separate packageDmitry Vyukov2018-05-071-1/+3
| | | | | | | | This helps to ignore generated code with gometalinter. There is currently no other way: https://github.com/alecthomas/gometalinter/issues/270 Update #538
* gometalinter: enable cyclomatic complexity checkingDmitry Vyukov2018-05-041-71/+85
| | | | | | Refactor some functions to be simpler. Update #538
* gometalinter: enable package comment checkingDmitry Vyukov2018-05-031-1/+1
| | | | Update #538
* all: fix gometalinter warningsDmitry Vyukov2018-03-081-1/+1
| | | | Fix typos, non-canonical code, remove dead code, etc.
* pkg/ifuzz: use serializerDmitry Vyukov2017-09-041-13/+7
| | | | Simplifies code and reduces size of generated code from 820K to 310K.
* pkg/ifuzz: move from ifuzzDmitry Vyukov2017-06-032-0/+71143