message
stringlengths
6
474
diff
stringlengths
8
5.22k
sets request id in +hull:give:dawn
^- octs %- as-octt:mimes:html %- en-json:html - (read-request:ethereum [~ tract ['ships(uint32)' [%uint `@`who]~]]) + (read-request:ethereum [`~.0 tract ['ships(uint32)' [%uint `@`who]~]]) :: +turf:give:dawn: Eth RPC for network domains :: ++ turf
Testing: Fix clang address sanitizer error
. ./include.ctest.sh -if [ $HAVE_MEMFS -eq 1 ]; then unset ECCODES_SAMPLES_PATH -fi - IFS_SAMPLES_ROOT=${proj_dir}/ifs_samples # Load the given sample (arg1) which resides in the ifs_samples dir (arg2) -$EXEC ${test_dir}/codes_set_samples_path "gg_ml" "$IFS_SAMPLES_ROOT/grib1_mlgrib2" 2>/dev/null +$EXEC ${test_dir}/codes_set_samples_path "gg_ml" "$IFS_SAMPLES_ROOT/grib1_mlgrib2"
zephyr/subsys/ap_pwrseq/power_host_sleep.c: Format with clang-format BRANCH=none TEST=none
@@ -11,7 +11,8 @@ LOG_MODULE_DECLARE(ap_pwrseq, CONFIG_AP_PWRSEQ_LOG_LEVEL); #if CONFIG_PLATFORM_EC_HOST_INTERFACE_ESPI /* If host doesn't program S0ix lazy wake mask, use default S0ix mask */ -#define DEFAULT_WAKE_MASK_S0IX (EC_HOST_EVENT_MASK(EC_HOST_EVENT_LID_OPEN) | \ +#define DEFAULT_WAKE_MASK_S0IX \ + (EC_HOST_EVENT_MASK(EC_HOST_EVENT_LID_OPEN) | \ EC_HOST_EVENT_MASK(EC_HOST_EVENT_MODE_CHANGE)) /* @@ -48,8 +49,8 @@ static void power_update_wake_mask_deferred(struct k_work *work) power_update_wake_mask(); } -static K_WORK_DELAYABLE_DEFINE( - power_update_wake_mask_deferred_data, power_update_wake_mask_deferred); +static K_WORK_DELAYABLE_DEFINE(power_update_wake_mask_deferred_data, + power_update_wake_mask_deferred); void ap_power_set_active_wake_mask(void) { @@ -74,14 +75,16 @@ void ap_power_set_active_wake_mask(void) * has changed again and the work is not processed, we should * reschedule it. */ - rv = k_work_reschedule( - &power_update_wake_mask_deferred_data, K_MSEC(5)); + rv = k_work_reschedule(&power_update_wake_mask_deferred_data, + K_MSEC(5)); } __ASSERT(rv >= 0, "Set wake mask work queue error"); } #else /* CONFIG_PLATFORM_EC_HOST_INTERFACE_ESPI */ -static void ap_power_set_active_wake_mask(void) { } +static void ap_power_set_active_wake_mask(void) +{ +} #endif /* CONFIG_PLATFORM_EC_HOST_INTERFACE_ESPI */ #if CONFIG_AP_PWRSEQ_S0IX @@ -183,8 +186,8 @@ void ap_power_sleep_notify_transition(enum ap_power_sleep_type check_state) void ap_power_reset_host_sleep_state(void) { power_set_host_sleep_state(HOST_SLEEP_EVENT_DEFAULT_RESET); - ap_power_chipset_handle_host_sleep_event( - HOST_SLEEP_EVENT_DEFAULT_RESET, NULL); + ap_power_chipset_handle_host_sleep_event(HOST_SLEEP_EVENT_DEFAULT_RESET, + NULL); } /* TODO: hook to reset event */ @@ -195,13 +198,11 @@ void ap_power_handle_chipset_reset(void) } void ap_power_chipset_handle_host_sleep_event( - enum host_sleep_event state, - struct host_sleep_event_context *ctx) + enum host_sleep_event state, struct host_sleep_event_context *ctx) { LOG_DBG("host sleep event = %d!", state); #if CONFIG_AP_PWRSEQ_S0IX if (state == HOST_SLEEP_EVENT_S0IX_SUSPEND) { - /* * Indicate to power state machine that a new host event for * s0ix/s3 suspend has been received and so chipset suspend
fix string re being used on bytes for Python 3
@@ -621,7 +621,7 @@ class PerfEventArray(ArrayBase): num_fields = lib.bpf_perf_event_fields(self.bpf.module, self._name) i = 0 while i < num_fields: - field = lib.bpf_perf_event_field(self.bpf.module, self._name, i) + field = lib.bpf_perf_event_field(self.bpf.module, self._name, i).decode() m = re.match(r"(.*)#(.*)", field) field_name = m.group(1) field_type = m.group(2)
Add validation checking when redo delete [Description] N/A [Module] FS [Board] all [Verification] [Reference] N/A [Author] tj80.kwon
@@ -2690,16 +2690,32 @@ static int smartfs_redo_write(struct smartfs_mountpt_s *fs) ****************************************************************************/ static int smartfs_redo_delete(struct smartfs_mountpt_s *fs) { + int ret; struct smartfs_entry_s direntry; struct smartfs_logging_entry_s *entry; + struct smart_read_write_s readwrite; + struct smartfs_entry_header_s entryread; entry = (struct smartfs_logging_entry_s *)(fs->journal->buffer); + + readwrite.logsector = entry->curr_sector; + readwrite.offset = entry->offset; + readwrite.count = sizeof(struct smartfs_entry_header_s); + readwrite.buffer = (uint8_t *)&entryread; + ret = FS_IOCTL(fs, BIOC_READSECT, (unsigned long)&readwrite); + if (ret < 0) { + return OK; + } + if (ENTRY_VALID(&entryread)) { direntry.dsector = entry->curr_sector; direntry.doffset = entry->offset; direntry.dfirst = entry->datalen; direntry.firstsector = entry->generic_1; smartfs_deleteentry(fs, &direntry); + } else { + fdbg("No redo delete required\n"); + } return OK; }
audio_codec: extract DMIC from I2S RX DMIC feature is independent. Extract DMIC from I2S RX. BRANCH=none TEST=make BOARD=kukui_scp -j
@@ -4659,18 +4659,48 @@ enum mkbp_cec_event { /*****************************************************************************/ +/* Commands for DMIC on audio codec. */ +#define EC_CMD_EC_CODEC_DMIC 0x00BC + +enum ec_codec_dmic_subcmd { + EC_CODEC_DMIC_SET_GAIN = 0x0, + EC_CODEC_DMIC_GET_GAIN = 0x1, + EC_CODEC_DMIC_SUBCMD_COUNT, +}; + +struct __ec_align1 ec_param_ec_codec_dmic_set_gain { + uint8_t left; + uint8_t right; + uint8_t reserved[2]; +}; + +struct __ec_align4 ec_param_ec_codec_dmic { + uint8_t cmd; /* enum ec_codec_dmic_subcmd */ + uint8_t reserved[3]; + + union { + struct ec_param_ec_codec_dmic_set_gain + set_gain_param; + }; +}; + +struct __ec_align1 ec_response_ec_codec_dmic_get_gain { + uint8_t left; + uint8_t right; +}; + +/*****************************************************************************/ + /* Commands for I2S RX on audio codec. */ -#define EC_CMD_EC_CODEC_I2S_RX 0x00BC +#define EC_CMD_EC_CODEC_I2S_RX 0x00BD enum ec_codec_i2s_rx_subcmd { EC_CODEC_I2S_RX_ENABLE = 0x0, EC_CODEC_I2S_RX_DISABLE = 0x1, - EC_CODEC_I2S_RX_SET_GAIN = 0x2, - EC_CODEC_I2S_RX_GET_GAIN = 0x3, - EC_CODEC_I2S_RX_SET_SAMPLE_DEPTH = 0x4, - EC_CODEC_I2S_RX_SET_DAIFMT = 0x5, - EC_CODEC_I2S_RX_SET_BCLK = 0x6, + EC_CODEC_I2S_RX_SET_SAMPLE_DEPTH = 0x2, + EC_CODEC_I2S_RX_SET_DAIFMT = 0x3, + EC_CODEC_I2S_RX_SET_BCLK = 0x4, EC_CODEC_I2S_RX_SUBCMD_COUNT, }; @@ -4714,8 +4744,6 @@ struct __ec_align4 ec_param_ec_codec_i2s_rx { union { struct ec_param_ec_codec_i2s_rx_set_sample_depth set_sample_depth_param; - struct ec_param_ec_codec_i2s_rx_set_gain - set_gain_param; struct ec_param_ec_codec_i2s_rx_set_daifmt set_daifmt_param; struct ec_param_ec_codec_i2s_rx_set_bclk @@ -4723,11 +4751,6 @@ struct __ec_align4 ec_param_ec_codec_i2s_rx { }; }; -struct __ec_align1 ec_response_ec_codec_i2s_rx_get_gain { - uint8_t left; - uint8_t right; -}; - /*****************************************************************************/ /* System commands */
[Kernel] Hook up AP to scheduler init
@@ -19,9 +19,9 @@ smp_info_t* acpi_parse_root_system_description(uintptr_t acpi_rsdp); static bool _mapped_cpu_info_in_bsp = false; void ap_c_entry(void) { - uint64_t stack_helper; - printf("AP running C code %p!!!\n", &stack_helper); - while (1) {} + tasking_ap_startup(); + // Should never return + assert(false, "tasking_ap_startup was not supposed to return control here"); } void smp_init(void) { @@ -101,7 +101,7 @@ void smp_init(void) { continue; } - printf("Booting core [idx %d], [APIC %d] [ID %d]\n", processor_info->apic_id, processor_info->processor_id); + printf("Booting core [idx %d], [APIC %d] [ID %d]\n", i, processor_info->apic_id, processor_info->processor_id); // Set up a virtual address space for the AP to use // Start off by cloning the BSP's address space, which has the high-memory remap
error: improved message in dumpfile
@@ -191,7 +191,7 @@ int unserialise (std::istream & is, ckdb::Key * errorKey, ckdb::KeySet * ks) ELEKTRA_SET_VALIDATION_SYNTACTIC_ERRORF ( errorKey, "Unknown command detected in dumpfile: %s.\nMaybe you use a different file format? " - "Try to remount with another plugin (eg. dump, ini, ni, etc.)", + "Try to remount with another plugin (eg. ini, ni, etc.)", command.c_str ()); return -1; }
Add alphaCutoff shader flag;
@@ -97,6 +97,11 @@ const char* lovrShaderFragmentSuffix = "" " colors(lovrColor, lovrDiffuseTexture, texCoord); \n" "#else \n" " lovrCanvas[0] = color(lovrColor, lovrDiffuseTexture, texCoord); \n" +"#ifdef FLAG_alphaCutoff \n" +" if (lovrCanvas[0].a < FLAG_alphaCutoff) { \n" +" discard; \n" +" } \n" +"#endif \n" #ifdef LOVR_WEBGL " lovrCanvas[0].rgb = pow(lovrCanvas[0].rgb, vec3(.4545)); \n" #endif
fixed project cart overwrite message
@@ -2033,7 +2033,9 @@ static void onConsoleSaveCommandConfirmed(Console* console, const char* param) static void onConsoleSaveCommand(Console* console, const char* param) { - if(param && strlen(param) && fsExistsFile(console->fs, getCartName(param))) + if(param && strlen(param) && + (fsExistsFile(console->fs, param) || + fsExistsFile(console->fs, getCartName(param)))) { static const char* Rows[] = {
Split the obj list of LAPACKE 3.7.0 Split obj list to allow building with mingw (argument list too long for the msys ar)
# include ../../make.inc -SRC_OBJ = \ +SRC_OBJA = \ lapacke_cbbcsd.o \ lapacke_cbbcsd_work.o \ lapacke_cbdsqr.o \ @@ -1080,7 +1080,9 @@ lapacke_dsytri_3.o \ lapacke_dsytri_3_work.o \ lapacke_dsytri2x.o \ lapacke_dsytri2x_work.o \ -lapacke_dsytri_work.o \ +lapacke_dsytri_work.o + +SRC_OBJB = \ lapacke_dsytrs.o \ lapacke_dsytrs_rook.o \ lapacke_dsytrs2.o \ @@ -2365,7 +2367,8 @@ lapacke_slagsy_work.o \ lapacke_zlagsy.o \ lapacke_zlagsy_work.o -ALLOBJ = $(SRC_OBJ) $(MATGEN_OBJ) +ALLOBJA = $(SRC_OBJA) +ALLOBJB = $(SRC_OBJB) $(MATGEN_OBJ) ifdef USEXBLAS ALLXOBJ = $(SXLASRC) $(DXLASRC) $(CXLASRC) $(ZXLASRC) @@ -2377,8 +2380,8 @@ endif all: ../../$(LAPACKELIB) -../../$(LAPACKELIB): $(ALLOBJ) $(ALLXOBJ) $(DEPRECATED) - $(ARCH) $(ARCHFLAGS) $@ $(ALLOBJ) $(ALLXOBJ) $(DEPRECATED) +../../$(LAPACKELIB): $(ALLOBJA) $(ALLOBJB) $(ALLXOBJ) $(DEPRECATED) + $(ARCH) $(ARCHFLAGS) $@ $(ALLOBJA) $(ALLOBJB) $(ALLXOBJ) $(DEPRECATED) $(RANLIB) $@ .c.o:
Documentation change only: for nRF5 specify which version of GCC we tested with since `heap_useNewlib.c` does a version check on `newlib` and gives out a warning when it has advanced, which GCC then treats as an error.
@@ -8,7 +8,7 @@ https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/development-with- However it expects you to be using Eclipse; the instructions that follow are modified to work wholly from the command-line (and, in this case, on Windows). -First, install the latest version of GCC for ARM from here: +First, install a version of GCC for ARM from here (the builds here have been tested with version `9 2019-q4-major`): https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm/downloads
py/bootloader: add missing SIGDATA_MAGIC_BITBOXBASE_STANDARD
@@ -48,7 +48,11 @@ def parse_signed_firmware(firmware: bytes) -> typing.Tuple[bytes, bytes, bytes]: if len(firmware) < MAGIC_LEN + SIGDATA_LEN: raise ValueError("firmware too small") magic, firmware = firmware[:MAGIC_LEN], firmware[MAGIC_LEN:] - if magic not in (SIGDATA_MAGIC_STANDARD, SIGDATA_MAGIC_BTCONLY): + if magic not in ( + SIGDATA_MAGIC_STANDARD, + SIGDATA_MAGIC_BTCONLY, + SIGDATA_MAGIC_BITBOXBASE_STANDARD, + ): raise ValueError("invalid magic") sigdata, firmware = firmware[:SIGDATA_LEN], firmware[SIGDATA_LEN:]
fix kale recursion
|- ^+ this-su ?~ yez this-su =* d i.yez + =. this-su ?. ?=([[%a @ @ *] *] d) %- emit [d %give %public-keys vent-result] =/ our (slav %p i.t.i.d) =/ who (slav %p i.t.t.i.d) =/ =message [%public-keys-result who vent-result] - =. this-su %- emit :^ d %pass
Fixed INC/DEC (for lazy flags)
@@ -97,6 +97,7 @@ Implements the DEC instruction and side effects. ****************************************************************************/ static inline uint8_t dec8(x86emu_t *emu, uint8_t d) { + CHECK_FLAGS(emu); emu->res = d - 1; emu->op1 = d; emu->df = d_dec8; @@ -109,6 +110,7 @@ Implements the DEC instruction and side effects. ****************************************************************************/ static inline uint16_t dec16(x86emu_t *emu, uint16_t d) { + CHECK_FLAGS(emu); emu->res = d - 1; emu->op1 = d; emu->df = d_dec16; @@ -122,6 +124,7 @@ Implements the DEC instruction and side effects. ****************************************************************************/ static inline uint32_t dec32(x86emu_t *emu, uint32_t d) { + CHECK_FLAGS(emu); emu->res = d - 1; emu->op1 = d; emu->df = d_dec32; @@ -135,6 +138,7 @@ Implements the INC instruction and side effects. ****************************************************************************/ static inline uint8_t inc8(x86emu_t *emu, uint8_t d) { + CHECK_FLAGS(emu); emu->res = d + 1; emu->op1 = d; emu->df = d_inc8; @@ -147,6 +151,7 @@ Implements the INC instruction and side effects. ****************************************************************************/ static inline uint16_t inc16(x86emu_t *emu, uint16_t d) { + CHECK_FLAGS(emu); emu->res = d + 1; emu->op1 = d; emu->df = d_inc16; @@ -159,6 +164,7 @@ Implements the INC instruction and side effects. ****************************************************************************/ static inline uint32_t inc32(x86emu_t *emu, uint32_t d) { + CHECK_FLAGS(emu); if(emu->df == d_shr32) { // workaround for some wine trickery uint32_t cnt = emu->op2;
Fix test_utf16_second_attr() to work in builds
@@ -6582,7 +6582,7 @@ START_TEST(test_utf16_second_attr) const char text[] = "<\0d\0 \0a\0=\0'\0\x31\0'\0 \0" "\x04\x0e\x08\x0e=\0'\0\x32\0'\0/\0>\0"; - const XML_Char *expected = "1"; + const XML_Char *expected = XCS("1"); CharData storage; CharData_Init(&storage);
crl2pkcs7 shouldn't include empty optional sets If using crl2pkcs7 -nocrl and with no -certfiles, we shouldn't include the implicitly tagged [0] certs and [1] crls sets as they are marked optional and would be empty.
@@ -134,19 +134,20 @@ int crl2pkcs7_main(int argc, char **argv) if (!ASN1_INTEGER_set(p7s->version, 1)) goto end; + + if (crl != NULL) { if ((crl_stack = sk_X509_CRL_new_null()) == NULL) goto end; p7s->crl = crl_stack; - if (crl != NULL) { sk_X509_CRL_push(crl_stack, crl); crl = NULL; /* now part of p7 for OPENSSL_freeing */ } + if (certflst != NULL) { if ((cert_stack = sk_X509_new_null()) == NULL) goto end; p7s->cert = cert_stack; - if (certflst != NULL) for (i = 0; i < sk_OPENSSL_STRING_num(certflst); i++) { certfile = sk_OPENSSL_STRING_value(certflst, i); if (add_certs_from_file(cert_stack, certfile) < 0) { @@ -155,6 +156,7 @@ int crl2pkcs7_main(int argc, char **argv) goto end; } } + } out = bio_open_default(outfile, 'w', outformat); if (out == NULL)
Update the checksum creation script for 3.3 release.
@@ -111,10 +111,8 @@ do echo "" >> $output $cmd INSTALL_NOTES.txt >> $output $cmd jvisit$version.tar.gz >> $output - $cmd visit$version.darwin-x86_64-10_14.dmg >> $output - $cmd visit$version.darwin-x86_64-10_14.tar.gz >> $output - $cmd visit$version2.linux-x86_64-centos8.tar.gz >> $output - $cmd visit$version2.linux-x86_64-debian9.tar.gz >> $output + $cmd VisIt-$version.dmg >> $output + $cmd visit$version2.darwin-x86_64.tar.gz >> $output $cmd visit$version2.linux-x86_64-debian10.tar.gz >> $output $cmd visit$version2.linux-x86_64-debian11.tar.gz >> $output $cmd visit$version2.linux-x86_64-fedora31.tar.gz >> $output @@ -122,7 +120,7 @@ do $cmd visit$version2.linux-x86_64-rhel7-wmesa.tar.gz >> $output $cmd visit$version2.linux-x86_64-ubuntu18.tar.gz >> $output $cmd visit$version2.linux-x86_64-ubuntu20.tar.gz >> $output - $cmd visit$version2.linux-x86_64-ubuntu21.tar.gz >> $output + $cmd visit$version2.linux-x86_64-ubuntu22.tar.gz >> $output $cmd visit${version}_x64.exe >> $output $cmd visit-install$version2 >> $output @@ -131,7 +129,7 @@ do echo "" >> $output $cmd build_visit$version2 >> $output $cmd $dist.tar.gz >> $output - $cmd visitdev$version.exe >> $output + $cmd visit_windowsdev_$version.zip >> $output files=`ls third_party` for file in $files do
[build] Better check requirements for LARGE tests on distbuild
@@ -72,6 +72,8 @@ def validate_test(kw, is_fuzz_test): size = valid_kw.get('SIZE', consts.TestSize.Small).lower() tags = get_list("TAG") is_fat = 'ya:fat' in tags + is_force_sandbox = 'ya:force_sandbox' in tags + in_autocheck = "ya:not_autocheck" not in tags and 'ya:manual' not in tags requirements = {} valid_requirements = {'cpu', 'disk_usage', 'ram', 'ram_disk', 'container', 'sb', 'sb_vault', 'network'} for req in get_list("REQUIREMENTS"): @@ -85,7 +87,7 @@ def validate_test(kw, is_fuzz_test): errors.append("Cannot convert [[imp]]{}[[rst]] to the proper requirement value".format(req_value)) continue # TODO: Remove this special rules for ram and cpu requirements of FAT-tests - elif is_fat and req_name in ('ram', 'cpu', 'ram_disk'): + elif ((is_fat and is_force_sandbox) or not in_autocheck) and req_name in ('ram', 'cpu', 'ram_disk'): if req_value.strip() == 'all': pass elif mr.resolve_value(req_value) is None: @@ -130,7 +132,6 @@ def validate_test(kw, is_fuzz_test): else: errors.append("Invalid requirement syntax [[imp]]{}[[rst]]: expect <requirement>:<value>".format(req)) - in_autocheck = "ya:not_autocheck" not in tags and 'ya:manual' not in tags invalid_requirements_for_distbuild = [requirement for requirement in requirements.keys() if requirement not in ('ram', 'ram_disk', 'cpu', 'network')] sb_tags = [tag for tag in tags if tag.startswith('sb:')] # XXX remove when the dust settles @@ -139,7 +140,7 @@ def validate_test(kw, is_fuzz_test): has_fatal_error = True if is_fat: - if in_autocheck and 'ya:force_sandbox' not in tags: + if in_autocheck and not is_force_sandbox: if invalid_requirements_for_distbuild: errors.append("'{}' REQUIREMENTS options can be used only for FAT tests with ya:force_sandbox tag. Add TAG(ya:force_sandbox) or remove option.".format(invalid_requirements_for_distbuild)) has_fatal_error = True @@ -147,7 +148,7 @@ def validate_test(kw, is_fuzz_test): errors.append("You can set sandbox tags '{}' only for FAT tests with ya:force_sandbox. Add TAG(ya:force_sandbox) or remove sandbox tags.".format(sb_tags)) has_fatal_error = True else: - if 'ya:force_sandbox' in tags: + if is_force_sandbox: errors.append('ya:force_sandbox can be used with LARGE tests only') has_fatal_error = True
Add a warning about jq rounding numbers to the documentation.
</execute-list> <admonition type="note">This syntax requires <proper>jq v1.5</proper>.</admonition> + <admonition type="note"><proper>jq</proper> may round large numbers such as system identifiers. Test your queries carefully.</admonition> </section> </section>
added internal status for source of ESSID
@@ -2013,6 +2013,7 @@ for(c = 0; c < apstaessidcount; c++) { if((essidlen == zeiger->essidlen) && (memcmp(mac_ap, zeiger->mac_ap, 6) == 0) && (memcmp(mac_sta, zeiger->mac_sta, 6) == 0) && (memcmp(essid, zeiger->essid, zeiger->essidlen) == 0)) { + zeiger->status |= status; return; } zeiger++; @@ -2091,7 +2092,7 @@ if(essidlen == 0) return; } -addapstaessid(tv_sec, tv_usec, 0, macf->addr1, macf->addr2, essidlen, essidstr); +addapstaessid(tv_sec, tv_usec, 1, macf->addr1, macf->addr2, essidlen, essidstr); beaconframecount++; return; } @@ -2115,7 +2116,7 @@ if(essidlen == 0) { return; } -addapstaessid(tv_sec, tv_usec, 1, macf->addr2, macf->addr1, essidlen, essidstr); +addapstaessid(tv_sec, tv_usec, 0x18, macf->addr2, macf->addr1, essidlen, essidstr); proberequestframecount++; return; } @@ -2139,7 +2140,7 @@ if(essidlen == 0) { return; } -addapstaessid(tv_sec, tv_usec, 0, macf->addr1, macf->addr2, essidlen, essidstr); +addapstaessid(tv_sec, tv_usec, 2, macf->addr1, macf->addr2, essidlen, essidstr); proberesponseframecount++; return; } @@ -2163,7 +2164,7 @@ if(essidlen == 0) { return; } -addapstaessid(tv_sec, tv_usec, 0, macf->addr2, macf->addr1, essidlen, essidstr); +addapstaessid(tv_sec, tv_usec, 4, macf->addr2, macf->addr1, essidlen, essidstr); associationrequestframecount++; return; } @@ -2194,11 +2195,8 @@ if(essidlen == 0) { return; } -if(memcmp(macf->addr1, macf->addr3, 6) == 0) - { - addapstaessid(tv_sec, tv_usec, 0, macf->addr2, macf->addr1, essidlen, essidstr); +addapstaessid(tv_sec, tv_usec, 8, macf->addr2, macf->addr1, essidlen, essidstr); reassociationrequestframecount++; - } return; } /*===========================================================================*/
update PLL and DDS configuration in dac_test
-source projects/packetizer_test/block_design.tcl +# Create processing_system7 +cell xilinx.com:ip:processing_system7:5.5 ps_0 { + PCW_IMPORT_BOARD_PRESET cfg/red_pitaya.xml +} { + M_AXI_GP0_ACLK ps_0/FCLK_CLK0 +} + +# Create all required interconnections +apply_bd_automation -rule xilinx.com:bd_rule:processing_system7 -config { + make_external {FIXED_IO, DDR} + Master Disable + Slave Disable +} [get_bd_cells ps_0] -# Create clk_wiz cell xilinx.com:ip:clk_wiz:5.3 pll_0 { + PRIMITIVE PLL PRIM_IN_FREQ.VALUE_SRC USER PRIM_IN_FREQ 125.0 + PRIM_SOURCE Differential_clock_capable_pin CLKOUT1_USED true - CLKOUT1_REQUESTED_OUT_FREQ 250.0 + CLKOUT1_REQUESTED_OUT_FREQ 125.0 + CLKOUT2_USED true + CLKOUT2_REQUESTED_OUT_FREQ 250.0 + CLKOUT2_REQUESTED_PHASE -90.0 + USE_RESET false } { - clk_in1 adc_0/adc_clk + clk_in1_p adc_clk_p_i + clk_in1_n adc_clk_n_i } # Create dds_compiler cell xilinx.com:ip:dds_compiler:6.0 dds_0 { DDS_CLOCK_RATE 125 - SPURIOUS_FREE_DYNAMIC_RANGE 84 - FREQUENCY_RESOLUTION 0.5 - AMPLITUDE_MODE Unit_Circle + SPURIOUS_FREE_DYNAMIC_RANGE 78 + NOISE_SHAPING Taylor_Series_Corrected + FREQUENCY_RESOLUTION 0.2 HAS_PHASE_OUT false - OUTPUT_FREQUENCY1 0.9765625 + OUTPUT_WIDTH 14 + OUTPUT_FREQUENCY1 14.0 } { - aclk adc_0/adc_clk + aclk pll_0/clk_out1 } # Create axis_red_pitaya_dac cell pavel-demin:user:axis_red_pitaya_dac:1.0 dac_0 {} { - aclk adc_0/adc_clk - ddr_clk pll_0/clk_out1 + aclk pll_0/clk_out1 + ddr_clk pll_0/clk_out2 locked pll_0/locked S_AXIS dds_0/M_AXIS_DATA dac_clk dac_clk_o
OcAppleKernelLib: Added notes for HWP and _xcpm_core_scope_msrs patch
@@ -243,7 +243,7 @@ PatchAppleXcpmCfgLock ( } // - // Now the HWP patch. + // Now the HWP patch at _xcpm_idle() for Release XNU. // Status = PatcherApplyGenericPatch ( Patcher, @@ -292,7 +292,6 @@ mMiscPwrMgmtRelPatch = { .Limit = 0 }; - STATIC UINT8 mMiscPwrMgmtDbgFind[] = { @@ -342,6 +341,11 @@ PatchAppleXcpmExtraMsrs ( Status = PatcherGetSymbolAddress (Patcher, "_xcpm_pkg_scope_msrs", (UINT8 **) &Record); if (!RETURN_ERROR (Status)) { while (Record < Last) { + // + // Most Record->xcpm_msr_applicable_cpus has + // 0xDC or 0xDE in its lower 16-bit and thus here we + // AND 0xFF0000FDU in order to match both. (The result will be 0xDC) + // if ((Record->xcpm_msr_applicable_cpus & 0xFF0000FDU) == 0xDC) { DEBUG (( DEBUG_INFO,
Fix for ST7789 display flicker
@@ -54,7 +54,7 @@ namespace pimoroni { int8_t bl = DEFAULT_BL_PIN; int8_t vsync = -1; // only available on some products - uint32_t spi_baud = 64 * 1024 * 1024; + uint32_t spi_baud = 16 * 1000 * 1000; //--------------------------------------------------
fix turtle.shape converter
@@ -212,9 +212,10 @@ pbc.objectFunctionD.get('speed')['Turtle'] = function (py2block, func, args, key } pbc.objectFunctionD.get('shape')['Turtle'] = function (py2block, func, args, keywords, starargs, kwargs, node) { - if (args.length !== 1) { + if (args.length !== 1 && args.length !== 0) { throw new Error("Incorrect number of arguments"); } + if (args.length == 1){ var turtleblock = py2block.convert(func.value); var shapeblock = py2block.Str_value(args[0]); return [block('turtle_shape', func.lineno, { @@ -226,7 +227,16 @@ pbc.objectFunctionD.get('shape')['Turtle'] = function (py2block, func, args, key }, { "inline": "true" - })]; + })];} + if(args.length == 0){ + var turtleblock = py2block.convert(func.value); + return block('turtle_pos_shape', func.lineno, { + 'DIR': 'shape' + }, { + 'TUR': turtleblock + }, { + "inline": "true" + });} } pbc.objectFunctionD.get('write')['Turtle'] = function (py2block, func, args, keywords, starargs, kwargs, node) { @@ -483,25 +493,19 @@ pbc.objectFunctionD.get('clone')['Turtle'] = function (py2block, func, args, key }); } -function turtlePosShape(mode){ - function converter(py2block, func, args, keywords, starargs, kwargs, node) { +pbc.objectFunctionD.get('pos')['Turtle'] = function (py2block, func, args, keywords, starargs, kwargs, node) { if (args.length !== 0) { throw new Error("Incorrect number of arguments"); } var turtleblock = py2block.convert(func.value); return block('turtle_pos_shape', func.lineno, { - 'DIR': mode + 'DIR': 'pos' }, { 'TUR': turtleblock }, { "inline": "true" }); } - return converter; -} -pbc.objectFunctionD.get('pos')['Turtle'] = turtlePosShape('pos'); -pbc.objectFunctionD.get('shape')['Turtle'] = turtlePosShape('shape'); - function turtleHideShow(mode){ function converter(py2block, func, args, keywords, starargs, kwargs, node) {
hotfix devtools config bug
@echo on -set WIN_COMMON_FLAGS=-DOS_SDK=local -DCUDA_ROOT="%CUDA_PATH%" -DUSE_ARCADIA_CUDA_HOST_COMPILER=no --host-platform-flag USE_ARCADIA_CUDA_HOST_COMPILER=no -DCUDA_HOST_COMPILER="C:/VC_FOR_CUDA/VC/Tools/MSVC/14.13.26128/bin/Hostx64/x64/cl.exe" +set WIN_COMMON_FLAGS=-k -DOS_SDK=local -DCUDA_ROOT="%CUDA_PATH%" -DUSE_ARCADIA_CUDA_HOST_COMPILER=no --host-platform-flag USE_ARCADIA_CUDA_HOST_COMPILER=no -DCUDA_HOST_COMPILER="C:/VC_FOR_CUDA/VC/Tools/MSVC/14.13.26128/bin/Hostx64/x64/cl.exe" call "%VS_VARS_PATH%\vcvars64.bat" -vcvars_ver=14.16 if %errorlevel% neq 0 exit /b %errorlevel%
btc: unconditionally re-request address-info for watched addresses
?. =(network network.w) ~ ^- (unit (list card)) :- ~ - %+ murn ~(tap by wach.w) - |= [a=address ad=addi] - ?: %+ levy ~(tap in utxos.ad) - |=(u=utxo (gth height.u (sub block.btc-state confs.w))) - ~ - `(poke-provider [%address-info a]) + %+ turn ~(tap by wach.w) + |= [a=address *] + (poke-provider [%address-info a]) :: +retry-txs: get info on txs without enough confirmations :: ++ retry-txs
23-rpl-tsch-z1.csc - remove one node that does not like to be routed
<project EXPORT="discard">[APPS_DIR]/powertracker</project> <simulation> <title>RPL+TSCH (Z1)</title> - <randomseed>123456</randomseed> + <randomseed>1</randomseed> <motedelay_us>1000000</motedelay_us> <radiomedium> org.contikios.cooja.radiomediums.UDGM </interface_config> <motetype_identifier>z11</motetype_identifier> </mote> - <mote> - <breakpoints /> - <interface_config> - org.contikios.cooja.interfaces.Position - <x>10.622284947035123</x> - <y>109.81862399725188</y> - <z>0.0</z> - </interface_config> - <interface_config> - org.contikios.cooja.mspmote.interfaces.MspMoteID - <id>6</id> - </interface_config> - <motetype_identifier>z11</motetype_identifier> - </mote> </simulation> <plugin> org.contikios.cooja.plugins.SimControl <mote>2</mote> <mote>3</mote> <mote>4</mote> - <mote>5</mote> <showRadioRXTX /> <showRadioHW /> <showLEDs />
gpaddmirrors: fix test assertion Remove period from assertRaisesRegexp expectation to not be conflated with the regex metacharacter. Authored-by: Kalen Krempely
@@ -177,7 +177,7 @@ class buildMirrorSegmentsTestCase(GpTestCase): gpArray = GpArray([self.master, self.primary]) - with self.assertRaisesRegexp(Exception, r"Segment dbid's 2 and 1 on host samehost cannot have the same port 1111."): + with self.assertRaisesRegexp(Exception, r"Segment dbid's 2 and 1 on host samehost cannot have the same port 1111"): self.buildMirrorSegs.checkForPortAndDirectoryConflicts(gpArray) def test_checkForPortAndDirectoryConflicts__given_the_same_host_checks_data_directories_differ(self): @@ -189,7 +189,7 @@ class buildMirrorSegmentsTestCase(GpTestCase): gpArray = GpArray([self.master, self.primary]) - with self.assertRaisesRegexp(Exception, r"Segment dbid's 2 and 1 on host samehost cannot have the same data directory '/data'."): + with self.assertRaisesRegexp(Exception, r"Segment dbid's 2 and 1 on host samehost cannot have the same data directory '/data'"): self.buildMirrorSegs.checkForPortAndDirectoryConflicts(gpArray) if __name__ == '__main__':
fix(discord-ratelimit.c): c89 compliant comment
@@ -63,7 +63,7 @@ discord_bucket_try_cooldown(struct discord_adapter *adapter, struct discord_buck "Transfer locked in queue.", bucket->hash, bucket->remaining); - // wait for pthread_cond_signal() from parse_ratelimits() + /* wait for pthread_cond_signal() from parse_ratelimits() */ pthread_cond_wait(&bucket->cond, &bucket->lock); logconf_debug(&adapter->ratelimit->conf,
acrn-config: Enable pre-launch VM sharing CPU with other VMs CPU sharing between pre-launch VMs and SOS, post-launch VMs were forbidden. Remove the limitation. Acked-by: Terry Zou
@@ -309,9 +309,6 @@ def vm_cpu_affinity_check(config_file, id_cpus_per_vm_dic, item): if pre_launch_cpus.count(pcpu) >= 2: key = "Pre launched VM cpu_affinity" err_dic[key] = "Pre_launched_vm vm should not have the same cpus assignment" - if pcpu in post_launch_cpus: - key = "Pre launched vm and Post launchded VM cpu_affinity" - err_dic[key] = "Pre launched_vm and Post launched vm should not have the same cpus assignment" return err_dic
No need for reflection
// + sessionWithConfiguration:delegate:delegateQueue: #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wshadow" - RSSwizzleClassMethod(NSClassFromString(@"NSURLSession"), + RSSwizzleClassMethod(NSURLSession.class, @selector(sessionWithConfiguration:delegate:delegateQueue:), RSSWReturnType(NSURLSession *), RSSWArguments(NSURLSessionConfiguration * _Nonnull configuration, id _Nullable delegate, NSOperationQueue * _Nullable queue),
hfuzz-cc: enable ld's -undefined dynamic_lookup under macosx
@@ -399,13 +399,15 @@ static int ldMode(int argc, char** argv) { args[j++] = getLibHFNetDriverPath(); /* Pull modules defining the following symbols (if they exist) */ -#ifndef _HF_ARCH_DARWIN +#ifdef _HF_ARCH_DARWIN + args[j++] = "-Wl,-undefined,dynamic_lookup"; + args[j++] = "-Wl,-u,_LIBHFNETDRIVER_module_main", + args[j++] = "-Wl,-u,_LIBHFUZZ_module_instrument"; + args[j++] = "-Wl,-u,_LIBHFUZZ_module_memorycmp"; +#else /* _HF_ARCH_DARWIN */ args[j++] = "-Wl,-u,LIBHFNETDRIVER_module_main", args[j++] = "-Wl,-u,LIBHFUZZ_module_instrument"; args[j++] = "-Wl,-u,LIBHFUZZ_module_memorycmp"; -#else /* _HF_ARCH_DARWIN */ - args[j++] = "-Wl,-u,_LIBHFUZZ_module_instrument"; - args[j++] = "-Wl,-u,_LIBHFUZZ_module_memorycmp"; #endif /* _HF_ARCH_DARWIN */ /* Needed by the libhfcommon */
VERSION bump to version 2.1.70
@@ -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 1) -set(SYSREPO_MICRO_VERSION 69) +set(SYSREPO_MICRO_VERSION 70) set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_MICRO_VERSION}) # Version of the library
modified include file
#include <Eigen.h> // Calls main Eigen matrix class library #include <Eigen/LU> // Calls inverse, determinant, LU decomp., etc. -#include <Eigen/Dense> +#include <Eigen/QR> #include <math.h> #include <vector>
doc: Add note about the maximum number of regions for hv-land The maximum number of ivshmem shared memory regions cannot exceed 8
@@ -62,6 +62,8 @@ enable it using the :ref:`acrn_configuration_tool` with these steps: communication and separate it with ``:``. For example, the communication between VM0 and VM2, it can be written as ``0:2`` + .. note:: You can define up to eight ``ivshmem`` hv-land shared regions. + - Build the XML configuration, refer to :ref:`getting-started-building` Inter-VM Communication Examples
docs: document posix.time constants Fixes * ext/posix/time.c (luaopen_posix_time): Add ldocs for time constants.
@@ -341,6 +341,28 @@ static const luaL_Reg posix_time_fns[] = }; +/*** +Constants. +@section constants +*/ + +/*** +Standard constants. +Any constants not available in the underlying system will be `nil` valued. +@table posix.time +@int CLOCK_MONOTONIC the identifier for the system-wide monotonic clock +@int CLOCK_PROCESS_CPUTIME_ID the identifier for the current process CPU-time clock +@int CLOCK_REALTIME the identifier for the system-wide realtime clock +@int CLOCK_THREAD_CPUTIME_ID the identifier for the current thread CPU-time clock +@usage + -- Print posix.time constants supported on this host. + for name, value in pairs (require "posix.time") do + if type (value) == "number" then + print (name, value) + end + end +*/ + LUALIB_API int luaopen_posix_time(lua_State *L) {
nvagetbios: Add automatic strap_peek detection Detecting the strap_peek is very easy, so we may as well just handle it for the user by default so users (like me...) are less likely to give us vbios files with no strap peeks.
#include <unistd.h> #include <string.h> #include <stdlib.h> +#include <errno.h> #define NV_PRAMIN_OFFSET 0x00700000 #define NV_PROM_OFFSET 0x00300000 @@ -202,9 +203,17 @@ int vbios_extract_pramin(int cnum, uint8_t *vbios, int *length) return ret; } +int32_t extract_strap_peek(int cnum) +{ + return nva_rd32(cnum, 0x101000); +} + void usage(int error_code) { - fprintf(stderr, "\nUsage: nvagetbios [-c card_number] [-s extraction_method] > my_vbios.rom\n"); + fprintf(stderr, + "\n" + "Usage: nvagetbios [-c card_number] [-s extraction_method]\n" + " [-S strap_peek_out] > vbios.rom\n"); exit(error_code); } @@ -215,6 +224,8 @@ int main(int argc, char **argv) { char const *source = NULL; int result = 0; int length; + FILE *strap_peek_output = stderr; + int32_t strap_peek; if (nva_init()) { fprintf (stderr, "PCI init failure!\n"); @@ -222,7 +233,7 @@ int main(int argc, char **argv) { } /* Arguments parsing */ - while ((c = getopt (argc, argv, "hc:s:")) != -1) { + while ((c = getopt (argc, argv, "hc:s:S:")) != -1) { switch (c) { case 'h': usage(0); @@ -233,6 +244,14 @@ int main(int argc, char **argv) { case 's': source = optarg; break; + case 'S': + strap_peek_output = fopen(optarg, "w+"); + if (!strap_peek_output) { + fprintf(stderr, "-S: Error while opening %s: %s\n", + optarg, strerror(errno)); + return 1; + } + break; } } @@ -279,6 +298,16 @@ int main(int argc, char **argv) { fwrite(vbios, 1, length, stdout); } + strap_peek = extract_strap_peek(cnum); + if (isatty(fileno(strap_peek_output))) { + fprintf(strap_peek_output, + "Your strap peek is: 0x%x\n" + "Please save this value in the same directory as your vbios as a file named strap_peek (or use -S)\n", + strap_peek); + } else { + fprintf(strap_peek_output, "0x%x", strap_peek); + } + if (result == EOK) fprintf(stderr, "Vbios extracted successfully!\n"); else if (result == ESIG)
codgen: add option to keep logs to test
@@ -4,11 +4,14 @@ echo echo ELEKTRA CHECK GEN echo -while getopts ":q" opt; do +while getopts ":qk" opt; do case $opt in q) nodiff=1 ;; + k) + keeplogs=1 + ;; *) ;; esac @@ -178,7 +181,7 @@ for test_folder in "@CMAKE_SOURCE_DIR@"/tests/shell/gen/*/; do echo "The log is also stored at $output_folder$test_name.check.log" echo else - echo rm "$output_folder$test_name.check.log" + [ "$keeplogs" = "1" ] || rm "$output_folder$test_name.check.log" fi cd "$old_dir" || exit 1
[mod_evasive] update comment to add references update comment to add references to other modules and mechanisms available in lighttpd to enforce security policy
/** * mod_evasive * - * we indent to implement all features the mod_evasive from apache has + * A combination of lighttpd modules provides similar features + * to those in (old) Apache mod_evasive * * - limit of connections per IP + * ==> mod_evasive * - provide a list of block-listed ip/networks (no access) + * ==> block at firewall + * ==> block using lighttpd.conf conditionals and mod_access + * ==> block using mod_magnet and an external (updatable) constant database + * https://wiki.lighttpd.net/AbsoLUAtion#Fight-DDoS * - provide a white-list of ips/network which is not affected by the limit - * (hmm, conditionals might be enough) + * ==> allow using lighttpd.conf conditionals + * and configure evasive.max-conns-per-ip = 0 for whitelist * - provide a bandwidth limiter per IP + * ==> set using lighttpd.conf conditionals + * and configure connection.kbytes-per-second + * - enforce additional policy using mod_magnet and libmodsecurity + * ==> https://wiki.lighttpd.net/AbsoLUAtion#Mod_Security * * started by: * - [email protected]
chunk_trace: remove reference to instance event_type
@@ -188,7 +188,6 @@ struct flb_chunk_trace_context *flb_chunk_trace_context_new(void *trace_input, flb_error("could not load trace emitter"); goto error_flb; } - input->event_type = FLB_EVENT_TYPE_LOGS | FLB_EVENT_TYPE_HAS_TRACE; ret = flb_input_set_property(input, "alias", "trace-emitter"); if (ret != 0) {
Update valgrind wrapper script
#!/usr/bin/env python3 # SPDX-License-Identifier: Apache-2.0 # ----------------------------------------------------------------------------- -# Copyright 2020-2021 Arm Limited +# Copyright 2020-2022 Arm Limited # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy @@ -116,7 +116,7 @@ def run_pass(image, noStartup, encoder, blocksize, quality): if noStartup: args = ["gprof2dot", "--format=callgrind", "--output=out.dot", "callgrind.txt", - "-s", "-z", "compress_block(astcenc_context const&, astcenc_image const&, image_block const&, physical_compressed_block&, compression_working_buffers&)"] + "-s", "-z", "compress_block(astcenc_context const&, image_block const&, physical_compressed_block&, compression_working_buffers&)"] else: args = ["gprof2dot", "--format=callgrind", "--output=out.dot", "callgrind.txt", "-s", "-z", "main"] @@ -143,14 +143,14 @@ def parse_command_line(): parser.add_argument("img", type=argparse.FileType("r"), help="The image file to test") - testencoders = ["sse2", "sse4.1", "avx2"] - encoders = testencoders + ["all"] - parser.add_argument("--encoder", dest="encoders", default="avx2", + encoders = ["sse2", "sse4.1", "avx2"] + parser.add_argument("--encoder", dest="encoder", default="avx2", choices=encoders, help="select encoder variant") - testqualities = ["fastest", "fast", "medium", "thorough", "20", "30", "40", "50"] - qualities = testqualities + ["all"] - parser.add_argument("--test-quality", dest="qualities", default="medium", + testquant = [str(x) for x in range (0, 101, 10)] + testqual = ["-fastest", "-fast", "-medium", "-thorough", "-exhaustive"] + qualities = testqual + testquant + parser.add_argument("--test-quality", dest="quality", default="medium", choices=qualities, help="select compression quality") parser.add_argument("--no-startup", dest="noStartup", default=False, @@ -158,18 +158,6 @@ def parse_command_line(): args = parser.parse_args() - if args.encoders == "all": - args.encoders = testencoders - else: - args.encoders = [args.encoders] - - if args.qualities == "all": - args.qualities = testqualities - elif args.qualities in ["fastest", "fast", "medium", "thorough"]: - args.qualities = [f"-{args.qualities}"] - else: - args.qualities = [args.qualities] - return args @@ -181,11 +169,7 @@ def main(): int: The process return code. """ args = parse_command_line() - - for quality in args.qualities: - for encoder in args.encoders: - run_pass(args.img.name, args.noStartup, encoder, "6x6", quality) - + run_pass(args.img.name, args.noStartup, args.encoder, "6x6", args.quality) return 0
Upgrade gradle build tools to 4.0.1
@@ -7,7 +7,7 @@ buildscript { jcenter() } dependencies { - classpath 'com.android.tools.build:gradle:3.6.2' + classpath 'com.android.tools.build:gradle:4.0.1' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files
gestures: remove unneeded lock We are not interrupting this function anywhere, and the locking causes linting issues.
@@ -236,57 +236,14 @@ static void _emit_continuous_tap_event(void) /********************************** MEASURE, DETECT and CALLBACK **********************************/ -static void _get_lock(volatile uint32_t* lock_variable) -{ -#ifndef TESTING - // Note: __LDREXW and __STREXW are CMSIS functions - int status = 0; - do { - int count = 0; - while (__LDREXW(lock_variable) != 0) { - if (count > 10) { - screen_print_debug( - "You must not call gesture detection from a callback called during gesture " - "detection", - 1000); - } - count++; - } - // Lock_Variable is free - status = __STREXW(1, lock_variable); // Try to set - // Lock_Variable - } while (status != 0); // retry until lock successfully - __DMB(); // Do not start any other memory access - // until memory barrier is completed -#else - (void)lock_variable; -#endif -} - -static void _free_lock(volatile uint32_t* lock_variable) -{ -#ifndef TESTING - __DMB(); // Ensure memory operations completed before - // releasing lock - *lock_variable = 0; -#else - (void)lock_variable; -#endif -} - -static volatile uint32_t _gestures_lock = 0; - /** * Measures the slider usage and calls registered callbacks to inform a client * about a detected gesture. */ -static void gestures_measure_and_emit(void) +static void _measure_and_emit(void) { - _get_lock(&_gestures_lock); - qtouch_process(); // Non blocking if (measurement_done_touch != 1) { - _free_lock(&_gestures_lock); return; } @@ -316,7 +273,6 @@ static void gestures_measure_and_emit(void) _reset_state(); _released_since_new_screen = true; } - _free_lock(&_gestures_lock); } void gestures_detect(bool reset, bool emit_without_release) @@ -325,5 +281,5 @@ void gestures_detect(bool reset, bool emit_without_release) _reset_state(); _released_since_new_screen = emit_without_release; } - gestures_measure_and_emit(); + _measure_and_emit(); }
rpl_refresh_routes: log new DTSN rather than old one
@@ -183,14 +183,14 @@ void rpl_refresh_routes(const char *str) { if(rpl_dag_root_is_root()) { - LOG_WARN("incrementing DTSN (%s), current %u)\n", + /* Increment DTSN */ + RPL_LOLLIPOP_INCREMENT(curr_instance.dtsn_out); + + LOG_WARN("incremented DTSN (%s), current %u\n", str, curr_instance.dtsn_out); if(LOG_INFO_ENABLED) { rpl_neighbor_print_list("Refresh routes (before)"); } - - /* Increment DTSN */ - RPL_LOLLIPOP_INCREMENT(curr_instance.dtsn_out); } } /*---------------------------------------------------------------------------*/
Close the db connection at the end.
@@ -2715,6 +2715,9 @@ class gpload: for t in self.threads: t.join() + if self.db != None: + self.db.close() + self.log(self.INFO, 'rows Inserted = ' + str(self.rowsInserted)) self.log(self.INFO, 'rows Updated = ' + str(self.rowsUpdated)) self.log(self.INFO, 'data formatting errors = ' + str(NUM_WARN_ROWS))
comment out setup of lustre-client postscript for now
@@ -70,27 +70,27 @@ accomplished as follows: [sms](*\#*) service dhcpd restart \end{lstlisting} -If the Lustre client was enabled for computes in \S\ref{sec:lustre_client}, you -should be able to mount the file system post-boot using the fstab entry -(e.g. via ``\texttt{mount /mnt/lustre}''). Alternatively, if -you prefer to have the file system mounted automatically at boot time, a simple -postscript can be created and registered with \xCAT{} for this purpose as follows. - -% begin_ohpc_run -% ohpc_validation_newline -% ohpc_validation_comment Optionally create xCAT postscript to mount Lustre client -% ohpc_command if [ ${enable_lustre_client} -eq 1 ];then -% ohpc_indent 5 -\begin{lstlisting}[language=bash,keywords={},upquote=true,basicstyle=\footnotesize\ttfamily,literate={BOSVER}{\baseos{}}1] -# Optionally create postscript to mount Lustre client at boot -[sms](*\#*) echo '#!/bin/bash' > /install/postscripts/lustre-client -[sms](*\#*) echo 'mount /mnt/lustre' >> /install/postscripts/lustre-client -[sms](*\#*) chmod 755 /install/postscripts/lustre-client -# Register script for computes -[sms](*\#*) chdef compute -p postscripts=lustre-client -\end{lstlisting} -% ohpc_indent 0 -% ohpc_command fi -% end_ohpc_run - +%%% If the Lustre client was enabled for computes in \S\ref{sec:lustre_client}, you +%%% should be able to mount the file system post-boot using the fstab entry +%%% (e.g. via ``\texttt{mount /mnt/lustre}''). Alternatively, if +%%% you prefer to have the file system mounted automatically at boot time, a simple +%%% postscript can be created and registered with \xCAT{} for this purpose as follows. +%%% +%%% % begin_ohpc_run +%%% % ohpc_validation_newline +%%% % ohpc_validation_comment Optionally create xCAT postscript to mount Lustre client +%%% % ohpc_command if [ ${enable_lustre_client} -eq 1 ];then +%%% % ohpc_indent 5 +%%% \begin{lstlisting}[language=bash,keywords={},upquote=true,basicstyle=\footnotesize\ttfamily,literate={BOSVER}{\baseos{}}1] +%%% # Optionally create postscript to mount Lustre client at boot +%%% [sms](*\#*) echo '#!/bin/bash' > /install/postscripts/lustre-client +%%% [sms](*\#*) echo 'mount /mnt/lustre' >> /install/postscripts/lustre-client +%%% [sms](*\#*) chmod 755 /install/postscripts/lustre-client +%%% # Register script for computes +%%% [sms](*\#*) chdef compute -p postscripts=lustre-client +%%% \end{lstlisting} +%%% % ohpc_indent 0 +%%% % ohpc_command fi +%%% % end_ohpc_run +%%%
BugID:17921131:fix esp32 hal bug
#define ETS_CACHED_ADDR(addr) (addr) #ifndef __ASSEMBLER__ -#define BIT(nr) (1UL << (nr)) +#define BIT(nr) (1ULL << (nr)) #else #define BIT(nr) (1 << (nr)) #endif
BR MAC: add log
@@ -111,7 +111,8 @@ send_packet(mac_callback_t sent, void *ptr) /* Will make it send only DATA packets... for now */ packetbuf_set_attr(PACKETBUF_ATTR_FRAME_TYPE, FRAME802154_DATAFRAME); - /* printf("Sending packet of type: %s \n", get_frame_type(packetbuf_attr(PACKETBUF_ATTR_FRAME_TYPE))); */ + + LOG_INFO("br-rdc: sending packet (%u bytes)\n", packetbuf_datalen()); if(NETSTACK_FRAMER.create() < 0) { /* Failed to allocate space for headers */
change condition to check for ealier than llvm 12.0.1
@@ -468,25 +468,24 @@ ParallelRegion::Verify() * !1 distinct !{} * !2 distinct !{} * - * Parallel loop metadata prior to LLVM 12 on memory reads also implies that - * if-conversion (i.e., speculative execution within a loop iteration) - * is safe. Given an instruction reading from memory, - * IsLoadUnconditionallySafe should return whether it is safe under - * (unconditional, unpredicated) speculative execution. - * See https://bugs.llvm.org/show_bug.cgi?id=46666 and + * Parallel loop metadata prior to LLVM 12.0.1 on memory reads also implies that + * if-conversion (i.e., speculative execution within a loop iteration) is safe. + * Given an instruction reading from memory, IsLoadUnconditionallySafe should + * return whether it is safe under (unconditional, unpredicated) speculative + * execution. See https://bugs.llvm.org/show_bug.cgi?id=46666 and * https://github.com/pocl/pocl/issues/757. * - * From LLVM 12 onward parallel loop metadata does not imply if-conversion + * From LLVM 12.0.1 onward parallel loop metadata does not imply if-conversion * safety anymore. This got fixed by this change: * https://reviews.llvm.org/D103907 for LLVM 13 which also got backported to - * LLVM 12. In other words this means that before the fix, the loop vectorizer - * was not able to vectorize some kernels because they would required a huge - * runtime memory check code insertion. Leading to vectorizer to give up. With - * above fix, we can add metadata to every load. This will cause vectorizer to - * skip runtime memory check code insertion part because it indicates that - * iterations do not depend on each other. Which in turn makes vectorization - * easier. In this case using of IsLoadUnconditionallySafe parameter will be - * skipped. + * LLVM 12.0.1. In other words this means that before the fix, the loop + * vectorizer was not able to vectorize some kernels because they would required + * a huge runtime memory check code insertion. Leading to vectorizer to give up. + * With above fix, we can add metadata to every load. This will cause + * vectorizer to skip runtime memory check code insertion part because it + * indicates that iterations do not depend on each other. Which in turn makes + * vectorization easier. In this case using of IsLoadUnconditionallySafe + * parameter will be skipped. */ void ParallelRegion::AddParallelLoopMetadata( @@ -500,9 +499,9 @@ ParallelRegion::AddParallelLoopMetadata( continue; } -#ifdef LLVM_OLDER_THAN_12_0 +#if LLVM_VERSION_MAJOR < 13 && !(LLVM_VERSION_MAJOR == 12 && LLVM_VERSION_MINOR >= 0 && LLVM_VERSION_PATCH >= 1) // This check will skip insertion of metadata on loads inside conditions - // before LLVM 12. + // before LLVM 12.0.1. if (ii->mayReadFromMemory() && !IsLoadUnconditionallySafe(&*ii)) { continue; }
fix bug in getset...
@@ -595,13 +595,13 @@ protoop_arg_t get_pkt_ctx(picoquic_packet_context_t *pkt_ctx, access_key_t ak) case PKT_CTX_AK_LATEST_TIME_ACKNOWLEDGED: return pkt_ctx->latest_time_acknowledged; case PKT_CTX_AK_RETRANSMIT_NEWEST: - return (protoop_arg_t) &pkt_ctx->retransmit_newest; + return (protoop_arg_t) pkt_ctx->retransmit_newest; case PKT_CTX_AK_RETRANSMIT_OLDEST: - return (protoop_arg_t) &pkt_ctx->retransmit_oldest; + return (protoop_arg_t) pkt_ctx->retransmit_oldest; case PKT_CTX_AK_RETRANSMITTED_NEWEST: - return (protoop_arg_t) &pkt_ctx->retransmitted_newest; + return (protoop_arg_t) pkt_ctx->retransmitted_newest; case PKT_CTX_AK_RETRANSMITTED_OLDEST: - return (protoop_arg_t) &pkt_ctx->retransmitted_oldest; + return (protoop_arg_t) pkt_ctx->retransmitted_oldest; case PKT_CTX_AK_ACK_NEEDED: return pkt_ctx->ack_needed; default:
[kernel] initialize EventsManager::_T from Simulation constructor
@@ -62,6 +62,7 @@ Simulation::Simulation(SP::NonSmoothDynamicalSystem nsds, SP::TimeDiscretisation _allOSI.reset(new OSISet()); _allNSProblems.reset(new OneStepNSProblems()); _eventsManager.reset(new EventsManager(td)); // + _eventsManager->updateT(_nsds->finalT()); _nsdsChangeLogPosition = nsds->changeLog().begin(); } @@ -87,6 +88,7 @@ Simulation::Simulation(SP::TimeDiscretisation td): _allOSI.reset(new OSISet()); _allNSProblems.reset(new OneStepNSProblems()); _eventsManager.reset(new EventsManager(td)); // + _eventsManager->updateT(_nsds->finalT()); } // --- Destructor ---
Drop old badges and references to the non-existent mailing list.
@@ -5,8 +5,6 @@ OpenPrinting CUPS v2.4.2 ![Apache 2.0](https://img.shields.io/github/license/openprinting/cups) [![Build and Test](https://github.com/OpenPrinting/cups/workflows/Build%20and%20Test/badge.svg)](https://github.com/OpenPrinting/cups/actions/workflows/build.yml) [![Coverity Scan](https://img.shields.io/coverity/scan/23806)](https://scan.coverity.com/projects/openprinting-cups) -[![Codacy Badge](https://app.codacy.com/project/badge/Grade/4ea68dc02692436b82541b6f232eba66)](https://www.codacy.com/gh/OpenPrinting/cups/dashboard?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=OpenPrinting/cups&amp;utm_campaign=Badge_Grade) -[![LGTM Grade](https://img.shields.io/lgtm/grade/cpp/github/OpenPrinting/cups)](https://lgtm.com/projects/g/OpenPrinting/cups/?mode=list) Introduction @@ -62,15 +60,6 @@ the `doc/help` and `man` directories. *Please read the documentation before asking questions.* -Getting Support and Other Resources ------------------------------------ - -In addition to the OpenPrinting CUPS home page at -<https://openprinting.github.io/cups>, we provide a mailing list for CUPS users -and developers to ask questions and discuss issues at -<https://linuxfoundation.groups.io/g/printing>. - - Setting Up Printers -------------------
rgbasm(5): Clarify charmap behavior
@@ -391,16 +391,21 @@ with its corresponding argument in .Pq So %% Sc is replaced by the So % Sc character . .El .Ss Character maps -When writing text that is meant to be displayed in the Game Boy, the characters used in the source code may have a different encoding than the default of ASCII. -For example, the tiles used for uppercase letters may be placed starting at tile index 128, which makes it difficult to add text strings to the ROM. +When writing text that is meant to be displayed on the Game Boy, the characters used in the source code may need to have a different encoding than the rest of the source code. +For example, the tiles used for uppercase letters may be placed starting at tile index 128, which would make it difficult to add text strings to the ROM. .Pp -Character maps allow mapping strings up to 16 characters long to an abitrary 8-bit value: +Character maps allow mapping strings to arbitrary 8-bit values: .Bd -literal -offset indent CHARMAP "<LF>", 10 CHARMAP "&iacute", 20 CHARMAP "A", 128 .Ed -By default, a character map contains ASCII encoding. +This would result in +.Ql db \(dqAmen<LF>\(dq +being equivalent to +.Ql db 128, 109, 101, 110, 10 . +.Pp +Any characters in a string without defined mappings will be copied directly, using the source file's encoding of characters to bytes. .Pp It is possible to create multiple character maps and then switch between them as desired. This can be used to encode debug information in ASCII and use a different encoding for other purposes, for example. @@ -410,20 +415,15 @@ and it is automatically selected as the current character map from the beginning There is also a character map stack that can be used to save and restore which character map is currently active. .Bl -column "NEWCHARMAP name, basename" .It Sy Command Ta Sy Meaning -.It Ic NEWCHARMAP Ar name Ta Creates a new, empty character map called Ar name . -.It Ic NEWCHARMAP Ar name , basename Ta Creates a new character map called Ar name , No copied from character map Ar basename . +.It Ic NEWCHARMAP Ar name Ta Creates a new, empty character map called Ar name No and switches to it. +.It Ic NEWCHARMAP Ar name , basename Ta Creates a new character map called Ar name , No copied from character map Ar basename , No and switches to it. .It Ic SETCHARMAP Ar name Ta Switch to character map Ar name . .It Ic PUSHC Ta Push the current character map onto the stack. .It Ic POPC Ta Pop a character map off the stack and switch to it. .El .Pp .Sy Note: -Character maps affect all strings in the file from the point in which they are defined, until switching to a different character map. -This means that any string that the code may want to print as debug information will also be affected by it. -.Pp -.Sy Note: -The output value of a mapping can be 0. -If this happens, the assembler will treat this as the end of the string and the rest of it will be trimmed. +Modifications to a character map take effect immediately from that point onward. .Ss Other functions There are a few other functions that do various useful things: .Bl -column "DEF(symbol)"
runtime: scheduler parameter tweak
#define RUNTIME_RQ_SIZE 32 #define RUNTIME_SOFTIRQ_BUDGET 16 #define RUNTIME_MAX_TIMERS 4096 -#define RUNTIME_SCHED_POLL_ITERS 5 +#define RUNTIME_SCHED_POLL_ITERS 1 #define RUNTIME_SCHED_MIN_POLL_US 5 #define RUNTIME_WATCHDOG_US 50
parallel-libs/mfem: bump to v4.1
@@ -21,7 +21,7 @@ Name: %{pname}-%{compiler_family}-%{mpi_family}%{PROJ_DELIM} Summary: Lightweight, general, scalable C++ library for finite element methods License: LGPLv2.1 Group: %{PROJ_NAME}/parallel-libs -Version: 4.0 +Version: 4.1 Release: 1%{?dist} Source0: https://github.com/mfem/mfem/archive/v%{version}.tar.gz#/%{pname}-%{version}.tar Url: http://mfem.org
fix(layout): two inline-block widgets overlap in new line
@@ -136,6 +136,7 @@ static void LCUILayout_HandleInlineBlock( LCUI_LayoutContext ctx ) if( ctx->x - ctx->max_width >= 0.01 ) { LCUILayout_HandleCurrentLine( ctx ); ctx->current->origin_x = 0; + ctx->x += ctx->current->box.outer.width; } ctx->current->origin_y = ctx->y; if( ctx->current->box.outer.height > ctx->line_height ) {
[bsp] insert keep section .rti_fn* in GCC link file
@@ -88,6 +88,13 @@ SECTIONS __vsymtab_end = .; . = ALIGN(4); + /* section information for initial. */ + . = ALIGN(4); + __rt_init_start = .; + KEEP(*(SORT(.rti_fn*))) + __rt_init_end = .; + . = ALIGN(4); + . = ALIGN(4); _etext = .;
led: Only report auto control for supported LEDs. BRANCH=None TEST=make -j buildall Commit-Ready: Aseda Aboagye Tested-by: Aseda Aboagye
@@ -19,12 +19,16 @@ static uint32_t led_auto_control_flags = ~0x00; static int led_is_supported(enum ec_led_id led_id) { int i; + static int supported_leds = -1; + + if (supported_leds == -1) { + supported_leds = 0; for (i = 0; i < supported_led_ids_count; i++) - if (led_id == supported_led_ids[i]) - return 1; + supported_leds |= (1 << supported_led_ids[i]); + } - return 0; + return ((1 << (int)led_id) & supported_leds); } void led_auto_control(enum ec_led_id led_id, int enable) @@ -37,6 +41,9 @@ void led_auto_control(enum ec_led_id led_id, int enable) int led_auto_control_is_enabled(enum ec_led_id led_id) { + if (!led_is_supported(led_id)) + return 0; + return (led_auto_control_flags & LED_AUTO_CONTROL_FLAG(led_id)) != 0; }
NSH: Needs to include tftp.h if TFTP no disabled
#if defined(CONFIG_NET_UDP) && CONFIG_NFILE_DESCRIPTORS > 0 # include "netutils/netlib.h" +# if !defined(CONFIG_NSH_DISABLE_GET) || !defined(CONFIG_NSH_DISABLE_PUT) +# include "netutils/tftp.h" +# endif #endif #if defined(CONFIG_NET_TCP) && CONFIG_NFILE_DESCRIPTORS > 0
Add missing disconnect
@@ -1244,6 +1244,10 @@ int Client::write_streams() { reset_idle_timer(); if (auto rv = send_packet(); rv != NETWORK_ERR_OK) { + if (rv != NETWORK_ERR_SEND_BLOCKED) { + last_error_ = quic_err_transport(NGTCP2_ERR_INTERNAL); + disconnect(); + } return rv; }
Fix refcounting in lovr.data;
@@ -14,9 +14,9 @@ int l_lovrDataInit(lua_State* L) { int l_lovrDataNewTextureData(lua_State* L) { Blob* blob = luax_readblob(L, 1, "Texture"); TextureData* textureData = lovrTextureDataFromBlob(blob); + luax_pushtype(L, TextureData, textureData); lovrRelease(&blob->ref); lovrRelease(&textureData->ref); - luax_pushtype(L, TextureData, textureData); return 1; } @@ -24,9 +24,9 @@ int l_lovrDataNewAudioStream(lua_State* L) { Blob* blob = luax_readblob(L, 1, "Sound"); size_t bufferSize = luaL_optinteger(L, 2, 4096); AudioStream* stream = lovrAudioStreamCreate(blob, bufferSize); + luax_pushtype(L, AudioStream, stream); lovrRelease(&blob->ref); lovrRelease(&stream->ref); - luax_pushtype(L, AudioStream, stream); return 1; }
fix implicit conversion from wxString to const char* it is completely unnecessary and can cause compilation error with some wxWidgets versions
@@ -135,7 +135,7 @@ pnlBoardControls::pnlBoardControls(wxWindow* parent, wxWindowID id, const wxStri wxArrayString powerChoices; for (int i = -8; i <= 7; ++i) - powerChoices.push_back(wxString::From8BitData(power2unitsString(i))); + powerChoices.push_back(power2unitsString(i)); cmbCustomPowerOf10Wr = new wxChoice(pnlCustomControls, wxNewId(), wxDefaultPosition, wxDefaultSize, powerChoices, 0); cmbCustomPowerOf10Wr->SetSelection(0); sizerCustomControls->Add(cmbCustomPowerOf10Wr, 1, wxLEFT | wxRIGHT | wxALIGN_CENTER_VERTICAL, 0);
audio: Gracefully handle absence of ALC_SOFT_HRTF;
@@ -31,6 +31,7 @@ void lovrAudioInit() { lovrThrow("Unable to create OpenAL context"); } +#if ALC_SOFT_HRTF static LPALCRESETDEVICESOFT alcResetDeviceSOFT; alcResetDeviceSOFT = (LPALCRESETDEVICESOFT) alcGetProcAddress(device, "alcResetDeviceSOFT"); state.isSpatialized = alcIsExtensionPresent(device, "ALC_SOFT_HRTF"); @@ -38,6 +39,7 @@ void lovrAudioInit() { if (state.isSpatialized) { alcResetDeviceSOFT(device, (ALCint[]) { ALC_HRTF_SOFT, ALC_TRUE, 0 }); } +#endif state.device = device; state.context = context;
[hardware] Fix vertical alignment issues
@@ -26,8 +26,9 @@ module mempool // Scan chain input logic scan_enable_i, input logic scan_data_i, - input logic [NumCores-1:0] wake_up_i, - output logic scan_data_o + output logic scan_data_o, + // Wake up interface + input logic [NumCores-1:0] wake_up_i ); /*****************
.travis.yml update for conda
set -e -x if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then - # wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh; - wget https://repo.continuum.io/miniconda/Miniconda2-4.3.21-Linux-x86_64.sh -O miniconda.sh; + wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh; else - # wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh; - wget https://repo.continuum.io/miniconda/Miniconda3-4.3.21-Linux-x86_64.sh -O miniconda.sh; + wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh; fi echo $TRAVIS_PYTHON_VERSION bash miniconda.sh -b -p $HOME/miniconda export PATH="$HOME/miniconda/bin:$PATH" -# conda update --yes conda +conda update --yes conda conda install --no-update-deps --yes python="$TRAVIS_PYTHON_VERSION" pip numpy
INSTALL.md: Remove trailing space
@@ -234,8 +234,8 @@ and issue the following command. $ nmake install -The easiest way to elevate the Command Prompt is to press and hold down -both the `<CTRL>` and `<SHIFT>` keys while clicking the menu item in the task menu. +The easiest way to elevate the Command Prompt is to press and hold down both +the `<CTRL>` and `<SHIFT>` keys while clicking the menu item in the task menu. The default installation location is
pico: stub for text event
@@ -169,6 +169,10 @@ void lovrPlatformOnKeyboardEvent(keyboardCallback callback) { // } +void lovrPlatformOnTextEvent(textCallback callback) { + // todo +} + void lovrPlatformGetMousePosition(double* x, double* y) { *x = *y = 0.; }
YAML Smith: Use more C++ styled code
@@ -32,20 +32,21 @@ extern "C" { int elektraYamlsmithGet (Plugin * handle ELEKTRA_UNUSED, KeySet * returned, Key * parentKey) { auto parent = CppKey{ parentKey }; + auto keys = CppKeySet{ returned }; if (parent.getName () == "system/elektra/modules/yamlsmith") { - KeySet * contract = ksNew ( + auto contract = CppKeySet ( 30, keyNew ("system/elektra/modules/yamlsmith", KEY_VALUE, "yamlsmith plugin waits for your orders", KEY_END), keyNew ("system/elektra/modules/yamlsmith/exports", KEY_END), keyNew ("system/elektra/modules/yamlsmith/exports/get", KEY_FUNC, elektraYamlsmithGet, KEY_END), keyNew ("system/elektra/modules/yamlsmith/exports/set", KEY_FUNC, elektraYamlsmithSet, KEY_END), #include ELEKTRA_README (yamlsmith) keyNew ("system/elektra/modules/yamlsmith/infos/version", KEY_VALUE, PLUGINVERSION, KEY_END), KS_END); - ksAppend (returned, contract); - ksDel (contract); + keys.append (contract); parent.release (); + keys.release (); return ELEKTRA_PLUGIN_STATUS_SUCCESS; }
Add autokill enum.
@@ -128,6 +128,15 @@ typedef enum ANIMATING_FORWARD = 1 } e_animating; +// Caskey, Damon V. +// 2019-02-05 +typedef enum +{ + AUTOKILL_NONE = 0, + AUTOKILL_ANIMATION_COMPLETE = (1 << 0), + AUTOKILL_ATTACK_HIT = (1 << 1) +} e_autokill_state; + // Caskey, Damon V. // 2019-01-25 // @@ -142,7 +151,7 @@ typedef enum } e_update_mark; // Caskey, Damon V. -// 2019-01-25 +// 2019-02-04 // // Flags for legacy bomb projectiles. typedef enum @@ -2479,7 +2488,6 @@ typedef struct entity //------------------------- a lot of flags --------------------------- bool arrowon; // Display arrow icon (parrow<player>) ~~ - bool autokill; // Kill on end animation. ~~ bool blink; // Toggle flash effect. ~~ bool boss; // I'm the BOSS playa, I'm the reason that you lost! ~~ bool blocking; // In blocking state. ~~ @@ -2504,6 +2512,7 @@ typedef struct entity e_animating animating; // Animation status (none, forward, reverse). ~~ e_attacking_state attacking; // ~~ + e_autokill_state autokill; // Kill entity on condition. ~~ e_duck_state ducking; // In or transitioning to/from duck. ~~ e_edge_state edge; // At an edge (unbalanced). e_direction normaldamageflipdir; // Used to reset backpain direction. ~~
make the link for rocr-rntime be a relative so all the repos can be copied to a new location
@@ -217,13 +217,13 @@ if [[ "$AOMP_VERSION" == "13.1" ]] || [[ $AOMP_MAJOR_VERSION -gt 13 ]] ; then # build_rocr.sh expects directory rocr-runtime which is a subdir of hsa-runtime # Link in the open source hsa-runtime as "src" directory if [ -d $AOMP_REPOS/hsa-runtime ] ; then - if [ ! -L $AOMP_REPOS/rocr-runtime/src ] ; then echo "Fixing rocr-runtime with correct link to hsa-runtime/opensrc/hsa-runtime src" + echo mkdir -p $AOMP_REPOS/rocr-runtime mkdir -p $AOMP_REPOS/rocr-runtime + echo cd $AOMP_REPOS/rocr-runtime cd $AOMP_REPOS/rocr-runtime - echo ln -sf $AOMP_REPOS/hsa-runtime/opensrc/hsa-runtime src - ln -sf $AOMP_REPOS/hsa-runtime/opensrc/hsa-runtime src - fi + echo ln -sf ../hsa-runtime/opensrc/hsa-runtime src + ln -sf ../hsa-runtime/opensrc/hsa-runtime src fi exit $rc fi
Change some comments.
/** * Data format - * State is encoded as a string of unsigned bytes. * * Types: * - * Byte 0 to 200: small integer byte - 100 + * Byte 0 to 200: small integer with value (byte - 100) * Byte 201: Nil * Byte 202: True * Byte 203: False
Fix some documentation mistakes
@@ -435,8 +435,8 @@ Functions documentation squared distance between two vectors Parameters: - | *[in]* **mat** vector1 - | *[in]* **row1** vector2 + | *[in]* **v1** vector1 + | *[in]* **v2** vector2 Returns: | squared distance (distance * distance) @@ -446,8 +446,8 @@ Functions documentation distance between two vectors Parameters: - | *[in]* **mat** vector1 - | *[in]* **row1** vector2 + | *[in]* **v1** vector1 + | *[in]* **v2** vector2 Returns: | distance @@ -475,7 +475,7 @@ Functions documentation possible orthogonal/perpendicular vector Parameters: - | *[in]* **mat** vector + | *[in]* **v** vector | *[out]* **dest** orthogonal/perpendicular vector .. c:function:: void glm_vec3_clamp(vec3 v, float minVal, float maxVal)
Update readme with installer and examples info in the abstract section.
@@ -21,6 +21,8 @@ const { sum } = require('sum.py'); sum(3, 4); // 7 ``` +Use the [installer](https://github.com/metacall/install) and try [some examples](https://github.com/metacall/beautifulsoup-express-example). + <div align="center"> <a href="https://medium.com/@metacall/call-functions-methods-or-procedures-between-programming-languages-with-metacall-58cfece35d7" target="_blank"><img src="https://raw.githubusercontent.com/metacall/core/master/deploy/images/overview.png" alt="M E T A C A L L" style="max-width:100%; margin: 0 auto;" width="350" height="auto"></a> </div>
Fixing code style.
@@ -658,8 +658,8 @@ nxt_router_new_port_handler(nxt_task_t *task, nxt_port_recv_msg_t *msg) return; } - if (msg->u.new_port == NULL || - msg->u.new_port->type != NXT_PROCESS_WORKER) + if (msg->u.new_port == NULL + || msg->u.new_port->type != NXT_PROCESS_WORKER) { msg->port_msg.type = _NXT_PORT_MSG_RPC_ERROR; } @@ -2798,9 +2798,9 @@ nxt_router_app_port_release(nxt_task_t *task, nxt_port_t *port, port->app_pending_responses -= request_failed + got_response; port->app_responses += got_response; - if (app->live != 0 && - port->pair[1] != -1 && - (app->max_pending_responses == 0 + if (app->live != 0 + && port->pair[1] != -1 + && (app->max_pending_responses == 0 || port->app_pending_responses < app->max_pending_responses)) { if (port->app_link.next == NULL) { @@ -2823,9 +2823,9 @@ nxt_router_app_port_release(nxt_task_t *task, nxt_port_t *port, } } - if (app->live != 0 && - !nxt_queue_is_empty(&app->ports) && - !nxt_queue_is_empty(&app->requests)) + if (app->live != 0 + && !nxt_queue_is_empty(&app->ports) + && !nxt_queue_is_empty(&app->requests)) { lnk = nxt_queue_first(&app->requests); nxt_queue_remove(lnk); @@ -2928,9 +2928,9 @@ nxt_router_app_port_close(nxt_task_t *task, nxt_port_t *port) app->workers--; - start_worker = app->live != 0 && - nxt_queue_is_empty(&app->requests) == 0 && - app->workers + app->pending_workers < app->max_workers; + start_worker = app->live != 0 + && nxt_queue_is_empty(&app->requests) == 0 + && app->workers + app->pending_workers < app->max_workers; if (start_worker) { app->pending_workers++; @@ -3643,11 +3643,11 @@ nxt_php_prepare_msg(nxt_task_t *task, nxt_app_request_t *r, RC(nxt_app_msg_write_size(task, wmsg, h->parsed_content_length)); RC(nxt_app_msg_write_size(task, wmsg, r->body.preread_size)); - method_is_post = h->method.length == 4 && - h->method.start[0] == 'P' && - h->method.start[1] == 'O' && - h->method.start[2] == 'S' && - h->method.start[3] == 'T'; + method_is_post = h->method.length == 4 + && h->method.start[0] == 'P' + && h->method.start[1] == 'O' + && h->method.start[2] == 'S' + && h->method.start[3] == 'T'; if (method_is_post) { for(b = r->body.buf; b != NULL; b = b->next) {
Fix Valgrind warning in dill_pollset_poll: 'epoll_ctl(event) points to unitialized bytes'
@@ -109,6 +109,9 @@ int dill_pollset_in(struct dill_fdclause *fdcl, int id, int fd) { add it to the pollset. */ if(dill_slow(!fdi->cached)) { struct epoll_event ev; +#ifdef DILL_VALGRIND + ev.data.u64 = 0; //Keep Valgrind happy +#endif ev.data.fd = fd; ev.events = EPOLLIN; int rc = epoll_ctl(ctx->efd, EPOLL_CTL_ADD, fd, &ev); @@ -142,6 +145,9 @@ int dill_pollset_out(struct dill_fdclause *fdcl, int id, int fd) { add it to pollset. */ if(dill_slow(!fdi->cached)) { struct epoll_event ev; +#ifdef DILL_VALGRIND + ev.data.u64 = 0; //Keep Valgrind happy +#endif ev.data.fd = fd; ev.events = EPOLLOUT; int rc = epoll_ctl(ctx->efd, EPOLL_CTL_ADD, fd, &ev); @@ -176,6 +182,9 @@ int dill_pollset_clean(int fd) { /* Remove the file descriptor from the pollset if it is still there. */ if(fdi->currevs) { struct epoll_event ev; +#ifdef DILL_VALGRIND + ev.data.u64 = 0; //Keep Valgrind happy +#endif ev.data.fd = fd; ev.events = 0; int rc = epoll_ctl(ctx->efd, EPOLL_CTL_DEL, fd, &ev); @@ -206,6 +215,7 @@ int dill_pollset_poll(int timeout) { int fd = ctx->changelist - 1; struct dill_fdinfo *fdi = &ctx->fdinfos[fd]; struct epoll_event ev; + ev.data.u64 = 0; //Keep Valgrind happy ev.data.fd = fd; ev.events = 0; if(fdi->in) @@ -258,4 +268,3 @@ int dill_pollset_poll(int timeout) { /* Return 0 on timeout or 1 if at least one coroutine was resumed. */ return numevs > 0 ? 1 : 0; } -
Fix Nano S freeze
@@ -2756,11 +2756,11 @@ __attribute__((section(".boot"))) int main(int arg0) { dataAllowed = N_storage.dataAllowed; contractDetails = N_storage.contractDetails; - ui_idle(); - USB_power(0); USB_power(1); + ui_idle(); + #ifdef HAVE_BLE BLE_power(0, NULL); BLE_power(1, "Nano X");
UT framework: fix misspelled variable name
@@ -576,7 +576,7 @@ class UnitTestsSourcesGenerator(object): delimiter = "" try: if "{" in ret[-1] or "{" in ret[-2]: - delimter = "{" + delimiter = "{" else: delimiter = ";" except IndexError:
remove `-fbuiltin-module-map` in the (windows)mingw environment There is no builtin module for clang in the mingw environment, so remove `-fbuiltin-module-map` in the mingw environment will make the compilation work.
@@ -489,8 +489,12 @@ function get_builtinmodulemapflag(target) if builtinmodulemapflag == nil then local compinst = target:compiler("cxx") if compinst:has_flags("-fbuiltin-module-map", "cxxflags", {flagskey = "clang_builtin_module_map"}) then + if is_plat("windows", "mingw") then + builtinmodulemapflag = "" + else builtinmodulemapflag = "-fbuiltin-module-map" end + end assert(builtinmodulemapflag, "compiler(clang): does not support c++ module!") _g.builtinmodulemapflag = builtinmodulemapflag or false end
Leaf: Use capital letter after `@retval` keyword
@@ -138,8 +138,8 @@ LeafDelegate::LeafDelegate (CppKeySet config ELEKTRA_UNUSED) * * @param keys This parameter specifies the key set this function converts. * - * @retval ELEKTRA_PLUGIN_STATUS_SUCCESS if the plugin converted any value in the given key set - * @retval ELEKTRA_PLUGIN_STATUS_NO_UPDATE if the plugin did not update `keys` + * @retval ELEKTRA_PLUGIN_STATUS_SUCCESS If the plugin converted any value in the given key set + * @retval ELEKTRA_PLUGIN_STATUS_NO_UPDATE If the plugin did not update `keys` */ int LeafDelegate::convertToDirectories (CppKeySet & keys) { @@ -163,8 +163,8 @@ int LeafDelegate::convertToDirectories (CppKeySet & keys) * * @param keys This parameter specifies the key set this function converts. * - * @retval ELEKTRA_PLUGIN_STATUS_SUCCESS if the plugin converted any value in the given key set - * @retval ELEKTRA_PLUGIN_STATUS_NO_UPDATE if the plugin did not update `keys` + * @retval ELEKTRA_PLUGIN_STATUS_SUCCESS If the plugin converted any value in the given key set + * @retval ELEKTRA_PLUGIN_STATUS_NO_UPDATE If the plugin did not update `keys` */ int LeafDelegate::convertToLeaves (CppKeySet & keys) {
Fix errors check and signs
@@ -96,10 +96,12 @@ int xdag_mem_init(size_t size) } size_t wrote = snprintf(tfile_node->tmpfile, PATH_MAX,"%s%s", g_tmpfile_path, TMPFILE_TEMPLATE); - if (wrote < 0){ + if ((ssize_t)wrote < 0){ xdag_fatal("Error: Fail to write tmpfile"); free(tfile_node); return -1; + } else if (wrote == PATH_MAX){ + xdag_fatal("Error: Temporary file path exceed the max length that is %d characters", PATH_MAX); } tfile_node->fd = mkstemp(tfile_node->tmpfile); if (tfile_node->fd < 0) { @@ -135,8 +137,8 @@ void *xdag_malloc(size_t size) { uint8_t *res; - if (size <= 0) { - return 0; + if (!size) { + return NULL; } if (!g_use_tmpfile) {
filter: allow case-insensitive filter name
@@ -316,7 +316,7 @@ struct flb_filter_instance *flb_filter_new(struct flb_config *config, mk_list_foreach(head, &config->filter_plugins) { plugin = mk_list_entry(head, struct flb_filter_plugin, _head); - if (strcmp(plugin->name, filter) == 0) { + if (strcasecmp(plugin->name, filter) == 0) { break; } plugin = NULL;
fixed ksceKernelFindClassByName
@@ -282,7 +282,7 @@ SceClass *ksceKernelGetUidMemBlockClass(void); int ksceKernelCreateClass(SceClass *cls, const char *name, void *uidclass, size_t itemsize, SceClassCallback create, SceClassCallback destroy); int ksceKernelDeleteUserUid(SceUID pid, SceUID user_uid); int ksceKernelDeleteUid(SceUID uid); -int ksceKernelFindClassByName(const char name, SceClass **cls); +int ksceKernelFindClassByName(const char *name, SceClass **cls); int ksceKernelSwitchVmaForPid(SceUID pid);
jni: avoid warning see
@@ -49,7 +49,8 @@ if (ADDTESTING_PHASE) list (FIND BINDINGS "jna" FINDEX) find_program (MAVEN_EXECUTABLE mvn) - if (ENABLE_BROKEN_TESTS AND BUILD_TESTING AND FINDEX GREATER -1 AND MAVEN_EXECUTABLE) + if (ENABLE_BROKEN_TESTS) + if (BUILD_TESTING AND FINDEX GREATER -1 AND MAVEN_EXECUTABLE) add_plugintest(jni MEMLEAK) include_directories (${CMAKE_CURRENT_BINARY_DIR}) @@ -72,4 +73,5 @@ if (ADDTESTING_PHASE) else () message (WARNING "jna bindings are required for testing, test deactivated") endif () + endif (ENABLE_BROKEN_TESTS) endif ()
dm: update the vsbl loader to use new interface to set the state of guest BSP (entries, general registers etc) when DM load vsbl. Acked-by: Eddie Dong
@@ -247,13 +247,8 @@ acrn_sw_load_vsbl(struct vmctx *ctx) int ret; struct e820_entry *e820; struct vsbl_para *vsbl_para; - uint64_t *vsbl_entry = - (uint64_t *)(ctx->baseaddr + VSBL_ENTRY_OFF(ctx)); - uint64_t *cfg_offset = - (uint64_t *)(ctx->baseaddr + GUEST_CFG_OFFSET); init_cmos_vrpmb(ctx); - *cfg_offset = ctx->lowmem; vsbl_para = (struct vsbl_para *) (ctx->baseaddr + CONFIGPAGE_OFF(ctx)); @@ -297,12 +292,24 @@ acrn_sw_load_vsbl(struct vmctx *ctx) vsbl_para->e820_entries = add_e820_entry(e820, vsbl_para->e820_entries, vsbl_para->vsbl_address, vsbl_size, E820_TYPE_RESERVED); - - *vsbl_entry = VSBL_TOP(ctx) - 16; /* reset vector */ - printf("SW_LOAD: vsbl_entry 0x%lx\n", *vsbl_entry); + printf("SW_LOAD: vsbl_entry 0x%lx\n", VSBL_TOP(ctx) - 16); vsbl_para->boot_device_address = boot_blk_bdf; vsbl_para->trusty_enabled = trusty_enabled; + /* set guest bsp state. Will call hypercall set bsp state + * after bsp is created. + */ + memset(&ctx->bsp_regs, 0, sizeof( struct acrn_set_vcpu_regs)); + ctx->bsp_regs.vcpu_id = 0; + + /* CR0_ET | CR0_NE */ + ctx->bsp_regs.vcpu_regs.cr0 = 0x30U; + ctx->bsp_regs.vcpu_regs.cs_ar = 0x009FU; + ctx->bsp_regs.vcpu_regs.cs_sel = 0xF000U; + ctx->bsp_regs.vcpu_regs.cs_base = (VSBL_TOP(ctx) - 16) &0xFFFF0000UL; + ctx->bsp_regs.vcpu_regs.rip = (VSBL_TOP(ctx) - 16) & 0xFFFFUL; + ctx->bsp_regs.vcpu_regs.gprs.rsi = CONFIGPAGE_OFF(ctx); + return 0; }
Add ksceKernelGetTLSAddr nid
@@ -3128,6 +3128,7 @@ modules: ksceKernelGetProcessIdFromTLS: 0xFA54D49A ksceKernelGetSystemTimeLow: 0x47F6DE49 ksceKernelGetSystemTimeWide: 0xF4EE4FA9 + ksceKernelGetTLSAddr: 0xE938FB20 ksceKernelGetThreadCpuAffinityMask: 0x83DC703D ksceKernelGetThreadCpuRegisters: 0x5022689D ksceKernelGetThreadCurrentPriority: 0x01414F0B
Cleanup leftover jenkins command
@@ -26,7 +26,6 @@ pipeline { steps { lock(resource: "Pandas", inversePrecedence: true, quantity:1){ timeout(time: 60, unit: 'MINUTES') { - sh "docker stop panda-test || true && docker rm panda-test || true" sh "docker run --name ${env.DOCKER_NAME} --privileged --volume /dev/bus/usb:/dev/bus/usb --volume /var/run/dbus:/var/run/dbus --net host ${env.DOCKER_IMAGE_TAG} bash -c 'cd /tmp/panda; ./run_automated_tests.sh '" } }
Use utils/create-cluster from any dir
#!/bin/bash +SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" + # Settings -BIN_PATH="../../src/" +BIN_PATH="$SCRIPT_DIR/../../src/" CLUSTER_HOST=127.0.0.1 PORT=30000 TIMEOUT=2000
doc: add markdown for host execrciser interleave input
@@ -17,6 +17,11 @@ Options: number of CLs per request{cl_1, cl_2, cl_3, cl_4} --ccont BOOLEAN=0 Configures test rollover or test termination -d,--delay BOOLEAN=0 Enables random delay insertion between requests + --interleave UINT=0 Interleave requests pattern to use in throughput mode {0, 1, 2} + indicating one of the following series of read/write requests: + 0: rd-wr-rd-wr + 1: rd-rd-wr-wr + 2: rd-rd-rd-rd-wr-wr-wr-w Subcommands: lpbk run simple loopback test @@ -100,6 +105,14 @@ Configures test rollover or test termination mode. Enables random delay insertion between requests. +`--interleave` + +Enables interleave requests in throughput mode. +Value:3'b000-Rd,Wr,Rd,Wr +Value:3'b001-Rd,Rd,Wr,Wr +Value:3'b010-Rd,Rd,Rd,Rd,Wr,Wr,Wr,Wr +Value:3'b011-Not supported + ## EXAMPLES ## This command exerciser Loopback afu:
fix(api_hlfabric.c): According to "load_existed_wallet" to determine whether to execute keyCreat
@@ -319,6 +319,7 @@ BOAT_RESULT BoatHlfabricWalletSetAccountInfo(BoatHlfabricWallet *wallet_ptr, /* prikey context assignment */ // if (prikeyCtx_config.prikey_content.field_ptr != NULL) + if(prikeyCtx_config.load_existed_wallet == false) { if (BOAT_SUCCESS != BoatPort_keyCreate(&prikeyCtx_config, &wallet_ptr->account_info.prikeyCtx)) { @@ -773,9 +774,7 @@ BoatHlfabricWallet *BoatHlfabricWalletInit(const BoatHlfabricWalletConfig *confi // wallet_ptr->network_info.endorser[i].nodeUrl = NULL; // wallet_ptr->network_info.endorser[i].hostName = NULL; // } - wallet_ptr->http2Context_ptr = NULL; - /* account_info assignment */ result += BoatHlfabricWalletSetAccountInfo(wallet_ptr, config_ptr->accountPriKey_config, config_ptr->accountCertContent);
Commented out current free detector approach until better solution is found.
@@ -307,6 +307,7 @@ TEST_F(metacall_test, DefaultConstructor) * for now, this would be sufficient to catch most of the errors. */ + /* void *freed_args[] = { (void *)metacall_value_create_long(3L), (void *)metacall_value_create_long(5L) @@ -316,6 +317,7 @@ TEST_F(metacall_test, DefaultConstructor) metacall_value_destroy(freed_args[1]); EXPECT_EQ((void *)NULL, (void *)metacallfv_s(metacall_function("multiply"), freed_args, 2)); + */ #endif } #endif /* OPTION_BUILD_LOADERS_PY */
Tweak math/nan docstring
@@ -375,7 +375,7 @@ void janet_lib_math(JanetTable *env) { JANET_CORE_DEF(env, "math/int-max", janet_wrap_number(JANET_INTMAX_DOUBLE), "The maximum contiguous integer represtenable by a double (-(2^53))"); #ifdef NAN - JANET_CORE_DEF(env, "math/nan", janet_wrap_number(NAN), "Not a number (IEEE-754 NaN"); + JANET_CORE_DEF(env, "math/nan", janet_wrap_number(NAN), "Not a number (IEEE-754 NaN)"); #else JANET_CORE_DEF(env, "math/nan", janet_wrap_number(0.0 / 0.0), "Not a number (IEEE-754 NaN)"); #endif
Android: Track split of matrix and kalman libraries
LOCAL_PATH := $(call my-dir) -ifneq ($(TARGET_SURVIVE_MATH_BACKEND),) - SURVIVE_MATH_BACKEND := $(TARGET_SURVIVE_MATH_BACKEND) -else - SURVIVE_MATH_BACKEND := eigen -endif - COMMON_CFLAGS := \ -DGIT_VERSION=\"$(shell git -C $(LOCAL_PATH) describe --dirty)\" \ -DBUILD_LH1_SUPPORT \ @@ -27,10 +21,6 @@ COMMON_C_INCLUDES := \ $(LOCAL_PATH)/include/libsurvive \ $(LOCAL_PATH)/redist -ifeq ($(SURVIVE_MATH_BACKEND),eigen) - COMMON_CFLAGS += -DUSE_EIGEN -endif - include $(CLEAR_VARS) LOCAL_MODULE := libsurvive LOCAL_MODULE_CLASS := SHARED_LIBRARIES @@ -42,6 +32,14 @@ LOCAL_EXPORT_C_INCLUDE_DIRS := \ $(LOCAL_PATH)/include \ $(LOCAL_PATH)/redist +LOCAL_STATIC_LIBRARIES := \ + libcnkalman \ + libcnmatrix + +LOCAL_EXPORT_STATIC_LIBRARY_HEADERS := \ + libcnkalman \ + libcnmatrix + LOCAL_SHARED_LIBRARIES := \ libusb \ libutils \ @@ -69,7 +67,6 @@ LOCAL_SRC_FILES := \ src/survive_default_devices.c \ src/survive_disambiguator.c \ src/survive_driverman.c \ - src/survive_kalman.c \ src/survive_kalman_lighthouses.c \ src/survive_kalman_tracker.c \ src/survive_optimizer.c \ @@ -83,13 +80,6 @@ LOCAL_SRC_FILES := \ src/survive_sensor_activations.c \ src/survive_str.c -ifeq ($(SURVIVE_MATH_BACKEND),eigen) - LOCAL_HEADER_LIBRARIES := libeigen - LOCAL_SRC_FILES += \ - redist/sv_matrix.c \ - redist/sv_matrix.eigen.cpp -endif - ifneq ($(TARGET_SURVIVE_CONFIG_PATH),) LOCAL_CFLAGS += -DSURVIVE_CONFIG_PATH=\"$(TARGET_SURVIVE_CONFIG_PATH)\" endif
Output bin dump to correct location
@@ -215,9 +215,9 @@ if __name__ == '__main__': dest = str(args.file).replace('.dfu', '') filename = f"{dest}-{target_id}-{address}.bin" - if pathlib.Path(dest).is_file() and not args.force: + if pathlib.Path(filename).is_file() and not args.force: raise parser.error(f'Existing output file "{filename}", use --force to overwrite!') print(f"Dumping image at {address} to {filename} ({len(data)} bytes)") - open(dest, 'wb').write(data) + open(filename, 'wb').write(data)
Property: fix intermittent test failure. The reduction in the cache flush threshold in caused the stochastic test to fail with noticeable probability. Revert that part of the change. Also add a comment to help avoid this in future.
#include "crypto/sparse_array.h" #include "property_local.h" -/* The number of elements in the query cache before we initiate a flush */ -#define IMPL_CACHE_FLUSH_THRESHOLD 50 +/* + * The number of elements in the query cache before we initiate a flush. + * If reducing this, also ensure the stochastic test in test/property_test.c + * isn't likely to fail. + */ +#define IMPL_CACHE_FLUSH_THRESHOLD 500 typedef struct { void *method;
doc: apply suggestions for keyname decision
@@ -22,7 +22,7 @@ The question now is, which representations should be used by `libelektra-core` a ## Assumptions -- In most cases the escaped name is used for developer convenience not, because of actual requirements. +- In most cases the escaped name is used for developer convenience and not because of actual requirements. - The most common requirement for using the escaped name is UI: reading names from or displaying them in a user interface (e.g., `kdb` CLI) ## Considered Alternatives @@ -44,7 +44,7 @@ Similarly, iterating over the individual parts of a name (and/or manipulating th ### Only unescaped name -The unescaped name contains zero bytes. +The unescaped name contains zero-bytes (`\0`). It therefore must be represented as a pointer and a size. This can make for less convenient API, but there are mitigation strategies using additional types. @@ -72,7 +72,7 @@ Comparisons are exactly the same, just with an additional namespace byte compari ### Both escaped and unescaped name -To combine the advantages of escaped and unescaped name, both could be used. +The previous approach used both to combine the advantages of escaped and unescaped name. The API could largely rely on the escaped name, while e.g., comparisons can use the unescaped name.
ixfr-out, fix to not log nonexisting files deleted when cleaning up.
@@ -1035,13 +1035,16 @@ static int ixfr_file_exists(const char* zfile, int file_num) } /* unlink an ixfr file */ -static int ixfr_unlink_it(struct zone* zone, const char* zfile, int file_num) +static int ixfr_unlink_it(struct zone* zone, const char* zfile, int file_num, + int ignore_enoent) { char ixfrfile[1024+24]; make_ixfr_name(ixfrfile, sizeof(ixfrfile), zfile, file_num); VERBOSITY(3, (LOG_INFO, "delete zone %s IXFR data file %s", zone->opts->name, ixfrfile)); if(unlink(ixfrfile) < 0) { + if(ignore_enoent && errno == ENOENT) + return 0; log_msg(LOG_ERR, "error to delete file %s: %s", ixfrfile, strerror(errno)); return 0; @@ -1057,7 +1060,7 @@ static void ixfr_delete_rest_files(struct zone* zone, struct ixfr_data* from, while(data && (struct rbnode*)data != RBTREE_NULL && data->file_num == 0) { if(data->file_num != 0) { - (void)ixfr_unlink_it(zone, zfile, data->file_num); + (void)ixfr_unlink_it(zone, zfile, data->file_num, 0); data->file_num = 0; } data = (struct ixfr_data*)rbtree_previous(&data->node); @@ -1071,7 +1074,7 @@ static void ixfr_delete_superfluous_files(struct zone* zone, const char* zfile, int i = dest_num_files + 1; if(!ixfr_file_exists(zfile, i)) return; - while(ixfr_unlink_it(zone, zfile, i)) { + while(ixfr_unlink_it(zone, zfile, i, 1)) { i++; } } @@ -1115,7 +1118,7 @@ static int ixfr_rename_files(struct zone* zone, const char* zfile, /* if there is an existing file, delete it */ if(ixfr_file_exists(zfile, destnum)) { - (void)ixfr_unlink_it(zone, zfile, destnum); + (void)ixfr_unlink_it(zone, zfile, destnum, 0); } if(!ixfr_rename_it(zone, zfile, data->file_num, destnum)) {
PoC of SQLite3 building for Java
@@ -22,6 +22,14 @@ add_library( # Sets the name of the library. # Sets the library as a shared library. SHARED) +# Sqlite3 +target_sources (crypto + PUBLIC + + src/main/cpp/core/vendor/sqlite3/sqlite3.h + src/main/cpp/core/vendor/sqlite3/sqlite3.c + ) + # Support target_sources (crypto PUBLIC @@ -378,6 +386,7 @@ include_directories(src/main/cpp/core/bitcoin) include_directories(src/main/cpp/core/bcash) include_directories(src/main/cpp/core/ethereum) include_directories(src/main/cpp/core/secp256k1) +include_directories(src/main/cpp/core/vendor/sqlite3) include_directories(src/main/cpp/core/crypto) # Searches for a specified prebuilt library and stores the path as a
add fflush()
@@ -74,6 +74,7 @@ debug_printf_clean(const char *format, ...) { va_end(ap); fprintf(debug_target, "%s", charbuf); + fflush(debug_target); } void @@ -102,6 +103,7 @@ debug_printf(const char *format, ...) { va_end(ap); fprintf(debug_target, "[P][%u.%03u] %s", (unsigned int) time_delta.tv_sec, (unsigned int) time_delta.tv_usec / 1000, charbuf); + fflush(debug_target); } void @@ -131,6 +133,7 @@ debug_printf_stack(const char *format, ...) va_end(ap); fprintf(debug_target, "[S][%u.%03u] %s", (unsigned int) time_delta.tv_sec, (unsigned int) time_delta.tv_usec / 1000, charbuf); + fflush(debug_target); } static void
check compatibility of trajectory
@@ -283,6 +283,11 @@ int main_pics(int argc, char* argv[]) if (!md_check_compat(DIMS, ~(MD_BIT(MAPS_DIM)|FFT_FLAGS), img_dims, map_dims)) error("Dimensions of image and sensitivities do not match!\n"); + if ((NULL != traj_file) && (!md_check_compat(DIMS, ~0, ksp_dims, traj_dims))) + error("Dimensions of data and trajectory do not match!\n"); + + + assert(1 == ksp_dims[MAPS_DIM]);