aboutsummaryrefslogtreecommitdiffstats
path: root/prog/size.go
diff options
context:
space:
mode:
authorshankarapailoor <pailoor@uchicago.edu>2018-12-06 09:25:37 -0600
committerDmitry Vyukov <dvyukov@google.com>2018-12-06 16:25:37 +0100
commit6a60a195309f4bb20ddf43fea9fb5b9676d31bf3 (patch)
tree3415c8fd7d44766d8159e4473dc469c419dd53ea /prog/size.go
parent3ab38479ab60b50d5b27332bd001c78382877ecd (diff)
tools/syz-trace2syz: add tool to convert strace output to programs
* fixing weird merge error * fixing presubmit * fixing presubmit * removing parsing code because of -Xraw option * fix presubmit * update * deleting vma_call_handlers as we are currently skipping most vma calls. This simplifies memory_tracker as we don't need to keep track of vma allocations * removing custom handling of bpf_instruction union * removing ifconf parsing * update * removed all expression types and replaced them with constant types. removing ipv6_addr parsing while -Xraw is getting fixed. Removing constants.go * removing ipv6 parsing * presubmit * moving direction check from ipv4_addr out to genUnion * removing code that parses kcov * removing redundant test * removing custom code in generate unions to fill ipv4_addr * proggen: changing order of imports to make external packages import first fixing presubmit * changing log messages to lower case to be consistent with other packages. * removing pointer type and simplifying memory_tracker removing comment * moving context and return_cache to seaparate files * deleting default argument generation when we should probably throw an error
Diffstat (limited to 'prog/size.go')
-rw-r--r--prog/size.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/prog/size.go b/prog/size.go
index c16e7f647..a8f51bdef 100644
--- a/prog/size.go
+++ b/prog/size.go
@@ -112,6 +112,10 @@ func (target *Target) assignSizesArray(args []Arg) {
}
}
+func (target *Target) AssignSizesCall(c *Call) {
+ target.assignSizesCall(c)
+}
+
func (target *Target) assignSizesCall(c *Call) {
target.assignSizesArray(c.Args)
}