message
stringlengths 6
474
| diff
stringlengths 8
5.22k
|
---|---|
stm32f4: Fix SBF clear bit
The STM32F412 and STM32F446 reference manuals seem
to indicate that the SBF clear bit is actually bit 3.
BRANCH=hatch
TEST=make buildall -j | #define STM32_PWR_RESET_CAUSE STM32_PWR_CSR
#define RESET_CAUSE_SBF BIT(1)
#define STM32_PWR_RESET_CAUSE_CLR STM32_PWR_CR
-#define RESET_CAUSE_SBF_CLR BIT(2)
+#define RESET_CAUSE_SBF_CLR BIT(3)
/* --- Watchdogs --- */
|
Fix setting of IPV6_V6ONLY on Windows | @@ -175,8 +175,10 @@ int BIO_listen(int sock, const BIO_ADDR *addr, int options)
return 0;
# ifndef OPENSSL_SYS_WINDOWS
- /* SO_REUSEADDR has different behavior on Windows than on
- * other operating systems, don't set it there. */
+ /*
+ * SO_REUSEADDR has different behavior on Windows than on
+ * other operating systems, don't set it there.
+ */
if (options & BIO_SOCK_REUSEADDR) {
if (setsockopt(sock, SOL_SOCKET, SO_REUSEADDR,
(const void *)&on, sizeof(on)) != 0) {
@@ -206,7 +208,12 @@ int BIO_listen(int sock, const BIO_ADDR *addr, int options)
}
# ifdef IPV6_V6ONLY
- if ((options & BIO_SOCK_V6_ONLY) && BIO_ADDR_family(addr) == AF_INET6) {
+ if (BIO_ADDR_family(addr) == AF_INET6) {
+ /*
+ * Note: Windows default of IPV6_V6ONLY is ON, and Linux is OFF.
+ * Therefore we always have to use setsockopt here.
+ */
+ on = options & BIO_SOCK_V6_ONLY ? 1 : 0;
if (setsockopt(sock, IPPROTO_IPV6, IPV6_V6ONLY,
(const void *)&on, sizeof(on)) != 0) {
SYSerr(SYS_F_SETSOCKOPT, get_last_socket_error());
|
HV: change wake vector info to accommodate abl
MRB bootloader is switched to ABL, so change platform acpi info accordingly
to support system S3.
Acked-by: Eddie Dong | @@ -48,7 +48,12 @@ const struct acpi_info host_acpi_info = {
.val_pm1b = 0U,
.reserved = 0U
},
+#if 0 /* set to 0 if run with ABL, set to 1 if switch back to SBL; */
.wake_vector_32 = (uint32_t *)0x7A86BBDCUL,
.wake_vector_64 = (uint64_t *)0x7A86BBE8UL
+#else
+ .wake_vector_32 = (uint32_t *)0x7AEDCEFCUL,
+ .wake_vector_64 = (uint64_t *)0x7AEDCF08UL
+#endif
}
};
|
Update build docs help in CONTRIBUTING.md | @@ -98,20 +98,21 @@ identify issues early on in their work.
#### Documentation
-HSE's public API is annotated with Doxygen and includes a few graphs that can be
-rendered with Graphviz. Run the following to set it up:
+HSE's public API documentation is generated from the source code with Doxygen.
+The following commands will generate static HTML in `build/docs/doxygen/output/html`.
```shell
-meson setup -C build -Ddocs=true
-meson compile -C build doxygen
+meson setup build -Ddocs=enabled
+meson compile -C build docs
```
-Static HTML Doxygen files will be generated in `build/docs/doxygen/api/html`.
+A run target has also been provided to start a Python webserver that serves the
+generated HTML. The server's port number is designated by the kernel unless the
+environment variable `HSE_DOXYGEN_SERVE_PORT` is set to a port number.
-A run target has also been provided called `doxygen-serve`, which will start a
-Python webserver to serve the generated doxygen web pages. The assigned port
-is designated by the kernel by default unless the environment variable
-`HSE_DOXYGEN_SERVE_PORT` is set to a port number.
+```shell
+meson compile -C build doxygen-serve
+```
### Installing
|
fixed filterlist bug - do not use filterlist if we transmit broadcast proberequests | @@ -50,7 +50,7 @@ static int fd_pcapng;
static int fd_ippcapng;
static int fd_weppcapng;
-maclist_t *filterlist;
+static maclist_t *filterlist;
static int filterlist_len;
maclist_t *beaconlist;
@@ -414,6 +414,7 @@ static inline bool checkfilterlistentry(uint8_t *filtermac)
static int c;
static maclist_t * zeiger;
+
zeiger = filterlist;
for(c = 0; c < filterlist_len; c++)
{
@@ -423,6 +424,7 @@ for(c = 0; c < filterlist_len; c++)
}
zeiger++;
}
+
return false;
}
/*===========================================================================*/
@@ -755,15 +757,6 @@ const uint8_t undirectedproberequestdata[] =
static uint8_t packetout[1024];
-if((filtermode == 1) && (checkfilterlistentry(macfrx->addr2) == true))
- {
- return;
- }
-if((filtermode == 2) && (checkfilterlistentry(macfrx->addr2) == false))
- {
- return;
- }
-
memset(&packetout, 0, HDRRT_SIZE +MAC_SIZE_NORM +UNDIRECTEDPROBEREQUEST_SIZE +1);
memcpy(&packetout, &hdradiotap, HDRRT_SIZE);
macftx = (mac_t*)(packetout +HDRRT_SIZE);
@@ -2501,8 +2494,8 @@ return len;
/*===========================================================================*/
static inline int readfilterlist(char *listname, maclist_t *zeiger)
{
-int len;
int c;
+int len;
static FILE *fh_filter;
static char linein[FILTERLIST_LINE_LEN];
@@ -3149,9 +3142,6 @@ if(globalinit() == false)
exit(EXIT_FAILURE);
}
-
-
-
processpackets();
|
rune/skeleton: fix build failure due to wrong dependency to aesm.pb-c.c
aesm.c requires aesm.pb-c.[ch] but they are not explicitly listed in the
dependency.
Fixes: | @@ -85,10 +85,10 @@ $(OUTPUT)/liberpal-skeleton-v3.o: liberpal-skeleton-v3.c liberpal-skeleton.c
$(OUTPUT)/tls-server.o: tls-server.c
$(CC) $(HOST_CFLAGS) -c $< -o $@
-$(OUTPUT)/aesm.o: aesm.c
+$(OUTPUT)/aesm.o: aesm.c $(OUTPUT)/aesm.pb-c.c
$(CC) $(HOST_CFLAGS) -c $< -o $@
-$(OUTPUT)/aesm.pb-c.o: aesm.pb-c.c
+$(OUTPUT)/aesm.pb-c.o: $(OUTPUT)/aesm.pb-c.c
$(CC) $(HOST_CFLAGS) -c $< -o $@
$(OUTPUT)/aesm.pb-c.c: aesm.proto2 aesm.proto3
@@ -99,7 +99,6 @@ else ifeq ($(PROTOBUF_VERSION),3)
else
@echo "Unsupported protobuf version"
endif
-
@protoc-c --c_out=. aesm.proto
@rm aesm.proto
@@ -139,14 +138,13 @@ EXTRA_CLEAN := \
$(OUTPUT)/encl.ss \
$(OUTPUT)/sgx_call.o \
$(OUTPUT)/aesm.o \
- $(OUTPUT)/aesm.pb-c.o \
+ $(OUTPUT)/aesm.pb-c* \
$(OUTPUT)/sgxutils.o \
$(OUTPUT)/sgxsign \
$(OUTPUT)/liberpal-skeleton*.o \
$(OUTPUT)/tls-server.o \
$(OUTPUT)/liberpal-skeleton*.so \
- $(OUTPUT)/signing_key.pem \
- $(OUTPUT)/aesm.pb-c*
+ $(OUTPUT)/signing_key.pem
DIRS_TO_CLEAN := ../kvmtool
ifdef TLS_SERVER
|
tasty-lua: remove stack.yaml from extra-source-files | @@ -13,7 +13,6 @@ build-type: Simple
extra-source-files: CHANGELOG.md
, tasty.lua
, test/test-tasty.lua
- , stack.yaml
cabal-version: >=1.10
tested-with: GHC == 8.0.2
, GHC == 8.2.2
|
HW: Setting SDRAM_SIZE to 1MB in case BRAM_USED=TRUE | @@ -33,6 +33,9 @@ else
SDRAM_SIZE="x\"1000\""
fi
fi
+if [ "${BRAM_USED^^}" == "TRUE" ]; then
+ SDRAM_SIZE="x\"0001\""
+fi
if [ "${DDRI_USED^^}" == "TRUE" ]; then
DDRI_FILTER="\-\- only for DDRI_USED!=TRUE"
|
Rework __GLIBC_PREREQ checks to avoid breaking non-glibc builds | @@ -155,7 +155,6 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifdef DYNAMIC_ARCH
gotoblas_t *gotoblas = NULL;
#endif
-
extern void openblas_warning(int verbose, const char * msg);
#ifndef SMP
@@ -187,7 +186,7 @@ int i,n;
#if !defined(__GLIBC_PREREQ)
return nums;
-#endif
+#else
#if !__GLIBC_PREREQ(2, 3)
return nums;
#endif
@@ -204,8 +203,7 @@ int i,n;
nums = CPU_COUNT(sizeof(cpu_set_t),cpusetp);
#endif
return nums;
-#endif
-
+ #else
cpusetp = CPU_ALLOC(nums);
if (cpusetp == NULL) return nums;
size = CPU_ALLOC_SIZE(nums);
@@ -214,6 +212,8 @@ int i,n;
nums = CPU_COUNT_S(size,cpusetp);
CPU_FREE(cpusetp);
return nums;
+ #endif
+#endif
}
#endif
#endif
|
build: fix build for debian testing
1. add libelf-dev to default deb deps
2. Also use libffi7 instead of libffi6 for debian-testing
Type: fix | @@ -72,7 +72,7 @@ DEB_DEPENDS += python3-venv # ensurepip
DEB_DEPENDS += python3-dev # needed for python3 -m pip install psutil
# python3.6 on 16.04 requires python36-dev
-LIBFFI=libffi6 # works on all but 20.04
+LIBFFI=libffi6 # works on all but 20.04 and debian-testing
ifeq ($(OS_VERSION_ID),18.04)
DEB_DEPENDS += python-dev python-all python-pip python-virtualenv
@@ -92,6 +92,8 @@ else ifeq ($(OS_ID)-$(OS_VERSION_ID),debian-10)
DEB_DEPENDS += libelf-dev # for libbpf (af_xdp)
else
DEB_DEPENDS += libssl-dev
+ DEB_DEPENDS += libelf-dev # for libbpf (af_xdp)
+ LIBFFI=libffi7
endif
DEB_DEPENDS += $(LIBFFI)
|
ssh session CHANGE add error code to message | @@ -1316,7 +1316,7 @@ nc_ssh_bind_add_hostkeys(ssh_bind sbind, const char **hostkeys, uint8_t hostkey_
free(privkey_data);
if (ret != SSH_OK) {
- ERR("Failed to set hostkey \"%s\" (%s).", hostkeys[i], ssh_get_error(sbind));
+ ERR("Failed to set hostkey \"%s\" (%d: %s).", hostkeys[i], ret, ssh_get_error(sbind));
return -1;
}
}
|
Fixed an issue that supported later versions of mbedtls than mbedtls-2.6.1 | #include "mbedtls/rsa.h"
#include "mbedtls/asn1.h"
+#include "mbedtls/version.h"
#include "bootutil_priv.h"
@@ -89,9 +90,18 @@ bootutil_parse_rsakey(mbedtls_rsa_context *ctx, uint8_t **p, uint8_t *end)
return -4;
}
- if ((rc = mbedtls_rsa_check_pubkey(ctx)) != 0) {
+ /* The mbedtls version is more than 2.6.1 */
+#if MBEDTLS_VERSION_NUMBER > 0x02060100
+ rc = mbedtls_rsa_import(ctx, &ctx->N, NULL, NULL, NULL, &ctx->E);
+ if (rc != 0) {
return -5;
}
+#endif
+
+ rc = mbedtls_rsa_check_pubkey(ctx);
+ if (rc != 0) {
+ return -6;
+ }
ctx->len = mbedtls_mpi_size(&ctx->N);
|
raspberrypi3-64.conf: Don't use raspberrypi as MACHINEOVERRIDES
The current setup broke the build for rpi3-64 when we wanted to port
some changes from rpi3 to rpi0. | #@NAME: RaspberryPi 3 Development Board
#@DESCRIPTION: Machine configuration for the RaspberryPi 3 in 64 bits mode
-MACHINEOVERRIDES = "raspberrypi3:raspberrypi:${MACHINE}"
+MACHINEOVERRIDES = "raspberrypi3:${MACHINE}"
MACHINE_EXTRA_RRECOMMENDS += "linux-firmware-bcm43430"
|
Add missing double quotes to info statements in bv_mili.sh. | @@ -72,7 +72,7 @@ function bv_mili_ensure
function apply_mili_151_darwin_patch1
{
- info "Applying Mili 15.1 darwin patch 1.
+ info "Applying Mili 15.1 darwin patch 1."
patch -p0 << \EOF
diff -c mili/src/mesh_u.c mili.patched/src/mesh_u.c
*** mili/src/mesh_u.c 2015-09-22 13:20:42.000000000 -0700
@@ -105,7 +105,7 @@ EOF
function apply_mili_151_darwin_patch2
{
- info "Applying Mili 15.1 darwin patch 2.
+ info "Applying Mili 15.1 darwin patch 2."
patch -p0 << \EOF
*** mili/Makefile.Library 2013-12-10 12:55:55.000000000 -0800
--- mili.patched/Makefile.Library 2015-10-20 13:37:27.000000000 -0700
@@ -131,7 +131,7 @@ EOF
function apply_mili_151_darwin_patch3
{
- info "Applying Mili 15.1 darwin patch 3.
+ info "Applying Mili 15.1 darwin patch 3."
patch -p0 << \EOF
*** mili/src/mili_internal.h 2015-09-17 13:26:32.000000000 -0700
--- mili.patched/src/mili_internal.h 2015-10-20 16:57:21.000000000 -0700
@@ -218,7 +218,7 @@ EOF
function apply_mili_221_cflags_patch
{
- info "Applying Mili 22.1 CFLAGS patch.
+ info "Applying Mili 22.1 CFLAGS patch."
patch -p0 << \EOF
diff -c mili-22.1/configure.orig mili-22.1/configure
*** mili-22.1/configure.orig 2022-06-16 13:45:39.195734000 -0700
|
add the comment of irq.c | * 2006-05-03 Bernard add IRQ_DEBUG
* 2016-08-09 ArdaFu add interrupt enter and leave hook.
* 2018-11-22 Jesven rt_interrupt_get_nest function add disable irq
+ * 2021-08-15 Supperthomas fix the comment
*/
#include <rthw.h>
@@ -21,19 +22,26 @@ static void (*rt_interrupt_leave_hook)(void);
/**
* @ingroup Hook
- * This function set a hook function when the system enter a interrupt
+ *
+ * @brief This function set a hook function when the system enter a interrupt
*
* @note the hook function must be simple and never be blocked or suspend.
+ *
+ * @param hook The function point to be called
*/
void rt_interrupt_enter_sethook(void (*hook)(void))
{
rt_interrupt_enter_hook = hook;
}
+
/**
* @ingroup Hook
- * This function set a hook function when the system exit a interrupt.
+ *
+ * @brief This function set a hook function when the system exit a interrupt.
*
* @note the hook function must be simple and never be blocked or suspend.
+ *
+ * @param hook The function point to be called
*/
void rt_interrupt_leave_sethook(void (*hook)(void))
{
@@ -53,8 +61,9 @@ void rt_interrupt_leave_sethook(void (*hook)(void))
volatile rt_uint8_t rt_interrupt_nest = 0;
#endif /* RT_USING_SMP */
+
/**
- * This function will be invoked by BSP, when enter interrupt service routine
+ * @brief This function will be invoked by BSP, when enter interrupt service routine
*
* @note please don't invoke this routine in application
*
@@ -74,8 +83,9 @@ void rt_interrupt_enter(void)
}
RTM_EXPORT(rt_interrupt_enter);
+
/**
- * This function will be invoked by BSP, when leave interrupt service routine
+ * @brief This function will be invoked by BSP, when leave interrupt service routine
*
* @note please don't invoke this routine in application
*
@@ -95,13 +105,14 @@ void rt_interrupt_leave(void)
}
RTM_EXPORT(rt_interrupt_leave);
+
/**
- * This function will return the nest of interrupt.
+ * @brief This function will return the nest of interrupt.
*
* User application can invoke this function to get whether current
* context is interrupt context.
*
- * @return the number of nested interrupts.
+ * @return rt_uint8_t the number of nested interrupts.
*/
RT_WEAK rt_uint8_t rt_interrupt_get_nest(void)
{
|
hv: extend the vlapic_reset
vlapic reset should also zero apic_page and pir_desc if pir is
enabled.
Acked-by: Eddie Dong | @@ -1491,10 +1491,15 @@ vlapic_write(struct vlapic *vlapic, int mmio_access, uint64_t offset,
void
vlapic_reset(struct vlapic *vlapic)
{
+ uint32_t i;
struct lapic_regs *lapic;
+ void *apic_page;
lapic = vlapic->apic_page;
- memset(lapic, 0, sizeof(struct lapic_regs));
+ apic_page = (void *)vlapic->apic_page;
+ memset(apic_page, 0, CPU_PAGE_SIZE);
+ if (vlapic->pir_desc)
+ memset(vlapic->pir_desc, 0, sizeof(struct pir_desc));
lapic->id = vlapic_build_id(vlapic);
lapic->version = VLAPIC_VERSION;
@@ -1509,6 +1514,14 @@ vlapic_reset(struct vlapic *vlapic)
vlapic_reset_timer(vlapic);
vlapic->svr_last = lapic->svr;
+
+ for (i = 0; i < VLAPIC_MAXLVT_INDEX + 1; i++)
+ vlapic->lvt_last[i] = 0;
+
+ for (i = 0; i < ISRVEC_STK_SIZE; i++)
+ vlapic->isrvec_stk[i] = 0;
+
+ vlapic->isrvec_stk_top = 0;
}
void
|
misc: fix a trunccation on vhost dump
feature is u64. We need to print it with %llx and enough precision to
avoid truncation
Type: fix | @@ -10199,10 +10199,9 @@ static void vl_api_sw_interface_vhost_user_details_t_handler
(mp->features_last_32) <<
32);
- print (vam->ofp, "%-25s %3" PRIu32 " %6" PRIu32 " %8x %6d %7d %s",
- (char *) mp->interface_name,
- ntohl (mp->sw_if_index), ntohl (mp->virtio_net_hdr_sz),
- features, mp->is_server,
+ print (vam->ofp, "%-25s %3" PRIu32 " %6" PRIu32 " %16llx %6d %7d %s",
+ (char *) mp->interface_name, ntohl (mp->sw_if_index),
+ ntohl (mp->virtio_net_hdr_sz), features, mp->is_server,
ntohl (mp->num_regions), (char *) mp->sock_filename);
print (vam->ofp, " Status: '%s'", strerror (ntohl (mp->sock_errno)));
}
@@ -10255,8 +10254,8 @@ api_sw_interface_vhost_user_dump (vat_main_t * vam)
break;
}
- print (vam->ofp,
- "Interface name idx hdr_sz features server regions filename");
+ print (vam->ofp, "Interface name idx hdr_sz features "
+ "server regions filename");
/* Get list of vhost-user interfaces */
M (SW_INTERFACE_VHOST_USER_DUMP, mp);
|
Reject zero-sized discard IOs to core | @@ -392,6 +392,11 @@ static void ocf_core_volume_submit_discard(struct ocf_io *io)
OCF_CHECK_NULL(io);
+ if (io->bytes == 0) {
+ ocf_io_end(io, -OCF_ERR_INVAL);
+ return;
+ }
+
ret = ocf_core_validate_io(io);
if (ret < 0) {
ocf_io_end(io, ret);
|
Modify style checker for PKCS style types
PKCS types may follow the format CK_TYPE_PTR or CK_TYPE_PTR_PTR.
This change updates the style checker to recognize _PTR and _PTR_PTR
line endings as pointer types.
This change also allows variables to start with a number. | @@ -182,9 +182,20 @@ def get_prefix(line):
prefix = "p" * indirection + "u" * unsigned + base_prefix
return prefix
+# PKCS #11 types may have the format
+# CK_TYPE_PTR or CK_TYPE_PTR_PTR
+def count_pkcs11_indirection(line):
+ base_prefix = get_base_type(line)
+ if (re.search("_PTR_PTR$", base_prefix)):
+ return 2
+ elif (re.search("_PTR$", base_prefix)):
+ return 1
+ else:
+ return 0
def count_indirection(line):
pointer_count = line.count('*')
+ pointer_count += count_pkcs11_indirection(line)
return pointer_count
@@ -224,7 +235,7 @@ def get_identifier_prefix(identifier):
indirection = "p" * (len(identifier) - len(direct_identifier))
for key in TYPE_PREFIXES:
prefix = TYPE_PREFIXES[key]
- if re.match(r"^" + prefix + r"[A-Z]", direct_identifier):
+ if re.match(r"^" + prefix + r"[0-9,A-Z]", direct_identifier):
return indirection + prefix
return ''
|
Ignore param updates when the knob is being adjusted | @@ -55,6 +55,9 @@ void ParameterProxy::setValueFromUI(double value) {
}
void ParameterProxy::setValueFromPlugin(double value) {
+ if (_isAdjusting)
+ return;
+
value = clip(value);
if (value == _value)
return;
|
test/hdata_to_dt: fix build breakage caused by phys_map_get
Fixes: | @@ -112,6 +112,7 @@ static bool spira_check_ptr(const void *ptr, const char *file, unsigned int line
#include "../../core/chip.c"
#include "../../test/dt_common.c"
#include "../../core/fdt.c"
+#include "../../hw/phys-map.c"
#include <err.h>
@@ -267,6 +268,8 @@ int main(int argc, char *argv[])
"Pipe to 'dtc -I dtb -O dts' for human readable\n");
}
+ phys_map_init();
+
/* Copy in spira dump (assumes little has changed!). */
if (new_spira) {
fd = open(argv[1], O_RDONLY);
|
comments out failing cast in %eyre | ::
++ ire-ix |=(ire/ixor ~(. ix ire (~(got by wix) ire)))
++ dom-vi
- |= {usr/knot dom/path} ^+ vi :: XX default to initialized user?
+ |= {usr/knot dom/path}
+ :: ^+ vi :: XX default to initialized user?
~(. vi [usr dom] (fall (~(get by sec) usr dom) *driv))
::
++ ses-authed
|
[core] array keys are non-empty in key-value list | @@ -133,7 +133,11 @@ static int32_t array_get_index(const array * const a, const char * const k, cons
while (lower != upper) {
uint32_t probe = (lower + upper) / 2;
const buffer * const b = a->data[a->sorted[probe]]->key;
- int cmp = array_keycmp(k, klen, CONST_BUF_LEN(b));
+ /* key is non-empty (0==b->used), though possibly blank (1==b->used),
+ * if inserted into key-value array */
+ /*force_assert(b && b->used);*/
+ int cmp = array_keycmp(k, klen, b->ptr, b->used-1);
+ /*int cmp = array_keycmp(k, klen, CONST_BUF_LEN(b));*/
if (cmp < 0) /* key < [probe] */
upper = probe; /* still: lower <= upper */
else if (cmp > 0) /* key > [probe] */
|
BugID:19073842:http send size = 0 see as failed | @@ -218,7 +218,7 @@ static int ota_download_start(void *pctx)
while (totalsend < nbytes) {
send = ((isHttps) ? ota_ssl_send(ssl, (char *)(http_buffer + totalsend), (int)(nbytes - totalsend))
:ota_socket_send(sockfd, http_buffer + totalsend, nbytes - totalsend));
- if (send < 0) {
+ if (send <= 0) {
ret = OTA_DOWNLOAD_WRITE_FAIL;
goto END;
}
|
metadata-hook: fix syntax error | -: metadata-hook: allow syncing foreign metadata
+:: metadata-hook: allow syncing foreign metadata
::
:: watch paths:
:: /group/%group-path all updates related to this group
|
Fix a bug with misnamed global variable in parser
Oops! The name of the global variable the parser uses was wrong!
This commit fixes that problem and also adds an extra assertion to
ensure that the non-reentrant parser is never called recursively. | @@ -457,9 +457,13 @@ local grammar = re.compile([[
]], defs)
function parser.parse(filename, input)
- THE_FILENAME = filename
+ -- Abort if someone calls this non-reentrant parser recursively
+ assert(type(filename) == "string")
+ assert(THIS_FILENAME == nil)
+
+ THIS_FILENAME = filename
local ast, err, errpos = grammar:match(input)
- THE_FILENAME = nil
+ THIS_FILENAME = nil
if ast then
return ast
|
ptdev: bug fix on operating list
Before using a node of list, initialize it. | @@ -166,6 +166,10 @@ alloc_entry(struct vm *vm, enum ptdev_intr_type type)
ASSERT(entry, "alloc memory failed");
entry->type = type;
entry->vm = vm;
+
+ INIT_LIST_HEAD(&entry->softirq_node);
+ INIT_LIST_HEAD(&entry->entry_node);
+
atomic_clear_int(&entry->active, ACTIVE_FLAG);
list_add(&entry->entry_node, &ptdev_list);
|
misc: fix the physical memory segmentation UI issue
Current physical memory segmentation UI have an redundant title when
user select the advance mode, so we set the MemoryInfo element title
to NULL to fix this issue. | @@ -401,7 +401,7 @@ Refer SDM 17.19.2 for details, and use with caution.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="memory" type="MemoryInfo" minOccurs="0">
- <xs:annotation acrn:title="Memory allocation" acrn:views="basic, advanced" acrn:applicable-vms="pre-launched, post-launched">
+ <xs:annotation acrn:title="" acrn:views="basic, advanced" acrn:applicable-vms="pre-launched, post-launched">
</xs:annotation>
</xs:element>
<xs:element name="priority" type="PriorityType" default="PRIO_LOW">
|
docs: disable mention of openmpi4-pmix-slurm; tested a rebuild of this package
but basic job launch under latest slurm and pmix is not working | @@ -107,7 +107,11 @@ variant of MVAPICH2 instead:
% ohpc_command fi
% end_ohpc_run
-An additional OpenMPI build variant is listed in Table~\ref{table:mpi} which
-enables \href{https://pmix.github.io/pmix/}{\color{blue}{PMIx}} job launch
-support for use with \SLURM{}. This optional variant is
-available as \texttt{openmpi4-pmix-slurm-gnu9-ohpc}.
+%%--
+%% https://github.com/openhpc/ohpc/issues/1273
+%% disabling until we can get pmix/openmpi/slurm to play nicely
+%%--
+%% An additional OpenMPI build variant is listed in Table~\ref{table:mpi} which
+%% enables \href{https://pmix.github.io/pmix/}{\color{blue}{PMIx}} job launch
+%% support for use with \SLURM{}. This optional variant is
+%% available as \texttt{openmpi4-pmix-slurm-gnu9-ohpc}.
|
Chande debug message in finished and rename finalize functions | @@ -852,7 +852,7 @@ cleanup:
*/
static int ssl_tls13_preprocess_finished_in( mbedtls_ssl_context *ssl );
-static int ssl_tls13_postprocess_finished_in( mbedtls_ssl_context *ssl );
+static int ssl_tls13_finalize_finished_in( mbedtls_ssl_context *ssl );
static int ssl_tls13_parse_finished_in( mbedtls_ssl_context *ssl,
const unsigned char *buf,
size_t buflen );
@@ -867,7 +867,7 @@ int mbedtls_ssl_tls13_process_finished_in( mbedtls_ssl_context *ssl )
unsigned char *buf;
size_t buflen;
- MBEDTLS_SSL_DEBUG_MSG( 2, ( "=> parse server finished_in_process" ) );
+ MBEDTLS_SSL_DEBUG_MSG( 2, ( "=> parse finished_in" ) );
/* Preprocessing step: Compute handshake digest */
MBEDTLS_SSL_PROC_CHK( ssl_tls13_preprocess_finished_in( ssl ) );
@@ -878,11 +878,11 @@ int mbedtls_ssl_tls13_process_finished_in( mbedtls_ssl_context *ssl )
MBEDTLS_SSL_PROC_CHK( ssl_tls13_parse_finished_in( ssl, buf, buflen ) );
mbedtls_ssl_tls1_3_add_hs_msg_to_checksum(
ssl, MBEDTLS_SSL_HS_FINISHED, buf, buflen );
- MBEDTLS_SSL_PROC_CHK( ssl_tls13_postprocess_finished_in( ssl ) );
+ MBEDTLS_SSL_PROC_CHK( ssl_tls13_finalize_finished_in( ssl ) );
cleanup:
- MBEDTLS_SSL_DEBUG_MSG( 2, ( "<= parse server finished_in_process" ) );
+ MBEDTLS_SSL_DEBUG_MSG( 2, ( "<= parse finished_in" ) );
return( ret );
}
@@ -938,7 +938,7 @@ static int ssl_tls13_parse_finished_in( mbedtls_ssl_context *ssl,
return( 0 );
}
-static int ssl_tls13_postprocess_finished_in_cli( mbedtls_ssl_context *ssl )
+static int ssl_tls13_finalize_finished_in_cli( mbedtls_ssl_context *ssl )
{
int ret = 0;
mbedtls_ssl_key_set traffic_keys;
@@ -996,12 +996,12 @@ cleanup:
return( ret );
}
-static int ssl_tls13_postprocess_finished_in( mbedtls_ssl_context* ssl )
+static int ssl_tls13_finalize_finished_in( mbedtls_ssl_context* ssl )
{
if( ssl->conf->endpoint == MBEDTLS_SSL_IS_CLIENT )
{
- return( ssl_tls13_postprocess_finished_in_cli( ssl ) );
+ return( ssl_tls13_finalize_finished_in_cli( ssl ) );
}
return( MBEDTLS_ERR_SSL_INTERNAL_ERROR );
|
Compilation of note documented in CONTRIBUTE | @@ -103,3 +103,28 @@ This may take some time to run in its entirety. If you changed the API, you may
have to modify the tests to account for this. You should also add your own
tests for any new functions or behaviors that were added.
+Compiling the CCL note
+--------------------------------------------
+After making changes to the library, you should document them in the
+CCL note. The note is found in the directory doc/0000-ccl_note/.
+To compile the note, type
+
+ $make
+
+in that directory. If you do not have pip installed, please edit the
+Makefile to agree with your setup. If you do not have admin permission,
+then you will need to setup a virtual environment to install the note.
+This is done as follows:
+
+ # Once
+ $virtualenv CCL
+
+ # After a new login
+ $source CCL/activate
+ $make
+
+If you need to modify the note, the files to modify are:
+ (1) authors.csv - to document your contribution
+ (2) main.tex - to detail the changes to the library
+ (3) main.bib - to add new references
+
|
CI: component_ut: fix esp_netif test path unmatch issue | @@ -5,7 +5,7 @@ import ttfw_idf
@ttfw_idf.idf_component_unit_test(env_tag='COMPONENT_UT_GENERIC')
def test_component_ut_esp_netif(env, extra_data):
- dut = env.get_dut('esp_netif', 'components/esp_netif/test_app')
+ dut = env.get_dut('esp_netif', 'components/esp_netif/test_apps')
dut.start_app()
stdout = dut.expect('Tests finished', full_stdout=True)
ttfw_idf.ComponentUTResult.parse_result(stdout)
|
POWER10: Fix multithreading check when USE_THREAD=0
This patch fixes an issue when OpenBLAS is compiled for TARGET=POWER10
and the flag USE_THREAD is set to 0.
The function `num_cpu_avail` is only available when USE_THREAD=1,
so SMP is defined. | @@ -69,6 +69,7 @@ int CNAME(int transa, int transb, BLASLONG M, BLASLONG N, BLASLONG K, FLOAT alph
#endif
+#ifdef SMP
// Multi-threading execution outperforms (or approaches) the execution of the
// small kernel.
if (num_cpu_avail(3) > 1) {
@@ -77,6 +78,9 @@ int CNAME(int transa, int transb, BLASLONG M, BLASLONG N, BLASLONG K, FLOAT alph
} else {
return 1;
}
+#else
+ return 1;
+#endif
#endif
|
[dpos] fix pubnet block interval
Ignore block interval parameter in a config file. | @@ -93,7 +93,7 @@ func New(cfg *config.ConsensusConfig, hub *component.ComponentHub, cdb consensus
return nil, err
}
- Init(bpc.Size(), cfg.BlockInterval)
+ Init(bpc.Size())
quitC := make(chan interface{})
@@ -107,12 +107,12 @@ func New(cfg *config.ConsensusConfig, hub *component.ComponentHub, cdb consensus
}
// Init initilizes the DPoS parameters.
-func Init(bpCount uint16, blockInterval int64) {
+func Init(bpCount uint16) {
blockProducers = bpCount
majorityCount = blockProducers*2/3 + 1
// Collect voting for BPs during 10 rounds.
initialBpElectionPeriod = types.BlockNo(blockProducers) * 10
- slot.Init(blockInterval, blockProducers)
+ slot.Init(consensus.BlockIntervalSec, blockProducers)
}
func consensusBlockCount(bpCount uint16) uint16 {
|
Bump version to 13.1-0. | @@ -18,8 +18,8 @@ AOMP_COMPILER_NAME=${AOMP_COMPILER_NAME:-AOMP}
ROCM_VERSION=${ROCM_VERSION:-4.0.0}
# Set the AOMP VERSION STRING and AOMP_PROJECT_REPO_BRANCH.
-AOMP_VERSION=${AOMP_VERSION:-"13.0"}
-AOMP_VERSION_MOD=${AOMP_VERSION_MOD:-"6"}
+AOMP_VERSION=${AOMP_VERSION:-"13.1"}
+AOMP_VERSION_MOD=${AOMP_VERSION_MOD:-"0"}
AOMP_VERSION_STRING=${AOMP_VERSION_STRING:-"$AOMP_VERSION-$AOMP_VERSION_MOD"}
export AOMP_VERSION_STRING AOMP_VERSION AOMP_VERSION_MOD ROCM_VERSION
|
libc/hex2bin: Remove the unused declaration | @@ -157,42 +157,6 @@ int hex2mem(int fd, uint32_t baseaddr, uint32_t endpaddr,
int fhex2mem(FAR FILE *instream, uint32_t baseaddr, uint32_t endpaddr,
enum hex2bin_swap_e swap);
-/****************************************************************************
- * Name: hex2bin_main
- *
- * Description:
- * Main entry point when hex2bin is built as an NSH built-in task.
- *
- * Input Parameters:
- * Standard task inputs
- *
- * Returned Value:
- * EXIT_SUCCESS on success; EXIT_FAILURE on failure
- *
- ****************************************************************************/
-
-#ifdef CONFIG_SYSTEM_HEX2BIN_BUILTIN
-int hex2bin_main(int argc, char **argv);
-#endif /* CONFIG_SYSTEM_HEX2BIN_BUILTIN */
-
-/****************************************************************************
- * Name: hex2mem_main
- *
- * Description:
- * Main entry point when hex2mem is built as an NSH built-in task.
- *
- * Input Parameters:
- * Standard task inputs
- *
- * Returned Value:
- * EXIT_SUCCESS on success; EXIT_FAILURE on failure
- *
- ****************************************************************************/
-
-#ifdef CONFIG_SYSTEM_HEX2MEM_BUILTIN
-int hex2mem_main(int argc, char **argv);
-#endif /* CONFIG_SYSTEM_HEX2MEM_BUILTIN */
-
#undef EXTERN
#ifdef __cplusplus
}
|
Send TWAMP StopSessions as one packet
Sending multiple chunks confuses twamp-gui responder | @@ -1932,17 +1932,24 @@ _OWPWriteStopSessions(
buf[0] = OWPReqStopSessions;
buf[1] = acceptval & 0xff;
*(uint32_t*)&buf[4] = htonl(num_sessions);
+ _OWPSendHMACAdd(cntrl,buf,1);
+ if (cntrl->twoway) {
/*
- * Add 'header' into HMAC and send
+ * Complete WriteStopSessions by writing HMAC and send as one chunk.
+ */
+ _OWPSendHMACDigestClear(cntrl,&buf[16]);
+ if(_OWPSendBlocksIntr(cntrl,(uint8_t *)buf,2,retn_on_intr) != 2){
+ return _OWPFailControlSession(cntrl,OWPErrFATAL);
+ }
+ } else {
+ /*
+ * Send 'header'
*/
- _OWPSendHMACAdd(cntrl,buf,1);
if(_OWPSendBlocksIntr(cntrl,(uint8_t *)buf,1,retn_on_intr) != 1){
return _OWPFailControlSession(cntrl,OWPErrFATAL);
}
-
- if (!cntrl->twoway) {
/*
* Loop through each session, write out a session description
* record for each "send" session.
@@ -2009,7 +2016,6 @@ _OWPWriteStopSessions(
return _OWPFailControlSession(cntrl,OWPErrFATAL);
}
}
- }
/*
* Complete WriteStopSessions by sending HMAC.
@@ -2018,6 +2024,7 @@ _OWPWriteStopSessions(
if(_OWPSendBlocksIntr(cntrl,(uint8_t *)buf,1,retn_on_intr) != 1){
return _OWPFailControlSession(cntrl,OWPErrFATAL);
}
+ }
return OWPErrOK;
}
|
py/malloc: Allow to use debug logging if !MICROPY_MALLOC_USES_ALLOCATED_SIZE.
This is mostly a workaround for forceful rebuilding of mpy-cross on every
codebase change. If this file has debug logging enabled (by patching),
mpy-cross build failed. | @@ -147,7 +147,11 @@ void *m_realloc(void *ptr, size_t new_num_bytes) {
MP_STATE_MEM(current_bytes_allocated) += diff;
UPDATE_PEAK();
#endif
+ #if MICROPY_MALLOC_USES_ALLOCATED_SIZE
DEBUG_printf("realloc %p, %d, %d : %p\n", ptr, old_num_bytes, new_num_bytes, new_ptr);
+ #else
+ DEBUG_printf("realloc %p, %d : %p\n", ptr, new_num_bytes, new_ptr);
+ #endif
return new_ptr;
}
@@ -171,7 +175,11 @@ void *m_realloc_maybe(void *ptr, size_t new_num_bytes, bool allow_move) {
UPDATE_PEAK();
}
#endif
+ #if MICROPY_MALLOC_USES_ALLOCATED_SIZE
DEBUG_printf("realloc %p, %d, %d : %p\n", ptr, old_num_bytes, new_num_bytes, new_ptr);
+ #else
+ DEBUG_printf("realloc %p, %d, %d : %p\n", ptr, new_num_bytes, new_ptr);
+ #endif
return new_ptr;
}
@@ -184,7 +192,11 @@ void m_free(void *ptr) {
#if MICROPY_MEM_STATS
MP_STATE_MEM(current_bytes_allocated) -= num_bytes;
#endif
+ #if MICROPY_MALLOC_USES_ALLOCATED_SIZE
DEBUG_printf("free %p, %d\n", ptr, num_bytes);
+ #else
+ DEBUG_printf("free %p\n", ptr);
+ #endif
}
#if MICROPY_MEM_STATS
|
Makefile: make_parallel_flags via env variable
/proc/cpuinfo with container builds may lead to jenkins failures
ability to pass in MAKE_PARALLEL_FLAGS via env directly for
container builds | @@ -645,7 +645,7 @@ configure_check_timestamp = \
# for file presence and content; for now this will have to do.
MAKE_PARALLEL_JOBS = -j $(if $(shell [ -f /proc/cpuinfo ] && head /proc/cpuinfo), \
$(shell grep -c ^processor /proc/cpuinfo), 2)
-MAKE_PARALLEL_FLAGS = $(if $($(PACKAGE)_make_parallel_fails),,$(MAKE_PARALLEL_JOBS))
+MAKE_PARALLEL_FLAGS ?= $(if $($(PACKAGE)_make_parallel_fails),,$(MAKE_PARALLEL_JOBS))
# Make command shorthand for packages & tools.
PACKAGE_MAKE = \
|
configure.ac: enabling gtk3 automatically disables gtk2
gtk2 is enabled by default so if you use --enable-gtk30
is because you really want to use the (broken) gtk3 ui | @@ -9,7 +9,7 @@ AC_GNU_SOURCE
AC_USE_SYSTEM_EXTENSIONS
AC_ARG_ENABLE(gtk20,
- [ --disable-gtk20 Don't look for GTK+ 2.0 libraries],
+ [ --disable-gtk20 Do not look for GTK+ 2.0 libraries],
enable_gtk20=$enableval,
enable_gtk20="yes")
@@ -205,8 +205,10 @@ if test "x$enable_gtkport" = "xyes" ; then
if test "x$enable_gtk20" = "xyes" ; then
if test "x$enable_gtk30" = "xyes" ; then
- AC_MSG_ERROR(GTK 2.0 configuration cannot be built while experimental GTK 3.0 support is enabled)
+ enable_gtk20=no
fi
+ fi
+ if test "x$enable_gtk20" = "xyes" ; then
dnl Test for gtk+-2.0
PKG_CHECK_MODULES([GTK], [gtk+-2.0 >= 2.0.0], GFTP_GTK=gftp-gtk, AC_MSG_ERROR(You have GLIB 2.0 installed but I cannot find GTK+ 2.0. Run configure with --disable-gtk20 or install GTK+ 2.0))
@@ -218,9 +220,6 @@ if test "x$enable_gtkport" = "xyes" ; then
fi
fi
if test "x$enable_gtk30" = "xyes" ; then
- if test "x$enable_gtk20" = "xyes" ; then
- AC_MSG_ERROR(GTK 3.0 experimental configuration cannot be built while GTK 2.0 support is enabled)
- fi
dnl Test for gtk+-3.0
PKG_CHECK_MODULES([GTK], [gtk+-3.0 >= 3.0.0], GFTP_GTK=gftp-gtk, AC_MSG_ERROR(You have GLIB 2.0 installed but I cannot find GTK+ 3.0. Run configure without --enable-gtk30 or install GTK+ 3.0))
fi
|
out_stackdriver: clean up buffer before return | @@ -1275,6 +1275,7 @@ static int stackdriver_format(struct flb_config *config,
ret = extract_local_resource_id(data, bytes, ctx, tag);
if (ret != 0) {
flb_plg_error(ctx->ins, "fail to construct local_resource_id");
+ msgpack_sbuffer_destroy(&mp_sbuf);
return -1;
}
}
|
iirdes/autotest: testing band-pass transformation on elliptic design | @@ -302,3 +302,44 @@ void autotest_iirdes_ellip_highpass() {
iirfilt_crcf_destroy(q);
}
+// check elliptical filter design with band-pass transformation
+void autotest_iirdes_ellip_bandpass() {
+ unsigned int n = 9; // filter order
+ float fc = 0.3; // filter cut-off
+ float f0 = 0.35; // filter center frequency
+ float Ap = 0.1; // pass-band ripple
+ float As = 60.0; // stop-band suppression
+
+ float tol = 1e-3f; // error tolerance [dB], yes, that's dB
+ unsigned int nfft = 2400; // number of points to evaluate
+
+ // design filter from prototype
+ iirfilt_crcf q = iirfilt_crcf_create_prototype(LIQUID_IIRDES_ELLIP,
+ LIQUID_IIRDES_BANDPASS, LIQUID_IIRDES_SOS,n,fc,f0,Ap,As);
+ if (liquid_autotest_verbose)
+ iirfilt_crcf_print(q);
+
+ // compute response and compare to expected or mask
+ unsigned int i;
+ float H[nfft]; // filter response
+ for (i=0; i<nfft; i++) {
+ float f = (float)i / (float)nfft - 0.5f;
+ float complex h;
+ iirfilt_crcf_freqresponse(q, f, &h);
+ H[i] = 10.*log10f(crealf(h*conjf(h)));
+ }
+ // verify result
+ autotest_psd_s regions[] = {
+ {.fmin=-0.5, .fmax=-0.396,.pmin=0, .pmax=-As+tol, .test_lo=0, .test_hi=1},
+ {.fmin=-0.388, .fmax=-0.301,.pmin=-Ap-tol, .pmax= tol, .test_lo=1, .test_hi=1},
+ {.fmin=-0.293, .fmax=+0.293,.pmin=0, .pmax=-As+tol, .test_lo=0, .test_hi=1},
+ {.fmin=+0.301, .fmax=+0.388,.pmin=-Ap-tol, .pmax= tol, .test_lo=1, .test_hi=1},
+ {.fmin=+0.396, .fmax=+0.5, .pmin=0, .pmax=-As+tol, .test_lo=0, .test_hi=1},
+ };
+ liquid_autotest_validate_spectrum(H, nfft, regions, 5,
+ liquid_autotest_verbose ? "autotest_iirdes_ellip_bandpass.m" : NULL);
+
+ // destroy filter object
+ iirfilt_crcf_destroy(q);
+}
+
|
sub shm CHANGE handle timeout gracefully | @@ -2042,8 +2042,9 @@ cleanup:
* @param[in] data Optional data to write after the structure.
* @param[in] data_len Additional data length.
* @param[in] err_code Optional error code if a callback failed.
+ * @return err_info, NULL on success.
*/
-static void
+static sr_error_info_t *
sr_shmsub_listen_write_event(sr_sub_shm_t *sub_shm, const char *data, uint32_t data_len, sr_error_t err_code)
{
sr_error_info_t *err_info = NULL;
@@ -2062,9 +2063,10 @@ sr_shmsub_listen_write_event(sr_sub_shm_t *sub_shm, const char *data, uint32_t d
}
break;
default:
- SR_ERRINFO_INT(&err_info);
- sr_errinfo_free(&err_info);
- break;
+ /* no longer a listener event, we could have timeouted */
+ sr_errinfo_new(&err_info, SR_ERR_INTERNAL, NULL, "Unable to finish processing event with ID %u (timeout probably).",
+ sub_shm->request_id);
+ return err_info;
}
if (data && data_len) {
@@ -2074,6 +2076,7 @@ sr_shmsub_listen_write_event(sr_sub_shm_t *sub_shm, const char *data, uint32_t d
SR_LOG_INF("Finished processing \"%s\" event%s with ID %u.", sr_ev2str(event), err_code ? " (callback fail)" : "",
sub_shm->request_id);
+ return NULL;
}
sr_error_info_t *
@@ -2198,7 +2201,9 @@ sr_shmsub_oper_listen_process_module_events(struct modsub_oper_s *oper_subs, sr_
sub_shm = (sr_sub_shm_t *)oper_sub->sub_shm.addr;
/* finish event */
- sr_shmsub_listen_write_event(sub_shm, data, data_len, err_code);
+ if ((err_info = sr_shmsub_listen_write_event(sub_shm, data, data_len, err_code))) {
+ goto error_wrunlock;
+ }
/* SUB WRITE UNLOCK */
sr_rwunlock(&sub_shm->lock, 1, __func__);
@@ -2229,6 +2234,7 @@ error:
sr_clear_sess(&tmp_sess);
free(data);
lyd_free_withsiblings(parent);
+ free(request_xpath);
return err_info;
}
|
Docs: Fixed BT4LEContinuityFixup name in kexts list | @@ -18,7 +18,7 @@ Kexts
- [AirPortAtheros40.kext](https://i.applelife.ru/2018/12/442854_AirPortAtheros40.kext.zip) from 10.13.6 for 10.14+
- [AirportBrcmFixup.kext](https://github.com/acidanthera/AirportBrcmFixup)
- [ATH9KFixup.kext](https://github.com/chunnann/ATH9KFixup)
-- [BT4LEContiunityFixup.kext](https://github.com/acidanthera/BT4LEContiunityFixup)
+- [BT4LEContinuityFixup](https://github.com/acidanthera/BT4LEContinuityFixup)
- [MT7610](https://d86o2zu8ugzlg.cloudfront.net/mediatek-craft/drivers/MT7612_7610U_D5.0.1.25_SDK1.0.2.18_UI5.0.0.27_20151209.zip)
- [RT5370](https://d86o2zu8ugzlg.cloudfront.net/mediatek-craft/drivers/RTUSB_D2870-4.2.9.2_UI-4.0.9.6_2013_11_29.zip)
- [RTL8192CU](https://drive.google.com/file/d/1ZtdMqlvKBbHULJhl1u9omuLOy6j0vx48/view?usp=sharing)
|
Add -std=c++11 to matrixmul makefile | @@ -75,7 +75,7 @@ ifeq (sm_,$(findstring sm_,$(TARGETS)))
else
AOMPHIP ?= $(AOMP)
HIPLIBS = -L $(AOMPHIP)/hip -L $(AOMPHIP)/lib
- CFLAGS += -x hip $(HIPLIBS) -lamdhip64
+ CFLAGS += -x hip $(HIPLIBS) -lamdhip64 -std=c++11
endif
# ----- Demo compile and link in one step, no object code saved
|
make example work for nvptx | @@ -58,9 +58,15 @@ ifeq ($(TARGETS),)
TARGETS =-march=$(AOMP_GPU)
endif
+ifeq (sm_,$(findstring sm_,$(AOMP_GPU)))
+ AOMP_GPUTARGET = nvptx64-nvidia-cuda
+else
+ AOMP_GPUTARGET = amdgcn-amd-amdhsa
+endif
+
FORT =$(AOMP)/bin/flang
LFLAGS =
-FFLAGS = -fopenmp -fopenmp-targets=amdgcn-amd-amdhsa -Xopenmp-target=amdgcn-amd-amdhsa
+FFLAGS = -fopenmp -fopenmp-targets=$(AOMP_GPUTARGET) -Xopenmp-target=$(AOMP_GPUTARGET)
# ----- Demo compile and link in one step, no object code saved
$(TESTNAME): $(TESTNAME).$(FILETYPE)
|
Remove mostly useless mem context in storageRemoteInfoProtocolPut().
Maybe this once had a deeper purpose but now at least it is just used to avoid a few trivial allocations. If we really wanted to do that a flag would be better but it does not seem worth the trouble. | @@ -172,7 +172,6 @@ storageRemoteFeatureProtocol(PackRead *const param, ProtocolServer *const server
/**********************************************************************************************************************************/
typedef struct StorageRemoteInfoProcotolWriteData
{
- MemContext *memContext; // Mem context used to store values from last call
time_t timeModifiedLast; // timeModified from last call
mode_t modeLast; // mode from last call
uid_t userIdLast; // userId from last call
@@ -240,10 +239,7 @@ storageRemoteInfoProtocolPut(
pckWriteStrP(write, info->linkDestination);
}
- // Store defaults to use for the next call. If memContext is NULL this function is only being called one time so there is no
- // point in storing defaults.
- if (data->memContext != NULL)
- {
+ // Store defaults to use for the next call
data->timeModifiedLast = info->timeModified;
data->modeLast = info->mode;
data->userIdLast = info->userId;
@@ -252,25 +248,14 @@ storageRemoteInfoProtocolPut(
if (info->user != NULL && !strEq(info->user, data->user)) // {vm_covered}
{
strFree(data->user);
-
- MEM_CONTEXT_BEGIN(data->memContext)
- {
data->user = strDup(info->user);
}
- MEM_CONTEXT_END();
- }
if (info->group != NULL && !strEq(info->group, data->group)) // {vm_covered}
{
strFree(data->group);
-
- MEM_CONTEXT_BEGIN(data->memContext)
- {
data->group = strDup(info->group);
}
- MEM_CONTEXT_END();
- }
- }
FUNCTION_TEST_RETURN_VOID();
}
@@ -355,7 +340,7 @@ storageRemoteListProtocol(PackRead *const param, ProtocolServer *const server)
{
const String *const path = pckReadStrP(param);
const StorageInfoLevel level = (StorageInfoLevel)pckReadU32P(param);
- StorageRemoteInfoProtocolWriteData writeData = {.memContext = memContextCurrent()};
+ StorageRemoteInfoProtocolWriteData writeData = {0};
StorageList *const list = storageInterfaceListP(storageRemoteProtocolLocal.driver, path, level);
// Put list
|
refactor(devcontainer): reorder properties
Reorder the file so that related properties are roughly grouped together and the order is more logical.
PR: | {
"name": "ZMK Development",
"dockerFile": "Dockerfile",
- "extensions": ["ms-vscode.cpptools"],
"runArgs": ["--security-opt", "label=disable"],
"containerEnv": { "WORKSPACE_DIR": "${containerWorkspaceFolder}" },
+ "mounts": ["type=volume,source=zmk-config,target=/workspaces/zmk-config"],
+ "extensions": ["ms-vscode.cpptools"],
"settings": {
"terminal.integrated.shell.linux": "/bin/bash"
- },
- "mounts": ["type=volume,source=zmk-config,target=/workspaces/zmk-config"]
+ }
}
|
ts: Tuple doesn't do scoop anymore, so remove those checks.
I might allow Tuple methods again, but I really doubt it. They weren't
as useful as I hoped they would be when they existed. | @@ -343,48 +343,17 @@ static int check_misc(lily_type_system *ts, lily_type *left, lily_type *right,
return ret;
}
+
static int check_tuple(lily_type_system *ts, lily_type *left, lily_type *right,
int flags)
{
- if (right->cls->id != LILY_ID_TUPLE)
- return 0;
-
- if ((left->flags & TYPE_HAS_SCOOP) == 0) {
- /* Do not allow Tuples to be considered equal if they don't have the
- same # of subtypes. The reason is that Tuple operations work on the
- size at vm-time. So if emit-time and vm-time disagree about the size
- of a Tuple, there WILL be problems. */
+ /* Tuples of different sizes are considered distinct in case that's
+ important later on. This check is also important because Tuple is the
+ only non-Function type of varying arity. */
if (left->subtype_count != right->subtype_count)
return 0;
- else
- return check_misc(ts, left, right, flags);
- }
-
- /* Not yet. Maybe later. */
- if (flags & T_UNIFY)
- return 0;
- /* Scoop currently expects at least one value. */
- if (left->subtype_count > right->subtype_count)
- return 0;
-
- /* This carries a few assumptions with it:
- * Scoop types are always seen in order
- * Scoop types are never next to each other on the left
- * (Currently) Scoop types are always the only type. */
- int start = ts->pos + ts->num_used;
- int scoop_pos = UINT16_MAX - left->subtypes[0]->cls->id;
-
- ENSURE_TYPE_STACK(start + right->subtype_count)
-
- int i;
- for (i = 0;i < right->subtype_count;i++)
- ts->types[start + i] = right->subtypes[i];
-
- ts->num_used += right->subtype_count;
- ts->scoop_starts[scoop_pos] = ts->pos + ts->num_used;
-
- return 1;
+ return check_misc(ts, left, right, flags);
}
static int collect_scoop(lily_type_system *ts, lily_type *left,
|
Include the file name to open and the fail error number
Also fix issues reported by nxstyle | @@ -362,6 +362,7 @@ static void print_hex(uint8_t *data, int len)
}
}
}
+
printf("\n");
}
@@ -483,7 +484,8 @@ int main(int argc, FAR char *argv[])
fd = open(DEV_NAME, O_RDWR);
if (fd < 0)
{
- printf("ERROR: Failed to open device!\n");
+ int errcode = errno;
+ printf("ERROR: Failed to open device %s: %d\n", DEV_NAME, errcode);
goto errout;
}
|
Don't seek past end of data | @@ -663,7 +663,6 @@ static readstat_error_t dta_handle_rows(dta_ctx_t *ctx) {
retval = READSTAT_ERROR_SEEK;
goto cleanup;
}
- ctx->row_offset = 0;
}
for (i=0; i<ctx->row_limit; i++) {
@@ -680,8 +679,8 @@ static readstat_error_t dta_handle_rows(dta_ctx_t *ctx) {
}
}
- if (ctx->row_limit < ctx->nobs) {
- if (io->seek(ctx->record_len * (ctx->nobs - ctx->row_limit), READSTAT_SEEK_CUR, io->io_ctx) == -1)
+ if (ctx->row_limit < ctx->nobs - ctx->row_offset) {
+ if (io->seek(ctx->record_len * (ctx->nobs - ctx->row_offset - ctx->row_limit), READSTAT_SEEK_CUR, io->io_ctx) == -1)
retval = READSTAT_ERROR_SEEK;
}
|
apps/Makefile: Fix Windows native build patch extension. | #
############################################################################
-APPDIR = ${shell pwd}
TOPDIR ?= $(APPDIR)/import
-
-include $(TOPDIR)/Make.defs
+
+ifeq ($(CONFIG_WINDOWS_NATIVE),y)
+ APPDIR = ${shell echo %CD%}
+else
+ APPDIR = ${shell pwd}
+endif
+
-include $(APPDIR)/Make.defs
# Application Directories
|
uwp: little appveyor fix | @@ -47,15 +47,14 @@ environment:
- uwp_framework_spec:
testable_application_repository: https://github.com/rhomobile/RMS-Testing.git
- test_app_folder: C:\TAU\RMS-Testing
- test_app_subfolder: \auto\feature_def\framework_spec\
+ test_app_folder: C:\TAU\RMS-Testing\
+ test_app_subfolder: auto\feature_def\framework_spec\
build_command: "device:uwp:production"
app_name: framework_spec
target_os: uwp
target_artefact_path: C:\TAU\RMS-Testing\auto\feature_def\framework_spec\bin\target\uwp\
target_artefact_file_name: framework_spec.appx
-
- win32_kitchensinkJS:
testable_application_repository: https://github.com/tauplatform/kitchensinkJS.git
test_app_folder: C:\TAU\kitchensinkJS\
|
[Rust] View allows removing a UI element | @@ -60,6 +60,21 @@ impl View {
self.sub_elements.borrow_mut().push(elem);
}
+ pub fn remove_component(self: Rc<Self>, elem: &Rc<dyn UIElement>) {
+ // No need to remove its link to the parent as it's a weak reference
+ // TODO(PT): Or do we need to remove it?
+ /*
+ Since a Weak reference does not count towards ownership,
+ it will not prevent the value stored in the allocation from being dropped,
+ and Weak itself makes no guarantees about the value still being present.
+ Thus it may return None when upgraded. Note however that a Weak reference does prevent
+ the allocation itself (the backing store) from being deallocated.
+ */
+ self.sub_elements
+ .borrow_mut()
+ .retain(|e| !Rc::ptr_eq(e, elem));
+ }
+
pub fn resize_subviews(&self) {
let frame = *self.frame.borrow();
let inner_content_frame = frame.apply_insets(self.border_insets());
|
Add PLCT to contributors. | @@ -207,3 +207,8 @@ In chronological order:
* Ilya Kurdyukov <https://github.com/ilyakurdyukov>
* [2021-02-21] Add basic support for the Elbrus E2000 architecture
+
+* PLCT Lab, Institute of Software Chinese Academy of Sciences
+ * [2022-03] Support RISC-V Vector Intrinisc 1.0 version.
+
+
\ No newline at end of file
|
fix(color) fix off-by-one error | @@ -358,8 +358,8 @@ lv_color_t lv_palette_darken(lv_palette_t p, uint8_t lvl)
return lv_color_black();
}
- if(lvl == 0 || lvl > 5) {
- LV_LOG_WARN("Invalid level: %d. Must be 1..5", lvl);
+ if(lvl == 0 || lvl > 4) {
+ LV_LOG_WARN("Invalid level: %d. Must be 1..4", lvl);
return lv_color_black();
}
|
Return MBEDTLS_ERR_SSL_BAD_INPUT_DATA if MAC algorithm isn't supported in ssl_tls.c | @@ -7300,7 +7300,7 @@ static int ssl_tls12_populate_transform( mbedtls_ssl_transform *transform,
alg = mbedtls_psa_translate_md( ciphersuite_info->mac );
if( alg == 0 )
{
- ret = psa_ssl_status_to_mbedtls( PSA_ERROR_NOT_SUPPORTED );
+ ret = MBEDTLS_ERR_SSL_BAD_INPUT_DATA;
MBEDTLS_SSL_DEBUG_RET( 1, "mbedtls_ssl_md_type_to_psa", ret );
goto end;
}
|
ExtendedTools: Fix etw session cleanup regression | @@ -140,12 +140,12 @@ VOID EtEtwMonitorUninitialization(
{
EtpEtwExiting = TRUE;
- if (EtpEtwActive)
+ if (EtpSessionHandle != INVALID_PROCESSTRACE_HANDLE)
{
EtpStopEtwSession();
}
- if (EtpEtwRundownActive)
+ if (EtpRundownSessionHandle != INVALID_PROCESSTRACE_HANDLE)
{
EtpStopEtwRundownSession();
}
|
Handle python2 not being installed, but python3 being present | @@ -45,11 +45,11 @@ endif()
find_package(Python2 COMPONENTS Interpreter Development)
find_package(Python3 COMPONENTS Interpreter Development)
if(TARGET Python2::Python AND TARGET Python3::Python)
- message(NOTICE ": Found Python ${Python2_VERSION} and ${Python3_VERSION}")
+ message(STATUS ": Found Python ${Python2_VERSION} and ${Python3_VERSION}")
elseif(TARGET Python2::Python)
- message(NOTICE ": Found Python ${Python2_VERSION}")
+ message(STATUS ": Found Python ${Python2_VERSION}")
elseif(TARGET Python3::Python)
- message(NOTICE ": Found Python ${Python3_VERSION}")
+ message(STATUS ": Found Python ${Python3_VERSION}")
else()
message(WARNING ": Unable to find python development libraries for python 2 or 3")
return()
@@ -125,9 +125,15 @@ find_package(Boost OPTIONAL_COMPONENTS
set(_pyilmbase_have_perver_boost)
if(PYILMBASE_BOOST_PY2_COMPONENT)
string(TOUPPER ${PYILMBASE_BOOST_PY2_COMPONENT} PYILMBASE_PY2_UPPER)
+else()
+ set(PYILMBASE_BOOST_PY2_COMPONENT python2x_NOTFOUND)
+ set(PYILMBASE_PY2_UPPER PYTHON2X_NOTFOUND)
endif()
if(PYILMBASE_BOOST_PY3_COMPONENT)
string(TOUPPER ${PYILMBASE_BOOST_PY3_COMPONENT} PYILMBASE_PY3_UPPER)
+else()
+ set(PYILMBASE_BOOST_PY3_COMPONENT python3x_NOTFOUND)
+ set(PYILMBASE_PY3_UPPER PYTHON3X_NOTFOUND)
endif()
if(Boost_PYTHON2_FOUND OR Boost_${PYILMBASE_PY2_UPPER}_FOUND)
set(_pyilmbase_have_perver_boost TRUE)
@@ -167,9 +173,9 @@ else()
return()
endif()
endif()
-set(PYILMBASE_PY2_UPPER)
-set(PYILMBASE_PY3_UPPER)
-set(_pyilmbase_have_perver_boost)
+unset(PYILMBASE_PY2_UPPER)
+unset(PYILMBASE_PY3_UPPER)
+unset(_pyilmbase_have_perver_boost)
# unfortunately, we can't use the boost numpy stuff, as that requires a
# version of boost that is newer than is mandated by many active versions
|
Improve the printing of binaries with non-printable characters.
This change makes printing of binaries more similar to OTP. | @@ -96,11 +96,13 @@ void term_display(FILE *fd, term t, const Context *ctx)
for (int i = 0; i < len; i++) {
if (!isprint(binary_data[i])) {
is_printable = 0;
+ break;
}
}
+ fprintf(fd, "<<");
if (is_printable) {
- fprintf(fd, "<<\"%.*s\">>", len, binary_data);
+ fprintf(fd, "\"%.*s\"", len, binary_data);
} else {
int display_separator = 0;
@@ -114,6 +116,7 @@ void term_display(FILE *fd, term t, const Context *ctx)
fprintf(fd, "%i", binary_data[i]);
}
}
+ fprintf(fd, ">>");
} else if (term_is_reference(t)) {
const char *format =
|
added optional argument to just update table for one category type; ascertain
architecture type from path | use warnings;
use strict;
+use Getopt::Long;
+use Cwd;
+
+sub usage {
+ print "\n";
+ print "Usage: build_tables.pl [OPTIONS]\n\n";
+ print " where available OPTIONS are as follows:\n\n";
+ print " -h --help generate help message and exit\n";
+ print " --category [name] update provided category table only\n";
+ print "\n";
+
+ exit(0);
+}
my @ohpcCategories = ("admin","compiler-families","dev-tools","distro-packages","io-libs","lustre","mpi-families",
"parallel-libs","serial-libs","perf-tools","provisioning","rms", "runtimes");
@@ -10,6 +23,18 @@ my @mpi_families = ("mvapich2","openmpi","impi","mpich");
my @single_package_exceptions = ();
+my $help;
+my $category_single;
+
+GetOptions("h" => \$help,
+ "category=s" => \$category_single ) || usage();
+
+if($help) {usage()};
+if($category_single) {
+ print "--> updating table contents for $category_single only\n";
+ @ohpcCategories = $category_single;
+}
+
# Define any asymmetric compiler packages
my %compiler_exceptions = ();
@@ -30,8 +55,9 @@ $mpi_exceptions{"mkl-blacs"} = 1;
my %page_breaks = ();
if ( $ENV{'PWD'} =~ /\S+\/x86_64\// ) {
- $page_breaks{"scorep-gnu7-impi-ohpc"} = 2;
+ $page_breaks{"scorep-gnu-impi-ohpc"} = 2;
$page_breaks{"petsc-gnu-impi-ohpc"} = 2;
+ $page_breaks{"trilinos-gnu-impi-ohpc"} = 3;
$page_breaks{"phdf5-gnu-impi-ohpc"} = 2;
}
@@ -40,14 +66,22 @@ my $urlColor="logoblue";
my $REMOVE_HTTP=0;
my $FIXD_WIDTH=1;
-
-# Settings for aarch64
-my $numCompiler_permute = 1;
-my $numMPI_permute = 3;
-
-# Settings for x86_64
-my $numCompiler_permute = 2;
-my $numMPI_permute = 8;
+# Determine arch specific settings
+my $pwd = getcwd;
+my $numCompiler_permute;
+my $numMPI_permute;
+
+if ( $pwd =~ /\/x86_64\// ) {
+ print "arch = x86_64\n";
+ $numCompiler_permute = 2;
+ $numMPI_permute = 8;
+} elsif ( $pwd =~ /\/aarch64\// ) {
+ print "arch = aarch64\n";
+ $numCompiler_permute = 1;
+ $numMPI_permute = 3;
+} else {
+ die ("Unable to determin architecture from local path ($pwd)")
+}
sub write_table_header {
my $fd = shift;
|
always parse :len bytes in +de:der | :: +de:der: decode atom to +spec:asn1
::
++ de
- =< |=([len=@ud dat=@ux] `(unit spec:asn1)`(rush dat parse))
+ =< |= [len=@ud dat=@ux]
+ ^- (unit spec:asn1)
+ :: XX refactor into +parse
+ =/ a (rip 3 dat)
+ =/ b ~| %der-invalid-len
+ (sub len (lent a))
+ (rust `(list @D)`(weld a (reap b 0)) parse)
|%
:: +parse:de:der: DER parser combinator
::
|
use recent ruby 2.3 and 2.4 on travis | @@ -18,15 +18,15 @@ matrix:
- os: osx
rvm: 2.2.5
- os: linux
- rvm: 2.3.1
+ rvm: 2.3.5
- os: osx
- rvm: 2.3.1
+ rvm: 2.3.5
- os: linux
- rvm: 2.4.0
+ rvm: 2.4.2
env:
- RUBYOPT="--enable-frozen-string-literal --debug=frozen-string-literal"
- os: osx
- rvm: 2.4.0
+ rvm: 2.4.2
env:
- RUBYOPT="--enable-frozen-string-literal --debug=frozen-string-literal"
- os: linux
|
Reduce max bucket size
Turns out that we were spending a lot of time initializing
buckets. Reducing the size of the bucket reduces max alloc
latency significantly, since we're not spending tens of
milliseconds initializing hundreds of thousands of slots. | @@ -30,7 +30,7 @@ pkg std =
const Zslab = (0 : slab#)
const Zchunk = (0 : chunk#)
-const Slabsz = 4*MiB
+const Slabsz = 512*KiB
const Cachemax = 4
const Bktmax = 128*KiB /* a balance between wasted space and falling back to mmap */
const Pagesz = 4*KiB
|
fix for macOS M1 Monteray to check pointers in zone_size | @@ -43,7 +43,7 @@ extern malloc_zone_t* malloc_default_purgeable_zone(void) __attribute__((weak_im
static size_t zone_size(malloc_zone_t* zone, const void* p) {
MI_UNUSED(zone);
- //if (!mi_is_in_heap_region(p)){ return 0; } // not our pointer, bail out
+ if (!mi_is_in_heap_region(p)){ return 0; } // not our pointer, bail out
return mi_usable_size(p);
}
|
ocvalidate: Check for the length of PickerVariant | @@ -249,6 +249,13 @@ CheckMiscBoot (
DEBUG ((DEBUG_WARN, "Misc->Boot->PickerVariant cannot be empty!\n"));
++ErrorCount;
}
+ //
+ // Check the length of path relative to OC directory.
+ //
+ if (StrLen (OPEN_CORE_IMAGE_PATH) + AsciiStrSize (PickerVariant) > OC_STORAGE_SAFE_PATH_MAX) {
+ DEBUG ((DEBUG_WARN, "Misc->Boot->PickerVariant is too long (should not exceed %u)!\n", OC_STORAGE_SAFE_PATH_MAX));
+ ++ErrorCount;
+ }
IsPickerAudioAssistEnabled = UserMisc->Boot.PickerAudioAssist;
IsAudioSupportEnabled = UserUefi->Audio.AudioSupport;
|
Fix description in comment | @@ -283,7 +283,7 @@ namespace NCB {
TRawObjectsData Data;
};
- // for use while building and storing this part in TRawObjectsDataProvider
+ // for use while building and storing this part in TQuantizedObjectsDataProvider
struct TQuantizedObjectsData {
public:
/* some feature holders can contain nullptr
|
identifies hash test failure printfs | @@ -15,42 +15,42 @@ static void
_test_mug(void)
{
if ( 0x4d441035 != u3r_mug_string("Hello, world!") ) {
- fprintf(stderr, "fail\r\n");
+ fprintf(stderr, "fail (a)\r\n");
exit(1);
}
if ( 0x4d441035 != u3r_mug(u3i_string("Hello, world!")) ) {
- fprintf(stderr, "fail\r\n");
+ fprintf(stderr, "fail (b)\r\n");
exit(1);
}
if ( 0x79ff04e8 != u3r_mug_bytes(0, 0) ) {
- fprintf(stderr, "fail\r\n");
+ fprintf(stderr, "fail (c)\r\n");
exit(1);
}
if ( 0x64dfda5c != u3r_mug(u3i_string("xxxxxxxxxxxxxxxxxxxxxxxxxxxx")) ) {
- fprintf(stderr, "fail\r\n");
+ fprintf(stderr, "fail (d)\r\n");
exit(1);
}
if ( 0x389ca03a != u3r_mug_cell(0, 0) ) {
- fprintf(stderr, "fail\r\n");
+ fprintf(stderr, "fail (e)\r\n");
exit(1);
}
if ( 0x389ca03a != u3r_mug_cell(1, 1) ) {
- fprintf(stderr, "fail\r\n");
+ fprintf(stderr, "fail (f)\r\n");
exit(1);
}
if ( 0x5258a6c0 != u3r_mug_cell(0, u3qc_bex(32)) ) {
- fprintf(stderr, "fail\r\n");
+ fprintf(stderr, "fail (g)\r\n");
exit(1);
}
if ( 0x2ad39968 != u3r_mug_cell(u3qa_dec(u3qc_bex(128)), 1) ) {
- fprintf(stderr, "fail\r\n");
+ fprintf(stderr, "fail (h)\r\n");
exit(1);
}
}
|
runtime: zero queueing delay when runningks is less than max | @@ -20,6 +20,10 @@ extern int runtime_init(const char *cfgpath, thread_fn_t main_fn, void *arg);
extern struct congestion_info *runtime_congestion;
+extern unsigned int maxks;
+extern unsigned int guaranteedks;
+extern atomic_t runningks;
+
/**
* runtime_standing_queue_us - returns the us a queue has been left standing
*/
@@ -40,6 +44,9 @@ static inline uint64_t runtime_queue_us(void)
uint64_t rq_delay = 0;
uint64_t pkq_delay = 0;
+ if ((unsigned int)atomic_read(&runningks) < maxks)
+ return 0;
+
if (now > rq_oldest_tsc)
rq_delay = now - rq_oldest_tsc;
@@ -57,11 +64,6 @@ static inline float runtime_load(void)
return ACCESS_ONCE(runtime_congestion->load);
}
-extern unsigned int maxks;
-extern unsigned int guaranteedks;
-extern atomic_t runningks;
-
-
/**
* runtime_active_cores - returns the number of currently active cores
*
|
Stop vendoring libstdc++.so.*-gdb.py
Existing code was globbing for libstdc++.so.* and copying it to gpdb
lib, we are now ignoring the .py since that should not be vendored.
* also cleaned up bash, no need for trailing '/.' on copy. Thanks d#! | @@ -105,9 +105,9 @@ function unittest_check_gpdb() {
function include_zstd() {
pushd ${GREENPLUM_INSTALL_DIR}
if [ "${TARGET_OS}" == "centos" ] ; then
- cp /usr/lib64/pkgconfig/libzstd.pc lib/pkgconfig/.
- cp /usr/lib64/libzstd.so* lib/.
- cp /usr/include/zstd*.h include/.
+ cp /usr/lib64/pkgconfig/libzstd.pc lib/pkgconfig
+ cp /usr/lib64/libzstd.so* lib
+ cp /usr/include/zstd*.h include
fi
popd
}
@@ -115,7 +115,7 @@ function include_zstd() {
function include_quicklz() {
pushd ${GREENPLUM_INSTALL_DIR}
if [ "${TARGET_OS}" == "centos" ] ; then
- cp /usr/lib64/libquicklz.so* lib/.
+ cp /usr/lib64/libquicklz.so* lib
fi
popd
}
@@ -123,7 +123,15 @@ function include_quicklz() {
function include_libstdcxx() {
pushd /opt/gcc-6*/lib64
if [ "${TARGET_OS}" == "centos" ] ; then
- cp libstdc++.so.* ${GREENPLUM_INSTALL_DIR}/lib/.
+ for libfile in libstdc++.so.*; do
+ case $libfile in
+ *.py)
+ ;; # we don't vendor libstdc++.so.*-gdb.py
+ *)
+ cp "$libfile" ${GREENPLUM_INSTALL_DIR}/lib
+ ;; # vendor everything else
+ esac
+ done
fi
popd
}
|
VERSION bump version to 0.11.21 | @@ -32,7 +32,7 @@ set(CMAKE_C_FLAGS_DEBUG "-g -O0")
# set version
set(LIBNETCONF2_MAJOR_VERSION 0)
set(LIBNETCONF2_MINOR_VERSION 11)
-set(LIBNETCONF2_MICRO_VERSION 20)
+set(LIBNETCONF2_MICRO_VERSION 21)
set(LIBNETCONF2_VERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION}.${LIBNETCONF2_MICRO_VERSION})
set(LIBNETCONF2_SOVERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION})
|
SCons: update hdiutil commands.
Use detach instead of the poorly named unmount command. Add `-force` to
ensure the volume gets unmounted without error. | @@ -65,13 +65,13 @@ def unpack_sdl2_darwin(env):
return
download_sdl2_darwin(env)
print(env.subst("Extracting $SDL2_DMG_PATH to $DEPENDANCY_DIR"))
- subprocess.check_call(["hdiutil", "mount", env.subst("$SDL2_DMG_PATH")])
+ subprocess.check_call(["hdiutil", "attach", env.subst("$SDL2_DMG_PATH")])
shutil.copytree(
"/Volumes/SDL2/SDL2.framework",
env.subst("$SDL2_PATH"),
symlinks=True,
)
- subprocess.check_call(["hdiutil", "unmount", "/Volumes/SDL2"])
+ subprocess.check_call(["hdiutil", "detach", "/Volumes/SDL2", "-force"])
def samples_factory():
|
Fix test_latin1_umlauts() to work for | @@ -894,20 +894,30 @@ START_TEST(test_latin1_umlauts)
"<?xml version='1.0' encoding='iso-8859-1'?>\n"
"<e a='\xE4 \xF6 \xFC ä ö ü ä ö ü >'\n"
" >\xE4 \xF6 \xFC ä ö ü ä ö ü ></e>";
- const char *utf8 =
- "\xC3\xA4 \xC3\xB6 \xC3\xBC "
- "\xC3\xA4 \xC3\xB6 \xC3\xBC "
- "\xC3\xA4 \xC3\xB6 \xC3\xBC >";
- run_character_check(text, utf8);
+#ifdef XML_UNICODE
+ /* Expected results in UTF-16 */
+ const XML_Char *expected =
+ XCS("\x00e4 \x00f6 \x00fc ")
+ XCS("\x00e4 \x00f6 \x00fc ")
+ XCS("\x00e4 \x00f6 \x00fc >");
+#else
+ /* Expected results in UTF-8 */
+ const XML_Char *expected =
+ XCS("\xC3\xA4 \xC3\xB6 \xC3\xBC ")
+ XCS("\xC3\xA4 \xC3\xB6 \xC3\xBC ")
+ XCS("\xC3\xA4 \xC3\xB6 \xC3\xBC >");
+#endif
+
+ run_character_check(text, expected);
XML_ParserReset(parser, NULL);
- run_attribute_check(text, utf8);
+ run_attribute_check(text, expected);
/* Repeat with a default handler */
XML_ParserReset(parser, NULL);
XML_SetDefaultHandler(parser, dummy_default_handler);
- run_character_check(text, utf8);
+ run_character_check(text, expected);
XML_ParserReset(parser, NULL);
XML_SetDefaultHandler(parser, dummy_default_handler);
- run_attribute_check(text, utf8);
+ run_attribute_check(text, expected);
}
END_TEST
|
Markdown update missed in | @@ -189,21 +189,26 @@ This project implements variadic functions using macros (which are exempt from t
```c
typedef struct StoragePathCreateParam
{
- VAR_PARAM_HEADER;
bool errorOnExists;
bool noParentCreate;
mode_t mode;
} StoragePathCreateParam;
#define storagePathCreateP(this, pathExp, ...) \
- storagePathCreate(this, pathExp, (StoragePathCreateParam){VAR_PARAM_INIT, __VA_ARGS__})
+ storagePathCreate(this, pathExp, (StoragePathCreateParam){__VA_ARGS__})
+#define storagePathCreateP(this, pathExp) \
+ storagePathCreate(this, pathExp, (StoragePathCreateParam){0})
void storagePathCreate(const Storage *this, const String *pathExp, StoragePathCreateParam param);
```
Continuation characters should be aligned at column 132 (unlike the example above that has been shortened for display purposes).
-This function can now be called with variable parameters using the macro:
+This function can be called without variable parameters:
+```c
+storagePathCreateP(storageLocal(), "/tmp/pgbackrest");
```
+Or with variable parameters:
+```c
storagePathCreateP(storageLocal(), "/tmp/pgbackrest", .errorOnExists = true, .mode = 0777);
```
If the majority of functions in a module or object are variadic it is best to provide macros for all functions even if they do not have variable parameters. Do not use the base function when variadic macros exist.
|
spi: fix micro SPI_HOST_MAX error
Closes | @@ -19,7 +19,9 @@ typedef enum {
//SPI1 can be used as GPSPI only on ESP32
SPI1_HOST=0, ///< SPI1
SPI2_HOST=1, ///< SPI2
+#if SOC_SPI_PERIPH_NUM > 2
SPI3_HOST=2, ///< SPI3
+#endif
SPI_HOST_MAX, ///< invalid host value
} spi_host_device_t;
|
apps/bletiny: Add svcvis command to change service visibility
Service is identified by its starting handle. | @@ -4109,6 +4109,54 @@ cmd_svcchg(int argc, char **argv)
return 0;
}
+/*****************************************************************************
+ * $svcvis *
+ *****************************************************************************/
+
+static void
+bletiny_svcvis_help(void)
+{
+#if !MYNEWT_VAL(BLETINY_HELP)
+ bletiny_help_disabled();
+ return;
+#endif
+
+ console_printf("Available svcvis params: \n");
+ help_cmd_uint16("handle");
+ help_cmd_bool("vis");
+}
+
+static int
+cmd_svcvis(int argc, char **argv)
+{
+ uint16_t handle;
+ bool vis;
+ int rc;
+
+ if (argc > 1 && strcmp(argv[1], "help") == 0) {
+ bletiny_svcvis_help();
+ return 0;
+ }
+
+ handle = parse_arg_uint16("handle", &rc);
+ if (rc != 0) {
+ console_printf("invalid 'handle' parameter\n");
+ help_cmd_uint16("handle");
+ return rc;
+ }
+
+ vis = parse_arg_bool("vis", &rc);
+ if (rc != 0) {
+ console_printf("invalid 'vis' parameter\n");
+ help_cmd_bool("vis");
+ return rc;
+ }
+
+ ble_gatts_svc_set_visibility(handle, vis);
+
+ return 0;
+}
+
static const struct cmd_entry cmd_phy_entries[];
static int
@@ -4312,6 +4360,7 @@ static struct cmd_entry cmd_b_entries[] = {
{ "write", cmd_write },
{ "svcchg", cmd_svcchg },
{ "phy", cmd_phy },
+ { "svcvis", cmd_svcvis },
{ NULL, NULL }
};
|
dotprod_cccf/autotest: running explicit test for struct, run, run4 | /*
- * Copyright (c) 2007 - 2015 Joseph Gaeddert
+ * Copyright (c) 2007 - 2021 Joseph Gaeddert
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
@@ -172,8 +172,6 @@ void autotest_dotprod_cccf_struct_lengths()
}
}
-
-
// helper function (compare structured object to ordinal computation)
void runtest_dotprod_cccf(unsigned int _n)
{
@@ -194,21 +192,38 @@ void runtest_dotprod_cccf(unsigned int _n)
y_test += h[i] * x[i];
// create and run dot product object
- float complex y;
+ float complex y_struct;
dotprod_cccf dp;
dp = dotprod_cccf_create(h,_n);
- dotprod_cccf_execute(dp, x, &y);
+ dotprod_cccf_execute(dp, x, &y_struct);
dotprod_cccf_destroy(dp);
+ // run unstructured
+ float complex y_run, y_run4;
+ dotprod_cccf_run (h,x,_n,&y_run );
+ dotprod_cccf_run4(h,x,_n,&y_run4);
+
// print results
if (liquid_autotest_verbose) {
- printf(" dotprod-cccf-%-4u : %12.8f + j%12.8f (expected %12.8f + j%12.8f)\n",
- _n, crealf(y), cimagf(y), crealf(y_test), cimagf(y_test));
+ printf(" dotprod-cccf-%-4u(struct) : %12.8f + j%12.8f (expected %12.8f + j%12.8f)\n",
+ _n, crealf(y_struct), cimagf(y_struct), crealf(y_test), cimagf(y_test));
+ printf(" dotprod-cccf-%-4u(run ) : %12.8f + j%12.8f (expected %12.8f + j%12.8f)\n",
+ _n, crealf(y_run ), cimagf(y_run ), crealf(y_test), cimagf(y_test));
+ printf(" dotprod-cccf-%-4u(run4 ) : %12.8f + j%12.8f (expected %12.8f + j%12.8f)\n",
+ _n, crealf(y_run4 ), cimagf(y_run4 ), crealf(y_test), cimagf(y_test));
}
- // validate result
- CONTEND_DELTA(crealf(y), crealf(y_test), tol);
- CONTEND_DELTA(cimagf(y), cimagf(y_test), tol);
+ // validate result (structured object)
+ CONTEND_DELTA(crealf(y_struct), crealf(y_test), tol);
+ CONTEND_DELTA(cimagf(y_struct), cimagf(y_test), tol);
+
+ // validate result (unstructured, run)
+ CONTEND_DELTA(crealf(y_run ), crealf(y_test), tol);
+ CONTEND_DELTA(cimagf(y_run ), cimagf(y_test), tol);
+
+ // validate result (unstructured, run4)
+ CONTEND_DELTA(crealf(y_run4 ), crealf(y_test), tol);
+ CONTEND_DELTA(cimagf(y_run4 ), cimagf(y_test), tol);
}
// compare structured object to ordinal computation
|
libhfuzz/instrument: add 1byte values to the dynamic const dict as well | @@ -252,6 +252,7 @@ void __sanitizer_cov_trace_cmp8(uint64_t Arg1, uint64_t Arg2) {
/* Standard __sanitizer_cov_trace_const_cmp wrappers */
void __sanitizer_cov_trace_const_cmp1(uint8_t Arg1, uint8_t Arg2) {
+ instrumentAddConstMem(&Arg1, sizeof(Arg1), /* check_if_ro= */ false);
hfuzz_trace_cmp1_internal((uintptr_t)__builtin_return_address(0), Arg1, Arg2);
}
|
Add constexpr specifier | @@ -50,7 +50,7 @@ namespace NSan {
}
// Determines if asan present
- inline static bool ASanIsOn() noexcept {
+ inline constexpr static bool ASanIsOn() noexcept {
#if defined(_asan_enabled_)
return true;
#else
@@ -59,7 +59,7 @@ namespace NSan {
}
// Determines if tsan present
- inline static bool TSanIsOn() noexcept {
+ inline constexpr static bool TSanIsOn() noexcept {
#if defined(_tsan_enabled_)
return true;
#else
@@ -68,7 +68,7 @@ namespace NSan {
}
// Determines if msan present
- inline static bool MSanIsOn() noexcept {
+ inline constexpr static bool MSanIsOn() noexcept {
#if defined(_msan_enabled_)
return true;
#else
|
Add (untested) pins for SPI. | scl-pin = <20>;
};
+/* TODO: Needs testing */
+&spi0 {
+ compatible = "nordic,nrf-spi";
+ /* Cannot be used together with i2c0. */
+ /* status = "okay"; */
+ sck-pin = <13>;
+ mosi-pin = <10>;
+ miso-pin = <11>;
+};
+
&flash0 {
/*
* For more information, see:
|
Ignore all Old Crypto Data | @@ -969,18 +969,9 @@ QuicCryptoProcessDataFrame(
KeyType = QUIC_PACKET_KEY_1_RTT; // Treat them all as the same
}
- if (KeyType != Crypto->TlsState.ReadKey) {
- if (QuicRecvBufferAlreadyReadData(
- &Crypto->RecvBuffer,
- Crypto->RecvEncryptLevelStartOffset + Frame->Offset,
- (uint16_t)Frame->Length)) {
- Status = QUIC_STATUS_SUCCESS;
- } else {
- QuicTraceEvent(ConnError,
- Connection, "Tried crypto with incorrect key.");
- QuicConnTransportError(Connection, QUIC_ERROR_PROTOCOL_VIOLATION);
- Status = QUIC_STATUS_INVALID_STATE;
- }
+ QUIC_DBG_ASSERT(KeyType <= Crypto->TlsState.ReadKey);
+ if (KeyType < Crypto->TlsState.ReadKey) {
+ Status = QUIC_STATUS_SUCCESS; // Old, likely retransmitted data.
goto Error;
}
|
Update: maybe on Ubuntu the -lm is supposed to ooccur before the other flags, let's try | @@ -8,7 +8,7 @@ sudo rm /usr/lib/libONA.so
Str=`ls src/*.c src/NetworkNAR/*.c | xargs`
echo $Str
echo "Compilation started:"
-BaseFlags="-mfpmath=sse -msse2 -pthread -lpthread -D_POSIX_C_SOURCE=199506L -pedantic -std=c99 -lm"
+BaseFlags="-mfpmath=sse -msse2 -pthread -lpthread -lm -D_POSIX_C_SOURCE=199506L -pedantic -std=c99"
gcc -DSTAGE=1 -Wall -Wextra -Wformat-security $BaseFlags $Str -oNAR_first_stage
echo "First stage done, generating RuleTable.c now, and finishing compilation."
mv src/main.c src/main_
|
perfmon: check bundle is supported
Add a check bundle is supported before futher activation.
Enable different bundles with same name, supported on different platforms.
Type: improvement | @@ -288,6 +288,21 @@ perfmon_stop (vlib_main_t *vm)
return 0;
}
+static_always_inline u8
+is_bundle_supported (perfmon_bundle_t *b)
+{
+ perfmon_cpu_supports_t *supports = b->cpu_supports;
+
+ if (!b->cpu_supports)
+ return 1;
+
+ for (int i = 0; i < b->n_cpu_supports; ++i)
+ if (supports[i].cpu_supports ())
+ return 1;
+
+ return 0;
+}
+
static clib_error_t *
perfmon_init (vlib_main_t *vm)
{
@@ -320,6 +335,14 @@ perfmon_init (vlib_main_t *vm)
{
clib_error_t *err;
uword *p;
+
+ if (!is_bundle_supported (b))
+ {
+ log_warn ("skipping bundle '%s' - not supported", b->name);
+ b = b->next;
+ continue;
+ }
+
if (hash_get_mem (pm->bundle_by_name, b->name) != 0)
clib_panic ("duplicate bundle name '%s'", b->name);
|
Test for timer creation error | @@ -82,8 +82,11 @@ static VALUE iodine_run_after(VALUE self, VALUE milliseconds) {
if (block == Qnil)
return Qfalse;
Registry.add(block);
- facil_run_every(milli, 1, iodine_run_task, (void *)block,
- (void (*)(void *))Registry.remove);
+ if (facil_run_every(milli, 1, iodine_run_task, (void *)block,
+ (void (*)(void *))Registry.remove) == -1) {
+ perror("ERROR: Iodine couldn't initialize timer");
+ return Qnil;
+ }
return block;
}
/**
@@ -123,8 +126,11 @@ static VALUE iodine_run_every(int argc, VALUE *argv, VALUE self) {
// requires a block to be passed
rb_need_block();
Registry.add(block);
- facil_run_every(milli, repeat, iodine_run_task, (void *)block,
- (void (*)(void *))Registry.remove);
+ if (facil_run_every(milli, repeat, iodine_run_task, (void *)block,
+ (void (*)(void *))Registry.remove) == -1) {
+ perror("ERROR: Iodine couldn't initialize timer");
+ return Qnil;
+ }
return block;
}
|
Add initial listview theme support | @@ -370,7 +370,9 @@ BOOLEAN CALLBACK PhpThemeWindowEnumChildWindows(
}
else if (PhEqualStringZ(className, L"SysListView32", FALSE))
{
- NOTHING;
+ ListView_SetBkColor(WindowHandle, RGB(30, 30, 30));
+ ListView_SetTextBkColor(WindowHandle, RGB(30, 30, 30));
+ ListView_SetTextColor(WindowHandle, RGB(0xff, 0xff, 0xff));
}
else if (PhEqualStringZ(className, L"ScrollBar", FALSE))
{
|
actions: explicitly export homebrew ruby and python paths | @@ -61,6 +61,8 @@ jobs:
# and build directories, but this is only available with CMake 3.13 and higher.
# The CMake binaries on the Github Actions machines are (as of this writing) 3.12
run: |
+ PATH="/usr/local/opt/[email protected]/bin:/usr/local/lib/ruby/gems/2.7.0/bin:$PATH"
+ PATH="/usr/local/opt/[email protected]/bin:$PATH"
SYSTEM_DIR="$PWD/kdbsystem"
CMAKE_OPT+=(
-GNinja
|
hoon: better comment for +slab | =+ gun=(~(mint ut typ) %noun gen)
[p.gun (slum q.gat q.sam)]
::
-:: +slab states whether you can access an arm in a type
-:: for reading, writing, or reading-and-writing.
+:: +slab: states whether you can access an arm in a type.
+::
+:: -- way: the access type ($vial): read, write, or read-and-write.
+:: The fourth case of $vial, %free, is not permitted because it would
+:: allow you to discover "private" information about a type,
+:: information which you could not make use of in (law-abiding) hoon anyway.
::
++ slab :: test if contains
|= [way=?(%read %rite %both) cog=@tas typ=type]
|
fix noborder for samesize clients | @@ -3318,7 +3318,7 @@ removesystrayicon(Client *i)
void
resize(Client *c, int x, int y, int w, int h, int interact)
{
- if (applysizehints(c, &x, &y, &w, &h, interact))
+ if (applysizehints(c, &x, &y, &w, &h, interact) || selmon->clientcount == 1)
resizeclient(c, x, y, w, h);
}
|
options/posix: implement pthread_testcancel() | @@ -342,9 +342,13 @@ int pthread_setcancelstate(int state, int *oldstate) {
return 0;
}
void pthread_testcancel(void) {
- __ensure(!"Not implemented");
+ auto self = reinterpret_cast<Tcb *>(mlibc::get_current_tcb());
+ int value = self->cancelBits;
+ if (value & (tcbCancelEnableBit | tcbCancelTriggerBit)) {
+ __mlibc_do_cancel();
__builtin_unreachable();
}
+}
int pthread_cancel(pthread_t thread) {
auto tcb = reinterpret_cast<Tcb *>(thread);
// Check if the TCB is valid, somewhat..
|
Remove stale comment: LDS fp atomics work correctly now. | @@ -89,13 +89,7 @@ template <typename T> int test_em() {
red = 0.0;
- // LDS, fast: this is not yet working as expected.
- // The red_sh variable is passed to the parallel outlined function
- // through a global variable. By the time it reaches the unsafeAtomicAdd
- // we lost the information about the type. That said, unsafeAtomicAdd
- // should choose at runtime what function to use, but the ds version
- // of the ISA instruction does not show up in the assembly.
- // Work more on this.
+ // LDS, fast
#pragma omp target teams num_teams(1) map(to : a[:n]) map(tofrom : red)
{ // no distribute construct, this works with a single team only
T red_sh;
|
Raise max ipc message size limit to 256 MB | @@ -668,7 +668,8 @@ bool ipc_send_reply(struct ipc_client *client, const char *payload, uint32_t pay
client->write_buffer_size *= 2;
}
- if (client->write_buffer_size > (1 << 22)) { // 4 MB
+ // TODO: reduce the limit back to 4 MB when screenshooter is implemented
+ if (client->write_buffer_size > (1 << 28)) { // 256 MB
sway_log(L_ERROR, "Client write buffer too big, disconnecting client");
ipc_client_disconnect(client);
return false;
|
Enforce Java 11 in build gradle | @@ -5,9 +5,14 @@ plugins {
id "com.diffplug.gradle.spotless" version "4.5.1"
id 'maven-publish'
id 'signing'
+ id 'java'
}
-apply plugin: 'java'
+java {
+ toolchain {
+ languageVersion = JavaLanguageVersion.of(11)
+ }
+}
repositories {
mavenCentral()
|
Update to ndk r21 | @@ -23,12 +23,13 @@ jobs:
choco install --no-progress -y android-sdk
choco install --no-progress -y ninja
new-item "C:\Users\runneradmin\.android\repositories.cfg" -ItemType "file"
- echo yes | C:\Android\android-sdk\tools\bin\sdkmanager.bat "cmake;3.10.2.4988404"
+ echo yes | C:\Android\android-sdk\tools\bin\sdkmanager.bat "cmake;3.10.2.4988404 ndk;21.1.6352462"
gci -r -i "CMake*" C:\Android
echo $Env:PATH
- name: Gradle Build
run: |
$Env:PATH = "C:\Android\android-sdk\cmake\3.10.2.4988404\bin;" + $Env:PATH
+ $Env:ANDROID_NDK = "C:\Android\android-sdk\ndk\21.1.6352462"
cd "$Env:GITHUB_WORKSPACE\lib\android_build"
.\gradlew.bat assemble
- name: Java Unit test
|
BugID:18853913: modification fot the description of lora menuconfig | @@ -7,11 +7,11 @@ menuconfig AOS_COMP_LORAWAN_4_4_2
if AOS_COMP_LORAWAN_4_4_2
# Configurations for comp lorawan_4_4_2
config AOS_CONFIG_ENABLE_CLASS_B
- bool "This is config for LoRaWAN Class B feature"
+ bool "Enable Class B"
default n
config AOS_CONFIG_LORAWAN_VERSION_110
- bool "This is config for LoRaWAN Specification Version 1.1.0"
+ bool "Enable Specification Version 1.1.0"
default n
endif
|
YANG parser BUGFIX dereferencing NULL pointer | @@ -146,7 +146,11 @@ buf_add_char(struct ly_ctx *ctx, const char **input, size_t len, char **buf, siz
*buf = ly_realloc(*buf, *buf_len);
LY_CHECK_ERR_RET(!*buf, LOGMEM(ctx), LY_EMEM);
}
+ if (*buf_used) {
memcpy(&(*buf)[*buf_used], *input, len);
+ } else {
+ memcpy(*buf, *input, len);
+ }
(*buf_used) += len;
(*input) += len;
|
main: support files in cwd | @@ -64,13 +64,20 @@ _main_repath(c3_c* pax_c)
c3_c* dir_c;
c3_w len_w;
+ c3_assert(pax_c);
if ( 0 != (rel_c = realpath(pax_c, 0)) ) {
return rel_c;
}
fas_c = strrchr(pax_c, '/');
if ( !fas_c ) {
- fprintf(stderr, "invalid path %s\n", pax_c);
- return 0;
+ c3_c* rec_c = c3_malloc(strlen(pax_c) + 3);
+ c3_c* ret_c;
+
+ strcpy(rec_c, "./");
+ strcat(rec_c, pax_c);
+ ret_c = _main_repath(rec_c);
+ c3_free(rec_c);
+ return ret_c;
}
c3_assert(u3_unix_cane(fas_c + 1));
*fas_c = 0;
|
Enable RCVINFO | @@ -316,7 +316,7 @@ main(void)
#else
pthread_t tid_c, tid_s;
#endif
- int cur_buf_size, snd_buf_size, rcv_buf_size;
+ int cur_buf_size, snd_buf_size, rcv_buf_size, on;
socklen_t opt_len;
struct sctp_sndinfo sndinfo;
char *line;
@@ -473,6 +473,12 @@ main(void)
exit(EXIT_FAILURE);
}
printf("to %d.\n", cur_buf_size);
+
+ on = 1;
+ if (usrsctp_setsockopt(s_l, IPPROTO_SCTP, SCTP_RECVRCVINFO, &on, sizeof(int)) < 0) {
+ perror("usrsctp_setsockopt");
+ exit(EXIT_FAILURE);
+ }
/* Bind the client side. */
memset(&sconn, 0, sizeof(struct sockaddr_conn));
sconn.sconn_family = AF_CONN;
@@ -519,6 +525,7 @@ main(void)
perror("usrsctp_accept");
exit(EXIT_FAILURE);
}
+
usrsctp_set_upcall(s_s, handle_upcall, &fd_s);
usrsctp_close(s_l);
@@ -527,7 +534,7 @@ main(void)
}
memset(line, 'A', LINE_LENGTH);
sndinfo.snd_sid = 1;
- sndinfo.snd_flags = 0;
+ sndinfo.snd_flags = SCTP_UNORDERED;
sndinfo.snd_ppid = htonl(DISCARD_PPID);
sndinfo.snd_context = 0;
sndinfo.snd_assoc_id = 0;
|
Pulled /reader diffs and rumors into their own structures. | ++ range (unit {hed/place tal/(unit place)}) ::< inclusive msg range
++ place $%({$da @da} {$ud @ud}) ::< @ud/@da for range
++ prize ::> query result
- $% $: $reader ::< /reader
- gys/(jug char (set partner)) ::< glyph bindings
- nis/(map ship cord) ::< nicknames
- == ::
+ $% {$reader prize-reader} ::< /reader
{$friend cis/(set circle)} ::< /friend
{$burden sos/(map knot burden)} ::< /burden
::TODO do we ever use remote things from remote circles?
{$circle burden} ::< /circle
== ::
- ::TODO ++prize-reader {gys nis} etc.
-++ rumor ::< query result change
- $% $: $reader ::< /reader
- $= dif ::
- $% {$glyph diff-glyph} ::
- {$nick diff-nick} ::
- == ::
+++ prize-reader ::
+ $: gys/(jug char (set partner)) ::< glyph bindings
+ nis/(map ship cord) ::< nicknames
== ::
+++ rumor ::< query result change
+ $% {$reader dif/rumor-reader} ::< /reader
{$friend add/? cir/circle} ::< /friend
{$burden nom/knot dif/diff-story} ::< /burden
{$circle dif/diff-story} ::< /circle
== ::
+++ rumor-reader ::< changed ui state
+ $% {$glyph diff-glyph} ::< un/bound glyph
+ {$nick diff-nick} ::< changed nickname
+ == ::
++ burden ::< full story state
$: gaz/(list telegram) ::< all messages
cos/lobby ::< loc & rem configs
|
[Components][Drivers][USB Device]fix ep assign bug | @@ -1845,7 +1845,7 @@ static rt_err_t rt_usbd_ep_assign(udevice_t device, uep_t ep)
while(device->dcd->ep_pool[i].addr != 0xFF)
{
if(device->dcd->ep_pool[i].status == ID_UNASSIGNED &&
- ep->ep_desc->bmAttributes == device->dcd->ep_pool[i].type)
+ ep->ep_desc->bmAttributes == device->dcd->ep_pool[i].type && (EP_ADDRESS(ep) & 0x80) == device->dcd->ep_pool[i].dir)
{
EP_ADDRESS(ep) |= device->dcd->ep_pool[i].addr;
ep->id = &device->dcd->ep_pool[i];
|
Recipes in java tests | @@ -579,6 +579,7 @@ def onjava_test(unit, *args):
'TAG': serialize_list(get_values_list(unit, 'TEST_TAGS_VALUE')),
'SIZE': unit.get('TEST_SIZE_NAME') or '',
'REQUIREMENTS': serialize_list(get_values_list(unit, 'TEST_REQUIREMENTS_VALUE')),
+ 'TEST-RECIPES': base64.b64encode(unit.get('RECIPE_COMMAND_VALUE') or ''),
# JTEST/JTEST_FOR only
'MODULE_TYPE': unit.get('MODULE_TYPE'),
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.