message
stringlengths
6
474
diff
stringlengths
8
5.22k
common/peripheral_charger.c: Format with clang-format BRANCH=none TEST=none
@@ -118,7 +118,8 @@ static void _clear_port(struct pchg *ctx) } __overridable void board_pchg_power_on(int port, bool on) -{} +{ +} static enum pchg_state pchg_reset(struct pchg *ctx) { @@ -538,7 +539,6 @@ void pchg_irq(enum gpio_signal signal) } } - static void pchg_startup(void) { struct pchg *ctx; @@ -630,8 +630,8 @@ static enum ec_status hc_pchg(struct host_cmd_handler_args *args) ctx = &pchgs[port]; - if (ctx->state == PCHG_STATE_CONNECTED - && ctx->battery_percent >= ctx->cfg->full_percent) + if (ctx->state == PCHG_STATE_CONNECTED && + ctx->battery_percent >= ctx->cfg->full_percent) r->state = PCHG_STATE_FULL; else r->state = ctx->state; @@ -643,7 +643,8 @@ static enum ec_status hc_pchg(struct host_cmd_handler_args *args) r->dropped_host_event_count = ctx->dropped_host_event_count; args->response_size = args->version == 1 ? - sizeof(struct ec_response_pchg) : sizeof(*r); + sizeof(struct ec_response_pchg) : + sizeof(*r); return EC_RES_SUCCESS; } @@ -758,11 +759,11 @@ static int cc_pchg(int argc, char **argv) ctx = &pchgs[port]; if (argc == 2) { - ccprintf("P%d STATE_%s EVENT_%s SOC=%d%%\n", - port, _text_state(ctx->state), _text_event(ctx->event), + ccprintf("P%d STATE_%s EVENT_%s SOC=%d%%\n", port, + _text_state(ctx->state), _text_event(ctx->event), ctx->battery_percent); - ccprintf("error=0x%x dropped=%u fw_version=0x%x\n", - ctx->error, ctx->dropped_event_count, ctx->fw_version); + ccprintf("error=0x%x dropped=%u fw_version=0x%x\n", ctx->error, + ctx->dropped_event_count, ctx->fw_version); return EC_SUCCESS; }
Fixed opae.admin.rpm dependency.
@@ -70,6 +70,7 @@ add_custom_target(opae.admin.tox if (RPM_BUILD) add_custom_target(opae.admin.rpm COMMAND ${PYTHON_EXECUTABLE} setup.py bdist_rpm --release ${OPAE_ADMIN_RPM_RELEASE} + DEPENDS opae.admin WORKING_DIRECTORY ${ADMIN_STAGE_DIR} COMMENT "Building opae.admin Python RPM distribution" )
Remove non-hermetic test
@@ -62,19 +62,5 @@ int main(void) { ipaddr_str(&addr, buf); assert(strcmp(buf, "::1") == 0); - for(int hindex = 0; hindex < 4; hindex++) { - static char *hostnames[] = { - "large-dns-response-1k.lionet.info", - "large-dns-response-2k.lionet.info", - "large-dns-response-4k.lionet.info", - "large-dns-response-8k.lionet.info" - }; - - rc = ipaddr_remote(&addr, hostnames[hindex], 80, 0, now() + 5000); - assert(rc == 0); - ipaddr_str(&addr, buf); - assert(strncmp("127.0.", buf, 6) == 0); - } - return 0; }
fix build error for Greengrass discovery task
<TargetName>aws_demos</TargetName> <ToolsetNumber>0x4</ToolsetNumber> <ToolsetName>ARM-ADS</ToolsetName> - <pCCUsed>5060528::V5.06 update 5 (build 528)::ARMCC</pCCUsed> + <pCCUsed>5060750::V5.06 update 6 (build 750)::ARMCC</pCCUsed> + <uAC6>0</uAC6> <TargetOption> <TargetCommonOption> <Device>M487JIDAE</Device> <RestoreSysVw>1</RestoreSysVw> </Target> <RunDebugAfterBuild>0</RunDebugAfterBuild> - <TargetSelection>19</TargetSelection> + <TargetSelection>20</TargetSelection> <SimDlls> <CpuDll></CpuDll> <CpuDllArguments></CpuDllArguments> <hadXRAM>0</hadXRAM> <uocXRam>0</uocXRam> <RvdsVP>2</RvdsVP> + <RvdsMve>0</RvdsMve> <hadIRAM2>0</hadIRAM2> <hadIROM2>0</hadIROM2> <StupSel>8</StupSel> <uThumb>0</uThumb> <uSurpInc>0</uSurpInc> <uC99>1</uC99> + <uGnu>0</uGnu> <useXO>0</useXO> <v6Lang>1</v6Lang> <v6LangP>1</v6LangP> <FileType>1</FileType> <FilePath>..\..\..\common\shadow\aws_shadow_lightbulb_on_off.c</FilePath> </File> + <File> + <FileName>aws_greengrass_discovery_demo.c</FileName> + <FileType>1</FileType> + <FilePath>..\..\..\common\greengrass_connectivity\aws_greengrass_discovery_demo.c</FilePath> + </File> <File> <FileName>aws_logging_task_dynamic_buffers.c</FileName> <FileType>1</FileType> </File> </Files> </Group> + <Group> + <GroupName>lib-grenngrass</GroupName> + <Files> + <File> + <FileName>aws_mqtt_agent.c</FileName> + <FileType>1</FileType> + <FilePath>..\..\..\..\lib\greengrass\aws_greengrass_discovery.c</FilePath> + </File> + <File> + <FileName>aws_mqtt_lib.c</FileName> + <FileType>1</FileType> + <FilePath>..\..\..\..\lib\greengrass\aws_helper_secure_connect.c</FilePath> + </File> + </Files> + </Group> <Group> <GroupName>lib-pkcs11</GroupName> <Files>
fix debug malloc compile
@@ -55,6 +55,10 @@ namespace NCudaLib { return freeBytes; } + void TryDefragment() { + + } + template <typename T = char> TMemoryBlock<T>* Create(ui64 size) { return new TMemoryBlock<T>(size);
CoreValidation: Fixed TC_CoreFunc_IRQVect missing external declaration to ROM vector table.
@@ -194,6 +194,7 @@ Check expected behavior of interrupt vector relocation functions: void TC_CoreFunc_IRQVect(void) { #if defined(__VTOR_PRESENT) && __VTOR_PRESENT /* relocate vector table */ + extern const VECTOR_TABLE_Type __VECTOR_TABLE[48]; static VECTOR_TABLE_Type vectors[sizeof(__VECTOR_TABLE)/sizeof(__VECTOR_TABLE[0])] __ALIGNED(512); memcpy(vectors, __VECTOR_TABLE, sizeof(__VECTOR_TABLE));
imx6ull: Removed default stop after pagefault
@@ -29,7 +29,7 @@ BIN = ../phoenix-$(TARGET) ifeq ($(DEBUG), 1) CFLAGS = -Og else ifneq (, $(findstring imx, $(TARGET))) - CFLAGS = -Og -DNDEBUG -DPAGEFAULTSTOP + CFLAGS = -Og -DNDEBUG else ifneq (, $(findstring stm32, $(TARGET))) CFLAGS = -Os -DNDEBUG else
VirtIO-FS: rework memory allocation for VirtQueues
@@ -79,19 +79,14 @@ NTSTATUS VirtFsEvtDevicePrepareHardware(IN WDFDEVICE Device, // #1 - request queue context->NumQueues = 2; - context->VirtQueues = ExAllocatePoolUninitialized(NonPagedPool, + context->VirtQueues = ExAllocatePoolZero(NonPagedPool, context->NumQueues * sizeof(struct virtqueue *), VIRT_FS_MEMORY_TAG); - if (context->VirtQueues != NULL) - { - RtlZeroMemory(context->VirtQueues, - context->NumQueues * sizeof(struct virtqueue*)); - } - else + if (context->VirtQueues == NULL) { TraceEvents(TRACE_LEVEL_ERROR, DBG_POWER, - "Failed to allocate request queues"); + "Failed to allocate queues"); status = STATUS_INSUFFICIENT_RESOURCES; }
Culling fixes
@@ -162,14 +162,13 @@ namespace carto { cglib::vec3<double> pos1 = cglib::transform_point(cglib::vec3<double>(screenPos(0), screenPos(1), 1), invMVPMat); cglib::ray3<double> ray(pos0, cglib::unit(pos1 - pos0)); - double t = 0; + double t = -1; if (projectionSurface->calculateHitPoint(ray, 0, t)) { + t = std::min(t, static_cast<double>(_viewState.getFar())); + } + MapPos mapPos = projectionSurface->calculateMapPos(ray(t > 0 ? t : _viewState.getFar())); mapPoses.emplace_back(mapPos.getX(), mapPos.getY()); - } else { - MapPos mapPos = projectionSurface->calculateMapPos(projectionSurface->calculateNearestPoint(ray, 0, t)); - mapPoses.emplace_back(mapPos.getX(), mapPos.getY()); - } } }
Add aliased SRAM2 region in the L496 memory map The SRAM2 on the L496 devices is aliased at 0x2004000. With this change, it's possible to read the SRAM2 contents at the aliased addresses.
@@ -449,7 +449,7 @@ static const char* const memory_map_template_L496 = "<memory-map>" " <memory type=\"rom\" start=\"0x00000000\" length=\"0x%x\"/>" // code = sram, bootrom or flash; flash is bigger " <memory type=\"ram\" start=\"0x10000000\" length=\"0x10000\"/>" // SRAM2 (64 KB) - " <memory type=\"ram\" start=\"0x20000000\" length=\"0x40000\"/>" // SRAM1 (256 KB) + " <memory type=\"ram\" start=\"0x20000000\" length=\"0x50000\"/>" // SRAM1 + aliased SRAM2 (256+64=320 KB) " <memory type=\"flash\" start=\"0x08000000\" length=\"0x%x\">" " <property name=\"blocksize\">0x800</property>" " </memory>"
Re-enable now working replay files
@@ -34,18 +34,13 @@ endif() # for a change that let LH be repositioned when it seemed the measurements were off but too many users reported this # led perfectly fine LH positions being discarded. SET(TEST_EXCLUSION_LIST - ${CMAKE_CURRENT_BINARY_DIR}/libsurvive-extras-data/tests/tracker-bad-tracking.rec.gz ${CMAKE_CURRENT_BINARY_DIR}/libsurvive-extras-data/tests/tracker-lh-move.pcap.gz - - ${CMAKE_CURRENT_BINARY_DIR}/libsurvive-extras-data/tests/haagh-tracking.rec.gz - ${CMAKE_CURRENT_BINARY_DIR}/libsurvive-extras-data/tests/gss_trial1.rec.gz ${CMAKE_CURRENT_BINARY_DIR}/libsurvive-extras-data/tests/flip_out_lh_solve.rec.gz + ${CMAKE_CURRENT_BINARY_DIR}/libsurvive-extras-data/tests/gss_trial1_trim.rec.gz + ${CMAKE_CURRENT_BINARY_DIR}/libsurvive-extras-data/tests/openvr-shake-comparison-test.rec.gz - ${CMAKE_CURRENT_BINARY_DIR}/libsurvive-extras-data/tests/tracker-cal-attempt.rec.gz - # Ignore this test for now; the GT data on it is noisey +# Ignore this test for now; we don't have good ootx for it ${CMAKE_CURRENT_BINARY_DIR}/libsurvive-extras-data/tests/index-yank-up-down.rec.gz - ${CMAKE_CURRENT_BINARY_DIR}/libsurvive-extras-data/tests/tracker-occluded2.pcap.gz - ${CMAKE_CURRENT_BINARY_DIR}/libsurvive-extras-data/tests/vive-and-controllers.pcap.gz ) IF(NOT WIN32)
hw/drivers/lis2dh12: Fix build error
@@ -418,7 +418,7 @@ lis2dh12_spi_writelen(struct sensor_itf *itf, uint8_t addr, uint8_t *payload, * requested is moret than 1 */ if (len > 1) { - addr |= LIS2DH12_SPI_ADR_INC; + addr |= LIS2DH12_SPI_ADDR_INC; } /* Select the device */
Ruby: simplified commands in ./configure script. There is no reason to use printf instead of just print. No functional changes.
@@ -56,20 +56,20 @@ nxt_found=no if /bin/sh -c "$NXT_RUBY -v" >> $NXT_AUTOCONF_ERR 2>&1; then - NXT_RUBY_RUBYHDRDIR=`$NXT_RUBY -r rbconfig -e 'printf("%s",RbConfig::CONFIG["rubyhdrdir"])'` - NXT_RUBY_ARCHHDRDIR=`$NXT_RUBY -r rbconfig -e 'printf("%s",RbConfig::CONFIG["rubyarchhdrdir"])'` - NXT_RUBY_SITEDIR=`$NXT_RUBY -r rbconfig -e 'printf("%s",RbConfig::CONFIG["sitedir"])'` - NXT_RUBY_LIBDIR=`$NXT_RUBY -r rbconfig -e 'printf("%s",RbConfig::CONFIG["rubylibdir"])'` - NXT_RUBY_TOPDIR=`$NXT_RUBY -r rbconfig -e 'printf("%s",RbConfig::CONFIG["topdir"])'` - NXT_RUBY_PREFIXDIR=`$NXT_RUBY -r rbconfig -e 'printf("%s",RbConfig::CONFIG["rubylibprefix"])'` + NXT_RUBY_RUBYHDRDIR=`$NXT_RUBY -rrbconfig -e 'print RbConfig::CONFIG["rubyhdrdir"]'` + NXT_RUBY_ARCHHDRDIR=`$NXT_RUBY -rrbconfig -e 'print RbConfig::CONFIG["rubyarchhdrdir"]'` + NXT_RUBY_SITEDIR=`$NXT_RUBY -rrbconfig -e 'print RbConfig::CONFIG["sitedir"]'` + NXT_RUBY_LIBDIR=`$NXT_RUBY -rrbconfig -e 'print RbConfig::CONFIG["rubylibdir"]'` + NXT_RUBY_TOPDIR=`$NXT_RUBY -rrbconfig -e 'print RbConfig::CONFIG["topdir"]'` + NXT_RUBY_PREFIXDIR=`$NXT_RUBY -rrbconfig -e 'print RbConfig::CONFIG["rubylibprefix"]'` NXT_RUBY_GEMDIR=`gem environment gemdir` NXT_RUBY_GEMPATH=`gem environment gempath` NXT_RUBY_INCPATH="-I$NXT_RUBY_ARCHHDRDIR -I$NXT_RUBY_RUBYHDRDIR" - NXT_RUBY_LIBNAME=`$NXT_RUBY -r rbconfig -e 'printf("%s",RbConfig::CONFIG["RUBY_SO_NAME"])'` - NXT_RUBY_LIBSCONF=`$NXT_RUBY -r rbconfig -e 'printf("%s",RbConfig::CONFIG["LIBS"])'` - NXT_RUBY_LIBPATH=`$NXT_RUBY -r rbconfig -e 'printf("%s",RbConfig::CONFIG["libdir"])'` + NXT_RUBY_LIBNAME=`$NXT_RUBY -rrbconfig -e 'print RbConfig::CONFIG["RUBY_SO_NAME"]'` + NXT_RUBY_LIBSCONF=`$NXT_RUBY -rrbconfig -e 'print RbConfig::CONFIG["LIBS"]'` + NXT_RUBY_LIBPATH=`$NXT_RUBY -rrbconfig -e 'print RbConfig::CONFIG["libdir"]'` NXT_RUBY_LIBS="-l$NXT_RUBY_LIBNAME $NXT_RUBY_LIBSCONF" nxt_feature="Ruby library"
Removed unneeded data being loading into player sprite memory
@@ -112,7 +112,6 @@ void SceneInit_b2() SetBankedSpriteData(sprite_bank_ptr.bank, k, sprite_len, sprite_ptr + 1); k += sprite_len; } - SetBankedSpriteData(sprite_bank_ptr.bank, 0, sprite_len, sprite_ptr + 1); scene_load_ptr = scene_load_ptr + num_sprites; }
adding new options for output
@@ -134,8 +134,21 @@ void NCB::CalcModelSingleHost( size_t evalPeriod, const TFullModel& model ) { - CB_ENSURE(params.OutputPath.Scheme == "dsv", "Local model evaluation supports only \"dsv\" output file schema."); - TOFStream outputStream(params.OutputPath.Path); + CB_ENSURE(params.OutputPath.Scheme == "dsv" || params.OutputPath.Scheme == "stream", "Local model evaluation supports only \"dsv\" and \"stream\" output file schemas."); + THolder<IOutputStream> outputStream; + if (params.OutputPath.Scheme == "dsv") { + outputStream = MakeHolder<TOFStream>(params.OutputPath.Path); + } + else { + CB_ENSURE(params.OutputPath.Path == "stdout" || params.OutputPath.Path == "stderr", "Local model evaluation supports only stderr and stdout paths."); + + if (params.OutputPath.Path == "stdout") { + outputStream = MakeHolder<TFileOutput>(Duplicate(1)); + } + else { + outputStream = MakeHolder<TFileOutput>(Duplicate(2)); + } + } NPar::TLocalExecutor executor; executor.RunAdditionalThreads(params.ThreadCount - 1); @@ -161,7 +174,7 @@ void NCB::CalcModelSingleHost( visibleLabelsHelper, *datasetPart, true, - &outputStream, + outputStream.Get(), // TODO: src file columns output is incompatible with block processing poolColumnsPrinter, /*testFileWhichOf*/ {0, 0},
fixes race in _proxy_ward_close by unlinking early
@@ -2140,7 +2140,6 @@ _proxy_ward_free(uv_handle_t* han_u) u3_ward* rev_u = han_u->data; u3z(rev_u->sip); - _proxy_ward_unlink(rev_u); free(rev_u->non_u.base); free(rev_u); } @@ -2160,6 +2159,8 @@ _proxy_ward_close_timer(uv_handle_t* han_u) static void _proxy_ward_close(u3_ward* rev_u) { + _proxy_ward_unlink(rev_u); + while ( 0 != rev_u->won_u ) { _proxy_wcon_close(rev_u->won_u); rev_u->won_u = rev_u->won_u->nex_u;
Update README.md use the same order for 3 easys as the ones in the summery.
Orca is a bot framework that is designed with minimum dependencies to make bot deployment deadly simple. The primary design goals are: -- easy to debug (networking and logic) errors with extensive logging facilities. - - easy to reason about the code: we use the most native data structures, the simplest algorithms, and intuitive interfaces. +- easy to debug (networking and logic) errors with extensive assertion + and logging facilities. + - easy to use for the end users: we use multi-threading and synchronous IO to support concurrency so you only need to focus on the business logic. We carefully craft the library to use computing
YAML CPP: Split conversion of maps and sequences
@@ -160,14 +160,21 @@ void convertNodeToKeySet (YAML::Node const & node, KeySet & mappings, Key & pare auto key = createLeafKey (node, parent.getFullName ()); mappings.append (key); } - else if (node.IsMap () || node.IsSequence ()) + else if (node.IsMap ()) { for (auto element : node) { - Key key = node.IsMap () ? newKey (element.first.as<string> (), parent) : newArrayKey (mappings, parent); - if (!node.IsMap ()) mappings.append (parent); // Update array metadata - - convertNodeToKeySet (node.IsMap () ? element.second : element, mappings, key); + Key key = newKey (element.first.as<string> (), parent); + convertNodeToKeySet (element.second, mappings, key); + } + } + else if (node.IsSequence ()) + { + for (auto element : node) + { + Key key = newArrayKey (mappings, parent); + mappings.append (parent); // Update array metadata + convertNodeToKeySet (element, mappings, key); } } }
lv_btnm: don't toggle if inactive
@@ -815,7 +815,8 @@ static lv_res_t lv_btnm_signal(lv_obj_t * btnm, lv_signal_t sign, void * param) } else if(sign == LV_SIGNAL_RELEASED) { if(ext->btn_id_pr != LV_BTNM_BTN_NONE) { /*Toggle the button if enabled*/ - if(button_is_tgl_enabled(ext->ctrl_bits[ext->btn_id_pr])) { + if(button_is_tgl_enabled(ext->ctrl_bits[ext->btn_id_pr]) && + !button_is_inactive(ext->ctrl_bits[ext->btn_id_pr])) { if(button_get_tgl_state(ext->ctrl_bits[ext->btn_id_pr])) { ext->ctrl_bits[ext->btn_id_pr] &= (~LV_BTNM_CTRL_TGL_STATE); } else {
Windows: Fix test eccodes_t_grib_ecc-979
#include "grib_api_internal.h" #include <math.h> +#include <stdint.h> /* This is used by make_class.pl @@ -167,7 +168,7 @@ static int is_approximately_equal(double a, double b, double epsilon) return 0; } -static double eval_value_factor(long value, long factor) +static double eval_value_factor(int64_t value, int64_t factor) { return (double)value * pow(10.0, -factor); } @@ -179,8 +180,8 @@ static int pack_double(grib_accessor* a, const double* val, size_t *len) grib_accessor_from_scale_factor_scaled_value* self = (grib_accessor_from_scale_factor_scaled_value*)a; grib_handle* hand = grib_handle_of_accessor(a); int ret = 0; - long factor=0, prev_factor=0; - long value=0, prev_value=0; + int64_t factor=0, prev_factor=0; + int64_t value=0, prev_value=0; double exact = *val; /*the input*/ const float epsilon = float_epsilon(); unsigned long maxval_value, maxval_factor; /*maximum allowable values*/
function no longer used
@@ -3331,15 +3331,6 @@ err: #endif static void count_connections(size_t *n_actives, size_t *n_idles, size_t *n_shutdowns) -static int count_linklist(const h2o_linklist_t *list) -{ - int count = 0; - for (const h2o_linklist_t *node = list->next; node != list; node = node->next) { - count++; - } - return count; -} - { size_t active = 0, idle = 0, shutdown = 0; for (size_t i = 0; i < conf.thread_map.size; ++i) {
added TP-Link TL-WN722N v2/v3 known as working
@@ -110,7 +110,7 @@ Manufacturers do change chipsets without changing model numbers. Sometimes they This list is for information purposes only and should not be regarded as a binding presentation of the products: | VENDOR MODEL | ID | -| -------------------- | ------------------------------------------------------------------------------------------------ | +| ----------------------- | ----------------------------------------------------------------------------------------------------- | | CSL 300MBit 300649 | ID 148f:5572 Ralink Technology, Corp. RT5572 Wireless Adapter | | EDIMAX EW-7711UAN | ID 7392:7710 Edimax Technology Co., Ltd | | ALLNET ALL-WA0150N | ID 148f:7601 Ralink Technology, Corp. MT7601U Wireless Adapter | @@ -122,7 +122,7 @@ This list is for information purposes only and should not be regarded as a bindi | WiFi N (noname) | ID 148f:5370 Ralink Technology, Corp. RT5370 Wireless Adapter | | TP-LINK Archer T2UH | ID 148f:761a Ralink Technology, Corp. MT7610U ("Archer T2U" 2.4G+5G WLAN Adapter) | | ASUS USB-AC51 | ID 0b05:17d1 ASUSTek Computer, Inc. AC51 802.11a/b/g/n/ac Wireless Adapter [Mediatek MT7610U] | - +| TP-Link TL-WN722N v2/v3 | ID 2357:010c TP-Link TL-WN722N v2/v3 [Realtek RTL8188EUS] https://github.com/kimocoder/realtek_rtwifi | Always verify the actual chipset with 'lsusb' and/or 'lspci'!
hv: vmconfig: minor fix about regression of commit 79cfb1 commit 79cfb1 forgot to add GUEST_FLAG_ prefix for LAPIC_PASSTHROUGH in file arch/x86/configs/dnv-cb2/partition_config.h
#define VM0_CONFIG_NAME "PRE-LAUNCHED VM1 for DNV-CB2" #define VM0_CONFIG_TYPE PRE_LAUNCHED_VM #define VM0_CONFIG_PCPU_BITMAP (PLUG_CPU(0) | PLUG_CPU(2) | PLUG_CPU(4) | PLUG_CPU(6)) -#define VM0_CONFIG_FLAGS LAPIC_PASSTHROUGH | GUEST_FLAG_IO_COMPLETION_POLLING +#define VM0_CONFIG_FLAGS GUEST_FLAG_LAPIC_PASSTHROUGH | GUEST_FLAG_IO_COMPLETION_POLLING #define VM0_CONFIG_MEM_START_HPA 0x100000000UL #define VM0_CONFIG_MEM_SIZE 0x80000000UL #define VM1_CONFIG_NAME "PRE-LAUNCHED VM2 for DNV-CB2" #define VM1_CONFIG_TYPE PRE_LAUNCHED_VM #define VM1_CONFIG_PCPU_BITMAP (PLUG_CPU(1) | PLUG_CPU(3) | PLUG_CPU(5) | PLUG_CPU(7)) -#define VM1_CONFIG_FLAGS LAPIC_PASSTHROUGH | GUEST_FLAG_IO_COMPLETION_POLLING +#define VM1_CONFIG_FLAGS GUEST_FLAG_LAPIC_PASSTHROUGH | GUEST_FLAG_IO_COMPLETION_POLLING #define VM1_CONFIG_MEM_START_HPA 0x180000000UL #define VM1_CONFIG_MEM_SIZE 0x80000000UL
Use installbsd on AIX (and fix misplaced parenthesis from previous commit). See
@@ -48,7 +48,7 @@ ifndef NO_CBLAS @sed 's/common/openblas_config/g' cblas.h > "$(DESTDIR)$(OPENBLAS_INCLUDE_DIR)/cblas.h" endif -ifneq (($OSNAME), AIX) +ifneq ($(OSNAME), AIX) ifndef NO_LAPACKE @echo Copying LAPACKE header files to $(DESTDIR)$(OPENBLAS_INCLUDE_DIR) @-install -pm644 $(NETLIB_LAPACK_DIR)/LAPACKE/include/lapacke.h "$(DESTDIR)$(OPENBLAS_INCLUDE_DIR)/lapacke.h" @@ -99,23 +99,23 @@ else #install on AIX has different options syntax ifndef NO_LAPACKE @echo Copying LAPACKE header files to $(DESTDIR)$(OPENBLAS_INCLUDE_DIR) - @-install -M 644 $(NETLIB_LAPACK_DIR)/LAPACKE/include/lapacke.h "$(DESTDIR)$(OPENBLAS_INCLUDE_DIR)/lapacke.h" - @-install -M 644 $(NETLIB_LAPACK_DIR)/LAPACKE/include/lapacke_config.h "$(DESTDIR)$(OPENBLAS_INCLUDE_DIR)/lapacke_config.h" - @-install -M 644 $(NETLIB_LAPACK_DIR)/LAPACKE/include/lapacke_mangling_with_flags.h.in "$(DESTDIR)$(OPENBLAS_INCLUDE_DIR)/lapacke_mangling.h" - @-install -M 644 $(NETLIB_LAPACK_DIR)/LAPACKE/include/lapacke_utils.h "$(DESTDIR)$(OPENBLAS_INCLUDE_DIR)/lapacke_utils.h" + @-installbsd -c -m 644 $(NETLIB_LAPACK_DIR)/LAPACKE/include/lapacke.h "$(DESTDIR)$(OPENBLAS_INCLUDE_DIR)/lapacke.h" + @-installbsd -c -m 644 $(NETLIB_LAPACK_DIR)/LAPACKE/include/lapacke_config.h "$(DESTDIR)$(OPENBLAS_INCLUDE_DIR)/lapacke_config.h" + @-installbsd -c -m 644 $(NETLIB_LAPACK_DIR)/LAPACKE/include/lapacke_mangling_with_flags.h.in "$(DESTDIR)$(OPENBLAS_INCLUDE_DIR)/lapacke_mangling.h" + @-installbsd -c -m 644 $(NETLIB_LAPACK_DIR)/LAPACKE/include/lapacke_utils.h "$(DESTDIR)$(OPENBLAS_INCLUDE_DIR)/lapacke_utils.h" endif #for install static library ifndef NO_STATIC @echo Copying the static library to $(DESTDIR)$(OPENBLAS_LIBRARY_DIR) - @install -M 644 $(LIBNAME) "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)" + @installbsd -c -m 644 $(LIBNAME) "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)" @cd "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)" ; \ ln -fs $(LIBNAME) $(LIBPREFIX).$(LIBSUFFIX) endif #for install shared library ifndef NO_SHARED @echo Copying the shared library to $(DESTDIR)$(OPENBLAS_LIBRARY_DIR) - @install -M 755 $(LIBSONAME) "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)" + @installbsd -c -m 755 $(LIBSONAME) "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)" @cd "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)" ; \ ln -fs $(LIBSONAME) $(LIBPREFIX).so ; \ ln -fs $(LIBSONAME) $(LIBPREFIX).so.$(MAJOR_VERSION)
landscape: prevent reflow jank in group summary on load
-import React from "react"; +import React, { useEffect, useState } from "react"; import { Col, Row, @@ -75,15 +75,29 @@ export function JoinBody(props: { desc: JoinDesc }) { const { ship, name } = resourceFromPath(group); const invite = useInviteForResource(kind, ship, name); + const [override, setOverride] = useState(false); + + useEffect(() => { + let interval = setInterval(() => { + setOverride(s => !s); + }, 5000); + + return () => { + clearInterval(interval); + } + }, []); + return ( <> {!desc ? "Prompt invite link" : null} - {preview ? ( + {(preview && override) ? ( <GroupSummary memberCount={preview.members} channelCount={preview["channel-count"]} metadata={preview.metadata} + height="72px" + width="256px" /> ) : ( <FallbackSummary path={group} /> @@ -112,7 +126,7 @@ function FallbackSummary(props: { path: string }) { const [, , ship, name] = path.split("/"); return ( - <Row alignItems="center" gapX="0"> + <Row height="72px" width="256px" alignItems="center" gapX="0"> <Author gray fullNotIcon size={40} showImage ship={ship} dontShowTime /> <Text mono>/{name}</Text> </Row>
Add component to build and test full config with stream cipher only
@@ -1277,6 +1277,7 @@ component_test_crypto_full_no_cipher () { component_test_crypto_default_stream_cipher_only () { msg "build: default with only stream cipher" + scripts/config.py crypto_full # Disable all ciphers # AEAD (controlled by the presence of one of GCM_C, CCM_C, CHACHAPOLY_C scripts/config.py unset MBEDTLS_GCM_C @@ -1307,6 +1308,38 @@ component_test_crypto_default_stream_cipher_only () { make test } +component_test_crypto_full_stream_cipher_only () { + msg "build: full with only stream cipher" + + # Disable all ciphers + # AEAD (controlled by the presence of one of GCM_C, CCM_C, CHACHAPOLY_C + scripts/config.py unset MBEDTLS_GCM_C + scripts/config.py unset MBEDTLS_CCM_C + scripts/config.py unset MBEDTLS_CHACHAPOLY_C + # CBC-legacy (controlled by MBEDTLS_CIPHER_MODE_CBC plus at least one block cipher (AES, ARIA, Camellia, DES)) + scripts/config.py unset MBEDTLS_CIPHER_MODE_CBC + scripts/config.py unset MBEDTLS_AES_C + scripts/config.py unset MBEDTLS_CAMELLIA_C + scripts/config.py unset MBEDTLS_ARIA_C + scripts/config.py unset MBEDTLS_DES_C + # CBC-EtM (controlled by the same as CBC-legacy plus MBEDTLS_SSL_ENCRYPT_THEN_MAC) + scripts/config.py unset MBEDTLS_SSL_ENCRYPT_THEN_MAC + # stream (currently that's just the NULL pseudo-cipher (controlled by MBEDTLS_CIPHER_NULL_CIPHER) + scripts/config.py unset MBEDTLS_CIPHER_NULL_CIPHER + # Indirect dependencies + scripts/config.py unset MBEDTLS_CTR_DRBG_C + scripts/config.py unset MBEDTLS_CMAC_C + scripts/config.py unset MBEDTLS_NIST_KW_C + scripts/config.py unset MBEDTLS_SSL_SESSION_TICKETS + scripts/config.py unset MBEDTLS_SSL_CONTEXT_SERIALIZATION + + # Enable stream(null) cipher only + scripts/config.py set MBEDTLS_CIPHER_NULL_CIPHER + make + + msg "test: full with only stream cipher" + make test +} component_test_psa_external_rng_use_psa_crypto () { msg "build: full + PSA_CRYPTO_EXTERNAL_RNG + USE_PSA_CRYPTO minus CTR_DRBG"
fixes for ncurses mouse versions
@@ -1202,7 +1202,9 @@ void ged_mouse_event(Ged* a, Usz vis_y, Usz vis_x, mmask_t mouse_bstate) { a->is_draw_dirty = true; } } - } else { + } +#if NCURSES_MOUSE_VERSION != 1 +else { if (mouse_bstate & BUTTON4_PRESSED) { a->grid_scroll_y -= 1; a->is_draw_dirty = true; @@ -1211,6 +1213,7 @@ void ged_mouse_event(Ged* a, Usz vis_y, Usz vis_x, mmask_t mouse_bstate) { a->is_draw_dirty = true; } } +#endif } void ged_adjust_rulers_relative(Ged* a, Isz delta_y, Isz delta_x) {
zephyr/emul/emul_smart_battery.c: Format with clang-format BRANCH=none TEST=none
@@ -659,8 +659,8 @@ static int sbat_emul_finalize_write_msg(struct i2c_emul *emul, int reg, pec = cros_crc8_arg(data->msg_buf, 3, pec); if (pec != data->msg_buf[3]) { data->bat.error_code = STATUS_CODE_UNKNOWN_ERROR; - LOG_ERR("Wrong PEC 0x%x != 0x%x", - pec, data->msg_buf[3]); + LOG_ERR("Wrong PEC 0x%x != 0x%x", pec, + data->msg_buf[3]); return -EIO; } @@ -785,8 +785,7 @@ static int sbat_emul_access_reg(struct i2c_emul *emul, int reg, int bytes, * * @return 0 indicating success (always) */ -static int sbat_emul_init(const struct emul *emul, - const struct device *parent) +static int sbat_emul_init(const struct emul *emul, const struct device *parent) { const struct i2c_common_emul_cfg *cfg = emul->cfg; struct i2c_common_emul_data *data = cfg->data; @@ -883,7 +882,8 @@ static int sbat_emul_init(const struct emul *emul, DT_INST_FOREACH_STATUS_OKAY(SMART_BATTERY_EMUL) #define SMART_BATTERY_EMUL_CASE(n) \ - case DT_INST_DEP_ORD(n): return &sbat_emul_data_##n.common.emul; + case DT_INST_DEP_ORD(n): \ + return &sbat_emul_data_##n.common.emul; /** Check description in emul_smart_battery.h */ struct i2c_emul *sbat_emul_get_ptr(int ord)
Shell Recorder: Fix broken check for INI plugin
@@ -15,7 +15,7 @@ function (add_plugin_shell_test PLUGIN) endfunction () # Only add test below if INI plugin is available -list (FIND REMOVED_PLUGINS mini PLUGIN_INDEX_INI) +list (FIND REMOVED_PLUGINS ini PLUGIN_INDEX_INI) if (${PLUGIN_INDEX_INI} EQUAL -1) add_s_test (msr_syntax "${CMAKE_SOURCE_DIR}/tests/shell/shell_recorder/tutorial_wrapper/SyntaxCheck.md") endif (${PLUGIN_INDEX_INI} EQUAL -1)
max payne update fixed
@@ -583,7 +583,7 @@ void Init() static auto FOVHook = [](uintptr_t _this, uintptr_t edx) -> float { float f = AdjustFOV(*(float*)(_this + 0x58) * 57.295776f, Screen.fAspectRatio) * Screen.fFOVFactor; - Screen.fFieldOfView = (((f > 179.0f) ? 179.0f : f) / 57.295776f); + Screen.fFieldOfView = f / 57.295776f; return Screen.fFieldOfView; }; @@ -597,6 +597,19 @@ void Init() if (dest == sub_50B9E0) injector::MakeCALL(addr, static_cast<float(__fastcall *)(uintptr_t, uintptr_t)>(FOVHook), true); } + + pattern = hook::pattern("D8 4C 24 38 D9 54 24 38 D8 1D"); + struct FOVCheck + { + void operator()(injector::reg_pack& regs) + { + float f = *(float*)(regs.esp + 0x38); + _asm {fmul dword ptr[f]} + _asm {fst dword ptr[f]} + *(float*)(regs.esp + 0x38) = (f > 3.14f) ? 3.14f : f; + } + }; injector::MakeInline<FOVCheck>(pattern.get_first(0), pattern.get_first(8)); // 0x4563D4 + pattern = hook::pattern("E8 ? ? ? ? D9 5C 24 14 8B CF E8"); // 0x45650D injector::MakeCALL(pattern.get_first(0), sub_50B9E0, true); // restoring cutscene FOV
VERSION bump to version 2.2.7
@@ -64,7 +64,7 @@ endif() # micro version is changed with a set of small changes or bugfixes anywhere in the project. set(SYSREPO_MAJOR_VERSION 2) set(SYSREPO_MINOR_VERSION 2) -set(SYSREPO_MICRO_VERSION 6) +set(SYSREPO_MICRO_VERSION 7) set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_MICRO_VERSION}) # Version of the library
nsd-checkconf support for refuse-any.
@@ -369,6 +369,7 @@ config_print_zone(nsd_options_type* opt, const char* k, int s, const char *o, SERV_GET_BIN(log_time_ascii, o); SERV_GET_BIN(round_robin, o); SERV_GET_BIN(minimal_responses, o); + SERV_GET_BIN(refuse_any, o); /* str */ SERV_GET_PATH(final, database, o); SERV_GET_STR(identity, o); @@ -508,6 +509,7 @@ config_test_print_server(nsd_options_type* opt) printf("\tlog-time-ascii: %s\n", opt->log_time_ascii?"yes":"no"); printf("\tround-robin: %s\n", opt->round_robin?"yes":"no"); printf("\tminimal-responses: %s\n", opt->minimal_responses?"yes":"no"); + printf("\trefuse-any: %s\n", opt->refuse_any?"yes":"no"); printf("\tverbosity: %d\n", opt->verbosity); for(ip = opt->ip_addresses; ip; ip=ip->next) {
INTERNAL: No longer expand the hash table if it is fully expanded.
@@ -236,7 +236,11 @@ static void assoc_expand(void) assocp->rootmask = hashmask(assocp->rootpower); /* set hash_expansion_limit */ + if (assocp->rootpower < 15) { assocp->hash_expansion_limit = (assocp->hashsize * assocp->rootsize * 3) / 2; + } else { /* assocp->rootpower >= 15 */ + assocp->hash_expansion_limit = 0; /* do not allow hash expansion any more */ + } /* set hash table expansion */ assocp->expanding = true; @@ -267,7 +271,8 @@ int assoc_insert(hash_item *it, uint32_t hash) redistribute(); } } else { - if (assocp->hash_items > assocp->hash_expansion_limit) { + if (assocp->hash_expansion_limit != 0 && + assocp->hash_items > assocp->hash_expansion_limit) { assoc_expand(); } }
Check for load error before accessing metadata content
@@ -1544,6 +1544,13 @@ static void _ocf_mngt_load_superblock_complete(void *priv, int error) ocf_cache_t cache = context->cache; ocf_cleaning_t loaded_clean_policy = cache->conf_meta->cleaning_policy_type; + if (error) { + ocf_cache_log(cache, log_err, + "ERROR: Cannot load cache state\n"); + OCF_PL_FINISH_RET(context->pipeline, + -OCF_ERR_START_CACHE_FAIL); + } + if (cache->conf_meta->cachelines != ocf_metadata_get_cachelines_count(cache)) { ocf_cache_log(cache, log_err, @@ -1561,13 +1568,6 @@ static void _ocf_mngt_load_superblock_complete(void *priv, int error) __set_cleaning_policy(cache, loaded_clean_policy); - if (error) { - ocf_cache_log(cache, log_err, - "ERROR: Cannot load cache state\n"); - OCF_PL_FINISH_RET(context->pipeline, - -OCF_ERR_START_CACHE_FAIL); - } - ocf_pipeline_next(context->pipeline); }
Fix typo in INSTALL file recocognised -> recognised CLA: trivial
with rmd160. -Dxxx, lxxx, -Lxxx, -Wl, -rpath, -R, -framework, -static - These system specific options will be recocognised and + These system specific options will be recognised and passed through to the compiler to allow you to define preprocessor symbols, specify additional libraries, library directories or other compiler options. It might be worth
Remove redundant decl of 509_STORE_set_flags accidentally adds another define for X509_STORE_set_flags It is already defined 5lines prior CLA: trivial
@@ -272,7 +272,6 @@ int X509_STORE_set_purpose(X509_STORE *ctx, int purpose); int X509_STORE_set_trust(X509_STORE *ctx, int trust); int X509_STORE_set1_param(X509_STORE *ctx, X509_VERIFY_PARAM *pm); X509_VERIFY_PARAM *X509_STORE_get0_param(X509_STORE *ctx); -int X509_STORE_set_flags(X509_STORE *ctx, unsigned long flags); void X509_STORE_set_verify(X509_STORE *ctx, X509_STORE_CTX_verify_fn verify); #define X509_STORE_set_verify_func(ctx, func) \
os/fs/mqueue/mq_close : Add log for mq_close fail case If a thread which tries to close the mq, but the mq descriptor is not in its task_group, mq_close will fail.
#include <sched.h> #include <mqueue.h> #include <assert.h> +#include <debug.h> #include <tinyara/kmalloc.h> #include <tinyara/sched.h> @@ -134,6 +135,7 @@ int mq_close_group(mqd_t mqdes, FAR struct task_group_s *group) mq_inode_release(inode); } else { + dbg("ERROR: mqdes(%x) is not in this thread's group.\n", mqdes); ret = ERROR; } sched_unlock();
Fix some conditional compilation in previous commit.
@@ -192,7 +192,8 @@ int flowc_receiver(int argc, char **argv) return 1; } -#ifdef CONFIG_EXAMPLES_FLOWC_RECEIVER_DELAY +#if defined(CONFIG_EXAMPLES_FLOWC_RECEIVER_DELAY) && \ + CONFIG_EXAMPLES_FLOWC_RECEIVER_DELAY > 0 /* Delay to force flow control */ usleep(1000 * CONFIG_EXAMPLES_FLOWC_RECEIVER_DELAY);
h2olog/quic: support the packet_acked probe
@@ -100,6 +100,7 @@ struct quic_line_t { u32 ack_only; u32 master_conn_id; u8 first_octet; + u32 newly_acked; }; BPF_PERF_OUTPUT(events); @@ -162,6 +163,25 @@ int trace_packet_commit(struct pt_regs *ctx) { return 0; } + +int trace_packet_acked(struct pt_regs *ctx) { + struct quic_line_t line = {}; + struct st_quicly_conn_t conn = {}; + void *pos = NULL; + sprintf(line.type, "packet_acked"); + + bpf_usdt_readarg(1, ctx, &pos); + bpf_probe_read(&conn, sizeof(conn), pos); + line.master_conn_id = conn.master_id; + bpf_usdt_readarg(2, ctx, &line.at); + bpf_usdt_readarg(3, ctx, &line.packet_num); + bpf_usdt_readarg(4, ctx, &line.newly_acked); + + if (events.perf_submit(ctx, &line, sizeof(line)) < 0) + bpf_trace_printk("failed to perf_submit\\n"); + + return 0; +} """ def handle_req_line(cpu, data, size): @@ -188,6 +208,9 @@ def handle_quic_line(cpu, data, size): elif line.type == "packet_commit": for k in ['type', 'at', 'master_conn_id', 'packet_num', 'packet_len', 'ack_only']: rv[k] = getattr(line, k) + elif line.type == "packet_acked": + for k in ['type', 'at', 'master_conn_id', 'packet_num', 'newly_acked']: + rv[k] = getattr(line, k) print(json.dumps(rv)) @@ -241,6 +264,7 @@ if sys.argv[1] == "quic": u.enable_probe(probe="accept", fn_name="trace_accept") u.enable_probe(probe="packet_prepare", fn_name="trace_packet_prepare") u.enable_probe(probe="packet_commit", fn_name="trace_packet_commit") + u.enable_probe(probe="packet_acked", fn_name="trace_packet_acked") b = BPF(text=quic_bpf, usdt_contexts=[u]) else: u.enable_probe(probe="receive_request", fn_name="trace_receive_req")
Check for null blocks in all hash functions.
@@ -239,6 +239,9 @@ define_function(data_md5) int64_t offset = arg_offset; int64_t length = arg_length; + if (block == NULL) + return_string(YR_UNDEFINED); + yr_md5_init(&md5_context); if (offset < 0 || length < 0 || offset < block->base) @@ -322,7 +325,7 @@ define_function(data_sha1) YR_MEMORY_BLOCK* block = first_memory_block(context); YR_MEMORY_BLOCK_ITERATOR* iterator = context->iterator; - if(!block) + if (block == NULL) return_string(YR_UNDEFINED); yr_sha1_init(&sha_context); @@ -407,6 +410,9 @@ define_function(data_sha256) YR_MEMORY_BLOCK* block = first_memory_block(context); YR_MEMORY_BLOCK_ITERATOR* iterator = context->iterator; + if (block == NULL) + return_string(YR_UNDEFINED); + yr_sha256_init(&sha256_context); if (offset < 0 || length < 0 || offset < block->base) @@ -480,6 +486,9 @@ define_function(data_checksum32) uint32_t checksum = 0; int past_first_block = false; + if (block == NULL) + return_integer(YR_UNDEFINED); + if (offset < 0 || length < 0 || offset < block->base) return_integer(YR_UNDEFINED); @@ -553,6 +562,9 @@ define_function(data_crc32) int past_first_block = false; + if (block == NULL) + return_integer(YR_UNDEFINED); + if (offset < 0 || length < 0 || offset < block->base) return_integer(YR_UNDEFINED);
Warn if parse function isn't found
@@ -820,6 +820,10 @@ void DeRestPluginPrivate::apsdeDataIndicationDevice(const deCONZ::ApsDataIndicat enqueueEvent(Event(r->prefix(), item->descriptor().suffix, idItem->toString(), device->key())); } } + else if (!parseFunction) + { + DBG_Printf(DBG_INFO, "parse function not found: %s\n", qPrintable(item->parseParameters().front().toString())); + } } } }
Fix Exception typo in vpp_papi/vpp_transport_socket.py.
@@ -180,7 +180,7 @@ class VppTransport(object): return buf if l == len(msg): return msg - raise VPPTransportSocketIOError(1, 'Unknown socket read error') + raise VppTransportSocketIOError(1, 'Unknown socket read error') def read(self): if not self.connected:
NOTES.WIN: mention Strawberry Perl as option.
this are required as well: - You need Perl. We recommend ActiveState Perl, available from - https://www.activestate.com/ActivePerl. + https://www.activestate.com/ActivePerl. Another viable alternative + appears to be Strawberry Perl, http://strawberryperl.com. You also need the perl module Text::Template, available on CPAN. Please read NOTES.PERL for more information.
[ctr/lua] bugfix preload about deploying multiple contract
@@ -72,8 +72,15 @@ func Execute(bs *state.BlockState, tx *types.Tx, blockNo uint64, ts int64, } var rv string - var ex *Executor + if receiver.IsNew() { + bcCtx := NewContext(bs, sender.State(), contractState, types.EncodeAddress(txBody.GetAccount()), + hex.EncodeToString(tx.GetHash()), blockNo, ts, "", 0, + types.EncodeAddress(receiver.ID()), 0, nil, nil, preLoadService) + + rv, err = Create(contractState, txBody.Payload, receiver.ID(), bcCtx) + } else { if preLoadInfos[preLoadService].requestedTx == tx { + var ex *Executor replyCh := preLoadInfos[preLoadService].replyCh for { preload := <-replyCh @@ -93,10 +100,6 @@ func Execute(bs *state.BlockState, tx *types.Tx, blockNo uint64, ts int64, bcCtx := NewContext(bs, sender.State(), contractState, types.EncodeAddress(txBody.GetAccount()), hex.EncodeToString(tx.GetHash()), blockNo, ts, "", 0, types.EncodeAddress(receiver.ID()), 0, nil, nil, preLoadService) - - if receiver.IsNew() { - rv, err = Create(contractState, txBody.Payload, receiver.ID(), bcCtx) - } else { rv, err = Call(contractState, txBody.Payload, receiver.ID(), bcCtx) } } @@ -141,6 +144,16 @@ func preLoadWorker() { } receiver, err := bs.GetAccountStateV(recipient) + if err != nil { + replyCh <- &loadedReply{tx, nil, err} + } + if receiver.IsNew() { + continue + } + if len(receiver.State().CodeHash) == 0 { + replyCh <- &loadedReply{tx, nil, errors.New("account is not a contract")} + } + contractState, err := bs.OpenContractState(receiver.State()) if err != nil { replyCh <- &loadedReply{tx, nil, err}
ikev2: fix removing of expired SAs Type: fix
@@ -4054,7 +4054,6 @@ ikev2_mngr_process_fn (vlib_main_t * vm, vlib_node_runtime_t * rt, if (p) { ikev2_initiate_sa_init (vm, p->name); - continue; } } vec_foreach (c, sa->childs) @@ -4062,6 +4061,7 @@ ikev2_mngr_process_fn (vlib_main_t * vm, vlib_node_runtime_t * rt, hash_unset (tkm->sa_by_rspi, sa->rspi); pool_put (tkm->sas, sa); } + vec_free (to_be_deleted); } /* process ipsec sas */
update msvc.lua update msvc.lua update msvc.lua update clang.lua update msvc.lua
@@ -121,7 +121,7 @@ function generate_dependencies(target, sourcebatch, opt) local compinst = target:compiler("cxx") local toolchain = target:toolchain("msvc") local vcvars = toolchain:config("vcvars") - local scandependenciesflag = get_scandependenciesflag(target) + local scandependenciesflag = nil -- get_scandependenciesflag(target) local common_flags = {"-TP", scandependenciesflag} local cachedir = common.modules_cachedir(target) local changed = false @@ -142,8 +142,13 @@ function generate_dependencies(target, sourcebatch, opt) os.vrunv(compinst:program(), table.join(compinst:compflags({target = target}), common_flags, flags), {envs = vcvars}) else common.fallback_generate_dependencies(target, jsonfile, sourcefile, function(file) + local compinst = target:compiler("cxx") + local defines = {} + for _, define in ipairs(target:get("defines")) do + table.insert(defines, "/D" .. define) + end local ifile = path.translate(path.join(outputdir, path.filename(file) .. ".i")) - os.vrunv(compinst:program(), table.join(compinst:compflags({target = target}), {"/TP", "/P", file, "/Fi" .. ifile})) + os.vrunv(compinst:program(), table.join(defines, {"/nologo", get_cppversionflag(target), "/P", file, "/Fi" .. ifile}), {envs = vcvars}) return io.readfile(ifile) end) end @@ -699,3 +704,13 @@ function get_requiresflags(target, requires, opt) return requireflags end end + +function get_cppversionflag(target) + local cppversionflag = _g.cppversionflag + if cppversionflag == nil then + local compinst = target:compiler("cxx") + local flags = compinst:compflags({target = target}) + cppversionflag = table.find_if(flags, function(v) string.startswith(v, "/std:c++") end) or "/std:c++latest" + end + return cppversionflag or nil +end
arch/xtensa/esp32: Add missing macros to iomux
#define FUN_PU (BIT(8)) #define FUN_IE (BIT(9)) #define FUN_DRV 0x3 +#define FUN_DRV_V 0x3 #define FUN_DRV_S 10 +#define FUN_DRV_M ((FUN_DRV_V) << (FUN_DRV_S)) #define MCU_SEL 0x7 +#define MCU_SEL_V 0x7 #define MCU_SEL_S 12 +#define MCU_SEL_M ((MCU_SEL_V) << (MCU_SEL_S)) #define PIN_INPUT_ENABLE(PIN_NAME) SET_PERI_REG_MASK(PIN_NAME,FUN_IE) #define PIN_INPUT_DISABLE(PIN_NAME) CLEAR_PERI_REG_MASK(PIN_NAME,FUN_IE)
ci, travis: fix coveralls installation
@@ -36,9 +36,6 @@ branches: only: - master -before_install: - - pip install --user cpp-coveralls - script: - sh ./build-deps.sh - sh ./autogen.sh @@ -52,6 +49,7 @@ script: after_success: - if [[ "$CC" == "gcc" && "$CODE_COVERAGE" == "ON" ]]; then + pip install --user cpp-coveralls coveralls --build-root . --exclude lib
chore(Makefile): remove unused arguments
@@ -56,14 +56,6 @@ CFLAGS += -std=c99 -O0 -g -pthread -D_XOPEN_SOURCE=600 \ WFLAGS += -Wall -Wextra -pedantic -ifeq ($(static_debug),1) - CFLAGS += -D_STATIC_DEBUG -else ifeq ($(static_debug),2) - CFLAGS += -D_STRICT_STATIC_DEBUG -else ifeq ($(static_debug),3) - CFLAGS += -D_STATIC_DEBUG -D_STRICT_STATIC_DEBUG -endif - ifeq (,$(findstring $(CC),stensal-c sfc)) # ifneq stensal-c AND sfc CFLAGS += -fPIC endif
framework/media: fix build error for compare logic fix wrong compare logic
@@ -1377,7 +1377,7 @@ float getSignalToNoiseRatio(const short *buffer, size_t size, int windows, int * { const int NOISE_MIN = 30; - int i = 0; + unsigned int i = 0; int frame_sample = 0; float sum = 0.0f;
Soft fail dfu when missing dependencies Catches instances where users haven't installed construct and/or bitstring and fails with a soft error so cmake can still finish gracefully since not everyone needs a .dfu.
@@ -5,10 +5,33 @@ import sys import pathlib import zlib -import construct +missing_modules = [] +try: from bitstring import BitArray +except ImportError: + missing_modules.append("bitstring") + +try: + import construct from construct import this, len_, Struct, Padded, CString, Rebuild, Computed, RawCopy, Checksum, Hex, Bytes, Int8ul, Int16ul, Int32ul, Const, Flag, Padding, Array, Prefixed, GreedyBytes, GreedyRange, PaddedString +except ImportError: + missing_modules.append("construct") + +if len(missing_modules) > 0: + error_text = "" + if 'build' in sys.argv: + error_text += """ +Warning: no dfu file has been generated (missing python3 dependencies) +""" + error_text += f""" +dfu requires the following python module(s): {', '.join(missing_modules)} +install with: python3 -m pip install {' '.join(missing_modules)} +""" + # Soft fail to avoid cmake error + print(error_text) + sys.exit(0) + DFU_SIGNATURE = b'DfuSe' DFU_size = Rebuild(Int32ul, 0)
Remove another duplicate label
@@ -98,8 +98,8 @@ Finally, we create the configuration class in ``generators/chipyard/src/main/sca :start-after: DOC include start: FIRRocketConfig :end-before: DOC include end: FIRRocketConfig -Testing -------- +FIR Testing +----------- We can now test that the FIR is working. The test program is found in ``tests/fir.c``.
chore(docs): remove [lv_sim_...] and [lv_...] from "Repository layout" * chore(docs): remove [lv_sim_...] and [lv_...] from "Repository layout" since [lv_sim_...] is part of [lv_port...] and [lv_...] just equals no filter at all * Update docs/intro/index.md
@@ -69,10 +69,8 @@ You will find these repositories there: - [lv_drivers](https://github.com/lvgl/lv_drivers) Display and input device drivers - [blog](https://github.com/lvgl/blog) Source of the blog's site (https://blog.lvgl.io) - [sim](https://github.com/lvgl/sim) Source of the online simulator's site (https://sim.lvgl.io) -- [lv_sim_...](https://github.com/lvgl?q=lv_sim&type=&language=) Simulator projects for various IDEs and platforms -- [lv_port_...](https://github.com/lvgl?q=lv_port&type=&language=) LVGL ports to development boards +- [lv_port_...](https://github.com/lvgl?q=lv_port&type=&language=) LVGL ports to development boards or environments - [lv_binding_..](https://github.com/lvgl?q=lv_binding&type=&language=l) Bindings to other languages -- [lv_...](https://github.com/lvgl?q=lv_&type=&language=) Ports to other platforms ## Release policy
Document infinite tail
@@ -10,6 +10,7 @@ extern "C" { typedef struct clap_plugin_tail { // Returns tail length in samples. + // Any value greater or equal to INT32_MAX implies infinite tail. // [main-thread,audio-thread] uint32_t (*get)(const clap_plugin_t *plugin); } clap_plugin_tail_t;
edit FEATURE forbid setting operation nodes Refs
@@ -3360,6 +3360,17 @@ sr_edit_add(sr_session_ctx_t *session, const char *xpath, const char *value, con return NULL; } + /* check alllowed node types */ + for (parent = node; parent; parent = parent->parent) { + if (parent->schema->nodetype & (LYS_RPC | LYS_ACTION | LYS_NOTIF)) { + sr_errinfo_new(&err_info, SR_ERR_INVAL_ARG, NULL, "RPC/action/notification node \"%s\" cannot be created.", + parent->schema->name); + /* no need to throw away the whole edit */ + isolate = 1; + goto error; + } + } + if (isolate) { for (parent = node; parent->parent; parent = parent->parent);
Fix issue DerFunc off in counter mode
@@ -185,8 +185,10 @@ int app_drbg_handler(ACVP_TEST_CASE *test_case) { * the default value for this input. Longer entropy inputs are * permitted, with the following exception: for ctrDRBG with no df, the * bit length must equal the seed length. + * + * This will be enforced at registration time by the server. Also, with + * this mode, no nonce is used. **/ - drbg_entropy_len = 0; } switch (tc->mode) {
mbedtls: use soc capability macros in build CMakeLists
@@ -110,18 +110,27 @@ endif() target_sources(mbedtls PRIVATE ${mbedtls_target_sources}) # Choose perihperal type -if(CONFIG_IDF_TARGET_ESP32) - set(SHA_PERIPHERAL_TYPE "parallel_engine") - set(AES_PERIPHERAL_TYPE "block") -else() + +if(CONFIG_SOC_SHA_SUPPORTED) + if(CONFIG_SOC_SHA_SUPPORT_DMA) set(SHA_PERIPHERAL_TYPE "dma") + else() + set(SHA_PERIPHERAL_TYPE "parallel_engine") + endif() +endif() + +if(CONFIG_SOC_AES_SUPPORTED) + if(CONFIG_SOC_AES_SUPPORT_DMA) set(AES_PERIPHERAL_TYPE "dma") + else() + set(AES_PERIPHERAL_TYPE "block") + endif() endif() if(SHA_PERIPHERAL_TYPE STREQUAL "dma") target_include_directories(mbedcrypto PRIVATE "${COMPONENT_DIR}/port/sha/dma/include") - if(CONFIG_IDF_TARGET_ESP32S2) + if(NOT CONFIG_SOC_SHA_GDMA) set(SHA_DMA_SRCS "${COMPONENT_DIR}/port/sha/dma/esp_sha_crypto_dma_impl.c") else() set(SHA_DMA_SRCS "${COMPONENT_DIR}/port/sha/dma/esp_sha_gdma_impl.c" @@ -132,7 +141,7 @@ endif() if(AES_PERIPHERAL_TYPE STREQUAL "dma") - if(CONFIG_IDF_TARGET_ESP32S2) + if(NOT CONFIG_SOC_AES_GDMA) set(AES_DMA_SRCS "${COMPONENT_DIR}/port/aes/dma/esp_aes_crypto_dma_impl.c") else() set(AES_DMA_SRCS "${COMPONENT_DIR}/port/aes/dma/esp_aes_gdma_impl.c") @@ -145,12 +154,20 @@ endif() target_sources(mbedcrypto PRIVATE "${COMPONENT_DIR}/port/esp_hardware.c" "${COMPONENT_DIR}/port/esp_mem.c" "${COMPONENT_DIR}/port/esp_timing.c" - "${COMPONENT_DIR}/port/sha/esp_sha.c" - "${COMPONENT_DIR}/port/aes/esp_aes_xts.c" +) + +if(CONFIG_SOC_AES_SUPPORTED) + target_sources(mbedcrypto PRIVATE "${COMPONENT_DIR}/port/aes/esp_aes_xts.c" "${COMPONENT_DIR}/port/aes/esp_aes_common.c" "${COMPONENT_DIR}/port/aes/${AES_PERIPHERAL_TYPE}/esp_aes.c" + ) +endif() + +if(CONFIG_SOC_SHA_SUPPORTED) + target_sources(mbedcrypto PRIVATE "${COMPONENT_DIR}/port/sha/esp_sha.c" "${COMPONENT_DIR}/port/sha/${SHA_PERIPHERAL_TYPE}/sha.c" ) +endif() # CONFIG_ESP_TLS_USE_DS_PERIPHERAL can be enabled only for the supported targets. if(CONFIG_ESP_TLS_USE_DS_PERIPHERAL)
SOVERSION bump to version 5.5.16
@@ -45,7 +45,7 @@ set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_ # with backward compatible change and micro version is connected with any internal change of the library. set(SYSREPO_MAJOR_SOVERSION 5) set(SYSREPO_MINOR_SOVERSION 5) -set(SYSREPO_MICRO_SOVERSION 15) +set(SYSREPO_MICRO_SOVERSION 16) set(SYSREPO_SOVERSION_FULL ${SYSREPO_MAJOR_SOVERSION}.${SYSREPO_MINOR_SOVERSION}.${SYSREPO_MICRO_SOVERSION}) set(SYSREPO_SOVERSION ${SYSREPO_MAJOR_SOVERSION})
invites: indentation fixes
^- card ?< (team:title our.bowl recipient) %+ invite-hook-poke recipient - :^ %invite - term.act - uid.act + :^ %invite term.act uid.act ^- invite :* ship.invites.act app.invites.act
No name? Ask instead of stop
if [ -z $1 ] then - echo "Please provide application (folder) name. i.e:" - echo "bash <(curl -s https://raw.githubusercontent.com/boazsegev/facil.io/stable/scripts/new) hello_world" - exit 0 + echo "Please name the application (the folder to create):" + read FIO_APPNAME +else + FIO_APPNAME=$1 fi -if [ -a $1 ]; then echo "Couldn't create folder, already exists?"; exit 1; fi -if [ -d $1 ]; then echo "Couldn't create folder, already exists?"; exit 1; fi +if [ -a $FIO_APPNAME ]; then echo "Couldn't create folder, already exists?"; exit 1; fi +if [ -d $FIO_APPNAME ]; then echo "Couldn't create folder, already exists?"; exit 1; fi -echo "Creating $1" -mkdir $1 -cd $1 +echo "* Creating $FIO_APPNAME" +mkdir $FIO_APPNAME +cd $FIO_APPNAME if [[ -z "${FIO_BRANCH}" ]]; then FIO_URL=$(curl -s https://api.github.com/repos/boazsegev/facil.io/releases/latest | grep tarball_url | cut -d '"' -f 4) @@ -37,4 +38,5 @@ tar --strip-components=1 -xzf facil.io.tar.gz if [ $? -ne 0 ]; then echo "Couldn't extract tar."; exit 1; fi rm facil.io.tar.gz + ./scripts/new/cleanup
Modify publishing script. Include Native Win32+Win10 and .NET 4.x SDK for now. No static nuget and no Win10 Managed.
-set /p PackageVersion=<../version.txt +cd %~dp0 +set PATH=%CD%;%PATH% +cd .. +set ROOT=%CD% +set /p PackageVersion=<%ROOT%\Solutions\version.txt -call publish-nupkg.cmd native\Microsoft.Applications.Telemetry.Windows.%PackageVersion%.nupkg -call publish-nupkg.cmd uap\Microsoft.Applications.Telemetry.Windows.UAP.%PackageVersion%.nupkg -call publish-nupkg.cmd net40\Microsoft.Applications.Telemetry.Desktop.%PackageVersion%.nupkg -call publish-nupkg.cmd static-vc140-MD\Microsoft.Applications.Telemetry.Windows.static-vc140-MD.%PackageVersion%.nupkg -call publish-nupkg.cmd static-vc140-MT\Microsoft.Applications.Telemetry.Windows.static-vc140-MT.%PackageVersion%.nupkg +cd %ROOT%\tools + +call publish-nupkg.cmd NuGet\native\Microsoft.Applications.Telemetry.Windows.%PackageVersion%.nupkg +call publish-nupkg.cmd NuGet\net40\Microsoft.Applications.Telemetry.Desktop.%PackageVersion%.nupkg + +REM call publish-nupkg.cmd NuGet\uap\Microsoft.Applications.Telemetry.Windows.UAP.%PackageVersion%.nupkg +REM call publish-nupkg.cmd NuGet\static-vc140-MD\Microsoft.Applications.Telemetry.Windows.static-vc140-MD.%PackageVersion%.nupkg +REM call publish-nupkg.cmd NuGet\static-vc140-MT\Microsoft.Applications.Telemetry.Windows.static-vc140-MT.%PackageVersion%.nupkg
Refactor macro-spanning if in ssl_tls13_server.c
@@ -680,11 +680,13 @@ static int ssl_tls13_write_server_pre_shared_key_ext( mbedtls_ssl_context *ssl, *olen = 0; + int not_using_psk = 0; #if defined(MBEDTLS_USE_PSA_CRYPTO) - if( mbedtls_svc_key_id_is_null( ssl->handshake->psk_opaque ) ) + not_using_psk = ( mbedtls_svc_key_id_is_null( ssl->handshake->psk_opaque ) ); #else - if( ssl->handshake->psk == NULL ) + not_using_psk = ( ssl->handshake->psk == NULL ); #endif + if( not_using_psk ) { /* We shouldn't have called this extension writer unless we've * chosen to use a PSK. */
motorcontrol: compare only relative times to avoid overflow effects Slightly harder to read, but means the same.
@@ -402,17 +402,17 @@ void get_reference(ustime_t time_ref, pbio_motor_trajectory_t *traject, count_t // For RUN and RUN_STALLED, the end time is infinite, meaning that the reference signals do not have a deceleration phase bool infinite = (traject->action == RUN) || (traject->action == RUN_STALLED); - if (time_ref < traject->time_in) { + if (time_ref - traject->time_in < 0) { // If we are here, then we are still in the acceleration phase. Includes conversion from microseconds to seconds, in two steps to avoid overflows and round off errors *rate_ref = traject->rate_start + timest(traject->accl_start, time_ref-traject->time_start); *count_ref = traject->count_start + timest(traject->rate_start, time_ref-traject->time_start) + timest2(traject->accl_start, time_ref-traject->time_start); } - else if (infinite || time_ref <= traject->time_out) { + else if (infinite || time_ref - traject->time_out <= 0) { // If we are here, then we are in the constant speed phase *rate_ref = traject->rate_target; *count_ref = traject->count_in + timest(traject->rate_target, time_ref-traject->time_out); } - else if (time_ref <= traject->time_end) { + else if (time_ref - traject->time_end <= 0) { // If we are here, then we are in the deceleration phase *rate_ref = traject->rate_target + timest(traject->accl_end, time_ref-traject->time_out); *count_ref = traject->count_out + timest(traject->rate_target, time_ref-traject->time_out) + timest2(traject->accl_end, time_ref-traject->time_out);
Use uint variant to store enum in verifyProtocol(). Avoid the need for a cast by using a matching type. Found on MacOS M1.
@@ -43,7 +43,7 @@ verifyProtocol(const String *command, const VariantList *paramList, ProtocolServ varUInt64(varLstGet(paramList, 2)), // File size varStr(varLstGet(paramList, 3))); // Cipher pass - protocolServerResponse(server, varNewInt(result)); + protocolServerResponse(server, VARUINT(result)); } else found = false;
Added Frametime label
@@ -1225,8 +1225,6 @@ static void compute_swapchain_display(struct swapchain_data *data) ImGui::PopFont(); } } - // ImGui::ProgressBar(float(0.5), ImVec2(ImGui::GetContentRegionAvailWidth(), 21), NULL); - ImGui::Dummy(ImVec2(0.0f, 20.0f)); if (loggingOn && log_period == 0){ uint64_t now = os_time_get(); @@ -1237,21 +1235,11 @@ static void compute_swapchain_display(struct swapchain_data *data) out << fps << "," << cpuLoadLog << "," << gpuLoadLog << "," << (now - log_start) << endl; } - /* Recompute min/max */ - for (uint32_t s = 0; s < OVERLAY_PARAM_ENABLED_MAX; s++) { - data->stats_min.stats[s] = UINT64_MAX; - data->stats_max.stats[s] = 0; - } - for (uint32_t f = 0; f < MIN2(data->n_frames, ARRAY_SIZE(data->frames_stats)); f++) { - for (uint32_t s = 0; s < OVERLAY_PARAM_ENABLED_MAX; s++) { - data->stats_min.stats[s] = MIN2(data->frames_stats[f].stats[s], - data->stats_min.stats[s]); - data->stats_max.stats[s] = MAX2(data->frames_stats[f].stats[s], - data->stats_max.stats[s]); - } - } - for (uint32_t s = 0; s < OVERLAY_PARAM_ENABLED_MAX; s++) { - assert(data->stats_min.stats[s] != UINT64_MAX); + if (instance_data->params.enabled[OVERLAY_PARAM_ENABLED_frame_timing]){ + ImGui::Dummy(ImVec2(0.0f, instance_data->params.font_size / 2)); + ImGui::PushFont(font1); + ImGui::TextColored(ImVec4(0.925, 0.411, 0.411, 1.00f), "%s", "Frametime"); + ImGui::PopFont(); } for (uint32_t s = 0; s < OVERLAY_PARAM_ENABLED_MAX; s++) {
Activate mms tests.
@@ -62,7 +62,7 @@ def validate_test(kw, is_fuzz_test): if valid_kw.get('SCRIPT-REL-PATH') == 'boost.test': project_path = valid_kw.get('BUILD-FOLDER-PATH', "") - if not project_path.startswith(("mail", "maps", "metrika", "devtools")): + if not project_path.startswith(("contrib", "mail", "maps", "metrika", "devtools")): errors.append("BOOSTTEST is not allowed here") has_fatal_error = True elif valid_kw.get('SCRIPT-REL-PATH') == 'ytest.py':
Fixed reference URL for Base64. The reference page for Base64 can't use to jump. Because that URL already changed. I fixed this URL to "https://www.leeholmes.com/searching-for-content-in-base-64-strings/".
@@ -463,7 +463,7 @@ Base64 strings The ``base64`` modifier can be used to search for strings that have been base64 encoded. A good explanation of the technique is at: -https://www.leeholmes.com/blog/2019/12/10/searching-for-content-in-base-64-strings-2/ +https://www.leeholmes.com/searching-for-content-in-base-64-strings/ The following rule will search for the three base64 permutations of the string "This program cannot":
Change error in tittles from last commit.
@@ -38,7 +38,7 @@ Use the [installer](https://github.com/metacall/install) and try [some examples] - [2.1 Loaders (Backends)](#21-loaders-backends) - [2.2 Ports (Frontends)](#22-ports-frontends) - [3. Use Cases](#3-use-cases) - - [3.1 Known Projects Using **METACALL**](#31-known-projects-using-metacall) + - [3.1 Known Projects Using MetaCall](#31-known-projects-using-metacall) - [4. Usage](#4-usage) - [4.1 Installation](#41-installation) - [4.2 Environment Variables](#42-environment-variables) @@ -61,7 +61,7 @@ Use the [installer](https://github.com/metacall/install) and try [some examples] - [5.3.1.6 Mock](#5316-mock) - [5.3.1.7 File](#5317-file) - [5.3.2 Serials](#532-serials) - - [5.3.2.1 **METACALL**](#5321-metacall) + - [5.3.2.1 MetaCall](#5321-metacall) - [5.3.2.2 RapidJSON](#5322-rapidjson) - [5.3.3 Detours](#533-detours) - [5.3.3.1 FuncHook](#5331-funchook) @@ -158,7 +158,7 @@ Ports are the frontends to the **METACALL C API** from other languages. They all As you can see, there are plenty of uses. **METACALL** introduces a new model of programming which allows a high interoperability between technologies. If you find any other use case just let us know about it with a Pull Request and we will add it to the list. -## 3.1 Known Projects Using **METACALL** +## 3.1 Known Projects Using MetaCall - **[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. @@ -470,7 +470,7 @@ A loader must implement it to be considered a valid loader. #### 5.3.2 Serials -##### 5.3.2.1 **METACALL** +##### 5.3.2.1 MetaCall ##### 5.3.2.2 RapidJSON
evp_test: add a ctx dup operation to the KDF tests
@@ -2690,6 +2690,7 @@ static int kdf_test_run(EVP_TEST *t) KDF_DATA *expected = t->data; unsigned char *got = NULL; size_t got_len = expected->output_len; + EVP_KDF_CTX *ctx; if (!EVP_KDF_CTX_set_params(expected->ctx, expected->params)) { t->err = "KDF_CTRL_ERROR"; @@ -2699,6 +2700,10 @@ static int kdf_test_run(EVP_TEST *t) t->err = "INTERNAL_ERROR"; goto err; } + if ((ctx = EVP_KDF_CTX_dup(expected->ctx)) != NULL) { + EVP_KDF_CTX_free(expected->ctx); + expected->ctx = ctx; + } if (EVP_KDF_derive(expected->ctx, got, got_len, NULL) <= 0) { t->err = "KDF_DERIVE_ERROR"; goto err;
TEST: Add one more smget test.
#!/usr/bin/perl use strict; -use Test::More tests => 52; +use Test::More tests => 53; use FindBin qw($Bin); use lib "$Bin/lib"; use MemcachedTest; @@ -79,6 +79,13 @@ MISSED_KEYS 0 END"; mem_cmd_val_is($sock, $cmd, $val, $rst); +# smget: descending order (50..40, offset=0, value=100) +$cmd = "bop smget 9 2 50..40 0 100"; $val = "key0 key1"; +$rst = "VALUE 0 +MISSED_KEYS 0 +END"; +mem_cmd_val_is($sock, $cmd, $val, $rst); + # smget: descending order (9..5) $cmd = "bop smget 9 2 9..5 100"; $val = "key0 key1"; $rst = "OUT_OF_RANGE"; print $sock "$cmd\r\n$val\r\n"; is(scalar <$sock>, "$rst\r\n", "$cmd $val: $rst");
[ctr/lua] Change the format string The `%F` and `%T` conversion is in C99 and POSIX.1-2001. It is not working on VS2013.
@@ -309,7 +309,7 @@ static int os_date(lua_State *L) char buff[200]; /* Should be big enough for any conversion result. */ cc[1] = *(++s); if (cc[1] == 'c') { - reslen = strftime(buff, sizeof(buff), "%F %T", stm); + reslen = strftime(buff, sizeof(buff), "%Y-%m-%d %H:%M:%S", stm); } else { reslen = strftime(buff, sizeof(buff), cc, stm); }
less signals, more flags
@@ -3817,7 +3817,8 @@ static void fio_worker_cleanup(void) { fio_timer_clear_all(); fio_defer_perform(); if (!fio_data->is_worker) { - kill(0, SIGINT); + fio_cluster_signal_children(); + fio_defer_perform(); while (wait(NULL) != -1) ; } @@ -6206,7 +6207,7 @@ static void fio_cluster_listen_on_close(intptr_t uuid, (int)getpid()); #endif if (fio_data->active) - kill(0, SIGINT); + fio_stop(); } (void)uuid; } @@ -6248,7 +6249,6 @@ static void fio_cluster_client_handler(struct cluster_pr_s *pr) { break; case FIO_CLUSTER_MSG_SHUTDOWN: fio_stop(); - kill(getpid(), SIGINT); case FIO_CLUSTER_MSG_ERROR: /* fallthrough */ case FIO_CLUSTER_MSG_PING: /* fallthrough */ case FIO_CLUSTER_MSG_ROOT: /* fallthrough */ @@ -6503,7 +6503,7 @@ static void fio_pubsub_on_fork(void) { /** Signals children (or self) to shutdown) - NOT signal safe. */ static void fio_cluster_signal_children(void) { if (fio_parent_pid() != getpid()) { - kill(getpid(), SIGINT); + fio_stop(); return; } fio_cluster_server_sender(fio_msg_internal_create(0, FIO_CLUSTER_MSG_SHUTDOWN,
zuse: if empty, unpack header into empty list Previously, would give a ~[{}] for the '' header. This makes it parse that as "no entries" rather than "one entry without data".
++ pairs %+ cook ~(gas by *(map @t @t)) - %+ more (ifix [. .]:(star ace) mic) + %+ most (ifix [. .]:(star ace) mic) ;~(plug token ;~(pose ;~(pfix tis value) (easy ''))) :: ++ value
cross-reference further documentation
@@ -47,6 +47,11 @@ _swaymsg_ [options...] [message] See *sway*(5) for a list of commands. + _swaymsg_ can return pretty printed (standalone-default) or JSON-formatted + (*--raw*) output. For detailed documentation on the returned JSON-data of + each message type listed below, refer to *sway-ipc*(7). The JSON-format can + contain more information than the pretty print. + Tips: - Command expansion is performed twice: once by swaymsg, and again by sway. If you have quoted multi-word strings in your command, enclose the entire
Improve linguistic PR <https://github.com/Genymobile/scrcpy/pull/1543>
@@ -441,7 +441,7 @@ Or by pressing `Ctrl`+`o` at any time. To turn it back on, press `Ctrl`+`Shift`+`o` (or `POWER`, `Ctrl`+`p`). -It can be useful to also prevent the device to sleep: +It can also be useful to prevent the device from sleeping: ```bash scrcpy --turn-screen-off --stay-awake
update changelog with 1.2.12-pre1
@@ -5,6 +5,44 @@ v1.2.12-pre2 o export flag functions (3467cbb Nathan French) o formatting (4ec8dd3 Nathan French) +v1.2.12-pre1 + o (evhtp_send_reply): Grab reference to bufferevent during write. (a976a2f Marcus Sundberg) + o add thread exit callback for cleaning (0c7d9c4 jgli) + o fix memory leak (a6b00cc jgli) + o fix thread exit callback type (c8978b6 jgli) + o Updates for threading functionality. (b634002 Mark Ellzey) + o Added evhtp_accept_socket (a497a14 Mark Ellzey) + o Forgot to export evhtp_accept_socke. (c94cb5b Mark Ellzey) + o Formatting. (4a78297 Mark Ellzey) + o Maybe I should spell rite. (2114210 Mark Ellzey) + o Fix cmake compilation issue in centos7 (dfc8c2b kaustubh-d) + o Remove double-free when SSL is used. (ee32b2a Jacob Marble) + o Add CPack commands to build a debian package. (0c4a8ec Tom Pusateri) + o [docs] added some doxygen groups (8a247f1 Mark Ellzey) + o check res for bufferevent_socket_connect (#136) (70b68d4 mthomas) + o Regression from commit 67ed0bc (c96c51e Ultima1252) + o Added build/* to gitignore (c64f1dc Mark Ellzey) + o Updating license to include Marcus Sundberg (801c52f Mark Ellzey) + o [htparse] fix up some stuff to make coverity happy (abc7eb4 Mark Ellzey) + o More coverity fixes (7d3cc52 Mark Ellzey) + o check for sockopt returns (534bb48 Mark Ellzey) + o master travis updates (2c6bb88 Mark Ellzey) + o added testbigendian module for old cmake (fb6a866 Mark Ellzey) + o Added initial evhtp_json API (6e48770 Mark Ellzey) + o LICENSE update for ripping liblz json api (fb473ef Mark Ellzey) + o Removing the SIGNED.md file (outdated anyway) (d4bcfa8 Mark Ellzey) + o Update README (6ef073e Mark Ellzey) + o updates / formatting / renames (926e355 Nathan French) + o static funcs from now on will just return int (5112b6d Nathan French) + o fix htp__use_threads_ call error (2ed2f7f weijiazhen) + o FIX : Socket leakage on error #6 (d13b72b Nathan French) + o Issue#6: make evhtp_accept_socket conform to api (d0347dc Nathan French) + o Establish conformity through flags. (58da6dd Nathan French) + o request flags (71341d9 Nathan French) + o EVHTP_CONN flags (087e9a7 Nathan French) + o Flag ops (and related functions) / cleanup (0abc96f Nathan French) + o Add flags accessor (e0f04aa Nathan French) + v1.2.11 o Grab reference to bufferevent during write. (a976a2f Marcus Sundberg) o add thread exit callback for cleaning (0c7d9c4 jgli)
[ctr/lua] Release sql transaction in call
@@ -598,11 +598,9 @@ func LuaCallContract(L *LState, bcCtx *LBlockchainCtx, contractId *C.char, fname defer ce.close(true) if ce.err != nil { - sqlTx.RollbackToSavepoint() luaPushStr(L, "[System.LuaGetContract]newExecutor Error :"+ce.err.Error()) return -1 } - sqlTx.Release() var ci types.CallInfo ci.Name = fnameStr @@ -613,9 +611,12 @@ func LuaCallContract(L *LState, bcCtx *LBlockchainCtx, contractId *C.char, fname } ret := ce.call(&ci, L) if ce.err != nil { + sqlTx.RollbackToSavepoint() luaPushStr(L, "[System.LuaCallContract] call err:"+ce.err.Error()) return -1 } + sqlTx.Release() + return ret }
assert frontends not compiled with -DNDEBUG
@@ -79,6 +79,7 @@ extern "C" { __log_args_color(M) "\n", \ __FILENAME__, __LINE__, ## __VA_ARGS__) +#ifndef NDEBUG #define evhtp_assert(x) \ do { \ if (evhtp_unlikely(!(x))) { \ @@ -119,6 +120,12 @@ extern "C" { abort(); \ } \ } while (0) +#else +#define evhtp_assert(x) +#define evhtp_alloc_assert(x) +#define evhtp_assert_fmt(x) +#define evhtp_errno_assert(x) +#endif
Add Mynewt specific release information
@@ -30,7 +30,16 @@ time, and allow testing to happen. During the time between rc1 and the final release, the only changes that should be merged into master are those to fix bugs found in the -rc. +rc and Mynewt metadata as described in the next section. + +## Mynewt release information + +On Mynewt, `newt` always fetches a versioned MCUBoot release, so after +the rc step is finished, the release needs to be exported by modifying +`repository.yml` in the root directory; it must be updated with the +new release version, including updates to the pseudo keys +(`*-(latest|dev)`). Similarly `version.yml` must have its `repo.version` +key updated with the version number being released. ## Tagging and Release @@ -60,4 +69,10 @@ git push origin HEAD:refs/heads/master git push origin va.b.c-rcn ``` +## Update Mynewt version.yml + +On master `version.yml` must always have its `repo.version` +key set to "0.0.0" to this must be done now that the release +is finished. + [semver]: http://semver.org/
add hart of 2 to heter explanation | footnote about tile v core [skip ci]
@@ -8,8 +8,9 @@ Creating a Rocket and BOOM System ------------------------------------------- Instantiating an SoC with Rocket and BOOM cores is all done with the configuration system and two specific mixins. -Both BOOM and Rocket have mixins labelled ``WithNBoomCores(X)`` and ``WithNBigCores(X)`` that automatically create ``X`` copies of the core. +Both BOOM and Rocket have mixins labelled ``WithNBoomCores(X)`` and ``WithNBigCores(X)`` that automatically create ``X`` copies of the core/tile [1]_. When used together you can create a heterogeneous system. + The following example shows a dual core BOOM with a single core Rocket. .. literalinclude:: ../../generators/example/src/main/scala/HeteroConfigs.scala @@ -23,7 +24,7 @@ This mixin applies to all BOOM cores in the system and changes the parameters fo Great! Now you have a heterogeneous setup with BOOMs and Rockets. The final thing you need to make this system work is to renumber the ``hartId``'s of the cores so that each core has a unique ``hartId`` (a ``hartId`` is the hardware thread id of the core). -This is done with ``WithRenumberHarts`` (which can label the Rocket cores first or the BOOM cores first). +The ``WithRenumberHarts`` mixin solves this by assigning a unique ``hartId`` to all cores in the system (it can label the Rocket cores first or the BOOM cores first). The reason this is needed is because by default the ``WithN...Cores(X)`` mixin assumes that there are only BOOM or only Rocket cores in the system. Thus, without the ``WithRenumberHarts`` mixin, each set of cores is labeled starting from zero causing multiple cores to be assigned the same ``hartId``. @@ -89,10 +90,14 @@ An example is shown below with two BOOM cores, and one Rocket tile with a RoCC a :end-before: DOC include end: DualBoomAndRocketOneHwacha In this example, the ``WithRenumberHarts`` relabels the ``hartId``'s of all the BOOM/Rocket cores. -Then after that is applied to the parameters, the ``WithMultiRoCCHwacha`` is used to assign to a Hwacha accelerator to a particular ``hartId`` (in this case the ``hartId`` corresponding to Rocket). +Then after that is applied to the parameters, the ``WithMultiRoCCHwacha`` is used to assign to a Hwacha accelerator to a particular ``hartId`` (in this case the ``hartId`` of ``2`` corresponds to the Rocket core). Finally, the ``WithMultiRoCC`` mixin is called. This mixin sets the ``BuildRoCC`` key to use the ``MultiRoCCKey`` instead of the default. This must be used after all the RoCC parameters are set because it needs to override the ``BuildRoCC`` parameter. If this is used earlier in the configuration sequence, then MultiRoCC does not work. This mixin can be changed to put more accelerators on more cores by changing the arguments to cover more ``hartId``'s (i.e. ``WithMultiRoCCHwacha(0,1,3,6,...)``). + + +.. [1] Note, in this section core and tile are used interchangeably but there is subtle distinction between a core and tile (tile contains a core, L1D/I$, PTW). + For many places in the documentation, we usually use core to mean tile (doesn't make a large difference but worth the mention).
chat-hook: fix synced map getting out of sync with outgoing subscriptions
state-4 state-5 state-6 + state-7 == :: ++$ state-7 [%7 state-base] +$ state-6 [%6 state-base] +$ state-5 [%5 state-base] +$ state-4 [%4 state-base] $% [%chat-update update:store] == -- -=| state-6 +=| state-7 =* state - :: %- agent:dbug =/ old !<(versioned-state old-vase) =| cards=(list card) |- - ?: ?=(%6 -.old) + ?: ?=(%7 -.old) [cards this(state old)] + ?: ?=(%6 -.old) + =. cards + %+ weld cards + ^- (list card) + [%pass /s %agent [our.bol %chat-hook] %poke %noun !>(%fix-out-of-sync)]~ + $(-.old %7) ?: ?=(?(%3 %4 %5) -.old) =. cards %+ weld cards ?+ mark (on-poke:def mark vase) %json (poke-json:cc !<(json vase)) %chat-action (poke-chat-action:cc !<(action:store vase)) - %noun (poke-fix-dms:cc %fix-dms) + %noun (poke-noun:cc !<(?(%fix-dm %fix-out-of-sync) vase)) :: %chat-hook-action (poke-chat-hook-action:cc !<(action:hook vase)) |_ bol=bowl:gall ++ grp ~(. grpl bol) :: -++ poke-fix-dms - |= a=%fix-dms +++ poke-noun + |= a=?(%fix-dm %fix-out-of-sync) ^- (quip card _state) + |^ :_ state + ?- a + %fix-dm (fix-dm %fix-dm) + %fix-out-of-sync (fix-out-of-sync %fix-out-of-sync) + == + :: + ++ fix-out-of-sync + |= b=%fix-out-of-sync + ^- (list card) + %- zing + %+ turn ~(tap by synced) + |= [=path host=ship] + ^- (list card) + ?: =(host our.bol) ~ + ?> ?=([@ @ ~] path) + =/ =ship (slav %p i.path) + :~ =- [%pass / %agent [our.bol %chat-hook] %poke %chat-hook-action -] + !> ^- action:hook + [%remove path] + :: + =- [%pass / %agent [our.bol %chat-hook] %poke %chat-hook-action -] + !> ^- action:hook + [%add-synced ship path %.y] + == + :: + ++ fix-dm + |= b=%fix-dm + ^- (list card) %- zing %+ turn ~(tap by synced) !> ^- action:store [%messages new-dm envelopes.u.mailbox] == + -- :: ++ poke-json |= jon=json
Expose pool hashrates as prometheus metrics
+using System.Reactive; using System.Reactive.Concurrency; using System.Reactive.Linq; using System.Reactive.Threading.Tasks; using Microsoft.Extensions.Hosting; using Miningcore.Messaging; using Miningcore.Notifications.Messages; +using NLog; using Prometheus; +using static Miningcore.Util.ActionUtils; namespace Miningcore.Notifications; @@ -17,6 +20,8 @@ public class MetricsPublisher : BackgroundService this.messageBus = messageBus; } + private static ILogger logger = LogManager.GetCurrentClassLogger(); + private Summary btStreamLatencySummary; private Counter shareCounter; private Summary rpcRequestDurationSummary; @@ -25,11 +30,17 @@ public class MetricsPublisher : BackgroundService private Counter validShareCounter; private Counter invalidShareCounter; private Summary hashComputationSummary; - private Gauge poolConnectionsCounter; + private Gauge poolConnectionsGauge; + private Gauge poolHashrateGauge; private void CreateMetrics() { - poolConnectionsCounter = Metrics.CreateGauge("miningcore_pool_connections", "Number of connections per pool", new GaugeConfiguration + poolConnectionsGauge = Metrics.CreateGauge("miningcore_pool_connections", "Number of connections per pool", new GaugeConfiguration + { + LabelNames = new[] { "pool" } + }); + + poolHashrateGauge = Metrics.CreateGauge("miningcore_pool_hashrate", "Hashrate per pool", new GaugeConfiguration { LabelNames = new[] { "pool" } }); @@ -99,7 +110,7 @@ public class MetricsPublisher : BackgroundService break; case TelemetryCategory.Connections: - poolConnectionsCounter.WithLabels(msg.GroupId).Set(msg.Total); + poolConnectionsGauge.WithLabels(msg.GroupId).Set(msg.Total); break; case TelemetryCategory.Hash: @@ -108,11 +119,24 @@ public class MetricsPublisher : BackgroundService } } + private void OnHashrateNotification(HashrateNotification msg) + { + poolHashrateGauge.WithLabels(msg.PoolId).Set(msg.Hashrate); + } + protected override Task ExecuteAsync(CancellationToken ct) { - return messageBus.Listen<TelemetryEvent>() + var telemetryEvents = messageBus.Listen<TelemetryEvent>() .ObserveOn(TaskPoolScheduler.Default) - .Do(OnTelemetryEvent) + .Do(x=> Guard(()=> OnTelemetryEvent(x), ex=> logger.Error(ex.Message))) + .Select(_=> Unit.Default); + + var hashrateNotifications = messageBus.Listen<HashrateNotification>() + .ObserveOn(TaskPoolScheduler.Default) + .Do(x=> Guard(()=> OnHashrateNotification(x), ex=> logger.Error(ex.Message))) + .Select(_=> Unit.Default); + + return Observable.Merge(telemetryEvents, hashrateNotifications) .ToTask(ct); } }
Add note about debhelper for compiling the debian package. Fixes
@@ -82,7 +82,8 @@ Options (do one of these before you plug it in) * 2. `modprobe -r usb-storage && modprobe usb-storage` ### Build Debian Package -To build debian package you need debuild. + +To build the debian package you need the following extra packages: `debuild debhelper`. ``` $ git archive --prefix=$(git describe)/ HEAD | bzip2 --stdout > ../libstlink_$(sed -En -e "s/.*\((.*)\).*/\1/" -e "1,1 p" debian/changelog).orig.tar.bz2
wifimanager: terminate dhcpc on disconnected state in STA dhcpc is not closed if STA receive disconnect command on connected state. So call dhcpc_close_ipaddr() if STA in connected state get a disconnect command.
@@ -560,6 +560,7 @@ wifi_manager_result_e _handler_on_connected_state(wifimgr_msg_s *msg) { WM_LOG_HANDLER_START; if (msg->event == EVT_DISCONNECT_CMD) { + dhcpc_close_ipaddr(); WIFIMGR_CHECK_RESULT(_wifimgr_disconnect_ap(), "critical error", WIFI_MANAGER_FAIL); WIFIMGR_SET_STATE(WIFIMGR_STA_DISCONNECTING); } else if (msg->event == EVT_STA_DISCONNECTED) { @@ -568,6 +569,7 @@ wifi_manager_result_e _handler_on_connected_state(wifimgr_msg_s *msg) wifimgr_call_cb(CB_STA_RECONNECTED, NULL); WIFIMGR_SET_STATE(WIFIMGR_STA_RECONNECT); #else + dhcpc_close_ipaddr(); wifimgr_call_cb(CB_STA_DISCONNECTED, NULL); WIFIMGR_SET_STATE(WIFIMGR_STA_DISCONNECTED); #endif /* CONFIG_DISABLE_EXTERNAL_AUTOCONNECT */
http1client: fix one comment about link timer
@@ -810,7 +810,8 @@ static void start_request(struct st_h2o_http1client_t *client, h2o_iovec_t metho } client->super.bytes_written.total = client->sock->bytes_written; - /* TODO no need to set the timeout if all data has been written into TCP sendbuf */ + /* Even all data highly likely has been written into TCP sendbuf, + * assumes the socket write operation is asynchronous and link the timer */ client->super._timeout.cb = on_send_timeout; h2o_timer_link(client->super.ctx->loop, client->super.ctx->io_timeout, &client->super._timeout);
Return to main dir
@@ -155,5 +155,6 @@ if [ "$FASTINSTALL" = "false" ]; then check_version autoconf 2.64 "OpenOCD build" build_project riscv-openocd --prefix=$RISCV --enable-remote-bitbang --enable-jtag_vpi --disable-werror echo -e "\\nRISC-V OpenOCD installation completed!" + cd $RDIR fi fi
remove cryptic prefixes
@@ -135,9 +135,9 @@ struct value_t *announces_add( const char query[], int port, time_t lifetime ) { new->lifetime = lifetime; if( lifetime == LONG_MAX ) { - log_debug( "ANN: Add announcement for %s:%hu. Keep alive for entire runtime.", query, port ); + log_debug( "Add announcement for %s:%hu. Keep alive for entire runtime.", query, port ); } else { - log_debug( "ANN: Add announcement for %s:%hu. Keep alive for %lu minutes.", query, port, (lifetime - now) / 60 ); + log_debug( "Add announcement for %s:%hu. Keep alive for %lu minutes.", query, port, (lifetime - now) / 60 ); } // Prepend to list
Add functional tests to GitHub Jenkins runner
@@ -46,9 +46,10 @@ pipeline { } stage('Test') { steps { - sh 'python3 ./Test/astc_test_image.py --encoder=all --test-set Small' - //perfReport(sourceDataFiles:'TestOutput/results.xml') - //junit(testResults: 'TestOutput/results.xml') + sh ''' + python3 ./Test/astc_test_functional.py + python3 ./Test/astc_test_image.py --encoder=all --test-set Small + ''' } } } @@ -95,10 +96,9 @@ pipeline { steps { bat ''' set Path=c:\\Python38;c:\\Python38\\Scripts;%Path% + call python ./Test/astc_test_functional.py call python ./Test/astc_test_image.py --test-set Small ''' - //perfReport(sourceDataFiles:'TestOutput\\results.xml') - //junit(testResults: 'TestOutput\\results.xml') } } } @@ -135,10 +135,9 @@ pipeline { steps { sh ''' export PATH=/usr/local/bin:$PATH + python3 ./Test/astc_test_functional.py python3 ./Test/astc_test_image.py --test-set Small ''' - //perfReport(sourceDataFiles:'TestOutput/results.xml') - //junit(testResults: 'TestOutput/results.xml') } } }
Docs: Add marks field to get_tree response
@@ -343,6 +343,9 @@ node and will have the following properties: |- sticky : boolean : Whether the node is sticky (shows on all workspaces) +|- marks +: array +: List of marks assigned to the node |- focused : boolean : Whether the node is currently focused by the default seat (_seat0_)
ph: clarify comment in moon test
;< ~ bind:m (init-ship ~bud |) ;< ~ bind:m (init-ship ~marbud |) ;< ~ bind:m (init-ship ~linnup-torsyx |) -::TODO not supported! +::TODO real moons not supported! ;< ~ bind:m (init-ship ~linnup-torsyx-linnup-torsyx |) ;< ~ bind:m (send-hi ~bud ~linnup-torsyx-linnup-torsyx) ;< ~ bind:m (send-hi ~linnup-torsyx-linnup-torsyx ~marbud)
[MEMPOOL] Add warn message - print warn messag if tx in the notified block leaves alive after removal
@@ -53,7 +53,7 @@ type MemPool struct { pool map[types.AccountID]*TxList dumpPath string status int32 - // misc configs + // followings are for test testConfig bool } @@ -181,7 +181,7 @@ func (mp *MemPool) get() ([]*types.Tx, error) { // validate // add pool if possible, else pendings func (mp *MemPool) put(tx *types.Tx) error { - id := types.ToTxID(tx.Hash) + id := types.ToTxID(tx.GetHash()) acc := tx.GetBody().GetAccount() mp.Lock() @@ -204,7 +204,7 @@ func (mp *MemPool) put(tx *types.Tx) error { if err != nil { return err } - + defer mp.releaseMemPoolList(list) diff, err := list.Put(tx) if err != nil { mp.Debug().Err(err).Msg("fail to put at a mempool list") @@ -276,19 +276,32 @@ func (mp *MemPool) removeOnBlockArrival(block *types.Block) error { } list, err := mp.acquireMemPoolList(acc) if err == nil { + defer mp.releaseMemPoolList(list) diff, delTxs := list.SetMinNonce(ns.Nonce + 1) mp.orphan -= diff - if list.Empty() { - mp.delMemPoolList(acc) - } for _, tx := range delTxs { - h := types.ToTxID(tx.Hash) + h := types.ToTxID(tx.GetHash()) delete(mp.cache, h) // need lock } } } - return nil + //TODO + for _, tx := range block.GetBody().GetTxs() { + hid := types.ToTxID(tx.GetHash()) + if _, ok := mp.cache[hid]; !ok { + continue + } + ns, err := mp.getAccountState(tx.GetBody().GetAccount(), true) + if err != nil { + mp.Error().Err(err).Msg("getting Account status failed") + continue + } + mp.Warn().Uint64("nonce on tx", tx.GetBody().GetNonce()). + Uint64("nonce on state", ns.Nonce). + Msg("mismatch ditected") + } + return nil } // signiture verification @@ -350,14 +363,16 @@ func (mp *MemPool) acquireMemPoolList(acc []byte) (*TxList, error) { return mp.pool[id], nil } -func (mp *MemPool) getMemPoolList(acc []byte) *TxList { - id := types.ToAccountID(acc) - return mp.pool[id] +func (mp *MemPool) releaseMemPoolList(list *TxList) { + if list.Empty() { + id := types.ToAccountID(list.account) + delete(mp.pool, id) + } } -func (mp *MemPool) delMemPoolList(acc []byte) { +func (mp *MemPool) getMemPoolList(acc []byte) *TxList { id := types.ToAccountID(acc) - delete(mp.pool, id) + return mp.pool[id] } func (mp *MemPool) getAccountState(acc []byte, refresh bool) (*types.State, error) {
data tree BUGFIX add actual realtype for union
@@ -190,8 +190,12 @@ lyd_value_validate(const struct ly_ctx *ctx, const struct lyd_node_term *node, c } if (realtype) { + if (val.realtype->basetype == LY_TYPE_UNION) { + *realtype = val.subvalue->value.realtype; + } else { *realtype = val.realtype; } + } type->plugin->free(ctx ? ctx : LYD_CTX(node), &val); return LY_SUCCESS;
README.md: Add export restriction notice for MbedTLS
@@ -237,3 +237,23 @@ A: Here are three: Use of the name `apps/external` is suggested because that name is included in the `.gitignore` file and will save you some nuisance when working with GIT. + +# Export restrictions + +This distribution includes cryptographic software. The country in which you +currently reside may have restrictions on the import, possession, use, and/or +re-export to another country, of encryption software. BEFORE using any encryption +software, please check your country's laws, regulations and policies concerning +the import, possession, or use, and re-export of encryption software, to see if +this is permitted. See <http://www.wassenaar.org/> for more information. + +The U.S. Government Department of Commerce, Bureau of Industry and Security (BIS), +has classified this software as Export Commodity Control Number (ECCN) 5D002.C.1, +which includes information security software using or performing cryptographic +functions with asymmetric algorithms. The form and manner of this Apache Software +Foundation distribution makes it eligible for export under the License Exception ENC +Technology Software Unrestricted (TSU) exception (see the BIS Export Administration +Regulations, Section 740.13) for both object code and source code. + +The following provides more details on the included cryptographic software: +https://tls.mbed.org/supported-ssl-ciphersuites. \ No newline at end of file
add comment to explain why the loop has no body
#include "ntl.h" +#include <stdlib.h> void ** ntl_malloc (size_t nmem, size_t elem_size) @@ -19,7 +20,8 @@ size_t ntl_length (void **p) { int i; - for (i = 0; p[i]; i++); + for (i = 0; p[i]; i++) /* empty body */; + return i; }
Testing: bitsPerValue setting via two methods
@@ -93,17 +93,17 @@ for file in $files; do done -files="regular_latlon_surface.grib2 \ - regular_latlon_surface.grib1" - -for file in `echo $files`; do +files="regular_latlon_surface.grib2 + regular_latlon_surface.grib1 + lfpw.grib1" +for file in $files; do infile=${data_dir}/$file outfile1=${infile}_bitsPerValue_1 outfile2=${infile}_bitsPerValue_2 + # Setting with setBitsPerValue key should be identical to using the repack option ${tools_dir}/grib_set -r -s bitsPerValue=10 $infile $outfile1 - ${tools_dir}/grib_set -s setBitsPerValue=10 $infile $outfile2 ${tools_dir}/grib_compare $outfile1 $outfile2
Update: english_to_narsese_gpt3.py: typo fix Seth found
@@ -33,7 +33,7 @@ Q: The cat is in the garden A: < ( cat * garden ) --> in > . Q: cats are furry animals -A: < cat * ( [ furry ] & animal ) > . +A: < cat --> ( [ furry ] & animal ) > . Q: what is a cat? A: < ?1 --> cat > ?
Print pg_regress failure diffs using fgets.
@@ -1766,11 +1766,11 @@ open_file_for_reading(const char *filename) { static void print_contents_of_file(const char* filename) { FILE *file; - int character; + char string[1024]; file = open_file_for_reading(filename); - while ((character = fgetc(file)) != EOF) - fprintf(stdout, "%c", character); + while (fgets(string, sizeof(string), file)) + fprintf(stdout, "%s", string); fclose(file); }
Remove reference to MoltenVK issue 175 which is fixed now
@@ -440,8 +440,6 @@ There are some exceptions though, when you should consider mapping memory only f block is migrated by WDDM to system RAM, which degrades performance. It doesn't matter if that particular memory block is actually used by the command buffer being submitted. -- On Mac/MoltenVK there is a known bug - [Issue #175](https://github.com/KhronosGroup/MoltenVK/issues/175) - which requires unmapping before GPU can see updated texture. - Keeping many large memory blocks mapped may impact performance or stability of some debugging tools. \section memory_mapping_cache_control Cache flush and invalidate
docs: fix some grammar and spelling issues
@@ -56,15 +56,15 @@ There are no special requirements concerning the operating system. Generally, Bo 1. Supports dynamic memory allocation/release. 2. Supports mutual exclusion (mutex) protection mechanism. -3. Supports thread suspension for a specified duration (optional). BoAT cannot support "timeout" or "polling" functions without support of "thread suspension" function, while other funtioncs have no such dependency. +3. Supports thread suspension for a specified duration (optional). BoAT cannot support "timeout" or "polling" functions without the support of the "thread suspension" function, while other funtioncs have no such dependency. 4. From the candidate random number generators list, select to support at least one type in the order of priority: <br> (1) TRNG, true random number generator (requires hardware support) <br> (2) CSPRNG, a cryptographically secure pseudo-random number generator. For Linux, this capability can be provided by the OpenSSL library <br> (3) PRNG, a (non-cryptographically secure) pseudo-random number generator <br> 5. Depending on a high to low minimum priority, at least one of the following types of times below is supported (for the pseudo-random number seed and the time in the data and log): <br> - (1) RTC time, and can be consistent with the real time through protocols such as NTP <br> - (2) RTC time, needs to set the time manually <br> + (1) RTC time that can be consistent with the real-time through protocols such as NTP <br> + (2) RTC time needs to be set manually <br> (3) Tick since power on <br> 6. According to priority from high to low, at least one of the following communication protocols is supported: <br>
Added mavx2 flag for ios architectures
@@ -14,12 +14,10 @@ SRCS( ) IF (ARCH_X86_64 OR ARCH_I386) - IF (OS_LINUX OR OS_DARWIN) - CONLYFLAGS(-mavx2 -std=c11) - ELSE() IF (MSVC) CONLYFLAGS(/D__AVX2__=1) - ENDIF() + ELSE() + CONLYFLAGS(-mavx2 -std=c11) ENDIF() ENDIF()