message
stringlengths
6
474
diff
stringlengths
8
5.22k
Update data upload fix for WorkerThread
@@ -148,7 +148,7 @@ namespace PAL_NS_BEGIN { const auto itemPtr = self->m_timerQueue.front(); self->m_timerQueue.pop_front(); itemPtr->TargetTime = now + MAX_FUTURE_DELTA_MS; - self->queue(itemPtr); + self->Queue(itemPtr); continue; } // value used for sleep in case if m_queue ends up being empty
linux/pt: use --linux_perf_ignore_above in PT
@@ -118,6 +118,10 @@ __attribute__((hot)) inline static void perf_ptAnalyzePkt(run_t* run, struct pt_ return; } + if (ip >= run->global->linux.dynamicCutOffAddr) { + return; + } + ip &= _HF_PERF_BITMAP_BITSZ_MASK; register uint8_t prev = ATOMIC_BTS(run->global->feedback.feedbackMap->bbMapPc, ip); if (!prev) {
docs: add chainmaker official website
+ [FISCO BCOS Github](https://github.com/FISCO-BCOS) + [Hyperledger Fabric](https://www.hyperledger.org/use/fabric) + [Hyperledger Fabric Docs](https://hyperledger-fabric.readthedocs.io/) ++ [ChainMaker](https://chainmaker.org.cn/) # Supported Module List
Test: Remove unnecessary CMake code
@@ -41,20 +41,7 @@ if (ENABLE_TESTING) add_subdirectory (${googletest_SOURCE_DIR} ${googletest_BINARY_DIR} EXCLUDE_FROM_ALL) - # Old versions of Google Test do not include Google Mock - if (TARGET gmock) - set_property (TARGET gmock - PROPERTY COMPILE_FLAGS - "-Wno-undef -Wno-missing-field-initializers") - set_property (TARGET gmock_main - PROPERTY COMPILE_FLAGS - "-Wno-undef") - endif (TARGET gmock) - set_property (TARGET gtest - PROPERTY COMPILE_FLAGS - "-Wno-undef -Wno-missing-field-initializers") - set_property (TARGET gtest_main PROPERTY COMPILE_FLAGS "-Wno-undef") endif (ENABLE_TESTING)
Increased SERV.RTICKS value type (unsigned long -> unsigned long long)
@@ -1589,7 +1589,7 @@ bool CResource::r_WriteVal( LPCTSTR pszKey, CGString & sVal, CTextConsole * pSrc case RC_RTICKS: { if ( pszKey[6] != '.' ) - sVal.FormatUVal(static_cast<unsigned long>(CGTime::GetCurrentTime().GetTime())); + sVal.FormatULLVal(static_cast<UINT64>(CGTime::GetCurrentTime().GetTime())); else { pszKey += 6; @@ -1609,7 +1609,7 @@ bool CResource::r_WriteVal( LPCTSTR pszKey, CGString & sVal, CTextConsole * pSrc if ( datetime.GetTime() == -1 ) sVal.FormatVal(-1); else - sVal.FormatUVal(static_cast<unsigned long>(datetime.GetTime())); + sVal.FormatULLVal(static_cast<UINT64>(datetime.GetTime())); } else if ( !strnicmp("FORMAT", pszKey, 6) ) { @@ -1623,7 +1623,6 @@ bool CResource::r_WriteVal( LPCTSTR pszKey, CGString & sVal, CTextConsole * pSrc return false; time_t lTime = Exp_GetVal(ppVal[0]); - CGTime datetime(lTime); sVal = datetime.Format(iQty > 1 ? ppVal[1] : NULL); }
devif: adding control message to the solarflare interface
@@ -27,5 +27,7 @@ interface sfn5122f_devif "sfn5122f devif communication interface" { rpc register_region(in uint16 qid, in cap reg, out uint64 buftbl_id, out errval err); rpc deregister_region(in uint64 buftbl_id, in uint64 size, out errval err); + rpc control(in uint64 req, in uint64 arg, out uint64 res, out errval msgerr); + message interrupt(uint16 qid); };
gstreamer1.0-plugins-good: enable rpicamsrc plugin enable the plugin when vc4graphics is not on machine features as it needs userland.
@@ -4,3 +4,5 @@ SRC_URI_append_rpi = " file://0001-rpicamsrc-add-vchostif-library-as-it-is-requi EXTRA_OEMESON_remove_rpi = "-Drpicamsrc=disabled" PACKAGECONFIG[rpi] = "-Drpicamsrc=enabled,-Drpicamsrc=disabled,userland" + +PACKAGECONFIG_append_rpi = "${@bb.utils.contains('MACHINE_FEATURES', 'vc4graphics', '', ' rpi', d)}"
fix cpp include bug
#include "approx_calcer.h" #include "approx_calcer_helpers.h" #include "approx_updater_helpers.h" -#include "build_subset_in_leaf.cpp" +#include "build_subset_in_leaf.h" #include "fold.h" #include "greedy_tensor_search.h" #include "index_calcer.h"
adlrvpp_mchp1521: Disable commands to create ROM space BRANCH=None TEST=buildall
#include "adlrvp.h" +#undef CONFIG_CMD_ADC +#undef CONFIG_CMD_APTHROTTLE +#undef CONFIG_CMD_BATTFAKE + /* * Macros for GPIO signals used in common code that don't match the * schematic names. Signal names in gpio.inc match the schematic and are
increasing maximum possible heap size
/// Amount of virtual space for malloc #ifdef __x86_64__ -# define HEAP_REGION (3500UL * 1024 * 1024) /* 2GB */ +# define HEAP_REGION (32UL * 1024UL * 1024 * 1024) /* 32GB */ #else # define HEAP_REGION (512UL * 1024 * 1024) /* 512MB */ #endif @@ -118,12 +118,16 @@ errval_t morecore_init(size_t alignment) #endif morecore_flags |= (alignment == LARGE_PAGE_SIZE ? VREGION_FLAGS_LARGE : 0); + /* put the alignment to 4G to force the heap to start > 4G */ err = vspace_mmu_aware_init_aligned(&state->mmu_state, NULL, HEAP_REGION, - alignment, morecore_flags); + (4UL << 30), morecore_flags); if (err_is_fail(err)) { return err_push(err, LIB_ERR_VSPACE_MMU_AWARE_INIT); } + /* overwrite alignment field in vspace_mmu_aware state */ + state->mmu_state.alignment = alignment; + sys_morecore_alloc = morecore_alloc; sys_morecore_free = morecore_free;
Poll manager: raise aps confirm timeout to 60 seconds
@@ -157,7 +157,7 @@ void PollManager::pollTimerFired() { if (pollState == StateWait) { - DBG_Printf(DBG_INFO, "timout on poll APS confirm\n"); + DBG_Printf(DBG_INFO, "timeout on poll APS confirm\n"); pollState = StateIdle; } @@ -419,7 +419,7 @@ void PollManager::pollTimerFired() DBG_Assert(plugin->tasks.back().taskType == TaskReadAttributes); apsReqId = plugin->tasks.back().req.id(); dstAddr = pitem.address; - timer->start(20 * 1000); // wait for confirm + timer->start(60 * 1000); // wait for confirm suffix = nullptr; // clear DBG_Printf(DBG_INFO_L2, "Poll APS request %u to 0x%016llX cluster: 0x%04X\n", apsReqId, dstAddr.ext(), clusterId); }
docs/hw/pm/ptherm: Fix typo
@@ -89,7 +89,7 @@ suitable for all the cards and require a factory-set offset that is stored in PFUSE. The final hardware calibration value can be read in SENSOR_HW_CALIB_0. It is possible to override the hardware calibration by setting bits 0 and 1 -of SENSOR_CALIB_0 and by setting the wanted calibation values in +of SENSOR_CALIB_0 and by setting the wanted calibration values in SENSOR_SW_CALIB. The calibrated value, expressed in degrees Celsius, are exposed by TEMP_HIGH
Add button map for Immax Keyfob-ZB3.0
[1, "0x01", "IAS_ACE", "ARM", "3", "S_BUTTON_4", "S_BUTTON_ACTION_SHORT_RELEASED", "Arm all zones"] ] }, + "immaxKeyfobMap": { + "vendor": "Immax", + "doc": "Smart Keyfob 07046L", + "modelids": ["Keyfob-ZB3.0"], + "map": [ + [1, "0x01", "IAS_ACE", "ARM", "1", "S_BUTTON_1", "S_BUTTON_ACTION_SHORT_RELEASED", "Arm day/home zones only"], + [1, "0x01", "IAS_ACE", "ARM", "0", "S_BUTTON_2", "S_BUTTON_ACTION_SHORT_RELEASED", "Disarm"], + [1, "0x01", "IAS_ACE", "EMERGENCY", "0", "S_BUTTON_3", "S_BUTTON_ACTION_SHORT_RELEASED", "Emergency"], + [1, "0x01", "IAS_ACE", "ARM", "3", "S_BUTTON_4", "S_BUTTON_ACTION_SHORT_RELEASED", "Arm all zones"] + ] + }, "tintMap": { "vendor": "Tint", "doc": "Remote",
CC26xx/CC13xx GPIO interrupt hal: clear the interrupt flags before calling the callbacks, not after
@@ -52,10 +52,10 @@ gpio_interrupt_isr(void) /* Read interrupt flags */ pin_mask = (HWREG(GPIO_BASE + GPIO_O_EVFLAGS31_0) & GPIO_DIO_ALL_MASK); - gpio_hal_event_handler(pin_mask); - /* Clear the interrupt flags */ HWREG(GPIO_BASE + GPIO_O_EVFLAGS31_0) = pin_mask; + + gpio_hal_event_handler(pin_mask); } /*---------------------------------------------------------------------------*/ /** @} */
Codegen for ifActorRelativeToActor
@@ -536,7 +536,7 @@ class ScriptBuilder { this._addCmd("VM_PUSH_CONST", value + (comment ? ` ; ${comment}` : "")); }; - _stackPush = (location: string) => { + _stackPush = (location: ScriptBuilderStackVariable) => { this.stackPtr++; this._addCmd("VM_PUSH_VALUE", location); }; @@ -1400,6 +1400,17 @@ class ScriptBuilder { } }; + actorPushById = (id: string) => { + const newIndex = this.getActorIndex(id); + if (typeof newIndex === "number") { + this.actorIndex = newIndex; + this._stackPushConst(this.actorIndex); + } else { + this.actorIndex = -1; + this._stackPush(this._stackOffset(newIndex)); + } + }; + actorSetActive = (id: string) => { this._addComment("Actor Set Active"); this.actorSetById(id); @@ -3213,12 +3224,53 @@ class ScriptBuilder { }; ifActorRelativeToActor = ( - operation: string, + operation: "up" | "down" | "left" | "right", otherId: string, truePath: ScriptEvent[] | ScriptBuilderPathFunction = [], falsePath: ScriptEvent[] | ScriptBuilderPathFunction = [] ) => { - console.error("ifActorRelativeToActor not implemented "); + const falseLabel = this.getNextLabel(); + const endLabel = this.getNextLabel(); + this._addComment(`If Actor Relative To Actor`); + this._actorGetPosition("ACTOR"); + this.actorPushById(otherId); + this._stackPushConst(0); + this._stackPushConst(0); + this._actorGetPosition(".ARG2"); + if (operation === "left") { + this._rpn() // + .ref("^/(ACTOR + 1 - 3)/") // X1 + .ref(".ARG1") // X2 + .operator(".LT") + .stop(); + } else if (operation === "right") { + this._rpn() // + .ref("^/(ACTOR + 1 - 3)/") // X1 + .ref(".ARG1") // X2 + .operator(".GT") + .stop(); + } else if (operation === "up") { + this._rpn() // + .ref("^/(ACTOR + 2 - 3)/") // Y1 + .ref(".ARG0") // Y2 + .operator(".LT") + .stop(); + } else if (operation === "down") { + this._rpn() // + .ref("^/(ACTOR + 2 - 3)/") // Y1 + .ref(".ARG0") // Y2 + .operator(".GT") + .stop(); + } else { + this._stackPushConst(0); + } + this._ifConst(".EQ", ".ARG0", 0, falseLabel, 4); + this._compilePath(truePath); + this._jump(endLabel); + this._label(falseLabel); + this._compilePath(falsePath); + this._label(endLabel); + this._addNL(); }; caseVariableValue = (
Run Distribution Stage on PRs
@@ -646,7 +646,7 @@ stages: # Distribution # -- ${{ if and(in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI'), not(eq(variables['Build.Reason'], 'Schedule'))) }}: +- ${{ if not(eq(variables['Build.Reason'], 'Schedule')) }}: - stage: distribution displayName: Distribution dependsOn:
fixes namespacing in http header gates
:: This adds to the end if it doesn't exist. :: ++ set-header - |= [header=@t value=@t =header-list:http] - ^- header-list:http + |= [header=@t value=@t =header-list] + ^- ^header-list :: ?~ header-list :: we didn't encounter the value, add it to the end :: +delete-header: removes the first instance of a header from the list :: ++ delete-header - |= [header=@t =header-list:http] - ^- header-list:http + |= [header=@t =header-list] + ^- ^header-list :: ?~ header-list ~
hv: idt: separate the MACRO definition For binutils <= 2.26: 'U' suffix for unsigned constant is not accepted by binutils assembler. This patch separates the MACRO definition for ASSEMBLER and non-ASSEMBLER code in idt.h
* IDT is defined in assembly so we handle exceptions as early as possible. */ -/* Interrupt Descriptor Table (LDT) selectors are 16 bytes on x86-64 instead of - * 8 bytes. - */ -#define X64_IDT_DESC_SIZE (0x10U) +#ifndef ASSEMBLER + /* Number of the HOST IDT entries */ #define HOST_IDT_ENTRIES (0x100U) -/* Size of the IDT */ -#define HOST_IDT_SIZE (HOST_IDT_ENTRIES * X64_IDT_DESC_SIZE) - -#ifndef ASSEMBLER /* * Definition of an 16 byte IDT selector. @@ -74,6 +68,15 @@ struct host_idt_descriptor { extern struct host_idt HOST_IDT; extern struct host_idt_descriptor HOST_IDTR; +#else /* ASSEMBLER */ + +/* Interrupt Descriptor Table (LDT) selectors are 16 bytes on x86-64 instead of 8 bytes. */ +#define X64_IDT_DESC_SIZE (0x10) +/* Number of the HOST IDT entries */ +#define HOST_IDT_ENTRIES (0x100) +/* Size of the IDT */ +#define HOST_IDT_SIZE (HOST_IDT_ENTRIES * X64_IDT_DESC_SIZE) + #endif /* end #ifndef ASSEMBLER */ #endif /* IDT_H */
Tell people to use Clang instead of GCC on MinGW
@@ -22,6 +22,7 @@ http://ultravideo.cs.tut.fi/#encoder for more information. - [Compiling Kvazaar](#compiling-kvazaar) - [Required libraries](#required-libraries) - [Autotools](#autotools) + - [Autotools on MinGW](#autotools-on-mingw) - [OS X](#os-x) - [Visual Studio](#visual-studio) - [Docker](#docker) @@ -393,6 +394,12 @@ Run the following commands to compile and install Kvazaar. See `./configure --help` for more options. +### Autotools on MinGW +It is recommended to use Clang instead of GCC in MinGW environments. GCC also works, but AVX2 optimizations will be disabled because of a known GCC issue from 2012, so performance will suffer badly. Instead of `./configure`, run + + CC=clang ./configure + +to build Kvazaar using Clang. ### OS X - Install Homebrew
Update main.cpp Revert part of unintentional change
@@ -311,8 +311,8 @@ int main() #ifdef _WIN32 // Code snippet showing how to perform MS Root certificate check for v10 end-point. // Most other end-points are Baltimore CA-rooted. But v10 is MS CA-rooted. - // config["http"]["msRootCheck"] = true; - // config[CFG_STR_COLLECTOR_URL] = "https://v10.events.data.microsoft.com/OneCollector/1.0/"; + config["http"]["msRootCheck"] = true; + config[CFG_STR_COLLECTOR_URL] = "https://v10.events.data.microsoft.com/OneCollector/1.0/"; #endif logger = LogManager::Initialize(API_KEY);
Use hse.sock for sock file instead fo hse.pid
@@ -68,7 +68,7 @@ socket_path_default(const struct param_spec *ps, void *value) HSE_MAYBE_UNUSED int n; - n = snprintf(value, sizeof(hse_gparams.gp_socket.path), "/tmp/hse-%d.pid", getpid()); + n = snprintf(value, sizeof(hse_gparams.gp_socket.path), "/tmp/hse-%d.sock", getpid()); assert(n < sizeof(hse_gparams.gp_socket.path) && n > 0); }
Add extra parentheses to make compiler happy
@@ -616,7 +616,7 @@ void init_gpu_stats(uint32_t& vendorID, uint32_t reported_deviceID, overlay_para FILE *fp; char str[10]; string device = path + "/device/device"; - if (fp = fopen(device.c_str(), "r")){ + if ((fp = fopen(device.c_str(), "r"))){ fscanf(fp, "%s", str); uint32_t temp = strtol(str, NULL, 16); if (temp != reported_deviceID && deviceID != 0){ @@ -627,7 +627,7 @@ void init_gpu_stats(uint32_t& vendorID, uint32_t reported_deviceID, overlay_para fclose(fp); } string vendor = path + "/device/vendor"; - if (fp = fopen(vendor.c_str(), "r")){ + if ((fp = fopen(vendor.c_str(), "r"))){ fscanf(fp, "%s", str); uint32_t temp = strtol(str, NULL, 16); if (temp != vendorID)
Explicitly use 32bit registers in AArch64
@@ -83,8 +83,8 @@ _INLINE_ uint32_t secure_cmp32(IN const uint32_t v1, IN const uint32_t v2) { #if defined(__aarch64__) uint32_t res; - __asm__ __volatile__("cmp %1, %2; \n " - "cset %0, EQ; \n" + __asm__ __volatile__("cmp %w1, %w2; \n " + "cset %w0, EQ; \n" : "=r" (res) : "r"(v1), "r"(v2) :); @@ -116,8 +116,8 @@ _INLINE_ uint32_t secure_l32_mask(IN const uint32_t v1, IN const uint32_t v2) #if defined(__aarch64__) uint32_t res; - __asm__ __volatile__("cmp %1, %2; \n " - "cset %0, LS; \n" + __asm__ __volatile__("cmp %w1, %w2; \n " + "cset %w0, LS; \n" : "=r" (res) : "r"(v1), "r"(v2) :);
http file_server : Fix README of example
-# Simple HTTPD File Server Example +# Simple HTTP File Server Example (See the README.md file in the upper level 'examples' directory for more information about examples.) -HTTP file server example demonstrates file serving using the 'esp_http_server' component of ESP-IDF: +HTTP file server example demonstrates file serving using the `esp_http_server` component of ESP-IDF: 1. URI `/path/filename` for GET command downloads the corresponding file (if exists) 2. URI `/upload` POST command for uploading the file onto the device 3. URI `/delete` POST command for deleting the file from the device @@ -11,8 +11,7 @@ File server implementation can be found under `main/file_server.c` which uses SP ## Usage -* Configure the project using `make menuconfig` and goto : - * Example Configuration -> +* Configure the project using `make menuconfig` and goto `Example Configuration` -> 1. WIFI SSID: WIFI network to which your PC is also connected to. 2. WIFI Password: WIFI password @@ -25,12 +24,10 @@ File server implementation can be found under `main/file_server.c` which uses SP 3. click a file link to download / open the file on browser (if supported) 4. click the delete link visible next to each file entry to delete them 4. test the example using curl (assuming IP is 192.168.43.130): - 1. `curl -X POST --data-binary @myfile.html 192.168.43.130:80/upload/path/on/device/myfile_copy.html` - * `myfile.html` is uploaded to `/path/on/device/myfile_copy.html` - 2. `curl 192.168.43.130:80/path/on/device/myfile_copy.html > myfile_copy.html` - * Downloads the uploaded copy back - 3. Compare the copy with the original using `cmp myfile.html myfile_copy.html` + 1. `myfile.html` is uploaded to `/path/on/device/myfile_copy.html` using `curl -X POST --data-binary @myfile.html 192.168.43.130:80/upload/path/on/device/myfile_copy.html` + 2. download the uploaded copy back : `curl 192.168.43.130:80/path/on/device/myfile_copy.html > myfile_copy.html` + 3. compare the copy with the original using `cmp myfile.html myfile_copy.html` ## Note -Browsers often send large header fields when an HTML form is submit. Therefore, for the purpose of this example, 'HTTPD_MAX_REQ_HDR_LEN' has been increased to 1024 in `sdkconfig.defaults`. User can adjust this value as per their requirement, keeping in mind the memory constraint of the hardware in use. +Browsers often send large header fields when an HTML form is submit. Therefore, for the purpose of this example, `HTTPD_MAX_REQ_HDR_LEN` has been increased to 1024 in `sdkconfig.defaults`. User can adjust this value as per their requirement, keeping in mind the memory constraint of the hardware in use.
patch roct for powerpc. This patch provided by Timothy Pearson
@@ -65,6 +65,10 @@ if [ "$1" == "install" ] ; then $SUDO rm $INSTALL_ROCT/testfile fi +patchfile=$thisdir/patches/roct_ppc.patch +patchdir=$AOMP_REPOS/$AOMP_ROCT_REPO_NAME +patchrepo + if [ "$1" != "nocmake" ] && [ "$1" != "install" ] ; then echo " "
publish: delete uses cursor:pointer
@@ -67,7 +67,7 @@ export function Note(props: NoteProps & RouteComponentProps) { color="red" ml={2} onClick={deletePost} - css={{ cursor: "pointer" }} + style={{ cursor: "pointer" }} > Delete </Text>
Add gpconfig unit test for change value and master flags
@@ -26,7 +26,7 @@ class GpConfig(GpTestCase): # self.subject = gpconfig gpconfig_file = os.path.abspath(os.path.dirname(__file__) + "/../../../gpconfig") self.subject = imp.load_source('gpconfig', gpconfig_file) - self.subject.logger = Mock(spec=['log', 'warn', 'info', 'debug', 'error', 'warning']) + self.subject.logger = Mock(spec=['log', 'warn', 'info', 'debug', 'error', 'warning', 'fatal']) self.conn = Mock() self.rows = [] @@ -171,6 +171,24 @@ class GpConfig(GpTestCase): self.assertIn("bar", mock_stdout.getvalue()) self.assertIn("baz", mock_stdout.getvalue()) + def test_option_change_value_masteronly_succeed(self): + entry = 'my_property_name' + sys.argv = ["gpconfig", "-c", entry, "-v", "100", "-m", "20"] + # 'SELECT name, setting, unit, short_desc, context, vartype, min_val, max_val FROM pg_settings' + self.rows.extend([['my_property_name', 'setting', 'unit', 'short_desc', + 'context', 'vartype', 'min_val', 'max_val']]) + self.subject.do_main() + + + def test_option_change_value_masteronly_fail_not_valid_guc(self): + sys.argv = ["gpconfig", "-c", "my_property_name", "-v", "100", "-m", "20"] + + with self.assertRaises(SystemExit) as cm: + self.subject.do_main() + + self.assertEqual(self.subject.logger.fatal.call_count, 1) + self.assertEqual(cm.exception.code, 1) + if __name__ == '__main__': run_tests()
linux-raspberrypi: Bump 4.19 revision This version includes a workaround for the usable DMA memory. It limits the DMA to the first 1G.
@@ -3,7 +3,7 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/linux-raspberrypi:" LINUX_VERSION ?= "4.19.58" LINUX_RPI_BRANCH ?= "rpi-4.19.y" -SRCREV = "8222f38b1ceadd0642d49812fd34a3a6cb00e264" +SRCREV = "d5dc848c982dff2e020f294e384447efe6ea6617" SRC_URI = " \ git://github.com/raspberrypi/linux.git;protocol=git;branch=${LINUX_RPI_BRANCH} \ "
Change lms chip before configuring interface frequency
@@ -598,7 +598,7 @@ int LMS7_Device::SetRate(bool tx, double f_Hz, unsigned oversample) || (lms->Modify_SPI_Reg_bits(LMS7param(MAC), 1) != 0) || (lms->SetInterfaceFrequency(cgen, interpolation, decimation) != 0)) return -1; - + lms_chip_id = i; if (SetFPGAInterfaceFreq(interpolation, decimation)!=0) return -1; }
rms/munge: add '-o' option to useradd/groupadd calls in pre-exec section
@@ -139,10 +139,10 @@ rm "$RPM_BUILD_ROOT"/etc/rc.d/init.d/munge # [email protected] (9/10/18) - provide specific uid/gid to deal with # possibility of getting alternate ownership within Warewulf /usr/bin/getent group munge >/dev/null 2>&1 || \ - /usr/sbin/groupadd -r munge -g 201 + /usr/sbin/groupadd -r munge -o -g 201 /usr/bin/getent passwd munge >/dev/null 2>&1 || \ /usr/sbin/useradd -c "MUNGE authentication service" \ - -d "%{_sysconfdir}/munge" -g munge -s /bin/false -r munge -u 201 + -d "%{_sysconfdir}/munge" -g munge -s /bin/false -o -r munge -u 201 %post if [ ! -e %{_sysconfdir}/munge/munge.key -a -c /dev/urandom ]; then
Simplify the filetype, locations and collections declarations
The API works as follow to index presets and presets metadata: 1. clap_plugin_entry.get_factory(CLAP_PRESET_DISCOVERY_FACTORY_ID) 2. clap_preset_discovery_factory_t.create(...) - 3. clap_preset_discovery_provider.register_filetypes() - `-> clap_preset_discovery_indexer.register_filetype() - clap_preset_discovery_provider.register_locations() - `-> clap_preset_discovery_indexer.register_location() - clap_preset_discovery_provider.register_collections() - `-> clap_preset_discovery_indexer.register_collection() + 3. clap_preset_discovery_provider.declare_content() (only necessary the first time, declarations can be cached) + `-> clap_preset_discovery_indexer.declare_filetype() + `-> clap_preset_discovery_indexer.declare_location() + `-> clap_preset_discovery_indexer.declare_collection() 4. crawl the given locations and monitor file system changes - 5. read metadata for each preset files + `-> clap_preset_discovery_indexer.get_metadata() for each presets files Then to load a preset, use ext/draft/preset-load.h @@ -222,14 +220,8 @@ typedef struct clap_preset_discovery_provider { // Destroys the preset provider void(CLAP_ABI *destroy)(const struct clap_preset_discovery_provider *provider); - // Asks the preset provider to register its locations - void(CLAP_ABI *register_locations)(const struct clap_preset_discovery_provider *provider); - - // Asks the preset provider to register its filetypes - void(CLAP_ABI *register_filetypes)(const struct clap_preset_discovery_provider *provider); - - // Asks the preset provider to register its collections - void(CLAP_ABI *register_collections)(const struct clap_preset_discovery_provider *provider); + // Asks the preset provider to declare all its locations, filetypes and collections + void(CLAP_ABI *declare_content)(const struct clap_preset_discovery_provider *provider); // Retrives the path to a watch file. // Whenever the given file is "touched", then the indexer shall invalidate all the data. @@ -249,16 +241,19 @@ typedef struct clap_preset_discovery_indexer { const char *vendor; const char *version; - // Registers a preset filetype - void(CLAP_ABI *register_filetype)(const struct clap_preset_discovery_indexer *indexer, + // Registers a preset filetype. + // Don't callback into the provider during this call. + void(CLAP_ABI *declare_filetype)(const struct clap_preset_discovery_indexer *indexer, const clap_preset_discovery_filetype_t *filetype); - // Registers a preset location - void(CLAP_ABI *register_location)(const struct clap_preset_discovery_indexer *indexer, + // Registers a preset location. + // Don't callback into the provider during this call. + void(CLAP_ABI *declare_location)(const struct clap_preset_discovery_indexer *indexer, const clap_preset_discovery_location_t *location); - // Registers a preset collection - void(CLAP_ABI *register_collection)(const struct clap_preset_discovery_indexer *indexer, + // Registers a preset collection. + // Don't callback into the provider during this call. + void(CLAP_ABI *declare_collection)(const struct clap_preset_discovery_indexer *indexer, const clap_preset_discovery_collection_t *collection); } clap_preset_indexer_t;
Don't deref a NULL pointer.
@@ -5480,10 +5480,13 @@ sctp_process_control(struct mbuf *m, int iphlen, int *offset, int length, ret_buf = NULL; } if (stcb == locked_tcb) { + if (stcb != NULL) stcb->info |= 0x00000010; } else if (locked_tcb == NULL) { + if (stcb != NULL) stcb->info |= 0x00000020; } else { + if (stcb != NULL) stcb->info |= 0x00000040; } if (linp) { @@ -5496,6 +5499,7 @@ sctp_process_control(struct mbuf *m, int iphlen, int *offset, int length, SCTPDBG(SCTP_DEBUG_INPUT3, "GAK, null buffer\n"); *offset = length; + if (stcb != NULL) stcb->info |= 0x00000100; return (NULL); } @@ -5884,6 +5888,7 @@ sctp_process_control(struct mbuf *m, int iphlen, int *offset, int length, SCTP_TCB_UNLOCK(locked_tcb); } *offset = length; + if (stcb != NULL) stcb->info |= 0x00000200; return (NULL); } @@ -5892,12 +5897,16 @@ sctp_process_control(struct mbuf *m, int iphlen, int *offset, int length, if (asconf_cnt > 0 && stcb != NULL) { sctp_send_asconf_ack(stcb); } + if (stcb != NULL) stcb->info |= 0x00000400; if (stcb == locked_tcb) { + if (stcb != NULL) stcb->info |= 0x00001000; } else if (locked_tcb != NULL) { + if (stcb != NULL) stcb->info |= 0x00002000; } else { + if (stcb != NULL) stcb->info |= 0x00004000; } return (stcb);
debug and verbose options added twice in merge
@@ -153,8 +153,6 @@ struct dsync_output { struct dsync_options { struct list_head outputs; /* list of outputs */ - int verbose; - int debug; /* check result after get result */ int dry_run; /* dry run */ int verbose; int debug; /* check result after get result */
Update Dockerfile for mvn build
@@ -27,8 +27,7 @@ RUN apt-get update && apt-get install -y \ && rm -rf /var/lib/apt/lists/* WORKDIR ./datafari COPY . . -#RUN mvn -f pom.xml --quiet clean install | egrep -v "(^[0-9])|(^\[INFO\]|^\[DEBUG\])" -RUN mvn -f pom.xml clean install +RUN mvn -f pom.xml --quiet clean install RUN ant clean-build -f ./linux/build.xml FROM openjdk:8-jdk-stretch
doc: finishing touches api review for `keyCopy()`, restyled fixes
- [x] better describe flags (|) - @copydoc for invariants? ``` - [x] Function name should be clear and unambiguous - [ ] Abbreviations used in parameter names must be defined in the [Glossary](/doc/help/elektra-glossary.md) - - [ ] add dest to glossary - maybe rename dest to destination? + - [x] add dest to glossary - maybe rename dest to destination? - [x] Parameter names should neither be too long, nor too short - [x] Parameter names should be clear and unambiguous - [x] Function name has the appropriate prefix - [x] Signature in kdb.h.in has same order as Doxygen docu - [ ] No functions with similar purpose exist - - [ ] keyCopyAllMeta + - [x] keyCopyAllMeta ### Memory Management - [x] Function is easily extensible, e.g., with flags - [ ] Documentation does not impose limits, that would hinder further extensions - - [ ] KEY_CP_ALL equivalent to KEY_CP_NAME | KEY_CP_VALUE | KEY_CP_META + - [x] KEY_CP_ALL equivalent to KEY_CP_NAME | KEY_CP_VALUE | KEY_CP_META ### Tests https://doc.libelektra.org/coverage/master/debian-buster-full/src/libs/elektra/key.c.gcov.html - [ ] All possible error states are covered by tests and documented - [ ] All possible enum values are covered by tests - - [ ] use flags other than KEY_CP_ALL + - [x] use flags other than KEY_CP_ALL - [ ] No inconsistencies between tests and documentation - [ ] Functions should have no side effects (idempotency)
GBP: include sclass in format EPG
@@ -326,8 +326,9 @@ format_gbp_endpoint_group (u8 * s, va_list * args) vnet_main_t *vnm = vnet_get_main (); if (NULL != gg) - s = format (s, "%d, bd:[%d,%d], rd:[%d] uplink:%U locks:%d", + s = format (s, "%d, sclass:%d bd:[%d,%d], rd:[%d] uplink:%U locks:%d", gg->gg_id, + gg->gg_sclass, gbp_endpoint_group_get_bd_id(gg), gg->gg_bd_index, gg->gg_rd, format_vnet_sw_if_index_name, vnm, gg->gg_uplink_sw_if_index,
ames: fix aggressive lane timeout (still needs migration)
== :: $qos: quality of service; how is our connection to a peer doing? :: +:: .last-contact: last time we heard from peer, or if %unborn, when +:: we first started tracking time +:: +$ qos - $~ [%unborn ~] - $% [%live last-contact=@da] - [%dead last-contact=@da] - [%unborn ~] - == + $~ [%unborn *@da] + [?(%live %dead %unborn) last-contact=@da] :: $ossuary: bone<->duct bijection and .next-bone to map to a duct :: :: The first bone is 0. They increment by 4, since each flow includes (derive-symmetric-key public-key.open-packet our-private-key) :: %_ peer-state + qos [%unborn now] symmetric-key symmetric-key life sndr-life.open-packet public-key public-key.open-packet =/ =private-key sec:ex:crypto-core.ames-state =/ =symmetric-key (derive-symmetric-key public-key private-key) :: + =. qos.peer-state [%unborn now] =. life.peer-state life.point =. public-key.peer-state public-key =. symmetric-key.peer-state symmetric-key :: update and print connection state :: =. peer-core %- update-qos - ?: ?=(%unborn -.qos.peer-state) - [%dead now] - ?. ?& ?=(%live -.qos.peer-state) - (gte now (add ~s30 last-contact.qos.peer-state)) - == + =/ expiry=@da (add ~s30 last-contact.qos.peer-state) + =? -.qos.peer-state + (gte now.channel expiry) + %dead qos.peer-state - [%dead last-contact.qos.peer-state] :: expire direct route :: - :: Since a packet's timer expired, mark the .lane.route as + :: If the peer is not responding, mark the .lane.route as :: indirect. The next packets we emit will be sent to the :: receiver's sponsorship chain in case the receiver's :: transport address has changed and this lane is no longer :: If .her is a galaxy, the lane will always remain direct. :: =? route.peer-state - ?& ?=(^ route.peer-state) + ?& ?=(%dead -.qos.peer-state) + ?=(^ route.peer-state) direct.u.route.peer-state !=(%czar (clan:title her.channel)) ==
Use branchless tail clear
@@ -1132,22 +1132,19 @@ unsigned int compute_ideal_endpoint_formats( uint8_t (&best_ep_formats)[WEIGHTS_MAX_BLOCK_MODES][BLOCK_MAX_PARTITIONS] = tmpbuf.best_ep_formats; // Ensure that the first iteration understep contains data that will never be picked + vfloat clear_error(ERROR_CALC_DEFAULT); + vint clear_quant(0); + unsigned int packed_start_block_mode = round_down_to_simd_multiple_vla(start_block_mode); - for (unsigned int i = packed_start_block_mode; i < start_block_mode; i++) - { - errors_of_best_combination[i] = ERROR_CALC_DEFAULT; - best_quant_levels[i] = QUANT_2; - best_quant_levels_mod[i] = QUANT_2; - } + storea(clear_error, errors_of_best_combination + packed_start_block_mode); + store_nbytes(clear_quant, best_quant_levels + packed_start_block_mode); + store_nbytes(clear_quant, best_quant_levels_mod + packed_start_block_mode); // Ensure that last iteration overstep contains data that will never be picked - const unsigned int packed_end_block_mode = round_up_to_simd_multiple_vla(end_block_mode); - for (unsigned int i = end_block_mode; i < packed_end_block_mode; i++) - { - errors_of_best_combination[i] = ERROR_CALC_DEFAULT; - best_quant_levels[i] = QUANT_2; - best_quant_levels_mod[i] = QUANT_2; - } + unsigned int packed_end_block_mode = round_down_to_simd_multiple_vla(end_block_mode - 1); + storea(clear_error, errors_of_best_combination + packed_end_block_mode); + store_nbytes(clear_quant, best_quant_levels + packed_end_block_mode); + store_nbytes(clear_quant, best_quant_levels_mod + packed_end_block_mode); // Track a scalar best to avoid expensive search at least once ... float error_of_best_combination = ERROR_CALC_DEFAULT;
Remove profiling for ReadBankedUBYTE
@@ -101,13 +101,12 @@ void ScriptRunnerUpdate() { main_script_ctx.script_ptr = 0; return; } - BGB_PROFILE_BEGIN(); + PUSH_BANK(main_script_ctx.script_ptr_bank); script_cmd_index = *main_script_ctx.script_ptr; if (!script_cmd_index) { POP_BANK; - BGB_PROFILE_END(NoData); if (script_stack_ptr) { // Return from Actor Invocation PUSH_BANK(SCRIPT_RUNNER_BANK); @@ -133,7 +132,7 @@ void ScriptRunnerUpdate() { // Fetch script_cmd_args using inlined MemcpyBanked memcpy(script_cmd_args, main_script_ctx.script_ptr + 1, 7); POP_BANK; - BGB_PROFILE_END(WeGotData); + PUSH_BANK(SCRIPT_RUNNER_BANK); initial_script_ptr = main_script_ctx.script_ptr; script_cmd_args_len = script_cmds[script_cmd_index].args_len;
Fix deserialize in tcp admin
@@ -537,7 +537,7 @@ processMsgForSubscriberEntry(pubsub_tcp_topic_receiver_t *receiver, psa_tcp_subs struct iovec deSerializeBuffer; deSerializeBuffer.iov_base = message->payload.payload; deSerializeBuffer.iov_len = message->payload.length; - celix_status_t status = msgSer->deserialize(msgSer->handle, &deSerializeBuffer, 0, &deSerializedMsg); + celix_status_t status = msgSer->deserialize(msgSer->handle, &deSerializeBuffer, 1, &deSerializedMsg); if (monitor) { clock_gettime(CLOCK_REALTIME, &endSer); }
RPL local repair: do not reset link statistics
@@ -220,7 +220,6 @@ rpl_local_repair(const char *str) curr_instance.dag.state = DAG_INITIALIZED; /* Reset DAG state */ } curr_instance.of->reset(); /* Reset OF */ - link_stats_reset(); /* Forget past link statistics */ rpl_neighbor_remove_all(); /* Remove all neighbors */ rpl_timers_dio_reset("Local repair"); /* Reset Trickle timer */ rpl_timers_schedule_state_update();
xpath CHANGE forbid non-prefix node names in XML It is not specified generally but works this way for instance-identifiers so use the same rules.
@@ -5328,8 +5328,9 @@ moveto_resolve_model(const char **qname, uint16_t *qname_len, const struct lyxp_ } break; case LY_PREF_XML: - /* not defined */ - LOGINT_RET(set->ctx); + /* all nodes need to be prefixed */ + LOGVAL(set->ctx, LYVE_DATA, "Non-prefixed node \"%.*s\" in XML xpath found.", *qname_len, *qname); + return LY_EVALID; } }
[target][stm32f7-discovery] update the openocd script Use a newer name for the stlink.cfg file.
@@ -5,5 +5,5 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" export PROJECT=stm32f746g-disco-test $DIR/make-parallel && -openocd -f interface/stlink-v2-1.cfg -f board/stm327x6g_eval.cfg \ +openocd -f interface/stlink.cfg -f board/stm327x6g_eval.cfg \ -c "program build-$PROJECT/lk.bin reset exit 0x08000000"
build: adding platform-io install instructions to README
@@ -173,6 +173,17 @@ int main() { } ``` +### PlatformIO ### + +Mac: + + brew install platformio + +Linux: + + sudo -H python3 -m pip install -U platformio + + ## Available Modules ## * _agc_: automatic gain control, received signal strength
CUDA check before using maximum eigenvalue
@@ -727,7 +727,11 @@ int main_wshfl(int argc, char* argv[]) } if (eval < 0) + #ifdef USE_CUDA eval = (gpun >= 0) ? estimate_maxeigenval_gpu(A->normal) : estimate_maxeigenval(A->normal); + #else + eval = estimate_maxeigenval(A->normal); + #endif debug_printf(DP_INFO, "\tMax eval: %.2e\n", eval); step /= eval;
Remove usr/include in Makefile
@@ -306,7 +306,7 @@ endif CC := $(CLANGPATH)clang #CFLAGS += -O0 -CFLAGS += -O3 -Os -I/usr/include -Wno-format-invalid-specifier -Wno-format-extra-args -Wno-main +CFLAGS += -O3 -Os -Wno-format-invalid-specifier -Wno-format-extra-args -Wno-main AS := $(GCCPATH)arm-none-eabi-gcc
Optimize initState() function remove temp structures: fsinfoLocal, netinfoLocal use calloc instead of malloc + memset
@@ -235,25 +235,15 @@ error: void initState() { - net_info *netinfoLocal; - fs_info *fsinfoLocal; - if ((netinfoLocal = (net_info *)malloc(sizeof(struct net_info_t) * NET_ENTRIES)) == NULL) { - scopeLog("ERROR: Constructor:Malloc", -1, CFG_LOG_ERROR); - } - - if (netinfoLocal) memset(netinfoLocal, 0, sizeof(struct net_info_t) * NET_ENTRIES); - // Per a Read Update & Change (RUC) model; now that the object is ready assign the global - g_netinfo = netinfoLocal; - - if ((fsinfoLocal = (fs_info *)malloc(sizeof(struct fs_info_t) * FS_ENTRIES)) == NULL) { - scopeLog("ERROR: Constructor:Malloc", -1, CFG_LOG_ERROR); + if ((g_netinfo = (net_info *)calloc(1, sizeof(struct net_info_t) * NET_ENTRIES)) == NULL) { + scopeLog("ERROR: Constructor:Calloc", -1, CFG_LOG_ERROR); } - if (fsinfoLocal) memset(fsinfoLocal, 0, sizeof(struct fs_info_t) * FS_ENTRIES); - // Per RUC... - g_fsinfo = fsinfoLocal; + if ((g_fsinfo = (fs_info *)calloc(1, sizeof(struct fs_info_t) * FS_ENTRIES)) == NULL) { + scopeLog("ERROR: Constructor:Calloc", -1, CFG_LOG_ERROR); + } initHttpState(); // the http guard array is static while the net fs array is dynamically allocated
Add OMV board extra CFLAGS.
@@ -100,6 +100,7 @@ CFLAGS += -D$(MCU) -D$(CFLAGS_MCU) -D$(ARM_MATH) -DARM_NN_TRUNCATE\ -fsingle-precision-constant -Wdouble-promotion -mcpu=$(CPU) -mtune=$(CPU) -mfpu=$(FPU) -mfloat-abi=hard CFLAGS += -D__FPU_PRESENT=1 -D__VFP_FP__ -DUSE_USB_FS -DUSE_DEVICE_MODE -DUSE_USB_OTG_ID=0 -DHSE_VALUE=12000000\ -D$(TARGET) -DSTM32_HAL_H=$(HAL_INC) -DVECT_TAB_OFFSET=$(VECT_TAB_OFFSET) -DMAIN_APP_ADDR=$(MAIN_APP_ADDR) +CFLAGS += $(OMV_BOARD_EXTRA_CFLAGS) ST_CFLAGS += -I. -Iinclude ST_CFLAGS += -I$(TOP_DIR)/$(CMSIS_DIR)/include/
Remove reference to the (deprecated) `bscrypt` collection.
-This software is modular (i.e., the `fiobj`, `bscrypt` and `evio` modules) and each module should be considered independantly licensed under the MIT license. +This software is modular (i.e., the `fiobj` and `evio` modules) and each module should be considered independantly licensed under the MIT license. This software implements cryptographic algorithms such as SHA1, SHA2 and SipHash. It should be noted that different countries might restrict the use / importation (download) of cryptographic devices / software. You should make sure to comply with the laws of the appilicable country/countries. -These algorithms might be subject to their own copyrights, patents and licenses, though I couldn't find any that apply. +These algorithms might be subject to their own copyrights, patents and licenses, though I couldn't find any that apply I really don't know - you should test this on your own. --- SipHash - from https://131002.net/siphash/ @@ -16,11 +16,11 @@ SipHash - from https://131002.net/siphash/ --- SHA1 and SHA2 -SHA1 and SHA2 seem to be in the public domain, developed by NASA. +SHA1 and SHA2 seem to be in the public domain, developed by/for NASA. --- -The single string, binary, glob matching helper function `fio_glob_match` was rewritten and adapted from: +The single string, binary, glob matching helper function `fio_glob_match` was **rewritten** (I don't know if the original copyright remains) and adapted from: https://github.com/opnfv/kvmfornfv/blob/465249b61b72d33fe1fad8d43da332faef22bec0/kernel/lib/glob.c#L12-L122 Licensed under the MIT license, the original code's copyright is as follows:
update CHANGELOG to reflect MUSL upgrade to v1.2.2
@@ -18,6 +18,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - The OpenEnclave CMake configuration now explicitly sets CMAKE_SKIP_RPATH to TRUE. This change should not affect fully static-linked enclaves. - oe_verify_attestation_certificate_with_evidence() has been deprecated because it has been deemed insufficient for security. Use the new, experimental oe_verify_attestation_certificate_with_evidence_v2() instead to generate a self-signed certificate for use in the TLS handshaking process. +### Security +- Update MUSL to version 1.2.2. Refer to MUSL release notes between version 1.1.22 to 1.2.2 for the set of issues addressed. + [v0.15.0][v0.15.0_log] -------------- ### Added
more reliable platform recognition
@@ -180,9 +180,11 @@ module RbConfig #CONFIG["host_os"] = "darwin16.3.0" -if ( System.get_property('platform') == 'WINDOWS' ) || ( System.get_property('platform') == 'WINDOWS_DESKTOP' ) + platform = System.get_property('platform') + + if ( (platform=~/WINDOWS/) || (platform=~/(win|w)32$/) ) CONFIG["host_os"] = "mingw32" - elsif ( System.get_property('platform') == 'APPLE' ) + elsif ( (platform=~/APPLE/) || (platform=~/darwin/) ) CONFIG["host_os"] = "darwin" else CONFIG["host_os"] = "linux"
dpdk: enable checksum offload for Intel SRIOV NIC drivers Type: fix
@@ -463,6 +463,14 @@ dpdk_lib_init (dpdk_main_t * dm) case VNET_DPDK_PMD_IXGBEVF: case VNET_DPDK_PMD_I40EVF: xd->port_type = VNET_DPDK_PORT_TYPE_ETH_VF; + if (dm->conf->no_tx_checksum_offload == 0) + { + xd->port_conf.txmode.offloads |= DEV_TX_OFFLOAD_TCP_CKSUM; + xd->port_conf.txmode.offloads |= DEV_TX_OFFLOAD_UDP_CKSUM; + xd->flags |= + DPDK_DEVICE_FLAG_TX_OFFLOAD | + DPDK_DEVICE_FLAG_INTEL_PHDR_CKSUM; + } break; case VNET_DPDK_PMD_THUNDERX:
[util/generic] correct value_type for TInputRangeAdaptor::TIterator; [part 6];
@@ -76,10 +76,11 @@ public: static constexpr bool IsNoexceptNext = noexcept(std::declval<TSlave>().Next()); using difference_type = std::ptrdiff_t; - using value_type = decltype(std::declval<TSlave>().Next()); - using TValueTraits = NStlIterator::TTraits<value_type>; // TODO: DROP! + using TNextType = decltype(std::declval<TSlave>().Next()); + using TValueTraits = NStlIterator::TTraits<TNextType>; // TODO: DROP! using pointer = typename TValueTraits::TPtr; using reference = typename TValueTraits::TRef; + using value_type = std::remove_cv_t<std::remove_reference_t<reference>>; using iterator_category = std::input_iterator_tag; inline TIterator() noexcept @@ -118,7 +119,7 @@ public: private: TSlave* Slave_; - value_type Cur_; + TNextType Cur_; }; public:
esp32/modsocket: Raise EAGAIN when accept fails in non-blocking mode. EAGAIN should be for pure non-blocking mode and ETIMEDOUT for when there is a finite (but non-zero) timeout enabled.
@@ -253,7 +253,13 @@ STATIC mp_obj_t socket_accept(const mp_obj_t arg0) { if (errno != EAGAIN) exception_from_errno(errno); check_for_exceptions(); } - if (new_fd < 0) mp_raise_OSError(MP_ETIMEDOUT); + if (new_fd < 0) { + if (self->retries == 0) { + mp_raise_OSError(MP_EAGAIN); + } else { + mp_raise_OSError(MP_ETIMEDOUT); + } + } // create new socket object socket_obj_t *sock = m_new_obj_with_finaliser(socket_obj_t);
Update CLion tutorial tweak for CMake options
@@ -92,14 +92,17 @@ add the following CMake options to our "Debug" profile: -DKDB_DB_HOME="~/.config/kdb/[xyz]/home" -DKDB_DB_SYSTEM="~/.config/kdb/[xyz]/system" -DKDB_DB_SPEC="~/.config/kdb/[xyz]/spec" --DKDB_DB_USER="~/.config/kdb/[xyz]/user" +-DKDB_DB_USER=".config/kdb/[xyz]/user" -DCMAKE_INSTALL_PREFIX="install" ``` where "[xyz]" can be replaced by any unique identifier so that different profiles won't clash with each other. This configuration also isolates your build of -Elektra from any existing Elektra installation on your system. For -debugging purposes we also recommend adding the following CMake options for debug +Elektra from any existing Elektra installation on your system. +Note the missing `~/` from the argument to `-DKDB_DB_USER`, as libelektra internally +already adds the home directory path. An additional `~/` would lead to a folder named `~` +in your home directory. +For debugging purposes we also recommend adding the following CMake options for debug builds to enable further logging and checks: ```sh
BugID:16967023:[build-rules] avoid duplicated COMP_LIB_COMPONENTS
@@ -197,11 +197,13 @@ define Gitrepo_TcPath endef define CompLib_Map +$(if $(filter $(strip $(2)),$(COMP_LIB_COMPONENTS)),, \ $(eval \ COMP_LIB_COMPONENTS += \ $(if \ $(filter y,$($(strip $(1)))),$(strip $(2)) \ ) \ + ) \ ) endef
Extend mbedtls_ssl_transform struct for psa keys and alg
@@ -941,6 +941,12 @@ struct mbedtls_ssl_transform mbedtls_cipher_context_t cipher_ctx_dec; /*!< decryption context */ int minor_ver; +#if defined(MBEDTLS_USE_PSA_CRYPTO) + mbedtls_svc_key_id_t psa_key_enc; /*!< psa encryption key */ + mbedtls_svc_key_id_t psa_key_dec; /*!< psa decryption key */ + psa_algorithm_t psa_alg; /*!< psa algorithm */ +#endif /* MBEDTLS_USE_PSA_CRYPTO */ + #if defined(MBEDTLS_SSL_DTLS_CONNECTION_ID) uint8_t in_cid_len; uint8_t out_cid_len;
add __local__
@@ -63,7 +63,12 @@ then branch="-b $1" echo "Branch: $1" fi +if [ 'x-b __local__' != "x$branch" ] +then git clone --depth=1 $branch https://github.com/tboox/xmake.git /tmp/$$xmake_getter || my_exit 'Clone Fail' +else + cp -r "$(git rev-parse --show-toplevel 2>/dev/null || hg root 2>/dev/null || echo $PWD)" /tmp/$$xmake_getter || my_exit 'Clone Fail' +fi make -C /tmp/$$xmake_getter --no-print-directory build || my_exit 'Build Fail' IFS=':' patharr=($PATH)
Fix travis ci build failure. Thrift/Boost incompatibility
@@ -43,7 +43,9 @@ install: thrift - brew outdated libyaml || brew upgrade libyaml - brew outdated json-c || brew upgrade json-c - - brew outdated boost || brew upgrade boost + - brew uninstall boost --ignore-dependencies + - brew install homebrew/core/[email protected] + - brew link [email protected] --force - brew outdated maven || brew upgrade maven - brew install iproute2mac - brew list --versions
Cut more opensource deps to build/rules
@@ -1796,7 +1796,7 @@ module PY2_PROGRAM: _PY2_PROGRAM { when ($FAIL_PY2 == "yes") { _OK=no } - otherwise { + elsewhen ($OPENSOURCE != "yes") { PEERDIR+=build/rules/py2_deprecation } ASSERT(_OK You are using deprecated Python2-only code (PY2_PROGRAM). Please consider rewriting to Python 3.) @@ -2302,7 +2302,7 @@ module PY2TEST: PYTEST_BIN { when ($FAIL_PY2 == "yes") { _OK=no } - otherwise { + elsewhen ($OPENSOURCE != "yes") { PEERDIR+=build/rules/py2_deprecation } SET(MODULE_LANG PY2) @@ -4954,7 +4954,7 @@ multimodule SANDBOX_TASK { when ($FAIL_PY2 == "yes") { _OK=no } - otherwise { + elsewhen ($OPENSOURCE != "yes") { PEERDIR+=build/rules/py2_deprecation }
Adopt GetMNCollateral
@@ -1543,7 +1543,7 @@ void CWallet::AvailableCoinsMN(vector<COutput>& vCoins, bool fOnlyConfirmed, con found = true; if (IsCollateralAmount(pcoin->vout[i].nValue)) continue; // do not use collateral amounts found = !IsDenominatedAmount(pcoin->vout[i].nValue); - if(found && coin_type == ONLY_NONDENOMINATED_NOTMN) found = (pcoin->vout[i].nValue != 5000*COIN); // do not use MN funds 5,000 DNR + if(found && coin_type == ONLY_NONDENOMINATED_NOTMN) found = (pcoin->vout[i].nValue != GetMNCollateral()*COIN); // do not use MN funds 5,000 DNR } else { found = true; } @@ -2197,7 +2197,7 @@ bool CWallet::SelectCoinsByDenominations(int nDenom, int64_t nValueMin, int64_t { //there's no reason to allow inputs less than 1 COIN into DS (other than denominations smaller than that amount) if(out.tx->vout[out.i].nValue < 1*COIN && out.tx->vout[out.i].nValue != (.1*COIN)+100) continue; - if(fMasterNode && out.tx->vout[out.i].nValue == 5000*COIN) continue; //masternode input 5,000 DNR + if(fMasterNode && out.tx->vout[out.i].nValue == GetMNCollateral()*COIN) continue; //masternode input 5,000 DNR if(nValueRet + out.tx->vout[out.i].nValue <= nValueMax){ bool fAccepted = false; @@ -2273,7 +2273,7 @@ bool CWallet::SelectCoinsDark(int64_t nValueMin, int64_t nValueMax, std::vector< { //there's no reason to allow inputs less than 1 COIN into DS (other than denominations smaller than that amount) if(out.tx->vout[out.i].nValue < 1*COIN && out.tx->vout[out.i].nValue != (.1*COIN)+100) continue; - if(fMasterNode && out.tx->vout[out.i].nValue == 5000*COIN) continue; //masternode input 5,000 DNR + if(fMasterNode && out.tx->vout[out.i].nValue == GetMNCollateral()*COIN) continue; //masternode input 5,000 DNR if(nValueRet + out.tx->vout[out.i].nValue <= nValueMax){ CTxIn vin = CTxIn(out.tx->GetHash(),out.i);
Added Pipeline status
@@ -535,9 +535,9 @@ It is possible to enable or disable concrete loaders, script, ports, serials or The following platforms and architectures have been tested an work correctly with all plugins of **METACALL**. | Operative System | Architecture | Compiler | Build Status | -|:-------------------------:|:-------------------:|:----------:|-------------:| +|:-------------------------:|:-------------------:|:----------:|:-------------:| | **`ubuntu:xenial`** | **`amd64`** | **`gcc`** | | -| **`debian:stretch-slim`** | **`amd64`** | **`gcc`** | | +| **`debian:stretch-slim`** | **`amd64`** | **`gcc`** |[![build](https://gitlab.com/metacall/core/badges/develop/build.svg)](https://gitlab.com/metacall/core) | | **`windows`** | **`x86`** **`x64`** | **`msvc`** | | ## 8. License
change loop time
#define ROBOT_STATE_UPDATE_TIME 0.010f #define ACTUATOR_CONTROL_TIME 0.010f -#define LOOP_TIME 0.050f +#define LOOP_TIME 0.020f #define CHAIN 100 @@ -125,7 +125,7 @@ void initManipulator() manipulator.initJointTrajectory(CHAIN); manipulator.setControlTime(ACTUATOR_CONTROL_TIME); - manipulator.toolMove(CHAIN, TOOL, false); + manipulator.toolMove(CHAIN, TOOL, 0.0f); #ifdef PLATFORM////////////////////////////////////Actuator init manipulator.setAllActiveJointAngle(CHAIN, manipulator.receiveAllActuatorAngle(CHAIN)); @@ -144,7 +144,6 @@ void updateAllJointAngle() void THREAD::Robot_State(void const *argument) { (void)argument; - // Eigen::Vector3f pose_to_world; for (;;) { @@ -154,8 +153,6 @@ void THREAD::Robot_State(void const *argument) manipulator.forward(CHAIN, COMP1); MUTEX::release(); - // pose_to_world = manipulator.getComponentPositionToWorld(CHAIN, TOOL); - // PRINT::VECTOR(pose_to_world); osDelay(ROBOT_STATE_UPDATE_TIME * 1000); } @@ -165,19 +162,13 @@ void THREAD::Actuator_Control(void const *argument) { (void)argument; - // static uint16_t last_time = 0; - for (;;) { - // uint16_t t = millis(); - - // LOG::INFO("Control Time : " + String(t-last_time)); MUTEX::wait(); manipulator.jointControl(CHAIN); MUTEX::release(); - // last_time = t; osDelay(ACTUATOR_CONTROL_TIME * 1000); }
Switch to wasirun
@@ -114,4 +114,4 @@ jobs: run: | source $HOME/.wasienv/wasienv.sh cd test - ./run-spec-test.py --exec "wasmer ../build-wasi/wasm3.wasm" + ./run-spec-test.py --exec "wasirun ../build-wasi/wasm3.wasm"
copy&paste errors test_length.h
/** * @file * - * @brief Tests for ipaddr plugin + * @brief Tests for length plugin * * @copyright BSD License (see doc/LICENSE.md or https://www.libelektra.org) * #include <kdbconfig.h> -#ifdef HAVE_FEATURES_H - -#include <features.h> -// The function `getaddrinfo` used in the `network` plugin leaks memory, if we use the default value for `ai_flags` on systems that use -// `glibc` 2.19. -// See also: https://travis-ci.org/ElektraInitiative/libelektra/builds/428298531 -#if defined(__GLIBC__) && defined(__GLIBC_PREREQ) -#if !(__GLIBC_PREREQ(2, 20)) -#include <string.h> -#define PLUGIN_LEAKS_MEMORY (strcmp (PLUGIN_NAME, "network") == 0) -#endif -#endif - -#endif // HAVE_FEATURES_H - -#ifndef PLUGIN_LEAKS_MEMORY -#define PLUGIN_LEAKS_MEMORY 0 -#endif static void test_length (void) {
Run CircleCI tests on all branches
@@ -130,11 +130,6 @@ workflows: - test: requires: - checkout - filters: - branches: - ignore: - - develop - - master - "make:mac": requires: - checkout
hake: x86_64: re-enable -Werror for cpu driver
@@ -89,7 +89,7 @@ kernelCFlags = [ Str s | s <- [ "-fno-builtin", "-Wredundant-decls", "-Wno-packed-bitfield-compat", "-Wno-unused-but-set-variable", --- "-Werror", + "-Werror", "-imacros deputy/nodeputy.h", "-mno-mmx", "-mno-sse",
mpi-families/impi-devel: bump gnu version
%define pname intel-mpi-devel %define year 2018 +%global gnu_major_ver 8 Summary: OpenHPC compatibility package for Intel(R) MPI Library Name: %{pname}%{PROJ_DELIM} @@ -44,7 +45,7 @@ suite. %install %{__mkdir} -p %{buildroot}/%{OHPC_MODULEDEPS}/intel/impi %{__mkdir} -p %{buildroot}/%{OHPC_MODULEDEPS}/gnu/impi -%{__mkdir} -p %{buildroot}/%{OHPC_MODULEDEPS}/gnu7/impi +%{__mkdir} -p %{buildroot}/%{OHPC_MODULEDEPS}/gnu%{gnu_major_ver}/impi %pre @@ -237,17 +238,17 @@ EOF fi # support for additional gnu variants - %{__cp} %{OHPC_MODULEDEPS}/gnu/impi/${version} %{OHPC_MODULEDEPS}/gnu7/impi/${version} - %{__cp} %{OHPC_MODULEDEPS}/gnu/impi/.version.${version} %{OHPC_MODULEDEPS}/gnu7/impi/.version.${version} - perl -pi -e 's!moduledeps/gnu-impi!moduledeps/gnu7-impi!' %{OHPC_MODULEDEPS}/gnu7/impi/${version} + %{__cp} %{OHPC_MODULEDEPS}/gnu/impi/${version} %{OHPC_MODULEDEPS}/gnu%{gnu_major_ver}/impi/${version} + %{__cp} %{OHPC_MODULEDEPS}/gnu/impi/.version.${version} %{OHPC_MODULEDEPS}/gnu%{gnu_major_ver}/impi/.version.${version} + perl -pi -e 's!moduledeps/gnu-impi!moduledeps/gnu%{gnu_major_ver}-impi!' %{OHPC_MODULEDEPS}/gnu%{gnu_major_ver}/impi/${version} # Inventory for later removal echo "%{OHPC_MODULEDEPS}/intel/impi/${version}" >> %{OHPC_MODULEDEPS}/intel/impi/.manifest echo "%{OHPC_MODULEDEPS}/intel/impi/.version.${version}" >> %{OHPC_MODULEDEPS}/intel/impi/.manifest echo "%{OHPC_MODULEDEPS}/gnu/impi/${version}" >> %{OHPC_MODULEDEPS}/intel/impi/.manifest echo "%{OHPC_MODULEDEPS}/gnu/impi/.version.${version}" >> %{OHPC_MODULEDEPS}/intel/impi/.manifest - echo "%{OHPC_MODULEDEPS}/gnu7/impi/${version}" >> %{OHPC_MODULEDEPS}/intel/impi/.manifest - echo "%{OHPC_MODULEDEPS}/gnu7/impi/.version.${version}" >> %{OHPC_MODULEDEPS}/intel/impi/.manifest + echo "%{OHPC_MODULEDEPS}/gnu%{gnu_major_ver}/impi/${version}" >> %{OHPC_MODULEDEPS}/intel/impi/.manifest + echo "%{OHPC_MODULEDEPS}/gnu%{gnu_major_ver}/impi/.version.${version}" >> %{OHPC_MODULEDEPS}/intel/impi/.manifest done
Improve wording in man page Make it more consistent throughout the man page. If a config option can either be *yes* or *no* use exact these terms and not something like *on* which could be easily read as *no*.
@@ -775,7 +775,7 @@ wise to send these, and could be necessary for operation if TSIG or EDNS payload is very large. .TP .B harden\-glue: \fI<yes or no> -Will trust glue only if it is within the servers authority. Default is on. +Will trust glue only if it is within the servers authority. Default is yes. .TP .B harden\-dnssec\-stripped: \fI<yes or no> Require DNSSEC data for trust\-anchored zones, if such data is absent, @@ -785,7 +785,7 @@ this behaves like there is no trust anchor. You could turn this off if you are sometimes behind an intrusive firewall (of some sort) that removes DNSSEC data from packets, or a zone changes from signed to unsigned to badly signed often. If turned off you run the risk of a -downgrade attack that disables security for a zone. Default is on. +downgrade attack that disables security for a zone. Default is yes. .TP .B harden\-below\-nxdomain: \fI<yes or no> From RFC 8020 (with title "NXDOMAIN: There Really Is Nothing Underneath"), @@ -795,7 +795,7 @@ noerror for empty nonterminals, hence this is possible. Very old software might return nxdomain for empty nonterminals (that usually happen for reverse IP address lookups), and thus may be incompatible with this. To try to avoid this only DNSSEC-secure nxdomains are used, because the old software does not -have DNSSEC. Default is on. +have DNSSEC. Default is yes. The nxdomain must be secure, this means nsec3 with optout is insufficient. .TP .B harden\-referral\-path: \fI<yes or no> @@ -974,10 +974,10 @@ It is possible to use wildcards with this statement, the wildcard is expanded on start and on reload. .TP .B trust\-anchor\-signaling: \fI<yes or no> -Send RFC8145 key tag query after trust anchor priming. Default is on. +Send RFC8145 key tag query after trust anchor priming. Default is yes. .TP .B root\-key\-sentinel: \fI<yes or no> -Root key trust anchor sentinel. Default is on. +Root key trust anchor sentinel. Default is yes. .TP .B dlv\-anchor\-file: \fI<filename> This option was used during early days DNSSEC deployment when no parent-side
Update SSDT-EC-USBX.dsl can not nest \_SB under \_SB, possible better ways to organize scopes
@@ -78,7 +78,7 @@ DefinitionBlock ("", "SSDT", 2, "ACDT", "SsdtEC", 0x00001000) } } - Scope (\_SB.PCI0.LPCB) + Scope (PCI0.LPCB) { Device (EC) {
Make github leak action less verbose.
@@ -30,7 +30,7 @@ jobs: - name: Perform Unit Tests and Check for Leaks run: | ulimit -c unlimited -S - ./picoquic_ct -n -r 2>sanity.txt || QUICRESULT=$? + ./picoquic_ct -n -r 1>quic_ct.txt 2>sanity.txt || QUICRESULT=$? echo "running picoquic_ct returns $QUICRESULT " cat sanity.txt if [ ${QUICRESULT} != 0 ]; then exit 1; fi; @@ -45,7 +45,7 @@ jobs: else echo "No leaks detected in picoquic_ct" fi - ./picohttp_ct -n -r 2>sanity.txt || QUICHTTPRESULT=$? + ./picohttp_ct -n -r 1>http_ct.txt 2>sanity.txt || QUICHTTPRESULT=$? echo "running picohttp_ct returns $QUICHTTPRESULT " cat sanity.txt if [ ${QUICHTTPRESULT} != 0 ]; then exit 1; fi;
stm32/adc: Increase sample time for internal sensors on L4 MCUs. They need time (around 4us for VREFINT) to obtain accurate results. Fixes issue
@@ -304,7 +304,13 @@ STATIC void adc_config_channel(ADC_HandleTypeDef *adc_handle, uint32_t channel) sConfig.OffsetRightShift = DISABLE; sConfig.OffsetSignedSaturation = DISABLE; #elif defined(STM32L4) + if (channel == ADC_CHANNEL_VREFINT + || channel == ADC_CHANNEL_TEMPSENSOR + || channel == ADC_CHANNEL_VBAT) { + sConfig.SamplingTime = ADC_SAMPLETIME_247CYCLES_5; + } else { sConfig.SamplingTime = ADC_SAMPLETIME_12CYCLES_5; + } sConfig.SingleDiff = ADC_SINGLE_ENDED; sConfig.OffsetNumber = ADC_OFFSET_NONE; sConfig.Offset = 0;
machinarium: unblock previous signals on set
@@ -80,9 +80,10 @@ int mm_signalmgr_set(mm_signalmgr_t *mgr, sigset_t *set) if (rc == -1) return -1; assert(rc == mgr->fd.fd); - rc = pthread_sigmask(SIG_BLOCK, set, NULL); - if (rc != 0) - return -1; + sigset_t mask; + sigfillset(&mask); + pthread_sigmask(SIG_UNBLOCK, &mask, NULL); + pthread_sigmask(SIG_BLOCK, set, NULL); return 0; }
mcu/nrf5340_net: Enable instruction cache by default Does not really make sense to have it disabled by default since we are running from flash.
@@ -65,8 +65,7 @@ syscfg.defs: MCU_ICACHE_ENABLED: description: > Enable instruction code cache - Default value is 0, so disabled. - value: 0 + value: 1 MCU_DEFAULT_STARTUP: description: >
sim: fix RSA signature length macro usage Update test that was using old Zephyr macros to set size.
@@ -51,10 +51,10 @@ fn main() { // they are used internally by "config-rsa.h" if sig_rsa { conf.define("MCUBOOT_SIGN_RSA_LEN", "2048"); - conf.define("CONFIG_BOOT_SIGNATURE_TYPE_RSA_2048", None); + conf.define("CONFIG_BOOT_SIGNATURE_TYPE_RSA_LEN", "2048"); } else { conf.define("MCUBOOT_SIGN_RSA_LEN", "3072"); - conf.define("CONFIG_BOOT_SIGNATURE_TYPE_RSA_3072", None); + conf.define("CONFIG_BOOT_SIGNATURE_TYPE_RSA_LEN", "3072"); } conf.define("MCUBOOT_USE_MBED_TLS", None);
[refactor] BIGNUM: Modify bn2binpad()'s setup to be more like bin2bn()'s
@@ -503,8 +503,10 @@ BIGNUM *BN_bin2bn(const unsigned char *s, int len, BIGNUM *ret) /* ignore negative */ static -int bn2binpad(const BIGNUM *a, unsigned char *to, int tolen, endianess_t endianess) +int bn2binpad(const BIGNUM *a, unsigned char *to, int tolen, + endianess_t endianess) { + int inc; int n; size_t i, lasti, j, atop, mask; BN_ULONG l; @@ -534,19 +536,28 @@ int bn2binpad(const BIGNUM *a, unsigned char *to, int tolen, endianess_t endiane return tolen; } + /* + * The loop that does the work iterates from least significant + * to most significant BIGNUM limb, so we adapt parameters to + * tranfer output bytes accordingly. + */ + switch (endianess) { + case LITTLE: + inc = 1; + break; + case BIG: + inc = -1; + to += tolen - 1; /* Move to the last byte, not beyond */ + break; + } + lasti = atop - 1; atop = a->top * BN_BYTES; - if (endianess == BIG) - to += tolen; /* start from the end of the buffer */ for (i = 0, j = 0; j < (size_t)tolen; j++) { - unsigned char val; l = a->d[i / BN_BYTES]; mask = 0 - ((j - atop) >> (8 * sizeof(i) - 1)); - val = (unsigned char)(l >> (8 * (i % BN_BYTES)) & mask); - if (endianess == BIG) - *--to = val; - else - *to++ = val; + *to = (unsigned char)(l >> (8 * (i % BN_BYTES)) & mask); + to += inc; i += (i - lasti) >> (8 * sizeof(i) - 1); /* stay on last limb */ }
Changed timer interval back to original value
@@ -108,7 +108,7 @@ int main(void) // Setup periodic timer to sample the sensors. static tock_timer_t timer; - timer_every(5000, timer_fired, NULL, &timer); + timer_every(1000, timer_fired, NULL, &timer); return 0; } \ No newline at end of file
Fix a memory leak in ossl_method_store_add() If the call to ossl_prop_defn_set() fails then the OSSL_PROPERTY_LIST we just created will leak. Found as a result of:
@@ -304,7 +304,11 @@ int ossl_method_store_add(OSSL_METHOD_STORE *store, const OSSL_PROVIDER *prov, impl->properties = ossl_parse_property(store->ctx, properties); if (impl->properties == NULL) goto err; - ossl_prop_defn_set(store->ctx, properties, impl->properties); + if (!ossl_prop_defn_set(store->ctx, properties, impl->properties)) { + ossl_property_free(impl->properties); + impl->properties = NULL; + goto err; + } } alg = ossl_method_store_retrieve(store, nid);
Update: NAL.h: set instance similarity as Robert W. found missing
@@ -74,6 +74,8 @@ R2( (P --> M), (S --> M), |-, (S <-> P), Truth_Comparison ) R2( (M --> P), (M --> S), |-, (S <-> P), Truth_Comparison ) R2( (M --> P), (S <-> M), |-, (S --> P), Truth_Analogy ) R2( (P --> M), (S <-> M), |-, (P --> S), Truth_Analogy ) +R2( ({M} --> P), (S <-> M), |-, ({S} --> P), Truth_Analogy ) +R2( (P --> [M]), (S <-> M), |-, (P --> [S]), Truth_Analogy ) R2( (M <-> P), (S <-> M), |-, (S <-> P), Truth_Resemblance ) R1( ({A} <-> {B}), |-, (A <-> B), Truth_StructuralDeduction ) R1( ([A] <-> [B]), |-, (A <-> B), Truth_StructuralDeduction )
Document how to build ngtcp2 with OpenSSL master
@@ -42,19 +42,22 @@ To build sources under the examples directory, libev is required: * libev -The client and server under examples directory require boringssl as -crypto backend: +The client and server under examples directory require boringssl or +OpenSSL (master branch) as crypto backend: * boringssl (https://boringssl.googlesource.com/boringssl/) +* or, OpenSSL (https://github.com/openssl/openssl/) -We plan to switch to OpenSSL once TLSv1.3 exporter is implemented in -OpenSSL (see `openssl/openssl#3680 -<https://github.com/openssl/openssl/issues/3680>`_). +At the of time writing, choosing crypto backend from them dictates +TLSv1.3 draft version. boringssl implements TLSv1.3 draft-18. On the +other hand, OpenSSL implements TLSv1.3 draft-20. They are +incompatible. If you want TLSv1.3 draft-18, choose boringssl. If you +want TLSv1.3 draft-20, choose OpenSSL. Build from git -------------- -Firstly, build boringssl: +If you choose boringssl, build it like so: .. code-block:: text @@ -63,17 +66,30 @@ Firstly, build boringssl: $ mkdir build $ cd build $ cmake .. - $ make + $ make -j$(nproc) $ cd ../../ + $ git clone https://github.com/ngtcp2/ngtcp2 + $ cd ngtcp2 + $ autoreconf -i + $ ./configure OPENSSL_CFLAGS=-I$PWD/../boringssl/include OPENSSL_LIBS="-L$PWD/../boringssl/build/ssl -L$PWD/../boringssl/build/crypto -lssl -lcrypto -pthread" + $ make -j$(nproc) check -Then build ngtcp2: +Otherwise, you choose OpenSSL, build it like so: .. code-block:: text + $ git clone --depth 1 https://github.com/openssl/openssl + $ cd openssl + $ # For Linux + $ ./Configure enable-tls1_3 --prefix=$PWD/build linux-x86_64 + $ make -j$(nproc) + $ make install_sw + $ cd .. $ git clone https://github.com/ngtcp2/ngtcp2 $ cd ngtcp2 $ autoreconf -i - $ ./configure OPENSSL_CFLAGS=-I$PWD/../boringssl/include OPENSSL_LIBS="-L$PWD/../boringssl/build/ssl -L$PWD/../boringssl/build/crypto -lssl -lcrypto -pthread" + $ ./configure PKG_CONFIG_PATH=$PWD/../openssl/build/lib/pkgconfig LDFLAGS="-Wl,-rpath,$PWD/../openssl/build/lib" + $ make -j$(nproc) check Client/Server -------------
Fix variable name in peripheral PHY update
@@ -40,7 +40,7 @@ static void connected(struct bt_conn *conn, u8_t err) bt_conn_le_param_update(conn, BT_LE_CONN_PARAM(0x0006, 0x000c, 30, 400)); #if IS_ENABLED(CONFIG_ZMK_SPLIT_BLE_ROLE_PERIPHERAL) - bt_conn_le_phy_update(default_conn, BT_CONN_LE_PHY_PARAM_2M); + bt_conn_le_phy_update(conn, BT_CONN_LE_PHY_PARAM_2M); #endif if (bt_conn_set_security(conn, BT_SECURITY_L2))
stack trace: add a function that dumps the stack from caller
@@ -176,6 +176,17 @@ void __print_stack_with_rbp(u64 *rbp) } } +void __print_stack_from_here() +{ + u64 register rbp asm("rbp"); + __print_stack_with_rbp(rbp); +} + +void print_stack_from_here(void) +{ + __print_stack_from_here(0); +} + void print_stack(context c) { console("stack trace: \n");
common/battery.c: Format with clang-format BRANCH=none TEST=none
@@ -77,7 +77,12 @@ static int check_print_error(int rv) static void print_battery_status(void) { - static const char * const st[] = {"EMPTY", "FULL", "DCHG", "INIT",}; + static const char *const st[] = { + "EMPTY", + "FULL", + "DCHG", + "INIT", + }; static const char *const al[] = { "RT", "RC", "--", "TD", "OT", "--", "TC", "OC" }; @@ -138,10 +143,8 @@ static void print_battery_params(void) ccprintf("%08x\n", batt->flags); print_item_name("Temp:"); - ccprintf("0x%04x = %.1d K (%.1d C)\n", - batt->temperature, - batt->temperature, - batt->temperature - 2731); + ccprintf("0x%04x = %.1d K (%.1d C)\n", batt->temperature, + batt->temperature, batt->temperature - 2731); print_item_name("V:"); ccprintf("0x%04x = %d mV\n", batt->voltage, batt->voltage); @@ -289,8 +292,7 @@ static int command_battery(int argc, char **argv) return EC_SUCCESS; } -DECLARE_CONSOLE_COMMAND(battery, command_battery, - "<repeat_count> <sleep_ms>", +DECLARE_CONSOLE_COMMAND(battery, command_battery, "<repeat_count> <sleep_ms>", "Print battery info"); #ifdef CONFIG_BATTERY_CUT_OFF @@ -384,8 +386,7 @@ static int command_cutoff(int argc, char **argv) return EC_ERROR_UNKNOWN; } -DECLARE_CONSOLE_COMMAND(cutoff, command_cutoff, - "[at-shutdown]", +DECLARE_CONSOLE_COMMAND(cutoff, command_cutoff, "[at-shutdown]", "Cut off the battery output"); #else int battery_is_cut_off(void) @@ -488,11 +489,9 @@ host_command_battery_vendor_param(struct host_cmd_handler_args *args) return rv; } DECLARE_HOST_COMMAND(EC_CMD_BATTERY_VENDOR_PARAM, - host_command_battery_vendor_param, - EC_VER_MASK(0)); + host_command_battery_vendor_param, EC_VER_MASK(0)); #endif /* CONFIG_BATTERY_VENDOR_PARAM */ - void battery_compensate_params(struct batt_params *batt) { int numer, denom; @@ -602,7 +601,8 @@ __overridable enum battery_disconnect_state battery_get_disconnect_state(void) * Returns true if input voltage should be reduced (chipset is in S5/G3) and * battery is full, otherwise returns false */ -static bool board_wants_reduced_input_voltage(void) { +static bool board_wants_reduced_input_voltage(void) +{ struct batt_params batt; /* Chipset not in S5/G3, so we don't want to reduce voltage */ @@ -656,8 +656,7 @@ static void reduce_input_voltage_when_full(void) if (pd_get_max_voltage() != max_pd_voltage_mv) pd_set_external_voltage_limit(port, max_pd_voltage_mv); } -DECLARE_HOOK(HOOK_AC_CHANGE, reduce_input_voltage_when_full, - HOOK_PRIO_DEFAULT); +DECLARE_HOOK(HOOK_AC_CHANGE, reduce_input_voltage_when_full, HOOK_PRIO_DEFAULT); DECLARE_HOOK(HOOK_BATTERY_SOC_CHANGE, reduce_input_voltage_when_full, HOOK_PRIO_DEFAULT); DECLARE_HOOK(HOOK_CHIPSET_STARTUP, reduce_input_voltage_when_full,
CRRA: mars.model not needed
@@ -39,14 +39,11 @@ alias mars.param = paramId; alias mars.origin = centre; if (section2Used == 1) { -# constant marsLamModel = 'lam'; -# alias mars.model = marsLamModel; # model redefined. It is not 'glob' alias mars.origin = crraSuiteID; # origin is the suiteName - unalias mars.domain; # No mars domain needed - unalias mars.model; # No mars model needed + unalias mars.domain; + unalias mars.model; } - # See GRIB-911 re typeOfProcessedData values in UERRA concept marsType {
lyb parser BUGFIX NULL dereference
@@ -330,8 +330,10 @@ lyb_parse_model(struct lylyb_ctx *lybctx, uint32_t parse_options, const struct l } + if (*mod) { /* fill cached hashes, if not already */ lyb_cache_module_hash(*mod); + } cleanup: free(mod_name);
esp_hw_support: Adds a msg when 32k xtal was stopped
@@ -135,8 +135,14 @@ uint64_t rtc_time_slowclk_to_us(uint64_t rtc_cycles, uint32_t period) uint64_t rtc_time_get(void) { SET_PERI_REG_MASK(RTC_CNTL_TIME_UPDATE_REG, RTC_CNTL_TIME_UPDATE); + int attempts = 1000; while (GET_PERI_REG_MASK(RTC_CNTL_TIME_UPDATE_REG, RTC_CNTL_TIME_VALID) == 0) { esp_rom_delay_us(1); // might take 1 RTC slowclk period, don't flood RTC bus + if (attempts) { + if (--attempts == 0 && REG_GET_FIELD(RTC_CNTL_CLK_CONF_REG, RTC_CNTL_DIG_XTAL32K_EN)) { + ESP_HW_LOGE(TAG, "rtc_time_get() 32kHz xtal has been stopped"); + } + } } SET_PERI_REG_MASK(RTC_CNTL_INT_CLR_REG, RTC_CNTL_TIME_VALID_INT_CLR); uint64_t t = READ_PERI_REG(RTC_CNTL_TIME0_REG); @@ -155,8 +161,14 @@ void rtc_clk_wait_for_slow_cycle(void) REG_SET_FIELD(TIMG_RTCCALICFG_REG(0), TIMG_RTC_CALI_MAX, 0); REG_SET_BIT(TIMG_RTCCALICFG_REG(0), TIMG_RTC_CALI_START); esp_rom_delay_us(1); /* RDY needs some time to go low */ + int attempts = 1000; while (!GET_PERI_REG_MASK(TIMG_RTCCALICFG_REG(0), TIMG_RTC_CALI_RDY)) { esp_rom_delay_us(1); + if (attempts) { + if (--attempts == 0 && REG_GET_FIELD(RTC_CNTL_CLK_CONF_REG, RTC_CNTL_DIG_XTAL32K_EN)) { + ESP_HW_LOGE(TAG, "32kHz xtal has been stopped"); + } + } } }
Add missing examples and sort into alphabetical order
cmake_minimum_required(VERSION 3.1) project (examples) include (../32blit.cmake) +add_subdirectory(another-world) add_subdirectory(audio-test) add_subdirectory(audio-wave) add_subdirectory(doom-fire) @@ -25,5 +26,6 @@ add_subdirectory(sprite-test) add_subdirectory(text) add_subdirectory(tilemap-test) add_subdirectory(tilt) -add_subdirectory(tunnel) add_subdirectory(timer-test) +add_subdirectory(tunnel) +add_subdirectory(tween-test)
Fix typo in the API documentation JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik
@@ -1384,7 +1384,7 @@ Returns whether the given `jerry_value_t` is a number. ```c bool -jerry_value_is_function (const jerry_value_t value) +jerry_value_is_number (const jerry_value_t value) ``` - `value` - api value
Add error if hyperparameters tuning after fitting - v.2
@@ -3049,12 +3049,10 @@ class CatBoost(_CatBoostBase): search_by_train_test_split, calc_cv_statistics, custom_folds, verbose ) - if not self.is_fitted(): - self.set_params(**cv_result['params']) - else: - raise CatBoostError("Model was fitted before hyperparameters tuning. You can't change hyperparameters of fitted model.") - if refit: + if self.is_fitted(): + raise CatBoostError("Model was fitted before hyperparameters tuning. You can't change hyperparameters of fitted model.") + self.set_params(**cv_result['params']) self.fit(X, y, silent=True) return cv_result
m3_test fixes
@@ -24,10 +24,13 @@ bool AreFuncTypesEqual (const IM3FuncType i_typeA, const IM3FuncType i_typeB) if (i_typeA->returnType == i_typeB->returnType) { if (i_typeA->numArgs == i_typeB->numArgs) + { + if (i_typeA->argTypes and i_typeB->argTypes) { return (memcmp (i_typeA->argTypes, i_typeB->argTypes, i_typeA->numArgs) == 0); } } + } return false; }
OcAppleDiskImageLib: Fix DP construction
@@ -197,7 +197,7 @@ InternalConstructDmgDevicePath ( SetDevicePathNodeLength (&DevPath->MemMap, sizeof (DevPath->MemMap)); DevPath->FilePath.Header.Type = MEDIA_DEVICE_PATH; - DevPath->FilePath.Header.Type = MEDIA_FILEPATH_DP; + DevPath->FilePath.Header.SubType = MEDIA_FILEPATH_DP; SetDevicePathNodeLength (&DevPath->FilePath, sizeof (DevPath->FilePath)); UnicodeSPrint ( DevPath->FilePath.PathName,
More explicit referencing
/- sole, lens :: console structures /+ sole :: console library =, sole -=, space:userlib -=, format :: :: :: :::: :: :::: :: :: :: :: =? a &(?=(^ a) =('' i.a)) t.a - =+((de-beam a) ?^(- u [he-beak (flop a)])) + =+((de-beam:format a) ?^(- u [he-beak (flop a)])) =+ vez=(vang | dp-path) (sear plex:vez (stag %clsg poor:vez)) :: auru:de-purl:html :: ++ dp-model ;~(plug dp-server dp-config) :: ++dojo-model - ++ dp-path (en-beam he-beam) :: ++path + ++ dp-path (en-beam:format he-beam) :: ++path ++ dp-server (stag 0 (most net sym)) :: ++dojo-server ++ dp-hoon tall:(vang | dp-path) :: ++hoon ++ dp-rood :: 'dir' hoon - => (vang | (en-beam dir)) + => (vang | (en-beam:format dir)) ;~ pose rood :: ?: ?=({@ ~} pax) ~[i.pax %home '0'] ?: ?=({@ @ ~} pax) ~[i.pax i.t.pax '0'] pax - =. dir (need (de-beam pax)) + =. dir (need (de-beam:format pax)) =- +>(..dy (he-diff %tan - ~)) - rose+[" " `~]^~[leaf+"=%" (smyt (en-beam he-beak s.dir))] + rose+[" " `~]^~[leaf+"=%" (smyt (en-beam:format he-beak s.dir))] == :: $help %info /file our.hid - (foal (en-beam p.p.mad) cay) + (foal:space:userlib (en-beam:format p.p.mad) cay) == :: $flat ?- -.sink.com $stdout [%show %0] $output-file $(sink.com [%command (cat 3 '@' pax.sink.com)]) - $output-clay [%file (need (de-beam pax.sink.com))] + $output-clay [%file (need (de-beam:format pax.sink.com))] $url [%http %post `~. url.sink.com] $to-api !! $send-api [%poke our.hid api.sink.com]
move wrong comments
@@ -2601,6 +2601,12 @@ int mbedtls_ssl_session_save( const mbedtls_ssl_session *session, return( ssl_session_save( session, 0, buf, buf_len, olen ) ); } +/* + * Deserialize session, see mbedtls_ssl_session_save() for format. + * + * This internal version is wrapped by a public function that cleans up in + * case of error, and has an extra option omit_header. + */ static int ssl_session_load( mbedtls_ssl_session *session, unsigned char omit_header, const unsigned char *buf, @@ -7727,12 +7733,6 @@ static size_t ssl_session_save_tls12( const mbedtls_ssl_session *session, return( used ); } -/* - * Deserialize session, see mbedtls_ssl_session_save() for format. - * - * This internal version is wrapped by a public function that cleans up in - * case of error, and has an extra option omit_header. - */ static int ssl_session_load_tls12( mbedtls_ssl_session *session, const unsigned char *buf, size_t len )
Add setting for disabling linux support to options window
* options window * * Copyright (C) 2010-2016 wj32 - * Copyright (C) 2017-2018 dmex + * Copyright (C) 2017-2019 dmex * * This file is part of Process Hacker. * @@ -996,6 +996,7 @@ typedef enum _PHP_OPTIONS_INDEX PHP_OPTIONS_INDEX_ENABLE_UNDECORATE_SYMBOLS, PHP_OPTIONS_INDEX_ENABLE_CYCLE_CPU_USAGE, PHP_OPTIONS_INDEX_ENABLE_THEME_SUPPORT, + PHP_OPTIONS_INDEX_ENABLE_LINUX_SUPPORT, PHP_OPTIONS_INDEX_ENABLE_NETWORK_RESOLVE, PHP_OPTIONS_INDEX_ENABLE_INSTANT_TOOLTIPS, PHP_OPTIONS_INDEX_ENABLE_STAGE2, @@ -1033,6 +1034,7 @@ static VOID PhpAdvancedPageLoad( PhAddListViewItem(listViewHandle, PHP_OPTIONS_INDEX_ENABLE_UNDECORATE_SYMBOLS, L"Enable undecorated symbols", NULL); PhAddListViewItem(listViewHandle, PHP_OPTIONS_INDEX_ENABLE_CYCLE_CPU_USAGE, L"Enable cycle-based CPU usage", NULL); PhAddListViewItem(listViewHandle, PHP_OPTIONS_INDEX_ENABLE_THEME_SUPPORT, L"Enable theme support (experimental)", NULL); + PhAddListViewItem(listViewHandle, PHP_OPTIONS_INDEX_ENABLE_LINUX_SUPPORT, L"Enable Windows subsystem for Linux support", NULL); PhAddListViewItem(listViewHandle, PHP_OPTIONS_INDEX_ENABLE_NETWORK_RESOLVE, L"Resolve network addresses", NULL); PhAddListViewItem(listViewHandle, PHP_OPTIONS_INDEX_ENABLE_INSTANT_TOOLTIPS, L"Show tooltips instantly", NULL); PhAddListViewItem(listViewHandle, PHP_OPTIONS_INDEX_ENABLE_STAGE2, L"Check images for digital signatures", NULL); @@ -1054,6 +1056,7 @@ static VOID PhpAdvancedPageLoad( SetLvItemCheckForSetting(listViewHandle, PHP_OPTIONS_INDEX_ENABLE_UNDECORATE_SYMBOLS, L"DbgHelpUndecorate"); SetLvItemCheckForSetting(listViewHandle, PHP_OPTIONS_INDEX_ENABLE_CYCLE_CPU_USAGE, L"EnableCycleCpuUsage"); SetLvItemCheckForSetting(listViewHandle, PHP_OPTIONS_INDEX_ENABLE_THEME_SUPPORT, L"EnableThemeSupport"); + SetLvItemCheckForSetting(listViewHandle, PHP_OPTIONS_INDEX_ENABLE_LINUX_SUPPORT, L"EnableLinuxSubsystemSupport"); SetLvItemCheckForSetting(listViewHandle, PHP_OPTIONS_INDEX_ENABLE_NETWORK_RESOLVE, L"EnableNetworkResolve"); SetLvItemCheckForSetting(listViewHandle, PHP_OPTIONS_INDEX_ENABLE_INSTANT_TOOLTIPS, L"EnableInstantTooltips"); SetLvItemCheckForSetting(listViewHandle, PHP_OPTIONS_INDEX_ENABLE_STAGE2, L"EnableStage2"); @@ -1145,6 +1148,7 @@ static VOID PhpAdvancedPageSave( SetSettingForLvItemCheck(listViewHandle, PHP_OPTIONS_INDEX_ENABLE_UNDECORATE_SYMBOLS, L"DbgHelpUndecorate"); SetSettingForLvItemCheckRestartRequired(listViewHandle, PHP_OPTIONS_INDEX_ENABLE_CYCLE_CPU_USAGE, L"EnableCycleCpuUsage"); SetSettingForLvItemCheckRestartRequired(listViewHandle, PHP_OPTIONS_INDEX_ENABLE_THEME_SUPPORT, L"EnableThemeSupport"); + SetSettingForLvItemCheckRestartRequired(listViewHandle, PHP_OPTIONS_INDEX_ENABLE_LINUX_SUPPORT, L"EnableLinuxSubsystemSupport"); SetSettingForLvItemCheckRestartRequired(listViewHandle, PHP_OPTIONS_INDEX_ENABLE_NETWORK_RESOLVE, L"EnableNetworkResolve"); SetSettingForLvItemCheck(listViewHandle, PHP_OPTIONS_INDEX_ENABLE_INSTANT_TOOLTIPS, L"EnableInstantTooltips"); SetSettingForLvItemCheckRestartRequired(listViewHandle, PHP_OPTIONS_INDEX_ENABLE_STAGE2, L"EnableStage2");
test/run_tests.pl: Add visual separator after failed test case for VFP and VFP modes
@@ -181,6 +181,7 @@ $eres = eval { print $output_buffer if !$is_ok; print "\n".$self->as_string if !$is_ok || $failure_verbosity == 2; + print "\n# ------------------------------------------------------------------------------" if !$is_ok; $output_buffer = ""; } elsif ($self->as_string ne "") { # typically is_comment or is_unknown
Print Dimm ID using preferences in OS
@@ -2357,12 +2357,10 @@ GetPreferredDimmIdAsString( if (pResultString == NULL) { goto Finish; } -#ifndef OS_BUILD ReturnCode = GetDimmIdentifierPreference(&DimmIdentifier); if (EFI_ERROR(ReturnCode)) { goto Finish; } -#endif ReturnCode = GetPreferredValueAsString(DimmId, pDimmUid, DimmIdentifier == DISPLAY_DIMM_ID_HANDLE, pResultString, ResultStringLen); if (EFI_ERROR(ReturnCode)) {
API: C generator improve symbol protection.
@@ -85,8 +85,8 @@ def msg_name_crc_list(s, suffix): def duplicate_wrapper_head(name): - s = "#ifndef defined_%s\n" % name - s += "#define defined_%s\n" % name + s = "#ifndef _vl_api_defined_%s\n" % name + s += "#define _vl_api_defined_%s\n" % name return s
apps/wireless/bluetooth/btsak/btsak_scan.c: Fix reversed address
@@ -185,9 +185,9 @@ static void btsak_cmd_scanget(FAR struct btsak_s *btsak, FAR char *cmd, printf("%2d.\taddr: " "%02x:%02x:%02x:%02x:%02x:%02x type: %d\n", i + 1, - rsp->sr_addr.val[0], rsp->sr_addr.val[1], - rsp->sr_addr.val[2], rsp->sr_addr.val[3], - rsp->sr_addr.val[4], rsp->sr_addr.val[5], + rsp->sr_addr.val[5], rsp->sr_addr.val[4], + rsp->sr_addr.val[3], rsp->sr_addr.val[2], + rsp->sr_addr.val[1], rsp->sr_addr.val[0], rsp->sr_addr.type); printf("\trssi: %d\n", rsp->sr_rssi); printf("\tresponse type: %u\n", rsp->sr_type);
fixed wren runtime error
@@ -104,7 +104,7 @@ class TIC {\n\ foreign static music(track, frame)\n\ foreign static music(track, frame, loop)\n\ foreign static time()\n\ - foreign static timestamp()\n\ + foreign static tstamp()\n\ foreign static sync()\n\ foreign static sync(mask)\n\ foreign static sync(mask, bank)\n\
[config_tool] Real time vCPU checkbox is confusing to users add tooltip to explain "Real-time vCPU" use the one generated from the XSD files to generate tooltip infomation.
<b-col></b-col> <b-col></b-col> <b-col>Virtual CPU ID</b-col> - <b-col class="ps-5">Real-time vCPU:</b-col> + <b-col class="ps-5"> + <label> + <n-popover trigger="hover" placement="top-start" style="width: 500px"> + <template #trigger> + <IconInfo/> + </template> + <span v-html="this.CPUAffinityConfiguration.properties.real_time_vcpu.description"> </span> + </n-popover> + Real-time vCPU:</label> + </b-col> <b-col></b-col> </b-row> <b-row class="align-items-center" <IconInfo/> </template> <span v-html="this.CPUAffinityConfiguration.properties.pcpu_id.description"></span> - </n-popover>pCPU ID + </n-popover> + pCPU ID </label> </b-col> <b-col>