aboutsummaryrefslogtreecommitdiffstats
path: root/prog/prio.go
diff options
context:
space:
mode:
authorJoey Jiaojg <joeyjiaojg@gmail.com>2021-05-26 19:38:04 +0800
committerGitHub <noreply@github.com>2021-05-26 13:38:04 +0200
commit3da9017c17c7d2432c4b76345c4d2efbeedd2935 (patch)
tree47e9b10fc542a1f5a1c785027ec6d2fce1a7dfef /prog/prio.go
parent1f4e6ed95868861aae449b3630e6cfe5a2b96c93 (diff)
pkg/compiler: add glob type
* all: add new typename dirname The current way to check files under sysfs or proc is: - define a string to represent each file - open the file - pass the fd to write / read / close The issues above are: - Need to know what file present on target device - Need to write openat for each file With dirname added, which will open one file in the directory randomly and then pass the fd to write/read/close. * all: use typename glob to match filename Fixes #481
Diffstat (limited to 'prog/prio.go')
-rw-r--r--prog/prio.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/prog/prio.go b/prog/prio.go
index 2c3436151..4cf3daf90 100644
--- a/prog/prio.go
+++ b/prog/prio.go
@@ -97,7 +97,7 @@ func (target *Target) calcResourceUsage() map[string]map[int]weights {
case *BufferType:
switch a.Kind {
case BufferBlobRand, BufferBlobRange, BufferText:
- case BufferString:
+ case BufferString, BufferGlob:
if a.SubKind != "" {
noteUsage(uses, c, 2, ctx.Dir, fmt.Sprintf("str-%v", a.SubKind))
}