message
stringlengths
6
474
diff
stringlengths
8
5.22k
Fix vpp-ext-deps package version in stable branch
@@ -20,7 +20,7 @@ MAKE_ARGS ?= -j BUILD_DIR ?= $(CURDIR)/_build INSTALL_DIR ?= $(CURDIR)/_install PKG_VERSION ?= $(shell git describe --abbrev=0 | cut -d- -f1 | cut -dv -f2) -PKG_SUFFIX ?= $(shell git log --oneline $$(git describe --abbrev=0).. . | wc -l) +PKG_SUFFIX ?= $(shell git log --oneline v$(PKG_VERSION)-rc0.. . | wc -l) JOBS := $(if $(shell [ -f /proc/cpuinfo ] && head /proc/cpuinfo),\ $(shell grep -c ^processor /proc/cpuinfo), 2)
config tool: Fix combined cpu_affinity warning Service vm could have the combination of big and little core cpu_affinity setting, fix the assert.
</xs:annotation> </xs:assert> - <xs:assert test="every $vm in vm satisfies + <xs:assert test="every $vm in /acrn-config/vm[load_order != 'SERVICE_VM'] satisfies count(distinct-values(processors//thread[cpu_id = $vm//cpu_affinity/pcpu_id]/core_type)) &lt;= 1"> <xs:annotation acrn:severity="error" acrn:report-on="$vm//cpu_affinity"> <xs:documentation>The physical CPUs allocated to the VM "{$vm/name}" have both performance cores {processors//thread[cpu_id = $vm//cpu_affinity/pcpu_id and core_type = 'Core']/cpu_id} and efficient cores {processors//thread[cpu_id = $vm//cpu_affinity/pcpu_id and core_type = 'Atom']/cpu_id}, which is unsupported. Remove either all performance or all efficient cores from the CPU affinity.</xs:documentation>
OpenCoreKernel: Correct %s to %a for KEXT name
@@ -144,7 +144,7 @@ OcKernelLoadKextsAndReserve ( ); if (Kext->ImageData == NULL) { - DEBUG ((DEBUG_ERROR, "OC: Image %s is missing for kext %s\n", FullPath, BundlePath)); + DEBUG ((DEBUG_ERROR, "OC: Image %s is missing for kext %a\n", FullPath, BundlePath)); Kext->Enabled = FALSE; continue; }
multiheaded test + count on command line
@@ -7,6 +7,7 @@ import random import struct from panda.lib.panda import Panda from hexdump import hexdump +from itertools import permutations def get_test_string(): return "test"+os.urandom(10) @@ -28,11 +29,12 @@ def run_test_w_pandas(pandas): h = map(lambda x: Panda(x), pandas) print h - h[0].set_controls_allowed(True) - h[1].set_controls_allowed(True) + for hh in h: + hh.set_controls_allowed(True) # test both directions - for ho in [[0,1], [1,0]]: + for ho in permutations(range(len(h)), r=2): + print "***************** TESTING", ho # **** test health packet **** print "health", ho[0], h[ho[0]].health() @@ -101,6 +103,10 @@ def run_test_w_pandas(pandas): print "CAN pass", bus, ho if __name__ == "__main__": + if len(sys.argv) > 1: + for i in range(int(sys.argv[1])): + run_test() + else : i = 0 while 1: print "************* testing %d" % i
Added ksceKernelRemapBlock to headers
@@ -112,6 +112,16 @@ int ksceKernelFreeMemBlock(SceUID uid); */ int ksceKernelGetMemBlockBase(SceUID uid, void **basep); +/** + * Changes the block type + * + * @param[in] uid - SceUID of the memory block to change + * @param[in] type - Type of the memory to change to + * + * @return 0 on success, < 0 on error. + */ +int ksceKernelRemapBlock(SceUID uid, SceKernelMemBlockType type); + SceUID ksceKernelCreateHeap(const char *name, SceSize size, SceKernelHeapCreateOpt *opt); int ksceKernelDeleteHeap(SceUID uid); void *ksceKernelAllocHeapMemory(SceUID uid, SceSize size);
ecalib: add debug_level argument
@@ -75,6 +75,7 @@ int main_ecalib(int argc, char* argv[]) OPT_INT('n', &conf.numsv, "", "()"), OPT_FLOAT('v', &conf.var, "variance", "Variance of noise in data."), OPT_SET('a', &conf.automate, "Automatically pick thresholds."), + OPT_INT('d', &debug_level, "level", "Debug level"), }; cmdline(&argc, argv, 2, 3, usage_str, help_str, ARRAY_SIZE(opts), opts);
Always unlink pending write requests when entering close_wait Seen on a stream in `H2O_HTTP3_SERVER_STREAM_STATE_CLOSE_WAIT`: ``` SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /build/lib/core/request.c:406:62 in h2o: /build/lib/http3/server.c:988: void run_delayed(h2o_timer_t *): Assertion `stream->req_body != NULL' failed. received fatal signal 6 ```
@@ -432,6 +432,8 @@ static void set_state(struct st_h2o_http3_server_stream_t *stream, enum h2o_http assert(conn->delayed_streams.recv_body_blocked.prev == &stream->link || !"stream is not registered to the recv_body list?"); break; case H2O_HTTP3_SERVER_STREAM_STATE_CLOSE_WAIT: { + if (h2o_linklist_is_linked(&stream->link)) + h2o_linklist_unlink(&stream->link); pre_dispose_request(stream); if (!in_generator) { h2o_dispose_request(&stream->req);
Fix: on_all_written() would fire although neat_write() fails to write data
@@ -5132,6 +5132,9 @@ nt_write_to_lower_layer(struct neat_ctx *ctx, struct neat_flow *flow, #endif if (rv < 0 ) { nt_log(ctx, NEAT_LOG_WARNING, "%s - sending failed - %s", __func__, strerror(errno)); + if (errno == ENOENT) { + flow->isClosing = 1; + } if (errno != EWOULDBLOCK) { return NEAT_ERROR_IO; }
add missing .patch suffix
@@ -24,7 +24,7 @@ Group: %{PROJ_NAME}/dev-tools Source: https://sourceware.org/pub/%{pname}/%{pname}-%{version}.tar.bz2 Source1: OHPC_macros %ifarch aarch64 -Patch1: revVEX3352 +Patch1: revVEX3352.patch Patch2: rev16269.v3.13.0.patch Patch3: rev16309.patch Patch4: thunderx_always_use_fallback_LLSC.patch
Add optimization flags for native builds
@@ -20,6 +20,30 @@ endif CFLAGSNO = -Wall -g -I/usr/local/include $(CFLAGSWERROR) CFLAGS += $(CFLAGSNO) +### Are we building with code size optimisations? +SMALL ?= 0 + +# The optimizations on native platform cannot be enabled in GCC (not Clang) versions less than 7.2 +GCC_IS_CLANG := $(shell gcc --version 2> /dev/null | grep clang) +ifneq ($(GCC_IS_CLANG),) + NATIVE_CAN_OPTIIMIZE = 1 +else + GCC_VERSION := $(shell gcc -dumpfullversion -dumpversion | cut -b1-3) + ifeq ($(shell expr $(GCC_VERSION) \>= 7.2), 1) + NATIVE_CAN_OPTIIMIZE = 1 + else + NATIVE_CAN_OPTIIMIZE = 0 + endif +endif + +ifeq ($(NATIVE_CAN_OPTIIMIZE),1) + ifeq ($(SMALL),1) + CFLAGS += -Os + else + CFLAGS += -O2 + endif +endif + ifeq ($(HOST_OS),Darwin) AROPTS = -rc LDFLAGS_WERROR := -Wl,-fatal_warnings
Emitter: Closure transform shouldn't use the self var. Instead, rely on how self is always at position 0.
@@ -1126,9 +1126,10 @@ static void perform_closure_transform(lily_emit_state *emit, lily_u16_pos(emit->closure_spots) / 2, s->reg_spot, f->line_num); - if (emit->class_block_depth && function_block->self) { - uint16_t self_spot = find_closed_sym_spot(emit, - emit->function_depth, (lily_sym *)function_block->self); + if (function_block->self) { + /* Use raw search because 'self' is always at 0. */ + uint16_t self_spot = find_closed_sym_spot_raw(emit, + emit->function_depth, 0); /* Load register 0 (self) into the closure. */ if (self_spot != (uint16_t)-1) { lily_u16_write_4(emit->closure_aux_code, o_set_upvalue,
Put parenthesis at right location
#include "picotls.h" #include "picoquic_internal.h" #include "picotls/openssl.h" -#if (!defined(_WINDOWS) || defined(_WINDOWS64) && !defined(PTLS_WITHOUT_FUSION) +#if (!defined(_WINDOWS) || defined(_WINDOWS64)) && !defined(PTLS_WITHOUT_FUSION) #include "picotls/fusion.h" #endif #include "tls_api.h"
notifications: Updated README.md
- infos/needs = - infos/provides = - infos/recommends = -- infos/placements = postgetstorage precommit -- infos/status = global nodep libc experimental unfinished nodoc concept unittest +- infos/placements = postgetstorage postcommit +- infos/status = global libc unittest concept unfinished experimental nodoc - infos/metadata = - infos/description = Plugin for internal notification ## Usage ## -Allows users of the plugin to register integer variables that get automatically -updated when the value of the key changes. +Allows programs to register integer variables that get automatically updated +when the value of the key changes. Use as global plugin: $ sudo kdb global-mount internalnotification @@ -25,13 +25,13 @@ converted from string to integer and the registered variable is updated with the This also works if the registered key is a cascading key. The function address is exported as `system/elektra/modules/internalnotification/exports/elektraInternalnotificationRegisterInt`. The plugin handle required for this plugin is exported as `system/elektra/modules/internalnotification/exports/handle`. +Please note that the plugin API may change as this plugin is experimental. ## Todo/Issues ## -- Correct storage for registered keys? elektraPlugin(Set|Get)Data? -- Why did "postcommit" placement not work? - - are global hooks working correctly? (i.e. is plugin installed on postcommit hook position?) - - eventually bypass global hooks by placing plugin into globalPlugins-array on elektraInternalnotificationOpen -- integer: Before conversion check if key is string, if key is binary, use value -- string: Update string value (semantics: before changing the string, make copy!) -- callback: Accept any callback (refactor plugin to use callbacks internally for integer and strings) +- Correct data storage for registered keys? elektraPlugin(Set|Get)Data? +- Can we get rid of exporting the plugin handle? +- Different data types for values: + - integer: Before conversion: check if key is string, if key is binary, just use the value + - string: Update string value + - callback: Accept any callback (+ refactor plugin to use callbacks internally for integer and strings)
Add test case for parsing H3 "Post" request.
@@ -243,6 +243,11 @@ static uint8_t qpack_test_get_ats2[] = { 0xa1, 0x72, 0x1e, 0x9f, 0xd1, 0xc1, 0xd7 }; +static uint8_t qpack_test_post_zzz[] = { + QPACK_TEST_HEADER_BLOCK_PREFIX, 0xC0 | 20, 0x50 | 1, + 0x80 | 3, QPACK_TEST_HEADER_QPACK_PATH +}; + static uint8_t qpack_test_string_index_html[] = { QPACK_TEST_HEADER_INDEX_HTML }; static uint8_t qpack_test_string_slash[] = { '/' }; static uint8_t qpack_test_string_zzz[] = { 'Z', 'Z', 'Z' }; @@ -307,6 +312,10 @@ static qpack_test_case_t qpack_test_case[] = { { qpack_test_get_ats2, sizeof(qpack_test_get_ats2), { h3zero_method_get, qpack_test_string_slash, sizeof(qpack_test_string_slash), 0, 0} + }, + { + qpack_test_post_zzz, sizeof(qpack_test_post_zzz), + { h3zero_method_post, qpack_test_string_zzz, sizeof(qpack_test_string_zzz), 0, 0} } };
Fix build with system python
+#include <Python.h> + #include "helpers.h" #include <catboost/libs/helpers/exception.h> #include <catboost/libs/helpers/interrupt.h> #include <catboost/libs/data_types/groupid.h> -#include <Python.h> - extern "C" PyObject* PyCatboostExceptionType; void ProcessException() {
docket: fix "do we have this glob yet" check We were incorrectly assuming we were comparing against a unit value. Also makes a ~| more useful.
=. by-base (~(put by by-base) base.href.docket desk.diff) :: if the glob specification is unchanged, keep it :: - ?: &(?=(^ pre) =(href.docket.u.pre `href.docket)) + :: + ?: &(?=(^ pre) =(href.docket.u.pre href.docket)) [~[add-fact:cha] state] :: if the glob spec changed, but we already host it, keep it :: (this is the "just locally uploaded" case) ?. ?=([%suspend ~ *] chad.charge) [%install ~] [%glob u.glob.chad.charge] + ~& %rev :_(state [add-fact fetch-glob]:cha) == == ++ take-charge |= [=desk =^wire] ^- (quip card _state) - ~| %took-for-nonexistent-charge + ~| [%took-for-nonexistent-charge desk] ?> (~(has by charges) desk) =* cha ~(. ch desk) ?+ wire ~|(%bad-charge-wire !!)
TCPMv2: Modal Operations should clear in dfp_discovery_init BRANCH=none TEST=dock specified in bug should be able to PR_Swap Tested-by: Denis Brockus
@@ -5601,6 +5601,8 @@ uint8_t pd_get_src_cap_cnt(int port) void pd_dfp_discovery_init(int port) { + PE_CLR_FLAG(port, PE_FLAGS_MODAL_OPERATION); + memset(pe[port].discovery, 0, sizeof(pe[port].discovery)); memset(pe[port].partner_amodes, 0, sizeof(pe[port].partner_amodes));
doc: checkbashism needed in dev env see
@@ -71,6 +71,12 @@ You have some options to avoid running them as root: 4. Use the XDG resolver (see `scripts/configure-xdg`) and set the environment variable `XDG_CONFIG_DIRS`, currently lacks `spec` namespaces, see #734. + +## Environment + +- The script `checkbashisms` is needed to check for bashism, it is part of `devscripts`. + + ## Conventions - All names of the test must start with test (needed by test driver for installed tests).
Aomp12 extras needs ranch aomp-dev
@@ -166,7 +166,7 @@ if [ "$AOMP_MAJOR_VERSION" == "12" ] ; then AOMP_PROJECT_REPO_NAME=${AOMP_PROJECT_REPO_NAME:-llvm-project} AOMP_PROJECT_REPO_BRANCH=${AOMP_PROJECT_REPO_BRANCH:-amd-stg-open} AOMP_EXTRAS_REPO_NAME=${AOMP_EXTRAS_REPO_NAME:-aomp-extras} - AOMP_EXTRAS_REPO_BRANCH=${AOMP_EXTRAS_REPO_BRANCH:-amd-stg-open} + AOMP_EXTRAS_REPO_BRANCH=${AOMP_EXTRAS_REPO_BRANCH:-aomp-dev} AOMP_EXTRAS_REPO_SHA="ae6da7f04888fde371c126c29ed5f64f0eb9e660" AOMP_FLANG_REPO_NAME=${AOMP_FLANG_REPO_NAME:-flang} AOMP_FLANG_REPO_BRANCH=${AOMP_FLANG_REPO_BRANCH:-aomp-dev}
Remove obsolete version test when returning CA names.
@@ -506,15 +506,15 @@ STACK_OF(X509_NAME) *SSL_CTX_get_client_CA_list(const SSL_CTX *ctx) STACK_OF(X509_NAME) *SSL_get_client_CA_list(const SSL *s) { if (!s->server) { /* we are in the client */ - if (((s->version >> 8) == SSL3_VERSION_MAJOR) && (s->s3 != NULL)) - return (s->s3->tmp.ca_names); + if (s->s3 != NULL) + return s->s3->tmp.ca_names; else - return (NULL); + return NULL; } else { if (s->client_CA != NULL) - return (s->client_CA); + return s->client_CA; else - return (s->ctx->client_CA); + return s->ctx->client_CA; } }
Show info if your game has problems with sync added dropped frames counter
#define OFFSET_TOP ((TIC80_FULLHEIGHT-TIC80_HEIGHT)/2) #define POPUP_DUR (TIC_FRAMERATE*2) +#define DESYNC_FRAMES 10 #if defined(TIC80_PRO) #define TIC_EDITOR_BANKS (TIC_BANKS) @@ -232,7 +233,7 @@ static struct FileSystem* fs; bool quitFlag; - bool deSync; + s32 deSync; s32 argc; char **argv; @@ -323,7 +324,7 @@ static struct .fullscreen = false, .quitFlag = false, - .deSync = false, + .deSync = 0, .argc = 0, .argv = NULL, }; @@ -2115,7 +2116,7 @@ static void drawDesyncLabel(u32* frame) 0b1100110010010011, }; - if(studio.deSync && getConfig()->showSync) + if(studio.deSync >= DESYNC_FRAMES && getConfig()->showSync) { enum{sx = TIC80_WIDTH-24, sy = 8, Cols = sizeof DesyncLabel[0]*BITS_IN_BYTE, Rows = COUNT_OF(DesyncLabel)}; @@ -2805,14 +2806,15 @@ s32 main(s32 argc, char **argv) nextTick += Delta; tick(); - studio.deSync = false; { s64 delay = nextTick - SDL_GetPerformanceCounter(); if(delay < 0) { nextTick -= delay; - studio.deSync = true; + + if(studio.deSync < DESYNC_FRAMES) + studio.deSync++; } else if(delay >= MinDelay) { @@ -2820,6 +2822,9 @@ s32 main(s32 argc, char **argv) SDL_Delay((u32)(delay * 1000 / SDL_GetPerformanceFrequency())); } else nextTick -= delay; + + if(delay >= 0 && studio.deSync > 0) + studio.deSync--; } } }
add delay before optical calibration starts.
import serial import random import argparse +import time def program_cortex(teensy_port="COM15", scum_port="COM18", binary_image="./code.bin", boot_mode='optical', skip_reset=False, insert_CRC=False, @@ -104,6 +105,8 @@ def program_cortex(teensy_port="COM15", scum_port="COM18", binary_image="./code. # Display confirmation message from Teensy print(teensy_ser.readline()) + # in case the large image's CRC-check takes long, delay 2 seconds to start optical calibration + time.sleep(2) teensy_ser.write(b'opti_cal\n'); elif boot_mode == '3wb': # Execute 3-wire bus bootloader on Teensy
pybricks.hubs.CityHub: Enable button access. If you disable the stop button: hub.system.set_stop_button(None) Then you can read the button state: if hub.button.pressed(): print("Button is pressed!")
typedef struct _hubs_CityHub_obj_t { mp_obj_base_t base; + mp_obj_t button; mp_obj_t light; } hubs_CityHub_obj_t; +static const pb_obj_enum_member_t *cityhub_buttons[] = { + &pb_Button_CENTER_obj, +}; + STATIC mp_obj_t hubs_CityHub_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_kw, const mp_obj_t *args) { hubs_CityHub_obj_t *self = m_new_obj(hubs_CityHub_obj_t); self->base.type = (mp_obj_type_t *)type; + self->button = pb_type_Keypad_obj_new(MP_ARRAY_SIZE(cityhub_buttons), cityhub_buttons, pbio_button_is_pressed); self->light = common_ColorLight_internal_obj_new(pbsys_status_light); return MP_OBJ_FROM_PTR(self); } STATIC const mp_rom_map_elem_t hubs_CityHub_locals_dict_table[] = { { MP_ROM_QSTR(MP_QSTR_battery), MP_ROM_PTR(&pb_module_battery) }, + { MP_ROM_QSTR(MP_QSTR_button), MP_ROM_ATTRIBUTE_OFFSET(hubs_CityHub_obj_t, button)}, { MP_ROM_QSTR(MP_QSTR_light), MP_ROM_ATTRIBUTE_OFFSET(hubs_CityHub_obj_t, light) }, { MP_ROM_QSTR(MP_QSTR_system), MP_ROM_PTR(&pb_type_System) }, };
parser yin BUGFIX check returned value properly
@@ -299,7 +299,7 @@ yin_parse(struct ly_ctx *ctx, const char *data, struct lysp_module **mod_p) /* check if root element is module or submodule */ ret = lyxml_get_element(&xml_ctx, &data, &prefix, &prefix_len, &name, &name_len); - LY_CHECK_ERR_RET(ret != LY_SUCCESS, LOGMEM(xml_ctx.ctx), LY_EMEM); + LY_CHECK_GOTO(ret != LY_SUCCESS, error); kw = match_keyword(name); if (kw != YANG_MODULE && kw != YANG_SUBMODULE) { LOGVAL(xml_ctx.ctx, LY_VLOG_LINE, &xml_ctx.line, LYVE_SYNTAX, "Invalid keyword \"%s\", expected \"module\" or \"submodule\".", name); @@ -313,4 +313,8 @@ yin_parse(struct ly_ctx *ctx, const char *data, struct lysp_module **mod_p) lyxml_context_clear(&xml_ctx); return ret; + +error: + lyxml_context_clear(&xml_ctx); + return ret; }
updated version to 3.5.127.1
#define MAT_VERSION_HPP // WARNING: DO NOT MODIFY THIS FILE! // This file has been automatically generated, manual changes will be lost. -#define BUILD_VERSION_STR "3.5.117.1" -#define BUILD_VERSION 3,5,117,1 +#define BUILD_VERSION_STR "3.5.127.1" +#define BUILD_VERSION 3,5,127,1 #ifndef RESOURCE_COMPILER_INVOKED #include "ctmacros.hpp" @@ -18,7 +18,7 @@ namespace MAT_NS_BEGIN { uint64_t const Version = ((uint64_t)3 << 48) | ((uint64_t)5 << 32) | - ((uint64_t)117 << 16) | + ((uint64_t)127 << 16) | ((uint64_t)1); } MAT_NS_END @@ -27,4 +27,3 @@ namespace PAL_NS_BEGIN { } PAL_NS_END #endif // RESOURCE_COMPILER_INVOKED #endif -
shortening readme
@@ -9,17 +9,12 @@ is capable scanning the entire public IPv4 address space in under 45 minutes. With a 10gigE connection and PF_RING, ZMap can scan the IPv4 address space in under 5 minutes. -While previous network tools have been designed to scan small network segments, -ZMap is specifically architected to scan the entire address space. It is built -in a modular manner in order to allow incorporation with other network survey -tools. - ZMap operates on GNU/Linux, Mac OS, and BSD. ZMap currently has fully implemented probe modules for TCP SYN scans, ICMP, DNS queries, UPnP, BACNET, and can send a large number of UDP probes. If you are looking to do more involved scans, e.g., banner grab or TLS handshake, take a look at ZGrab -(https://github.com/zmap/zgrab), ZMap's sister project that does application -layer handshakes. +(https://github.com/zmap/zgrab), ZMap's sister project that does +application-layer handshakes. Installation ------------
Add missing function to macpong.
@@ -168,6 +168,9 @@ bool icmpv6rpl_isPreferredParent(open_addr_t* address) { dagrank_t icmpv6rpl_getMyDAGrank(void) { return 0; } +bool icmpv6rpl_daoSent(void) { + return TRUE; +} void icmpv6rpl_setMyDAGrank(dagrank_t rank) { return; } void icmpv6rpl_killPreferredParent(void) { return; } void icmpv6rpl_updateMyDAGrankAndParentSelection(void) { return; }
OcMachoLib: Retrieve symbol section via Section instead of Value.
@@ -555,7 +555,11 @@ MachoRelocateSymbol64 ( // Symbols are relocated when they describe sections. // if (MachoSymbolIsSection (Symbol)) { - Section = MachoGetSectionByAddress64 (Context, Symbol->Value); + if (Symbol->Section > MAX_SECT) { + return FALSE; + } + + Section = MachoGetSectionByIndex64 (Context, (Symbol->Section - 1)); if (Section == NULL) { return FALSE; }
VERSION bump to version 2.0.264
@@ -61,7 +61,7 @@ set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}) # set version of the project set(LIBYANG_MAJOR_VERSION 2) set(LIBYANG_MINOR_VERSION 0) -set(LIBYANG_MICRO_VERSION 263) +set(LIBYANG_MICRO_VERSION 264) set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_MICRO_VERSION}) # set version of the library set(LIBYANG_MAJOR_SOVERSION 2)
Better duplicated resource handling
@@ -25,6 +25,11 @@ public abstract class Resource return Compiler.addResource(resource, true); } + public static Resource findResource(Resource resource) + { + return Compiler.findResource(resource); + } + public abstract int internalHashCode(); public abstract boolean internalEquals(Object obj); @@ -32,7 +37,8 @@ public abstract class Resource @Override public int hashCode() { - return internalHashCode() ^ Boolean.valueOf(global).hashCode(); + return internalHashCode(); + // return internalHashCode() ^ Boolean.valueOf(global).hashCode(); } @Override @@ -42,7 +48,8 @@ public abstract class Resource { final Resource res = (Resource) obj; // fast discard from hash code and global state - return (hashCode() == res.hashCode()) && (global == res.global) && internalEquals(obj); + return (hashCode() == res.hashCode()) && internalEquals(obj); + // return (hashCode() == res.hashCode()) && (global == res.global) && internalEquals(obj); } return false;
Fix detection of running as an application (don't depend on "-psn" command-line option) and send log to system log.
#if !_WIN32 # include <libgen.h> #endif // !_WIN32 +#include <syslog.h> // @@ -103,7 +104,6 @@ papplMainloop( }; #ifdef __APPLE__ const char *server_argv[7]; // New command arguments - char logfile[1024]; // Log file path #endif // __APPLE__ @@ -134,20 +134,20 @@ papplMainloop( #ifdef __APPLE__ // When you click on the application icon, macOS' Finder will pass "-psn_..." - // on the command-line. If so, replace argc and argv to run a server... - if (argc > 1 && !strncmp(argv[1], "-psn", 4)) + // on the command-line. We also recognize when running the application from + // within the .app bundle. If either is true, replace argc and argv to run a + // server... + if ((argc > 1 && !strncmp(argv[1], "-psn", 4)) || strstr(argv[0], ".app/Contents/MacOS/") != NULL) { - snprintf(logfile, sizeof(logfile), "log-file='%s/Library/Logs/%s.log'", getenv("HOME"), base_name); server_argv[0] = argv[0]; server_argv[1] = "server"; server_argv[2] = "-o"; -// server_argv[3] = logfile; server_argv[3] = "log-file=syslog"; server_argv[4] = "-o"; - server_argv[5] = "log-level=debug"; + server_argv[5] = "log-level=info"; server_argv[6] = NULL; - argc = 7; + argc = 6; argv = (char **)server_argv; } #endif // __APPLE__
hv: fix potential buffer overflow in vpic_set_pinstate() Input 'pin' should be less than 'NR_VPIC_PINS_TOTAL' Acked-by: Eddie Dong
@@ -405,6 +405,10 @@ static void vpic_set_pinstate(struct acrn_vpic *vpic, uint8_t pin, uint8_t old_lvl; bool lvl_trigger; + if (pin >= NR_VPIC_PINS_TOTAL) { + return; + } + i8259 = &vpic->i8259[pin >> 3U]; old_lvl = i8259->pin_state[pin & 0x7U]; if (level) {
upstream: upon create url, set properly tls flags for https
@@ -139,6 +139,9 @@ struct flb_upstream *flb_upstream_create_url(struct flb_config *config, } else if (strcasecmp(prot, "https") == 0) { tmp_port = 443; + if ((flags & FLB_IO_TLS) == 0) { + flags |= FLB_IO_TLS; + } } } else {
os/Makefile.unix: remove duplicate prerequisite remove duplicate prerequisite for include/arch/board target
@@ -346,7 +346,7 @@ include/arch: Make.defs # Link the configs/<board-name>/include directory to include/arch/board -include/arch/board: include/arch Make.defs include/arch +include/arch/board: include/arch Make.defs @echo "LN: include/arch/board to $(BOARD_DIR)/include" $(Q) $(DIRLINK) $(TOPDIR)/$(BOARD_DIR)/include include/arch/board
TCPMv2: Enable Data Reset on Voxel Perform Data Reset during mode entry and exit. Support receiving Data Reset as DFP. TEST=Enter and exit modes with Godzilla Creek. BRANCH=none
#define CONFIG_USB_PD_USB4 #define USBC_PORT_C0_BB_RETIMER_I2C_ADDR 0x40 #define USBC_PORT_C1_BB_RETIMER_I2C_ADDR 0x41 +#define CONFIG_USB_PD_DATA_RESET_MSG /* USB Type A Features */ #define USB_PORT_COUNT 1
doc: Copyedit upgrading_configuration.rst Grammatical and formatting cleanup
Upgrading ACRN Configurations to Recent Releases ################################################ -The configurations files, introduced in :ref:`acrn_config_data`, are refined -every release for richer features, clearer organizations, and more user friendly -representations. Due to the strict validation ACRN adopts, configuration files +The configuration files, introduced in :ref:`acrn_config_data`, are refined +every release for richer features, clearer organization, and more user-friendly +presentation. Due to the strict validation ACRN adopts, configuration files for a former release may not work for a latter if they are not upgraded. This tutorial introduces the steps to upgrade those files. @@ -13,11 +13,11 @@ Board XML ********* A board XML file lists the characteristics of a board and is generated by the -board inspector. Each release of ACRN adds some more information into that file +Board Inspector. Each ACRN release adds more information to that file in order to enable new features. Thus, always regenerate the board XML using the -board inspector of the new release when you upgrade. +Board Inspector of the new release when you upgrade. -For the steps to use the latest board inspector, refer to +For the steps to use the latest Board Inspector, refer to :ref:`board_inspector_tool`. Scenario XML @@ -26,18 +26,22 @@ Scenario XML A scenario XML file captures the configurations of hypervisor features and definitions of VMs. Starting from v3.0, the highly recommended way to upgrade a scenario XML is to use the scenario XML upgrader found at -``misc/config_tools/scenario_config/upgrader.py``. Invoke this script from the +``misc/config_tools/scenario_config/upgrader.py``. Run this script from the command line in the following way: .. code-block:: bash misc/config_tools/scenario_config/upgrader.py <your scenario XML> <out file> -``<your scenario XML>`` is the path to the scenario XML file for a previous -release. This script will generate a new scenario XML file, located at ``<out -file>``, by migrating, following the latest schema, as many data in ``<your -scenario XML>`` as possible. If there is any data that cannot be migrated, the -script will generate messages like this: +* ``<your scenario XML>`` is the path to the scenario XML file for a previous + release. + +* ``<out file>`` is the path to the new scenario XML file generated by the + script. + +The script generates the new scenario XML file by migrating as many data in +``<your scenario XML>`` as possible, based on the latest schema. If any data +cannot be migrated, the script generates messages. For example: .. code-block:: console @@ -52,19 +56,19 @@ info message indicates an intended drop of obsoleted data. The upgrader's best efforts at migrating data from scenario XMLs of former releases do not guarantee that all data can be migrated. Thus, you should carefully review all messages from the upgrader tool. In case any meaningful - data is lost, use the ACRN configurator to open the upgraded scenario XML for - further edits. + data is lost, use the :ref:`ACRN Configurator <acrn_configurator_tool>` to + open the upgraded scenario XML for further edits. Launch XML ********** -Starting from ACRN v3.0, data in a launch XML are merged into the -scenario XML. The same upgrader can be used to upgrade a pair of scenario XML -and launch XML: +Starting from ACRN v3.0, data in a launch XML are merged into the scenario XML. +You can use the same upgrader tool to upgrade a pair of scenario XML and launch +XML files into the merged format: .. code-block:: bash misc/config_tools/scenario_config/upgrader.py <your scenario XML> --launch <your launch XML> <out file> -The upgrader will then migrate all data in both XMLs and show messages about -discarded data in the same way as upgrading a scenario XML alone. +The upgrader migrates all data in both XMLs into the ``<out file>`` and shows +messages about discarded data in the same way as upgrading a scenario XML alone.
Add comment on the performance of resuming locals
@@ -348,8 +348,10 @@ func (g *gen) writeResumeSuspend1(b *buffer, n *a.Var, suspend bool, initBoolTyp // This generated code explicitly initializes bool typed variables, // in order to avoid ubsan (undefined behavior sanitizer) warnings. // - // In general, we don't zero-initialize all of the v_etc local - // variables due to the negative performance impact. + // In general, we don't initialize (set to zero or assign from + // "this" fields) all of the v_etc local variables when not + // resuming a coroutine, due to the performance impact. Commit + // 2b6b0ac "Unconditionally resume local vars" has some numbers. rhs = "false" } if suspend {
fuzzer: Move fuzzer->origFileName generation to specific functions
@@ -66,6 +66,7 @@ static void fuzz_getFileName(honggfuzz_t * hfuzz, char *fileName) static bool fuzz_prepareFileDynamically(honggfuzz_t * hfuzz, fuzzer_t * fuzzer) { + fuzzer->origFileName = "[DYNAMIC]"; struct dynfile_t *dynfile; { @@ -104,6 +105,7 @@ static bool fuzz_prepareFileDynamically(honggfuzz_t * hfuzz, fuzzer_t * fuzzer) static bool fuzz_prepareFile(honggfuzz_t * hfuzz, fuzzer_t * fuzzer, int rnd_index) { struct paths_t *file = files_getFileFromFileq(hfuzz, rnd_index); + fuzzer->origFileName = files_basename(file->path); ssize_t fileSz = files_readFileToBufMax(file->path, fuzzer->dynamicFile, hfuzz->maxFileSz); if (fileSz < 0) { @@ -129,6 +131,8 @@ static bool fuzz_prepareFile(honggfuzz_t * hfuzz, fuzzer_t * fuzzer, int rnd_ind static bool fuzz_prepareFileExternally(honggfuzz_t * hfuzz, fuzzer_t * fuzzer) { + fuzzer->origFileName = "[EXTERNAL]"; + int dstfd = open(fuzzer->fileName, O_CREAT | O_EXCL | O_RDWR | O_CLOEXEC, 0644); if (dstfd == -1) { PLOG_E("Couldn't create a temporary file '%s'", fuzzer->fileName); @@ -500,9 +504,6 @@ static void fuzz_fuzzLoop(honggfuzz_t * hfuzz, fuzzer_t * fuzzer) } fuzzState_t state = fuzz_getState(hfuzz); - if (state != _HF_STATE_DYNAMIC_MAIN) { - fuzzer->origFileName = files_basename(files_getFileFromFileq(hfuzz, rnd_index)->path); - } if (hfuzz->persistent == false) { fuzz_getFileName(hfuzz, fuzzer->fileName); @@ -558,6 +559,7 @@ static void fuzz_fuzzLoop(honggfuzz_t * hfuzz, fuzzer_t * fuzzer) if (state == _HF_STATE_DYNAMIC_PRE && ATOMIC_PRE_INC(hfuzz->doneFileIndex) >= hfuzz->fileCnt) { fuzz_setState(hfuzz, _HF_STATE_DYNAMIC_MAIN); + snprintf(fuzzer->fileName, sizeof(fuzzer->fileName), "[DYNAMIC]"); } }
eagerly evaluate "eyre: execute" error info to avoid issues from lazy traps in defunct requests
|= {tea/whir bek/beak sil/silk:ford} %+ pass-note tea :^ %f %exec our - `[bek [%dude |.(leaf+"eyre: execute {<tea>}") sil]] + `[bek [%dude [|.(+)]:[%leaf "eyre: execute {<tea>}"] sil]] :: ++ fail |= {sas/@ud dep/@uvH mez/tang}
Fixed hard coded path to CUDA
@@ -109,7 +109,7 @@ fi if [ "$AOMP_BUILD_CUDA" == 1 ] ; then NVPTXGPUS_DEFAULT="30,32,35,50,60,61" if [ -f $CUDA/version.txt ] ; then - if [ `head -1 /usr/local/cuda/version.txt | cut -d " " -f 3 | cut -d "." -f 1` -ge 9 ] ; then + if [ `head -1 $CUDA/version.txt | cut -d " " -f 3 | cut -d "." -f 1` -ge 9 ] ; then NVPTXGPUS_DEFAULT+=",70" fi fi
Solve minor bug in detection of async functions in typescript loader.
@@ -300,8 +300,8 @@ function ts_loader_trampoline_discover_signature(checker, node) { for (let i = 0; i < params.length; ++i) { const param = params[i]; const type = checker.getTypeAtLocation(param); - args.push(param.name.escapedText ? param.name.escapedText : 'undefined'); - types.push(type.intrinsicName ? type.intrinsicName : 'any'); + args.push(param.name.escapedText || 'undefined'); + types.push(type.intrinsicName || 'any'); } // Generate names for unnamed arguments @@ -352,13 +352,15 @@ function ts_loader_trampoline_discover(handle) { if (ts_loader_trampoline_is_valid_symbol(node)) { const signature = ts_loader_trampoline_discover_signature(checker, node); + const flags = ts.getCombinedModifierFlags(node.valueDeclaration); + const isAsync = Boolean(flags & ts.ModifierFlags.Async); discover[key] = { ptr: func, signature: signature.args, types: signature.types, ret: signature.ret, - async: node.async || false, + async: isAsync, }; } }
Vector Math section in C++ header.
@@ -104,6 +104,14 @@ public: #endif }; + + +/*! @name Vector Math + * + * Wrapper classes for TinySpline's vector math. + * + * @{ + */ class TINYSPLINECXX_API Vector3 { public: Vector3(); @@ -135,6 +143,7 @@ public: private: real vals[3]; }; +/*! @} */
binding/java: HelloElektra - added check key available example
@@ -90,6 +90,58 @@ public class HelloElektra { exampleSetMetaKeys(); exampleSetArrayMetaKey(); + + exampleCheckKeyAvailableInKDB(); + } + + private static void exampleCheckKeyAvailableInKDB() { + // Example 11: Check whether the keys are already available in the key database + System.out.println("Example 11"); + Key parentKey = Key.create("user:/e11"); + Key existingKey = Key.create("user:/e11/exists", "e11Val"); + Key notExistingKey = Key.create("user:/e11/doesNotExist", "e11ValNot"); + + try (KDB kdb = KDB.open()) { + var keySet = kdb.get(parentKey); + keySet.clear(); + keySet.append(existingKey); + kdb.set(keySet, parentKey); + } catch (KDBException e){ + System.out.println(e); + } + + // now retrieve them + try (KDB kdb = KDB.open()) { + KeySet keySet = kdb.get(parentKey); + + var ek = keySet.lookup(existingKey); + + if(ek.isPresent()){ + Key loadedExistingKey = ek.get(); + System.out.println(loadedExistingKey + " is present and its value " + loadedExistingKey.getString() + " loaded."); + ek.get().release(); + } else { + System.out.println(existingKey + " is not present. Setting key."); + keySet.append(existingKey); + kdb.set(keySet, parentKey); + } + + var nek = keySet.lookup(notExistingKey); + + if(nek.isPresent()){ + Key loadedNotExistingKey = nek.get(); + System.out.println(loadedNotExistingKey + " is present and its value " + nek.get().getString() + " loaded."); + nek.get().release(); + } else { + System.out.println(notExistingKey + " is not present. Setting key."); + keySet.append(notExistingKey); + kdb.set(keySet, parentKey); + } + + } catch (KDBException e){ + System.out.println(e); + } + System.out.println(); } private static void exampleSetMetaKeys() { @@ -99,6 +151,7 @@ public class HelloElektra { key.setMeta("example", "anExampleValue"); var returnedMeta = key.getMeta("example").orElseThrow(AssertionError::new); System.out.println("Value of meta key 'example': " + returnedMeta.getString()); + System.out.println(); } private static void exampleSetArrayMetaKey() {
Fix test_dtd_attr_handling() to work with builds
@@ -1976,7 +1976,7 @@ END_TEST /* Test handling of attribute declarations */ typedef struct AttTest { - const XML_Char *definition; + const char *definition; const XML_Char *element_name; const XML_Char *attr_name; const XML_Char *attr_type; @@ -1994,15 +1994,15 @@ verify_attlist_decl_handler(void *userData, { AttTest *at = (AttTest *)userData; - if (strcmp(element_name, at->element_name)) + if (xcstrcmp(element_name, at->element_name)) fail("Unexpected element name in attribute declaration"); - if (strcmp(attr_name, at->attr_name)) + if (xcstrcmp(attr_name, at->attr_name)) fail("Unexpected attribute name in attribute declaration"); - if (strcmp(attr_type, at->attr_type)) + if (xcstrcmp(attr_type, at->attr_type)) fail("Unexpected attribute type in attribute declaration"); if ((default_value == NULL && at->default_value != NULL) || (default_value != NULL && at->default_value == NULL) || - (default_value != NULL && strcmp(default_value, at->default_value))) + (default_value != NULL && xcstrcmp(default_value, at->default_value))) fail("Unexpected default value in attribute declaration"); if (is_required != at->is_required) fail("Requirement mismatch in attribute declaration"); @@ -2018,9 +2018,9 @@ START_TEST(test_dtd_attr_handling) "<!ATTLIST doc a ( one | two | three ) #REQUIRED>\n" "]>" "<doc a='two'/>", - "doc", - "a", - "(one|two|three)", /* Extraneous spaces will be removed */ + XCS("doc"), + XCS("a"), + XCS("(one|two|three)"), /* Extraneous spaces will be removed */ NULL, XML_TRUE }, @@ -2029,9 +2029,9 @@ START_TEST(test_dtd_attr_handling) "<!ATTLIST doc a NOTATION (foo) #IMPLIED>\n" "]>" "<doc/>", - "doc", - "a", - "NOTATION(foo)", + XCS("doc"), + XCS("a"), + XCS("NOTATION(foo)"), NULL, XML_FALSE }, @@ -2039,20 +2039,24 @@ START_TEST(test_dtd_attr_handling) "<!ATTLIST doc a NOTATION (foo) 'bar'>\n" "]>" "<doc/>", - "doc", - "a", - "NOTATION(foo)", - "bar", + XCS("doc"), + XCS("a"), + XCS("NOTATION(foo)"), + XCS("bar"), XML_FALSE }, { "<!ATTLIST doc a CDATA '\xdb\xb2'>\n" "]>" "<doc/>", - "doc", - "a", - "CDATA", - "\xdb\xb2", + XCS("doc"), + XCS("a"), + XCS("CDATA"), +#ifdef XML_UNICODE + XCS("\x06f2"), +#else + XCS("\xdb\xb2"), +#endif XML_FALSE }, { NULL, NULL, NULL, NULL, NULL, XML_FALSE }
cooja: remove commented out code Showing an example with commented out code right after a dozen lines that does the same thing is not helpful. Remove the commented out code.
@@ -115,9 +115,6 @@ SIM_INTERFACE_NAME(leds_interface); SIM_INTERFACE_NAME(cfs_interface); SIM_INTERFACE_NAME(eeprom_interface); SIM_INTERFACES(&vib_interface, &moteid_interface, &rs232_interface, &simlog_interface, &beep_interface, &radio_interface, &button_interface, &pir_interface, &clock_interface, &leds_interface, &cfs_interface, &eeprom_interface); -/* Example: manually add mote interfaces */ -//SIM_INTERFACE_NAME(dummy_interface); -//SIM_INTERFACES(..., &dummy_interface); /* Sensors */ SENSORS(&button_sensor, &pir_sensor, &vib_sensor);
xcopy: increase the RCR_OP_MAX_SEGMENT_LEN to 16MB The old value is 1024, this sg_xcopy will fail when we increase the target device block size from 514 to 4096. The error log as: "bpt too large (max 0 blocks)"
#define RCR_OP_MAX_TARGET_DESC_COUNT 0x02 #define RCR_OP_MAX_SEGMENT_DESC_COUNT 0x01 #define RCR_OP_MAX_DESC_LIST_LEN 1024 -#define RCR_OP_MAX_SEGMENT_LEN 1024 +#define RCR_OP_MAX_SEGMENT_LEN 16777216 #define RCR_OP_TOTAL_CONCURR_COPIES 0x01 #define RCR_OP_MAX_CONCURR_COPIES 0x01 #define RCR_OP_DATA_SEG_GRAN_LOG2 0x09
integrationtest/TestOomkill: Validate json output
@@ -32,6 +32,7 @@ import ( dnsTypes "github.com/kinvolk/inspektor-gadget/pkg/gadgets/trace/dns/types" execTypes "github.com/kinvolk/inspektor-gadget/pkg/gadgets/trace/exec/types" mountTypes "github.com/kinvolk/inspektor-gadget/pkg/gadgets/trace/mount/types" + oomkillTypes "github.com/kinvolk/inspektor-gadget/pkg/gadgets/trace/oomkill/types" openTypes "github.com/kinvolk/inspektor-gadget/pkg/gadgets/trace/open/types" signalTypes "github.com/kinvolk/inspektor-gadget/pkg/gadgets/trace/signal/types" tcpTypes "github.com/kinvolk/inspektor-gadget/pkg/gadgets/trace/tcp/types" @@ -789,10 +790,27 @@ func TestOomkill(t *testing.T) { t.Parallel() oomkillCmd := &Command{ - Name: "StarOomkilGadget", - Cmd: fmt.Sprintf("$KUBECTL_GADGET trace oomkill -n %s", ns), - ExpectedRegexp: `\d+\s+tail`, + Name: "StartOomkilGadget", + Cmd: fmt.Sprintf("$KUBECTL_GADGET trace oomkill -n %s -o json", ns), StartAndStop: true, + ExpectedOutputFn: func(output string) error { + expectedEntry := &oomkillTypes.Event{ + Event: BuildBaseEvent(ns), + KilledComm: "tail", + } + expectedEntry.Container = "test-pod-container" + + normalize := func(e *oomkillTypes.Event) { + e.Node = "" + e.KilledPid = 0 + e.Pages = 0 + e.TriggeredPid = 0 + e.TriggeredComm = "" + e.MountNsID = 0 + } + + return ExpectAllToMatch(output, normalize, expectedEntry) + }, } limitPodYaml := fmt.Sprintf(`
temporarily make defualt to NOT build sphinx docs
@@ -741,7 +741,7 @@ OPTION(VISIT_CREATE_SOCKET_RELAY_EXECUTABLE "Create a separate executable that f OPTION(VISIT_RPATH_RELATIVE_TO_EXECUTABLE_PATH "Install rpath relative to executable location using \$ORIGIN tag" OFF) OPTION(VISIT_FORTRAN "Enable compilation of Fortran example progams" OFF) OPTION(VISIT_DATA_MANUAL_EXAMPLES "Build Getting Data Into VisIt examples" OFF) -OPTION(VISIT_NO_SPHINX "Disable ability to build sphinx documentation" OFF) +OPTION(VISIT_NO_SPHINX "Disable ability to build sphinx documentation" ON) OPTION(IGNORE_THIRD_PARTY_LIB_PROBLEMS "Ignore problems finding requested third party libraries") OPTION(VISIT_FORCE_SSH_TUNNELING "Force ssh tunnelling for sockets" OFF)
fix(sensortest): move set_interval and batch before activate. modify coding style err.
@@ -273,37 +273,37 @@ int main(int argc, FAR char *argv[]) goto open_err; } - ret = ioctl(fd, SNIOC_ACTIVATE, 1); + ret = ioctl(fd, SNIOC_SET_INTERVAL, &interval); if (ret < 0) { ret = -errno; if (ret != -ENOTTY) { - printf("Failed to enable sensor:%s, ret:%s\n", + printf("Failed to set interval for sensor:%s, ret:%s\n", devname, strerror(errno)); goto ctl_err; } } - ret = ioctl(fd, SNIOC_SET_INTERVAL, &interval); + ret = ioctl(fd, SNIOC_BATCH, &latency); if (ret < 0) { ret = -errno; if (ret != -ENOTTY) { - printf("Failed to set interval for sensor:%s, ret:%s\n", + printf("Failed to batch for sensor:%s, ret:%s\n", devname, strerror(errno)); goto ctl_err; } } - ret = ioctl(fd, SNIOC_BATCH, &latency); + ret = ioctl(fd, SNIOC_ACTIVATE, 1); if (ret < 0) { ret = -errno; if (ret != -ENOTTY) { - printf("Failed to batch for sensor:%s, ret:%s\n", + printf("Failed to enable sensor:%s, ret:%s\n", devname, strerror(errno)); goto ctl_err; }
rpmsg_socket: release tx buffer when send_oncopy failed
@@ -1010,6 +1010,7 @@ static ssize_t rpmsg_socket_send_continuous(FAR struct socket *psock, conn->ept.dest_addr); if (ret < 0) { + rpmsg_release_tx_buffer(&conn->ept, msg); break; } @@ -1109,6 +1110,10 @@ static ssize_t rpmsg_socket_send_single(FAR struct socket *psock, nxmutex_unlock(&conn->sendlock); ret = rpmsg_sendto_nocopy(&conn->ept, msg, total, conn->ept.dest_addr); + if (ret < 0) + { + rpmsg_release_tx_buffer(&conn->ept, msg); + } return ret > 0 ? len : ret; }
publish: dark mode border on invite items
@@ -28,7 +28,7 @@ export class SidebarInvite extends Component { const { props } = this; return ( - <div className='pa3 bb b--gray4'> + <div className='pa3 bb b--gray4 b--gray2-d'> <div className='w-100 v-mid'> <p className="dib f9 mono gray4-d"> {props.invite.text}
fix for adding history asset not working if there was an imtermediate shape in upstream history
@@ -34,9 +34,15 @@ validateInputObjects(string $objects[], continue; } // actually, by the time we get here, we probably only have shapes - // so the transform check can probably dgo + // so the transform check can probably go if(`objectType -isAType "mesh" $object`) { + if(`getAttr ($object + ".intermediateObject")` == 1) { + // an itermediate object isn't really invalid + // but it's part of history already and should not be modified further + continue; + } + $validObjects[size($validObjects)] = $object; $validObjectsCount++; } @@ -328,6 +334,7 @@ houdiniEngine_connectHistory(string $inputAttr, string $objects[], string $compo $upstreamAttr = ($upstreamNode + ".outMesh"); connectAttr -f $upstreamAttr ($targetMesh + ".inMesh"); } + if($upstreamNode == "") { print "Could not add history to this mesh\n"; return 0;
Remove warning in case coap_engine_init is called twice
@@ -363,7 +363,6 @@ coap_engine_init(void) { /* avoid initializing twice */ if(is_initialized) { - LOG_DBG("already running - double initialization?\n"); return; } is_initialized = 1;
api: adding missing rollup dependency
"@urbit/eslint-config": "^1.0.3", "babel-eslint": "^10.1.0", "eslint-plugin-react": "^7.24.0", + "rollup": "^2.59.0", "rollup-plugin-analyzer": "^4.0.0", "rollup-plugin-terser": "^7.0.2", "rollup-plugin-typescript2": "^0.30.0",
Add declaration for node and file loaders in plugin.in.
#define METACALL_PLUGINS_H 1 #cmakedefine OPTION_BUILD_PLUGINS_C 1 +#cmakedefine OPTION_BUILD_PLUGINS_CS 1 #cmakedefine OPTION_BUILD_PLUGINS_JSM 1 #cmakedefine OPTION_BUILD_PLUGINS_JS 1 +#cmakedefine OPTION_BUILD_PLUGINS_NODE 1 +#cmakedefine OPTION_BUILD_PLUGINS_MOCK 1 #cmakedefine OPTION_BUILD_PLUGINS_PY 1 #cmakedefine OPTION_BUILD_PLUGINS_RB 1 -#cmakedefine OPTION_BUILD_PLUGINS_CS 1 -#cmakedefine OPTION_BUILD_PLUGINS_MOCK 1 +#cmakedefine OPTION_BUILD_PLUGINS_FILE 1 #endif /* METACALL_PLUGINS_H */
plugins: in_tcp: removed unnecessary event zero call
@@ -102,8 +102,6 @@ static int in_tcp_init(struct flb_input_instance *in, return -1; } - MK_EVENT_ZERO(&ctx->downstream->event); - ctx->evl = config->evl; /* Collect upon data available on the standard input */
Fix rule lt, gt operators
@@ -1292,11 +1292,11 @@ void DeRestPluginPrivate::triggerRuleIfNeeded(Rule &rule) } else if (c->op() == RuleCondition::OpGreaterThan) { - if (c->numericValue() < item->toNumber()) { ok = false; break; } + if (item->toNumber() <= c->numericValue()) { ok = false; break; } } else if (c->op() == RuleCondition::OpLowerThan) { - if (c->numericValue() > item->toNumber()) { ok = false; break; } + if (item->toNumber() >= c->numericValue()) { ok = false; break; } } else if (c->op() == RuleCondition::OpDx) {
Fix incorrect capacity adjustment in Oevent list Was capped at 16 instead of properly growing as it should have.
@@ -20,7 +20,10 @@ void oevent_list_copy(Oevent_list const* src, Oevent_list* dest) { Oevent* oevent_list_alloc_item(Oevent_list* olist) { Usz count = olist->count; if (olist->capacity == count) { - Usz capacity = count < 16 ? 16 : orca_round_up_power2(count); + // Note: no overflow check, but you're probably out of memory if this + // happens anyway. Like other uses of realloc in orca, we also don't check + // for a failed allocation. + Usz capacity = count < 16 ? 16 : orca_round_up_power2(count + 1); olist->buffer = realloc(olist->buffer, capacity * sizeof(Oevent)); olist->capacity = capacity; }
docker: Add Elixir dependencies to bullseye
@@ -24,6 +24,8 @@ RUN apt-get update && apt-get -y install \ dnsutils \ doxygen \ ed \ + elixir \ + erlang \ flex \ gawk \ ghostscript \
sim: Fix ordering on TlvFlags This enum ended up with some fields out of order. Fix the order. No impact to the code, as each enum entry has a specific value, this just makes the whole enum more consistent.
@@ -67,8 +67,8 @@ pub enum TlvFlags { PIC = 0x01, NON_BOOTABLE = 0x02, ENCRYPTED_AES128 = 0x04, - RAM_LOAD = 0x20, ENCRYPTED_AES256 = 0x08, + RAM_LOAD = 0x20, } /// A generator for manifests. The format of the manifest can be either a
chat: resize sigils to 32px, container to 60px fixes urbit/landscape#588
@@ -11,7 +11,8 @@ import { Text, BaseImage, ColProps, - Icon + Icon, + Center } from '@tlon/indigo-react'; import RichText from './RichText'; import { ProfileStatus } from './ProfileStatus'; @@ -44,16 +45,19 @@ const ProfileOverlay = (props: ProfileOverlayProps) => { onDismiss, ...rest } = props; - const hideAvatars = useSettingsState(state => state.calm.hideAvatars); - const hideNicknames = useSettingsState(state => state.calm.hideNicknames); + const hideAvatars = useSettingsState((state) => state.calm.hideAvatars); + const hideNicknames = useSettingsState((state) => state.calm.hideNicknames); const popoverRef = useRef<typeof Col>(null); - const onDocumentClick = useCallback((event) => { + const onDocumentClick = useCallback( + (event) => { if (!popoverRef.current || popoverRef?.current?.contains(event.target)) { return; } onDismiss(); - }, [onDismiss, popoverRef]); + }, + [onDismiss, popoverRef] + ); useEffect(() => { document.addEventListener('mousedown', onDocumentClick); @@ -62,7 +66,7 @@ const ProfileOverlay = (props: ProfileOverlayProps) => { return () => { document.removeEventListener('mousedown', onDocumentClick); document.removeEventListener('touchstart', onDocumentClick); - } + }; }, [onDocumentClick]); let top, bottom; @@ -82,16 +86,20 @@ const ProfileOverlay = (props: ProfileOverlayProps) => { const img = contact?.avatar && !hideAvatars ? ( <BaseImage - referrerPolicy="no-referrer" + referrerPolicy='no-referrer' display='inline-block' style={{ objectFit: 'cover' }} src={contact.avatar} - height={72} - width={72} + height={60} + width={60} borderRadius={2} /> ) : ( - <Sigil ship={ship} size={72} color={color} /> + <Box size={60} backgroundColor={color}> + <Center height={60}> + <Sigil ship={ship} size={32} color={color} /> + </Center> + </Box> ); const showNickname = useShowNickname(contact, hideNicknames); @@ -126,7 +134,7 @@ const ProfileOverlay = (props: ProfileOverlayProps) => { </Row> <Box alignSelf='center' - height='72px' + height='60px' cursor='pointer' onClick={() => history.push(`/~profile/~${ship}`)} overflow='hidden' @@ -156,11 +164,7 @@ const ProfileOverlay = (props: ProfileOverlayProps) => { </Text> </Row> {isOwn ? ( - <ProfileStatus - api={props.api} - ship={`~${ship}`} - contact={contact} - /> + <ProfileStatus api={props.api} ship={`~${ship}`} contact={contact} /> ) : ( <RichText display='inline-block'
[hardware] Revert removing of module parameters
@@ -23,14 +23,6 @@ module mempool_tile #( parameter int unsigned ICacheSizeByte = 512 * NumCoresPerTile , // Total Size of instruction cache in bytes parameter int unsigned ICacheSets = NumCoresPerTile , // Number of sets parameter int unsigned ICacheLineWidth = 32 * NumCoresPerTile , // Size of each cache line in bits - // AXI - parameter type axi_aw_t = logic , - parameter type axi_w_t = logic , - parameter type axi_b_t = logic , - parameter type axi_ar_t = logic , - parameter type axi_r_t = logic , - parameter type axi_req_t = logic , - parameter type axi_resp_t = logic , // Dependent parameters. DO NOT CHANGE. parameter int unsigned NumCores = NumCoresPerTile * NumTiles , parameter int unsigned NumBanksPerHive = NumBanks / NumHives ,
cleaning up dcmp_sync_files
@@ -990,7 +990,7 @@ static void dcmp_sync_files(strmap* src_map, strmap* dst_map, return 1; } - /* copy files that are only in the destination directory, + /* get files that are only in the destination directory, * and then remove those files */ dcmp_only_dst(src_map, dst_map, dst_list, dst_remove_list); mfu_flist_summarize(dst_remove_list); @@ -1002,10 +1002,6 @@ static void dcmp_sync_files(strmap* src_map, strmap* dst_map, /* copy flist into destination */ mfu_flist_copy(src_cp_list, 1, src_path, dest_path, mfu_copy_opts); - - /* free the lists used for copying and removing files */ - mfu_flist_free(&src_cp_list); - mfu_flist_free(&dst_remove_list); } /* compare entries from src into dst */ @@ -1175,6 +1171,10 @@ static void dcmp_strmap_compare(mfu_flist src_list, dst_list, dst_remove_list, src_cp_list, mfu_copy_opts); } + /* free lists used for copying and removing files in sync option */ + mfu_flist_free(&src_cp_list); + mfu_flist_free(&dst_remove_list); + /* free the compare flists */ mfu_flist_free(&dst_compare_list); mfu_flist_free(&src_compare_list);
examples/apache-httpd: bump nghttp2 version to 1.29.0
@@ -10,7 +10,7 @@ diff -Nur httpd/compile_and_install.sh httpd.new/compile_and_install.sh +HFUZZ_DIR="/home/jagger/src/honggfuzz" +# Change this to a directory where apache should be installed into +INSTALL_PREFIX="$(realpath "$PWD/../dist")" -+NGHTTP2_VER=1.27.0 ++NGHTTP2_VER=1.29.0 +APR_VER=1.6.3 +APR_UTIL_VER=1.6.1 +CFLAGS_SAN="-fsanitize=address"
give more pages on sbrk
@@ -324,14 +324,16 @@ void* sbrk(int increment) { current->prog_break += increment; + page_t* new = get_page(brk, 1, current_directory); + if (!new->frame) { + alloc_frame(new, 1, 1); + } + + memset(brk, 0, increment); + //map this new memory //mmap(brk, increment, 0, 0, 0); - /* - printf("sbrk(%x) gives chunk @ %x\n", increment, brk); - printf("sbrk new break @ %x\n", (uint32_t)brk + increment); - sleep(2000); - */ return brk; } @@ -383,7 +385,7 @@ void page_fault(registers_t regs) { //if this page was present, attempt to recover by allocating the page if (!present) { - bool attempt = alloc_frame(get_page(faulting_address, 1, kernel_directory), 1, 1); + bool attempt = alloc_frame(get_page(faulting_address, 1, current_directory), 1, 1); if (attempt) { //recovered successfully //printf_info("allocated page at virt %x", faulting_address); @@ -414,7 +416,6 @@ void page_fault(registers_t regs) { printf_err("Page fault caused by reading unpaged memory"); } - extern void common_halt(registers_t regs, bool recoverable); common_halt(regs, false); }
Document cross-compile considerations for NonStop x86 builds. Fixes
@@ -78,12 +78,65 @@ The current OpenSSL default memory model uses the default platform address model. If you need a different address model, you must specify the appropriate c99 options for compile (`CFLAGS`) and linkers (`LDFLAGS`). +Cross Compiling on Windows +-------------------------- + +To configure and compile OpenSSL, you will need to set up a Cygwin environment. +The Cygwin tools should include bash, make, and any other normal tools required +for building programs. + +Your `PATH` must include the bin directory for the c99 cross-compiler, as in: + + export PATH=/cygdrive/c/Program\ Files\ \(x86\)/HPE\ NonStop/L16.05/usr/bin:$PATH + +This should be set before Configure is run. For the c99 cross-compiler to work +correctly, you also need the `COMP_ROOT` set, as in: + + export COMP_ROOT="C:\Program Files (x86)\HPE NonStop\L16.05" + +`COMP_ROOT` needs to be in Windows form. + +`Configure` must specify the `no-makedepend` option otherwise errors will +result when running the build because the c99 cross-compiler does not support +the `gcc -MT` option. An example of a `Configure` command to be run from the +OpenSSL directory is: + + ./Configure nonstop-nsx_64 no-makedepend --with-rand-seed=rdcpu + +Do not forget to include any OpenSSL cross-compiling prefix and certificate +options when creating your libraries. + +The OpenSSL test suite will not run on your workstation. In order to verify the +build, you will need to perform the build and test steps in OSS in your NonStop +server. You can also build under gcc and run the test suite for Windows but that +is not equivalent. + +**Note:** In the event that you are attempting a FIPS-compliant cross-compile, +be aware that signatures may not match between builds done under OSS and under +cross-compiles as the compilers do not necessarily generate identical objects. +Anything and everything to do with FIPS is outside the scope of this document. +Refer to the FIPS security policy for more information. + +The following build configurations have been successfully attempted at one +point or another. If you are successful in your cross-compile efforts, please +update this list: + +- nonstop-nsx_64 +- nonstop-nsx_64_put + +**Note:** Cross-compile builds for TNS/E have not been attempted, but should +follow the same considerations as for TNS/X above. SPT builds generally require +FLOSS, which is not available for workstation builds. As a result, SPT builds +of OpenSSL cannot be cross-compiled. + +Also see the NSDEE discussion below for more historical information. + Cross Compiling with NSDEE -------------------------- -**Note:** None of these builds have been tested by the platform maintainer and are -supplied for historical value. Please submit a Pull Request to OpenSSL should -these need to be adjusted. +**Note:** None of these builds have been tested by the platform maintainer and +are supplied for historical value. Please submit a Pull Request to OpenSSL +should these need to be adjusted. If you are attempting to build OpenSSL with NSDEE, you will need to specify the following variables. The following set of compiler defines are required:
Simplify posix_fadvise dispatch with musl. There's no point in looking up posix_fadvise dynamically with musl, thus all dynamic dispatch helper code could be moved to glibc branch and bypassed altogether.
#include <dlfcn.h> #include <util/generic/singleton.h> -typedef int (*TPosixFadvisePtr)(int, off_t, off_t, int); +static int PosixFadvise(int fd, off_t offset, off_t len, int advice) { +#if defined(_musl_) + return ::posix_fadvise(fd, offset, len, advice); +#else + // Lookup implementation dynamically for ABI compatibility with older GLIBC versions -namespace { struct TPosixFadvise { - TPosixFadvisePtr posix_fadvise; + using TPosixFadviseFunc = int(int, off_t, off_t, int); - TPosixFadvise() { - posix_fadvise = ReinterpretCast<TPosixFadvisePtr>(dlsym(RTLD_DEFAULT, "posix_fadvise")); + TPosixFadviseFunc* Impl = nullptr; -#if defined(_musl_) - if (!posix_fadvise) { - posix_fadvise = ::posix_fadvise; - } -#endif + TPosixFadvise() { + Impl = ReinterpretCast<TPosixFadviseFunc*>(dlsym(RTLD_DEFAULT, "posix_fadvise")); - if (!posix_fadvise) { - posix_fadvise = Unimplemented; + if (!Impl) { + Impl = Unimplemented; } } @@ -71,6 +70,9 @@ namespace { return ENOSYS; } }; + + return Singleton<TPosixFadvise>()->Impl(fd, offset, len, advice); +#endif } #endif @@ -239,11 +241,11 @@ TFileHandle::TFileHandle(const TString& fName, EOpenMode oMode) noexcept { #if HAVE_POSIX_FADVISE if (Fd_ >= 0) { if (oMode & NoReuse) { - Singleton<TPosixFadvise>()->posix_fadvise(Fd_, 0, 0, POSIX_FADV_NOREUSE); + PosixFadvise(Fd_, 0, 0, POSIX_FADV_NOREUSE); } if (oMode & Seq) { - Singleton<TPosixFadvise>()->posix_fadvise(Fd_, 0, 0, POSIX_FADV_SEQUENTIAL); + PosixFadvise(Fd_, 0, 0, POSIX_FADV_SEQUENTIAL); } } #endif @@ -962,7 +964,7 @@ bool PosixDisableReadAhead(FHANDLE fileHandle, void* addr) noexcept { ret = madvise(addr, 0, MADV_RANDOM); // according to klamm@ posix_fadvise does not work under linux, madvise does work #else Y_UNUSED(addr); - ret = Singleton<TPosixFadvise>()->posix_fadvise(fileHandle, 0, 0, POSIX_FADV_RANDOM); + ret = PosixFadvise(fileHandle, 0, 0, POSIX_FADV_RANDOM); #endif #else Y_UNUSED(fileHandle);
Update build.yml Fails without splitreus62 shield and without itself added?
@@ -8,7 +8,7 @@ jobs: name: Build Test strategy: matrix: - board: [proton_c, nice_nano, bluemicro52840_v1] + board: [proton_c, nice_nano] shield: - corne_left - corne_right @@ -16,8 +16,6 @@ jobs: - kyria_right - lily58_left - lily58_right - - splitreus62_left - - splitreus62_right include: - board: proton_c shield: clueboard_california
qcom: Increase the delay between powering on the switchcap and the PMIC Measured the delay on Herobrine IOB + Trogdor MLB is ~200ms. Pick a larger delay 300ms. BRANCH=None TEST=Booted AP successfully.
@@ -126,9 +126,12 @@ BUILD_ASSERT(ARRAY_SIZE(power_signal_list) == POWER_SIGNAL_COUNT); /* * Delay between power-on the system and power-on the PMIC. * Some latest PMIC firmware needs this delay longer, for doing a cold - * reboot. Did an experiment; it should be 120ms+. Set it with margin. + * reboot. + * + * Measured on Herobrine IOB + Trogdor MLB, the delay takes ~200ms. Set + * it with margin. */ -#define SYSTEM_POWER_ON_DELAY (150 * MSEC) +#define SYSTEM_POWER_ON_DELAY (300 * MSEC) /* * Delay between the PMIC power drop and power-off the system.
naive: l2 csv first data collation collects block number, gas prices, and timestamps into one structure. not finished.
=/ block-jar=(jar @ud @ux) (block-tx-jar l2-logs) ;< timestamps=(map @ud @da) bind:m (get-timestamps blocks) ;< gas-prices=(map @ux @ud) bind:m (get-gas-prices tx-hashes) - (pure:m !>(block-jar)) - :: ++ collate-roll-data - :: |= $: blocks=(list @ud) + =/ rolling (collate-roll-data blocks block-jar timestamps gas-prices) + (pure:m !>(rolling)) + :: + ++ collate-roll-data + |= $: blocks=(list @ud) + block-jar=(jar @ud @ux) ::l2-logs=events - :: timestamps=(list [block=@ud timestamp=@da]) - :: gas-prices=(list [@ux @ud]) - :: == - :: =| block-map=(map @ud [timestamp=@da (list roll-data)]) - :: |- - :: ?~ blocks block-map - :: =/ block=@ud i.block + timestamps=(map @ud @da) + gas-prices=(map @ux @ud) + == + =| block-map=(map @ud [timestamp=@da gas=(map @ux @ud)]) + |- + ?~ blocks block-map + =/ block i.blocks + =/ tx-hashes (~(get ja block-jar) block) + =/ tx-gas=(map @ux @ud) + %- ~(gas by *(map @ux @ud)) + %+ turn tx-hashes + |= txh=@ux + [txh (~(got by gas-prices) txh)] + %= $ + blocks t.blocks + block-map (~(put by block-map) block [(~(got by timestamps) block) tx-gas]) + == :: ++ get-gas-prices |= tx-hashes=(list @ux)
Fixing cpu temp for core 2 duo CPUs
@@ -296,6 +296,8 @@ bool CPUStats::GetCpuFile() { } else if ((name == "zenpower" || name == "k10temp") && find_temp_input(path, input, "Tdie")) { break; + } else if (name == "atk0110" && find_temp_input(path, input, "CPU Temperature")){ + break; } }
Bug fix for reading adios files from SST
@@ -152,13 +152,6 @@ avtADIOS2BaseFileFormat::avtADIOS2BaseFileFormat(const char *filename) io.SetEngine(engineType); reader = io.Open(getFile(filename), adios2::Mode::Read); - cout<<"avtADIOS2BaseFileFormat::avtADIOS2BaseFileFormat: "<<filename<<endl; -#ifdef MDSERVER - cout<<" Ctor: MDSERVER"<<endl; -#else - cout<<" Ctor: ENGINE"<<endl; -#endif - if (engineType == "SST") { numTimeSteps = 100000; @@ -171,7 +164,6 @@ avtADIOS2BaseFileFormat::avtADIOS2BaseFileFormat(const char *filename) for (auto &v : vars) { string nsteps = v.second["AvailableStepsCount"]; - cout<<"nsteps= :"<<nsteps<<":"<<endl; if (!nsteps.empty()) { numTimeSteps = std::stoi(nsteps); @@ -262,16 +254,15 @@ avtADIOS2BaseFileFormat::FreeUpResources(void) void avtADIOS2BaseFileFormat::PopulateDatabaseMetaData(avtDatabaseMetaData *md, int timeState) { -#ifdef MDSERVER - cout<<"PopulateDatabaseMetaData: MDSERVER "<<timeState<<endl; -#else - cout<<"PopulateDatabaseMetaData: ENGINE "<<timeState<<endl; -#endif + if (engineType == "SST") + { + reader.BeginStep(adios2::StepMode::NextAvailable, 0.0f); + reader.EndStep(); + } meshInfo.clear(); variables = io.AvailableVariables(); - vector<pair<string,string>> vars; for (const auto &varInfo : variables) @@ -356,7 +347,7 @@ avtADIOS2BaseFileFormat::GetMesh(int timestate, const char *meshname) if (shape.size() == 2) shape.push_back(1); - cout<<"********** SWAP DIMS"<<endl; + //cout<<"********** SWAP DIMS"<<endl; std::swap(shape[0], shape[1]); int dims[3] = {shape[0], shape[1], shape[2]}; @@ -423,7 +414,7 @@ avtADIOS2BaseFileFormat::GetVar(int timestate, const char *varname) } adios2::Variable<double> v = io.InquireVariable<double>(varname); - cout<<"DIMS= "<<v.Shape()<<endl; + //cout<<"DIMS= "<<v.Shape()<<endl; if (engineType == "BP") v.SetStepSelection({timestate, 1});
Further fix: if the tunnel wasn't established, it's not in datagram_flows either
@@ -396,7 +396,9 @@ static void destroy_tunnel(struct st_h2o_http3_server_stream_t *stream) struct st_h2o_http3_server_conn_t *conn = get_conn(stream); if (stream->tunnel->datagram_flow_id != UINT64_MAX) { khiter_t iter = kh_get(stream, conn->datagram_flows, stream->tunnel->datagram_flow_id); - assert(iter != kh_end(conn->datagram_flows)); + /* the tunnel wasn't established yet */ + if (iter == kh_end(conn->datagram_flows)) + return; kh_del(stream, conn->datagram_flows, iter); } }
prd: Validate _opal_queue_msg() return value On safer side, validate _opal_queue_msg() return value. Acked-by: Jeremy Kerr
@@ -162,6 +162,7 @@ static void send_next_pending_event(void) { struct proc_chip *chip; uint32_t proc; + int rc; uint8_t event; assert(!prd_msg_inuse); @@ -182,7 +183,6 @@ static void send_next_pending_event(void) if (!event) return; - prd_msg_inuse = true; prd_msg->token = 0; prd_msg->hdr.size = sizeof(*prd_msg); @@ -211,9 +211,12 @@ static void send_next_pending_event(void) * We always need to handle PSI interrupts, but if the is PRD is * disabled then we shouldn't propagate PRD events to the host. */ - if (prd_enabled) - _opal_queue_msg(OPAL_MSG_PRD, prd_msg, prd_msg_consumed, + if (prd_enabled) { + rc = _opal_queue_msg(OPAL_MSG_PRD, prd_msg, prd_msg_consumed, prd_msg->hdr.size, prd_msg); + if (!rc) + prd_msg_inuse = true; + } } static void __prd_event(uint32_t proc, uint8_t event) @@ -420,11 +423,14 @@ static int prd_msg_handle_firmware_req(struct opal_prd_msg *msg) rc = -ENOSYS; } - if (!rc) + if (!rc) { rc = _opal_queue_msg(OPAL_MSG_PRD, prd_msg, prd_msg_consumed, prd_msg->hdr.size, prd_msg); - else + if (rc) prd_msg_inuse = false; + } else { + prd_msg_inuse = false; + } unlock(&events_lock);
ULDObjectInfo ComponentType was removed during migration
@@ -8,5 +8,6 @@ namespace FFXIVClientStructs.Component.GUI.ULD [FieldOffset(0x0)] public uint Id; [FieldOffset(0x4)] public int NodeCount; [FieldOffset(0x8)] public AtkResNode** NodeList; + [FieldOffset(0x10)] public ComponentType ComponentType; } }
LimeRFE: Fix CMake requiring GUI
@@ -32,7 +32,7 @@ include(CMakeDependentOption) cmake_dependent_option(ENABLE_LIMERFE "Enable LimeRFE support" ON "ENABLE_LIBRARY" OFF) add_feature_info(LimeRFE ENABLE_LIMERFE "LimeRFE support") -if(ENABLE_LIMERFE) +if(ENABLE_LIMERFE AND ENABLE_GUI) target_compile_definitions(LimeSuiteGUI PUBLIC "LIMERFE") endif() @@ -43,5 +43,7 @@ endif() ######################################################################## ## Add to library ######################################################################## +if(ENABLE_GUI) target_sources(LimeSuiteGUI PRIVATE ${LIMERFE_GUI_SOURCES}) +endif() target_sources(LimeSuite PRIVATE ${LIMERFE_SOURCES})
Add AddonMateriaRetrieveDialog There's some sort of inheritance with these materia addons, but problem for later.
@@ -2246,6 +2246,9 @@ classes: Client::UI::AddonMateriaAttachDialog: inherits_from: Component::GUI::AtkUnitBase vtbl: 0x1417EB910 + Client::UI::AddonMateriaRetrieveDialog: + inherits_from: Component::GUI::AtkUnitBase + vtbl: 0x1417EBB30 Client::UI::AddonMiragePrismMiragePlate: inherits_from: Component::GUI::AtkUnitBase vtbl: 0x1417ECF70
RTX5 (Documentation): Hardware requirements for Cortex-A systems added
@@ -1143,7 +1143,6 @@ The interface files to the processor hardware are: \subsection tpCortexM3_M4_M7_M33 Cortex-M3/M4/M7/M33 target processor -RTX assumes a fully function-able processor and uses the following hardware features: Hardware Requirement | Description :--------------------------|:------------------------------------------------------ @@ -1167,6 +1166,22 @@ The interface files to the processor hardware are: \subsection tpCortexA5_A7_A9 Cortex-A5/A7/A9 target processor +Hardware Requirement | Description +:--------------------------|:------------------------------------------------------ +Timer Peripheral | An arbitrary timer peripheral generates the kernel tick interrupts. The interfaces for Cortex-A Generic Timer and Private Timer are implemented in %os_tick_gtim.c and %os_tick_ptim.c using the \ref CMSIS_RTOS_TickAPI +Exception Handler | RTX implements exception handlers for SVC, IRQ, Data Abort, Prefetch Abort and Undefined Instruction interrupt. +Core Registers | The processor status is read using the following core registers: CPSR, CPACR and FPSCR. +LDREX, STREX instruction | Atomic execution avoids the requirement to disable interrupts and is implemented via exclusive access instructions. +Interrupt Controller | An interrupt controller interface is required to setup and control Timer Peripheral interrupt. The interface for Arm GIC (Generic Interrupt Controller) is implemented in %irq_ctrl_gic.c using the IRQ Controller API + +The interface files to the processor hardware are: + - <b>%irq_ca.s</b> defines SVC, IRQ, Data Abort, Prefetch Abort and Undefined Instruction exception handlers. + - <b>%rtx_core_ca.h</b> defines processor specific helper functions and the interfaces to Core Registers and Core Peripherals. + - <b>%os_tick.h</b> is the \ref CMSIS_RTOS_TickAPI that defines the interface functions to the timer peripheral. + - <b>%irq_ctrl.h</b> is the IRQ Controller API that defines the interface functions to the interrupt controller. + +\note + - The CMSIS-Core variable \c SystemCoreClock is used to configure the timer peripheral. \section rMemory Memory Requirements RTX requires RAM memory that is accessible with contiguous linear addressing. When memory is split across multiple memory banks, some systems
moved energest init to after the rtimer init
@@ -258,6 +258,8 @@ initialize(void) /* rtimers needed for radio cycling */ rtimer_init(); +/* we can initialize the energest arrays here */ + energest_init(); /* after the timer intitialisation we start the cpu measurement */ ENERGEST_ON(ENERGEST_TYPE_CPU); @@ -463,9 +465,6 @@ main(void) uip_ds6_nbr_t *nbr; #endif /* NETSTACK_CONF_WITH_IPV6 */ -/* we can initialize the energest here, before the hardware */ - energest_init(); - initialize();
[fuzzer] Make logging optional for h3 fuzzer This commit introduces an environment variable H2O_FUZZER_LOG_ACCESS to control access logging during fuzzer runs. Default is off, and it could be turned on by setting it to non-zero integer for debugging.
@@ -89,12 +89,12 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { if (!init_done) { h2o_hostconf_t *hostconf; - h2o_access_log_filehandle_t *logfh = h2o_access_log_open_handle("/dev/stdout", NULL, H2O_LOGCONF_ESCAPE_APACHE); + h2o_access_log_filehandle_t *logfh = NULL; h2o_pathconf_t *pathconf; static char tmpname[] = "/tmp/h2o-fuzz-XXXXXX"; char *dirname; pthread_t tupstream; - const char *client_timeout_ms_str; + const char *client_timeout_ms_str, *log_access_str; h2o_barrier_init(&init_barrier, 2); signal(SIGPIPE, SIG_IGN); @@ -106,6 +106,12 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) if (!client_timeout_ms) client_timeout_ms = 10; + if ((log_access_str = getenv("H2O_FUZZER_LOG_ACCESS")) != NULL) { + bool log_access = atoi(log_access_str) != 0; + if (log_access) + logfh = h2o_access_log_open_handle("/dev/stdout", NULL, H2O_LOGCONF_ESCAPE_APACHE); + } + h2o_config_init(&config); hostconf = h2o_config_register_host(&config, h2o_iovec_init(H2O_STRLIT("default")), 65535);
pybricks.common.IMU: Add changelog entry. Fixes
## [Unreleased] +### Fixed +- Fixed `imu.angular_velocity` returning the values of `imu.acceleration`. + +[support#885]: https://github.com/pybricks/support/issues/885 + ## [3.2.0] - 2022-12-20 ### Changed
Correct comment on CMake var setting
@@ -243,13 +243,13 @@ include(NF_API_Namespaces) if(API_Windows.Devices.Gpio) - set(HAL_USE_GPIO_OPTION TRUE CACHE INTERNAL "HAL SPI for Windows.Devices.Gpio") + set(HAL_USE_GPIO_OPTION TRUE CACHE INTERNAL "HAL GPIO for Windows.Devices.Gpio") # this API requires nanoFramework.Runtime.Events set(API_nanoFramework.Runtime.Events ON CACHE INTERNAL "enable of API_nanoFramework.Runtime.Events") else() - set(HAL_USE_GPIO_OPTION FALSE CACHE INTERNAL "HAL SPI for Windows.Devices.Gpio") + set(HAL_USE_GPIO_OPTION FALSE CACHE INTERNAL "HAL GPIO for Windows.Devices.Gpio") endif()
[io] correct syntax error due to a wrong manipulation
@@ -906,6 +906,7 @@ class MechanicsHdf5(object): def add_convex_shape(self, name, points, insideMargin=None, outsideMargin=None, + avoid_internal_edge_contact=False): """ Add a convex shape defined by a list of points.
Modified to include install script for os x cli tools
@@ -22,6 +22,7 @@ RAVEND_BIN=$(top_builddir)/src/$(RAVEN_DAEMON_NAME)$(EXEEXT) RAVEN_QT_BIN=$(top_builddir)/src/qt/$(RAVEN_GUI_NAME)$(EXEEXT) RAVEN_CLI_BIN=$(top_builddir)/src/$(RAVEN_CLI_NAME)$(EXEEXT) RAVEN_WIN_INSTALLER=$(PACKAGE)-$(PACKAGE_VERSION)-win$(WINDOWS_BITS)-setup$(EXEEXT) +RAVEN_CLI_INSTALL=$(top_builddir)/contrib/install_cli.sh empty := space := $(empty) $(empty) @@ -96,6 +97,10 @@ $(OSX_APP)/Contents/Resources/raven.icns: $(OSX_INSTALLER_ICONS) $(MKDIR_P) $(@D) $(INSTALL_DATA) $< $@ +$(OSX_APP)/Contents/MacOS/install_cli.sh: $(RAVEN_CLI_INSTALL) + $(MKDIR_P) $(@D) + $(INSTALL_DATA) $< $@ + $(OSX_APP)/Contents/MacOS/Raven-Qt: $(RAVEN_QT_BIN) $(MKDIR_P) $(@D) STRIPPROG="$(STRIP)" $(INSTALL_STRIP_PROGRAM) $< $@ @@ -115,7 +120,7 @@ $(OSX_APP)/Contents/Resources/Base.lproj/InfoPlist.strings: OSX_APP_BUILT=$(OSX_APP)/Contents/PkgInfo $(OSX_APP)/Contents/Resources/empty.lproj \ $(OSX_APP)/Contents/Resources/raven.icns $(OSX_APP)/Contents/Info.plist \ $(OSX_APP)/Contents/MacOS/Raven-Qt $(OSX_APP)/Contents/Resources/Base.lproj/InfoPlist.strings \ - $(OSX_APP)/Contents/MacOS/ravend $(OSX_APP)/Contents/MacOS/raven-cli + $(OSX_APP)/Contents/MacOS/ravend $(OSX_APP)/Contents/MacOS/raven-cli $(OSX_APP)/Contents/MacOS/install_cli.sh osx_volname: echo $(OSX_VOLNAME) >$@
Release GIL while doing checking script modification time.
@@ -3837,14 +3837,17 @@ static int wsgi_reload_required(apr_pool_t *pool, request_rec *r, if (!r || strcmp(r->filename, filename)) { apr_finfo_t finfo; - if (apr_stat(&finfo, filename, APR_FINFO_NORM, - pool) != APR_SUCCESS) { + apr_status_t status; + + Py_BEGIN_ALLOW_THREADS + status = apr_stat(&finfo, filename, APR_FINFO_NORM, pool); + Py_END_ALLOW_THREADS + + if (status != APR_SUCCESS) return 1; - } - else if (mtime != finfo.mtime) { + else if (mtime != finfo.mtime) return 1; } - } else { if (mtime != r->finfo.mtime) return 1;
build: make bench is phony
@@ -33,7 +33,7 @@ CFLAGS := $(CFLAGS) ################################################################################ -.PHONY: all test clean mrproper +.PHONY: all bench test clean mrproper ################################################################################
SOVERSION bump to version 3.5.1
@@ -67,7 +67,7 @@ set(LIBNETCONF2_VERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION # with backward compatible change and micro version is connected with any internal change of the library. set(LIBNETCONF2_MAJOR_SOVERSION 3) set(LIBNETCONF2_MINOR_SOVERSION 5) -set(LIBNETCONF2_MICRO_SOVERSION 0) +set(LIBNETCONF2_MICRO_SOVERSION 1) set(LIBNETCONF2_SOVERSION_FULL ${LIBNETCONF2_MAJOR_SOVERSION}.${LIBNETCONF2_MINOR_SOVERSION}.${LIBNETCONF2_MICRO_SOVERSION}) set(LIBNETCONF2_SOVERSION ${LIBNETCONF2_MAJOR_SOVERSION})
[bootloader] In WITH_BOOTLOADER mode, assert jump back to bootlaoder.
#include "luos_hal.h" #include "msg_alloc.h" #include "stdbool.h" +#ifdef WITH_BOOTLOADER + #include "bootloader_core.h" +#endif /******************************************************************************* * Function @@ -54,6 +57,13 @@ _CRITICAL __attribute__((weak)) void Luos_assert(char *file, uint32_t line) // wait for the transmission to finish before killing IRQ while (MsgAlloc_TxAllComplete() == FAILED) ; +#ifdef WITH_BOOTLOADER + // We're in a failed app, + // Restart this node in bootloader mode instead of don't do anything + // We will come back on this app after a reboot. + // Set bootloader mode, save node ID and reboot + LuosBootloader_JumpToBootloader(); +#endif LuosHAL_SetIrqState(false); while (1) {
pull-hook: rewatch missing subscriptions
push-hook-name=term == :: -:: $state-0: state for the pull hook +:: $base-state-0: state for the pull hook :: :: .tracking: a map of resources we are pulling, and the ships that :: we are pulling them from. :: .inner-state: state given to internal door :: -+$ state-0 ++$ base-state-0 $: %0 tracking=(map resource ship) inner-state=vase == :: ++$ state-0 [%0 base-state-0] +:: ++$ state-1 [%1 base-state-0] +:: ++$ versioned-state + $% state-0 + state-1 + == +:: ++ default |* [pull-hook=* =config] |_ =bowl:gall ++ agent |* =config |= =(pull-hook config) - =| state-0 + =| state-1 =* state - ^- agent:gall =< [cards this] ++ on-load |= =old=vase - ^- [(list card:agent:gall) agent:gall] =/ old - !<(state-0 old-vase) - =^ cards pull-hook + !<(versioned-state old-vase) + =| cards=(list card:agent:gall) + |^ + ?- -.old + %1 + =^ og-cards pull-hook (on-load:og inner-state.old) - [cards this(state old)] + [(weld cards og-cards) this(state old)] + :: + %0 + %_ $ + -.old %1 + :: + cards + (weld cards (missing-subscriptions tracking.old)) + == + == + ++ missing-subscriptions + |= tracking=(map resource ship) + ^- (list card:agent:gall) + %+ murn + ~(tap by tracking) + |= [rid=resource =ship] + ^- (unit card:agent:gall) + =/ =path + (en-path:resource rid) + =/ =wire + (weld /pull/resource path) + ?: (~(has by wex.bowl) [wire ship push-hook-name.config]) + ~ + `[%pass wire %agent [ship push-hook-name.config] %watch path] + -- + :: ++ on-save ^- vase =. inner-state
Fix engine crash when deleting plots after export to tetrahedralized vtk Don't call delete on 'ds'.
@@ -212,6 +212,11 @@ avtVTKWriter::WriteHeaders(const avtDatabaseMetaData *md, // // Mark C. Miller, Mon Mar 9 19:50:57 PDT 2020 // Add output of expressions +// +// Kathleen Biagas, Fri Mar 12, 2021 +// Remove deletion of ds when tetrahedralizing, as it causes engine to +// crash when deleting plots after an export. +// // **************************************************************************** void @@ -298,7 +303,6 @@ avtVTKWriter::WriteChunk(vtkDataSet *ds, int chunk) tf->Update(); vtkDataSet *_ds = (vtkDataSet*) tf->GetOutput(); _ds->Register(NULL); - ds->Delete(); tf->Delete(); ds = _ds; debug1 << ds->GetNumberOfPoints() << " points, " << ds->GetNumberOfCells() << " cells." << endl;;
OcDevicePathLib: Add missed NULL check
@@ -468,7 +468,7 @@ OcFixAppleBootDevicePath ( // Must be set to 0xFFFF if the device is directly connected to the // HBA. This rule has been established by UEFI 2.5 via an Erratum and // has not been followed by Apple thus far. - // Reference: appendSATADevicePathNodeForIOMedia + // Reference: AppleACPIPlatform.kext, appendSATADevicePathNodeForIOMedia // DevPath.Sata->PortMultiplierPortNumber = 0xFFFF; } @@ -485,7 +485,7 @@ OcFixAppleBootDevicePath ( // // Apple uses SubType 0x16 (SasEx) for NVMe, while the UEFI Specification // defines it as SubType 0x17. The structures are identical. - // Reference: appendNVMeDevicePathNodeForIOMedia + // Reference: AppleACPIPlatform.kext, appendNVMeDevicePathNodeForIOMedia // if (DevicePathNodeLength (DevPath.DevPath) == sizeof (NVME_NAMESPACE_DEVICE_PATH)) { DevPath.DevPath->SubType = MSG_NVME_NAMESPACE_DP; @@ -509,9 +509,11 @@ OcFixAppleBootDevicePath ( ); if (EFI_ERROR (Status) || !IsDevicePathEnd (RemainingDevPath)) { DevicePathText = DevicePathToText (DevicePath, FALSE, FALSE); + if (DevicePathText != NULL) { DEBUG ((DEBUG_ERROR, "Malformed Device Path: %s\n", DevicePathText)); FreePool (DevicePathText); } + } ); }
io-libs/netcdf-cxx: add disable of filter-testing
@@ -90,6 +90,7 @@ export LDFLAGS="-L$HDF5_LIB -L$NETCDF_LIB" --enable-ncgen4 \ --with-pic \ --disable-doxygen \ + --disable-filter-testing \ --disable-static || { cat config.log && exit 1; } make %{?_smp_mflags}
Mark the second uppercasing in streqci() as unreacheable for coverage tests
@@ -1019,7 +1019,11 @@ streqci(const char *s1, const char *s2) if (ASCII_a <= c1 && c1 <= ASCII_z) c1 += ASCII_A - ASCII_a; if (ASCII_a <= c2 && c2 <= ASCII_z) - c2 += ASCII_A - ASCII_a; + /* The following line will never get executed. streqci() is + * only called from two places, both of which guarantee to put + * upper-case strings into s2. + */ + c2 += ASCII_A - ASCII_a; /* LCOV_EXCL_LINE */ if (c1 != c2) return 0; if (!c1)
bin: fix return type for flb_cf_section_property_add.
@@ -611,7 +611,7 @@ static int set_property(struct flb_cf *cf, struct flb_cf_section *s, char *kv) int sep; char *key; char *value; - struct cfl_array *tmp; + struct cfl_variant *tmp; len = strlen(kv); sep = mk_string_char_search(kv, '=', len);
gamepad: disable gamepad_battery_icon by default
@@ -584,7 +584,7 @@ parse_overlay_config(struct overlay_params *params, params->enabled[OVERLAY_PARAM_ENABLED_frametime] = true; params->enabled[OVERLAY_PARAM_ENABLED_fps_only] = false; params->enabled[OVERLAY_PARAM_ENABLED_gamepad_battery] = false; - params->enabled[OVERLAY_PARAM_ENABLED_gamepad_battery_icon] = true; + params->enabled[OVERLAY_PARAM_ENABLED_gamepad_battery_icon] = false; params->enabled[OVERLAY_PARAM_ENABLED_throttling_status] = false; params->enabled[OVERLAY_PARAM_ENABLED_fcat] = false; params->fps_sampling_period = 500000000; /* 500ms */
Suspend RConfigCoolSetpoint type check
@@ -1167,8 +1167,8 @@ int DeRestPluginPrivate::changeSensorConfig(const ApiRequest &req, ApiResponse & } else if (rid.suffix == RConfigCoolSetpoint) { - if (map[pi.key()].type() == QVariant::Double) - { + //if (map[pi.key()].type() == QVariant::Double) + //{ qint16 coolsetpoint = map[pi.key()].toInt(&ok); if (addTaskThermostatReadWriteAttribute(task, deCONZ::ZclWriteAttributesId, 0x0000, 0x0011, deCONZ::Zcl16BitInt, coolsetpoint)) @@ -1182,14 +1182,14 @@ int DeRestPluginPrivate::changeSensorConfig(const ApiRequest &req, ApiResponse & rsp.httpStatus = HttpStatusBadRequest; return REQ_READY_SEND; } - } + /*} else { rsp.list.append(errorToMap(ERR_INVALID_VALUE, QString("/sensors/%1/config/%2").arg(id).arg(pi.key()).toHtmlEscaped(), QString("invalid value, %1, for parameter %2").arg(map[pi.key()].toString()).arg(pi.key()).toHtmlEscaped())); rsp.httpStatus = HttpStatusBadRequest; return REQ_READY_SEND; - } + }*/ } else if ((rid.suffix == RConfigMode) && !sensor->modelId().startsWith(QLatin1String("SPZB"))) {
Fix env handling to allow scope attach to work with -n flag.
@@ -902,16 +902,13 @@ main(int argc, char **argv, char **env) } // add the env vars we want in the library - char *env; dprintf(fd, "SCOPE_LIB_PATH=%s\n", libdirGetLibrary()); - if ((env = getenv("SCOPE_EXEC_PATH"))) { - dprintf(fd, "SCOPE_EXEC_PATH=%s\n", env); - } - if ((env = getenv("SCOPE_CONF_PATH"))) { - dprintf(fd, "SCOPE_CONF_PATH=%s\n", env); + + int i; + for (i = 0; environ[i]; i++) { + if (strlen(environ[i]) > 6 && strncmp(environ[i], "SCOPE_", 6) == 0) { + dprintf(fd, "%s\n", environ[i]); } - if ((env = getenv("SCOPE_HOME"))) { - dprintf(fd, "SCOPE_HOME=%s\n", env); } // done
Add missing docs Added missing docs for `loadfile`, `loadstring`, `ltype`, and `tostring`.
@@ -735,17 +735,41 @@ loadbuffer bs name = liftLua $ \l -> B.useAsCString name $ \namePtr -> toStatus <$> luaL_loadbuffer l str (fromIntegral len) namePtr --- | See <https://www.lua.org/manual/5.3/manual.html#luaL_loadfile luaL_loadfile>. -loadfile :: ByteString -> Lua Status -loadfile f = liftLua $ \l -> - B.useAsCString f $ \fPtr -> +-- | Loads a file as a Lua chunk. This function uses @lua_load@ (see @'load'@) +-- to load the chunk in the file named filename. The first line in the file is +-- ignored if it starts with a @#@. +-- +-- The string mode works as in function @'load'@. +-- +-- This function returns the same results as @'load'@, but it has an extra error +-- code @'ErrFile'@ for file-related errors (e.g., it cannot open or read the +-- file). +-- +-- As @'load'@, this function only loads the chunk; it does not run it. +-- +-- See <https://www.lua.org/manual/5.3/manual.html#luaL_loadfile luaL_loadfile>. +loadfile :: ByteString -- ^ filename + -> Lua Status +loadfile filename = liftLua $ \l -> + B.useAsCString filename $ \fPtr -> toStatus <$> luaL_loadfile l fPtr --- | See <https://www.lua.org/manual/5.3/manual.html#luaL_loadstring luaL_loadstring>. +-- | Loads a string as a Lua chunk. This function uses @lua_load@ to load the +-- chunk in the given ByteString. The given string may not contain any NUL +-- characters. +-- +-- This function returns the same results as @lua_load@ (see @'load'@). +-- +-- Also as @'load'@, this function only loads the chunk; it does not run it. +-- +-- See <https://www.lua.org/manual/5.3/manual.html#luaL_loadstring luaL_loadstring>. loadstring :: ByteString -> Lua Status -loadstring str = loadbuffer str (B.filter (/= 0) str) -- null-byte less name +loadstring str = loadbuffer str str --- | See <https://www.lua.org/manual/5.3/manual.html#lua_type lua_type>. +-- | Returns the type of the value in the given valid index, or @'TypeNone'@ for +-- a non-valid (but acceptable) index. +-- +-- See <https://www.lua.org/manual/5.3/manual.html#lua_type lua_type>. ltype :: StackIndex -> Lua Type ltype idx = toType <$> liftLua (flip lua_type idx) @@ -1231,7 +1255,13 @@ tonumber n = liftLua $ \l -> alloca $ \bptr -> do topointer :: StackIndex -> Lua (Ptr ()) topointer n = liftLua $ \l -> lua_topointer l n --- | See <https://www.lua.org/manual/5.3/manual.html#lua_tostring lua_tostring>. +-- | Converts the Lua value at the given index to a @'ByteString'@. The Lua +-- value must be a string or a number; otherwise, the function returns +-- @'Nothing'@. If the value is a number, then @'tostring'@ also changes the +-- actual value in the stack to a string. (This change confuses @'next'@ when +-- @'tostring'@ is applied to keys during a table traversal.) +-- +-- See <https://www.lua.org/manual/5.3/manual.html#lua_tolstring lua_tolstring>. tostring :: StackIndex -> Lua (Maybe ByteString) tostring n = liftLua $ \l -> alloca $ \lenPtr -> do
Patched up fatal error of id 33's coming through on HMD
@@ -2097,6 +2097,9 @@ void survive_data_cb(SurviveUSBInterface *si) { fprintf(stderr, "\n"); } + } else if (id == 33) { + SV_ERROR(SURVIVE_ERROR_HARWARE_FAULT, "USB lightcap report is of an unexpected type for %s: %d (0x%02x)", + obj->codename, id, id); } else { SV_ERROR(SURVIVE_ERROR_HARWARE_FAULT, "USB lightcap report is of an unknown type for %s: %d (0x%02x)", obj->codename, id, id);
Add aditional info to Acid Cam about OpenCV.
@@ -130,7 +130,7 @@ As you can see, there are plenty of uses. **METACALL** introduces a new model of ## 3.1 Known Projects Using MetaCall -- **[Acid Cam](https://www.facebook.com/AcidCam/)**: A software for video manipulation that distorts videos for generating art. [Acid Cam CLI](https://github.com/lostjared/acidcam-cli) uses **METACALL** to allow custom filters written in Python and easily embed Python programming language into its plugin system. +- **[Acid Cam](https://www.facebook.com/AcidCam/)**: A software for video manipulation that distorts videos for generating art by means of OpenCV. [Acid Cam CLI](https://github.com/lostjared/acidcam-cli) uses **METACALL** to allow custom filters written in Python and easily embed Python programming language into its plugin system. ## 4. Usage