Emil Abbasov
22860ba0d1
Merge pull request #380 from gwsystems/mt-dbf
...
Merging this since it is mainly bash scripts added for multi tenancy testbed.
2 years ago
Sean McBride
56f32ec44b
refactor: HTTP memstreams ( #363 )
...
* feat: response body memstream
* feat: auto_buf response header
* chore: format nit
* feat: request memstream
* removed zombie http-req-size from README files
* fix panic typos
* Update parser structure with the new http_body start address when buffer is moved by memstream
* fix case when header_length is zero at the beginning
Co-authored-by: emil <emil916@gmail.com>
3 years ago
Sean McBride
41a087394e
refactor: Increase buffer by explicit size
3 years ago
Sean McBride
f4fdc4a501
fix: Handle STDIN reads without a body
3 years ago
Sean McBride
c3d0fe375a
refactor: parsing and validation
3 years ago
Sean McBride
05dde38ea2
feat: dynamic http buffers
3 years ago
Sean McBride
01cca785f4
feat: partial tenant implementation
3 years ago
Sean McBride
ee24d1f5b0
refactor: http-session
3 years ago
Sean McBride
77f63c15de
feat: stub for sock_accept
3 years ago
Sean McBride
d05a58af75
feat: module name as first argument
3 years ago
Sean McBride
255461198d
fix: wasi args
3 years ago
Sean McBride
135ba6105f
chore: update wasm apps
3 years ago
Sean McBride
62a8dafa7c
feat: sigfpe wasm traps
3 years ago
Sean McBride
15c6606353
refator: replace malloc with calloc
3 years ago
Sean McBride
eb74a306ff
Wasm traps ( #301 )
...
* feat: Preliminary WASI with fib workload
* refactor: Clarify initialize globals
* chore: Update empty to WASI
* chore: cleanup fib test
* chore: cleanup build tooling
* chore: cleanup test Makefiles and some nits
* chore: Update LLVM and install WASI-SDK
* chore: Update build tools and specs
* docs: Update example module spec in README
* refactor: Clean up HTTP handling
* feat: Implement exit WASI call
* style: apply clang-format
* ci: rewrite compile sledge step
* build: Remove LLVM install shims
* build: Try manually adding libunwind
* build: Try adding libunwind-dev
* ci: break out aWsm compile step
* fix: Correct test build error
* fix: Correct error in WASI fd_write
* chore: Increase gocr http buffer size
* test: Correct image resize test
* chore: Remove zombie wasmception functions
* chore: Reduce dummy args to single arg
* chore: Add debugging makefile fivebyeight
* chore: Remove erronious PHONYs in tests Makefile
* ci: Disable gocr tests
* chore: Add wat Make rule to fibonacci test
* chore: fix apt package name
* chore: Enable clean of failed ck install
* chore: use LLVM 12
* test: Disable gocr tests
* chore: Enhance test makefile
* chore: Add CFILES as sledgert dep
* chore: Add NULL check for function table pointer
* chore: Add missing header
* chore: uncomment cleanup in imageresize test
* refactor: Remove unused linear memory functions
* build: Add bimodal debug makefile
* chore: Add linear memory debug logs
* refactor: Cleanup region initialization
* build: Correct PHONY in runtime Makefile
* chore: deb install script for outside of container
* refactor: Remove zombie extern.
* feat: WebAssembly traps
* refactor: Use C18 features
* chore: Remove git diff annotations
* fix: tweaks to run all sample apps with WASI
* test: convert shell script to Makefile
* build: clean generated ck Makefile
* chore: Use awsm branch with fixes
* chore: Revert name changes
* fix: Correct type issues
* refactor: Reverse additional name change
* refactor: Remove awsm compat shims
* chore: Remove libc association
* build: Better detect header file changes
* refactor: current_wasm_module_instance_trap
* test: reenable tests
* chore: Delete copied script
* build: Fix test workloads
* fix: Implement HTTP 500
* fix: Protect against overflow on comparison
* build: Replace test.sh with makefile
* refactor: blow away tmp directory conflicts
* refactor: centralize wasm in single submodule
* feat: libsledge and sledge ABI
* chore: move tests
* refactor: tests
* chore: update wasm_apps with new sample data
* doc: Initial ABI README
* feat: globals table
* docs: Merge aWsm ABI docs
* docs: libsledge ABI
* build: rename apps to keep consistent
* build: Disable wasm proposals
* build: Update wasm apps and fix typo
* test: test makefiles
* test: Additional test makefiles
* build: top-level build and install rules wo Docker
* docs: Add wasm lld comment
* build: top level makefile
* chore: merge debug flags
* fix: Correct out of bounds error
* feat: indirection to awsm ABI
* fix: Correct link hack with proper flag
* fix: gps typo
* chore: format nit
* ci: update makefile rules
* ci: check WASI_SDK_PATH
* fix: Adjust paths
* ci: fix make rule name
* refactor: Attempt to use generic vec
* refactor: Remove type-specific vec
* fix: Resolve assorted TODOs
* chore: fix clang format issue
* ci: Invalidate app cache on libsledge changes
* fix: Correct wasm trap check
* fix: free wasm globals
* docs: example of running top level tests via make
* chore: option to log unsupported wasi
* test: add preempt client generator for fib bimodal
* refactor: Allocate wasm memory with 4096 align
* fix: Handle build without runtime globals
* refactor: bypass runtime call for first global
* fix: Correct sandbox logging
* test: fix incorrect paths in test.mk
* refactor: cleanup basic traps logic
* test: trap_divzero
* fix: Correct inverted trap control flow
* ci: Invalidate awsm cache
* ci: divide by zero trap
* chore: Assorted cleanup
* ci: Install httpie
* chore: Remove stdio calls in libsledge
* chore: update submodules
3 years ago
Sean McBride
7cacac64c0
WIP: WASI Support ( #267 )
...
* feat: Preliminary WASI with fib workload
* refactor: Clarify initialize globals
* chore: Update empty to WASI
* chore: cleanup fib test
* chore: cleanup build tooling
* chore: cleanup test Makefiles and some nits
* chore: Update LLVM and install WASI-SDK
* chore: Update build tools and specs
* docs: Update example module spec in README
* refactor: Clean up HTTP handling
* feat: Implement exit WASI call
* style: apply clang-format
* ci: rewrite compile sledge step
* build: Remove LLVM install shims
* build: Try manually adding libunwind
* build: Try adding libunwind-dev
* ci: break out aWsm compile step
* fix: Correct test build error
* fix: Correct error in WASI fd_write
* chore: Increase gocr http buffer size
* test: Correct image resize test
* chore: Remove zombie wasmception functions
* chore: Reduce dummy args to single arg
* chore: Add debugging makefile fivebyeight
* chore: Remove erronious PHONYs in tests Makefile
* ci: Disable gocr tests
* chore: Add wat Make rule to fibonacci test
* chore: fix apt package name
* chore: Enable clean of failed ck install
* chore: use LLVM 12
* test: Disable gocr tests
* chore: Enhance test makefile
* chore: Add CFILES as sledgert dep
* chore: Add NULL check for function table pointer
* chore: Add missing header
* chore: uncomment cleanup in imageresize test
* refactor: Remove unused linear memory functions
* build: Add bimodal debug makefile
* chore: Add linear memory debug logs
* refactor: Cleanup region initialization
* build: Correct PHONY in runtime Makefile
* chore: deb install script for outside of container
* refactor: Remove zombie extern.
* feat: WebAssembly traps
* refactor: Use C18 features
* chore: Remove git diff annotations
* fix: tweaks to run all sample apps with WASI
* test: convert shell script to Makefile
* build: clean generated ck Makefile
* chore: Use awsm branch with fixes
* chore: Revert name changes
* fix: Correct type issues
* refactor: Reverse additional name change
* refactor: Remove awsm compat shims
* chore: Remove libc association
* build: Better detect header file changes
* refactor: current_wasm_module_instance_trap
* test: reenable tests
* chore: Delete copied script
* build: Fix test workloads
* fix: Implement HTTP 500
* fix: Protect against overflow on comparison
* build: Replace test.sh with makefile
* refactor: blow away tmp directory conflicts
* refactor: centralize wasm in single submodule
* feat: libsledge and sledge ABI
* chore: move tests
* refactor: tests
* chore: update wasm_apps with new sample data
* doc: Initial ABI README
* feat: globals table
* docs: Merge aWsm ABI docs
* docs: libsledge ABI
* build: rename apps to keep consistent
* build: Disable wasm proposals
* build: Update wasm apps and fix typo
* test: test makefiles
* test: Additional test makefiles
* build: top-level build and install rules wo Docker
* docs: Add wasm lld comment
* build: top level makefile
* chore: merge debug flags
* fix: Correct out of bounds error
* feat: indirection to awsm ABI
* fix: Correct link hack with proper flag
* fix: gps typo
* chore: format nit
* ci: update makefile rules
* ci: check WASI_SDK_PATH
* fix: Adjust paths
* ci: fix make rule name
* refactor: Attempt to use generic vec
* refactor: Remove type-specific vec
* fix: Resolve assorted TODOs
* chore: fix clang format issue
* ci: Invalidate app cache on libsledge changes
* fix: Correct wasm trap check
* fix: free wasm globals
* docs: example of running top level tests via make
* chore: option to log unsupported wasi
* test: add preempt client generator for fib bimodal
* refactor: Allocate wasm memory with 4096 align
* fix: Handle build without runtime globals
* refactor: bypass runtime call for first global
* fix: Correct sandbox logging
* test: fix incorrect paths in test.mk
* refactor: remove wasm traps
* refactor: Revert additional traps and changes
* refactor: Remove additional traps
* refactor: Disable exit support
* fix: block preemption in memory allocation
* feat: wasm g0 write back
* build: cleanup applications Makefile
* chore: Reorder bash variables
* docs: Add comment explaining LOG_SANDBOX_STDERR
* fix: Remove tracking of nonpreemptive siglarms
* chore: Validate Linux, C, and POSIX requirements
* build: Dry up libsledge makefile
* refactor: Remove unused macros
* fix: Writeback global 0 on cooperative sched
* refactor: Fork WASI from aWsm uvwasi example
* build: remove awsm-wasi rules
* chore: clang-format 15
* ci: apt update
* chore: clang 13
* ci: use llvm script
* ci: Use LLVM 13
* refactor: Remove WASI indirection
3 years ago
Sean McBride
5d19891e63
feat: libsledge pattern for wasmception ( #299 )
...
* feat: libsledge pattern for wasmception
* ci: build libsledge
* ci: fix YAML whitespace issue
* ci: fix another YAML whitespace issue
* fix: Correct type issues in memcpy
* ci: debug permissions
* ci: restore build rules
* chore: Change wasmception init symbol
* chore: Assored cleanup
* fix: update g0 cache on preemption
* refactor: inline global vec in sandbox struct
* chore: trailing newline on JSON
* chore: Clean up extraneous file associations
* docs: Explain export and weak symbols
* docs: Remove comment
* refactor: Replace CHAR_BIT with limits.h
* refactor: Remove redundant unlikely define
* docs: Wasmception fn type checking disabled note
3 years ago
Sean McBride
3cf4580b5d
refactor: wasm_memory
3 years ago
Sean McBride
4b1f9914f7
refactor: flatten http buffers
3 years ago
Sean McBride
e888a14e51
refactor: Eliminate sandbox request
3 years ago
Sean McBride
f4ede43b52
feat: WIP restage of memory allocation features
3 years ago
Sean McBride
3a60134d44
refactor: scheduler cleanup
4 years ago
Sean McBride
dd52cbd7e6
refactor: sandbox stderr goes to host
4 years ago
Sean McBride
38f163cf17
refactor: wasmception modified sandbox struct
4 years ago
Sean McBride
ae533694e9
refactor: sandbox memory and module cleanup
4 years ago
Sean McBride
13a997cb80
refactor: wasm memory
4 years ago
Sean McBride
938f1a8950
refactor: Strip out sandbox fds
4 years ago
Sean McBride
0f0d0fcb18
feat: rework of scheduler logic
4 years ago
Sean McBride
064dac1aaf
refactor: assorted header cleanup
4 years ago
Sean McBride
9e3530427a
refactor: assorted fixed from clang warnings
4 years ago
Sean McBride
d269c04c69
refactor: Namespace cleanup
4 years ago
Sean McBride
1a561a27a7
refactor: Fix syscall headers
4 years ago
Sean McBride
e16b3bd937
refactor: Additional current sandbox
4 years ago
Sean McBride
003b57a76c
fix: explicitly convert void*
4 years ago
Sean McBride
0a15932acd
feat: implement mremap
4 years ago
Sean McBride
192f539f36
test: Improve Image resize
4 years ago
Sean McBride
a83ae29d1b
feat: remove libuv, rework pq, http close DRY up
4 years ago
Sean McBride
c97ab91ff2
feat: Additional syscalls
4 years ago
Sean McBride
abbce7df68
fix: restore additional syscalls
4 years ago
Sean McBride
f356cff4a2
chore: Return sane errno on unimplemented syscall
5 years ago
Sean McBride
106db3d348
chore: clarified syscall backing functions
5 years ago
Sean McBride
81a4d65a2e
docs: Add attribution to syscall.c
5 years ago
Sean McBride
455d73d719
chore: fix error on NDEBUG
5 years ago
Sean McBride
2a82fe96f3
feat: get epoll implementation working
5 years ago
Sean McBride
e3261244ee
chore: replace aborts with panics
5 years ago
Sean McBride
01d32c19f8
chore: replace asserts with abort to be use NDEBUG
5 years ago
Sean McBride
628275f6f9
docs: Associate FIXMEs and TODOs with issues
5 years ago
Sean McBride
d6f10cac7a
refactor: decompose types.h
5 years ago
Sean McBride
2f164c3430
chore: refactor our sandbox_request_t
5 years ago
Sean McBride
213c558a75
chore: refactor out i32
5 years ago