message
stringlengths 6
474
| diff
stringlengths 8
5.22k
|
---|---|
fix last tab view | @@ -4889,6 +4889,8 @@ view(const Arg *arg)
int ui = computeprefix(arg);
int i;
+ if (selmon->tagset[0] == 1 << ui)
+ return;
selmon->seltags ^= 1; /* toggle sel tagset */
if (ui & TAGMASK) {
@@ -5279,6 +5281,9 @@ overtoggle(const Arg *arg){
void
lastview(const Arg *arg) {
+ if (selmon->pertag->curtag == selmon->pertag->prevtag)
+ focuslastclient(NULL);
+ else
view(&((Arg) { .ui = 1 << ( selmon->pertag->prevtag -1 ) }));
}
|
interpreters: wamr: Add touch in Makefile to avoid unnecessary mv | @@ -55,6 +55,7 @@ $(WAMR_UNPACK): $(WAMR_TARBALL)
$(Q) echo "Unpacking $(WAMR_TARBALL) to $(WAMR_UNPACK)"
$(Q) unzip $(WAMR_TARBALL)
$(Q) mv wasm-micro-runtime-$(WAMR_VERSION_STUB)$(WAMR_VERSION) $(WAMR_UNPACK)
+ $(Q) touch $(WAMR_UNPACK)
context:: $(WAMR_UNPACK)
|
Change the way of determining nested classes. | @@ -98,7 +98,7 @@ mrbc_class * mrbc_define_class(struct VM *vm, const char *name, mrbc_class *supe
cls->super = super ? super : mrbc_class_object;
cls->method_link = 0;
- if( vm && vm->callinfo_tail != NULL ) {
+ if( vm && mrbc_type(vm->cur_regs[0]) == MRBC_TT_CLASS ) {
// For nested class
// so, not in TOPLEVEL, register to class constant
assert(vm->target_class);
|
Decrease CMSIS-OS thread's stack size | @@ -119,7 +119,7 @@ typedef osPriority esp_sys_thread_prio_t;
* \brief Stack size of system threads
* \note Keep as is in case of CMSIS based OS, otherwise change for your OS
*/
-#define ESP_SYS_THREAD_SS (512)
+#define ESP_SYS_THREAD_SS (256)
#endif /* ESP_OS || __DOXYGEN__ */
uint8_t esp_sys_init(void);
|
restores pier restart | @@ -1487,8 +1487,10 @@ u3_pier_create(c3_w wag_w, c3_c* pax_c, c3_c* sys_c)
pir_u->pax_c = c3_malloc(1 + strlen(pax_c));
strcpy(pir_u->pax_c, pax_c);
+ if ( 0 != sys_c ) {
pir_u->sys_c = c3_malloc(1 + strlen(sys_c));
strcpy(pir_u->sys_c, sys_c);
+ }
pir_u->wag_w = wag_w;
pir_u->gen_d = 0;
@@ -2008,8 +2010,13 @@ _pier_boot_make(c3_w wag_w, u3_noun pax, u3_noun sys)
c3_c* sys_c;
u3_pier* pir_u;
+ if ( u3_nul == sys ) {
+ sys_c = 0;
+ }
+ else {
c3_assert( c3y == u3h(sys) );
sys_c = u3r_string(u3t(sys));
+ }
pir_u = u3_pier_create(wag_w, pax_c, sys_c);
|
haskell-cabal-sandboxing: fix travis file to not use $? | @@ -96,18 +96,9 @@ before_install:
brew install cabal-install
cabal update
# avoid reinstalls if we already have them cached
- which happy
- if [[ "$?" == 1 ]]
- cabal install happy
- fi
- which alex
- if [[ "$?" == 1 ]]
- cabal install alex
- fi
- which c2hs
- if [[ "$?" == 1 ]]
- cabal install c2hs
- fi
+ which happy || cabal install happy
+ which alex || cabal install alex
+ which c2hs || cabal install c2hs
PATH=$PATH:"$HOME/.cabal/bin"
fi
- |
|
py/mpconfig.h: Add default MICROPY_VFS_FAT config value.
At least to document it's existence. | @@ -686,6 +686,11 @@ typedef double mp_float_t;
#define MICROPY_VFS_POSIX (0)
#endif
+// Support for VFS FAT component, to mount a FAT filesystem within VFS
+#ifndef MICROPY_VFS
+#define MICROPY_VFS_FAT (0)
+#endif
+
/*****************************************************************************/
/* Fine control over Python builtins, classes, modules, etc */
|
Update about copyright year | @@ -195,7 +195,7 @@ BEGIN
ICON IDI_PROCESSHACKER,IDC_STATIC,16,11,21,20
LTEXT "Process Hacker",IDC_ABOUT_NAME,45,10,192,8
LTEXT "Licensed under the GNU GPL, v3.",IDC_STATIC,45,23,193,8
- LTEXT "Copyright (c) 2008-2020",IDC_STATIC,45,36,80,8
+ LTEXT "Copyright (c) 2008-2021",IDC_STATIC,45,36,80,8
CONTROL "Credits.",IDC_CREDITS,"SysLink",WS_TABSTOP,15,49,248,121
CONTROL "<a href=""https://processhacker.sourceforge.io"">Process Hacker on SourceForge.net</a>",IDC_LINK_SF,
"SysLink",WS_TABSTOP,7,177,130,11
|
Feat:modify rpc objects dir | # Source and Objects
SOURCES = $(wildcard *.c)
-OBJECTS_DIR = $(BOAT_BUILD_DIR)/vendor/platform/$(PLATFORM_TARGET)/src/rpc
+OBJECTS_DIR = $(BOAT_BUILD_DIR)/vendor/platform/$(PLATFORM_TARGET)/rpc
OBJECTS = $(patsubst %.c,$(OBJECTS_DIR)/%.o,$(SOURCES))
|
Fixing execute api parameters | #include <stdio.h>
#define PING_HASH 6385583923
-#define NUM_ARGS 5 //In the future these values will be inherited from the command
-#define ARG_LEN 20 //and control framework configuration. With this build config that's not simple to do.
int parse_and_run(char * arg);
-int execute(int argc, char argv[NUM_ARGS][ARG_LEN])
+int execute(int argc, char **argv)
{
switch (argc)
{
|
hdat: create XIVE nodes under each xscom node
Adds the XIVE node under each chip's XSCOM controller node. | @@ -333,6 +333,17 @@ static void add_psihb_node(struct dt_node *np)
}
}
+static void add_xive_node(struct dt_node *np)
+{
+ struct dt_node *xive = dt_new_addr(np, "xive", 0x5013000);
+
+ dt_add_property_cells(xive, "reg", 0x5013000, 0x300);
+ dt_add_property_string(xive, "compatible", "ibm,power9-xive-x");
+
+ /* HACK: required for simics */
+ dt_add_property(xive, "force-assign-bars", NULL, 0);
+}
+
static void add_xscom_add_pcia_assoc(struct dt_node *np, uint32_t pcid)
{
const struct HDIF_common_hdr *hdr;
@@ -440,6 +451,9 @@ static bool add_xscom_sppcrd(uint64_t xscom_base)
/* Add PSI Host bridge */
add_psihb_node(np);
+
+ if (proc_gen >= proc_gen_p9)
+ add_xive_node(np);
}
return i > 0;
|
fixed missing check for MONGOC_ERRNO_IS_AGAIN case under _mongoc_socket_wait | @@ -217,9 +217,7 @@ _mongoc_socket_wait (mongoc_socket_t *sock, /* IN */
TRACE ("errno is: %d", errno);
if (MONGOC_ERRNO_IS_AGAIN (errno)) {
- now = bson_get_monotonic_time ();
-
- if (expire_at < now) {
+ if (OPERATION_EXPIRED (expire_at)) {
_mongoc_socket_capture_errno (sock);
RETURN (false);
} else {
|
Verbose should not be turned on as a side effect from adding a lib. | @@ -719,7 +719,6 @@ class NMEProject
public function addLib(name:String, version:String="",inNoCopy:Bool)
{
var haxelib = findHaxelib(name);
- Log.mVerbose = true;
if (haxelib==null)
{
Log.verbose("Add library " + name + ":" + version );
|
gadgets/tcpconnect: Make C functions static
These functions are only intended to be used in the module, make them
static to avoid conflicts with C functions in other modules. | @@ -22,7 +22,7 @@ package tracer
// #include <arpa/inet.h>
// #include <stdlib.h>
//
-//char *addr_str(const void *addr, __u32 af) {
+//static char *addr_str(const void *addr, __u32 af) {
// size_t size = af == AF_INET ? INET_ADDRSTRLEN : INET6_ADDRSTRLEN;
// char *str;
//
@@ -35,7 +35,7 @@ package tracer
// return str;
//}
//
-//char *get_src_addr(const struct event *ev) {
+//static char *get_src_addr(const struct event *ev) {
// if (ev->af == AF_INET)
// return addr_str(&ev->saddr_v4, ev->af);
// else if (ev->af == AF_INET6)
@@ -44,7 +44,7 @@ package tracer
// return NULL;
//}
//
-//char *get_dst_addr(const struct event *ev) {
+//static char *get_dst_addr(const struct event *ev) {
// if (ev->af == AF_INET)
// return addr_str(&ev->daddr_v4, ev->af);
// else if (ev->af == AF_INET6)
|
Apply clang-format to compound_plugin | @@ -158,8 +158,8 @@ void compound_plugin_call(int message, void *parameters) {
case COMPOUND_REDEEM_UNDERLYING:
case COMPOUND_MINT:
case CETH_MINT:
- msg->result =
- get_underlying_asset_decimals((char *)&context->ticker_1, &context->decimals)
+ msg->result = get_underlying_asset_decimals((char *) &context->ticker_1,
+ &context->decimals)
? ETH_PLUGIN_RESULT_OK
: ETH_PLUGIN_RESULT_FALLBACK;
break;
|
highlevel: describe metadata and specification | @@ -56,6 +56,20 @@ You can find a complete example at the end of this document and [here](../../../
## Core Concepts
+### Metadata and Specification
+
+In Elektra keys may have [attached meta data](/doc/help/elektra-metadata.md) describing additional properties of the key. By using [Elektra's
+namespaces](/doc/tutorials/namespaces.md) and [cascading keys](/doc/tutorials/cascading.md) it is also possible to have a full specification
+of your applications configuration.
+
+This specification should be placed into the `spec` namespace. From there the high-level API and Elektra's plugins will access it. A
+specification for use with the high-level API has to define at least the `default` and the `type` meta data for each key the application
+is going to use. The `default` meta key simple defines which value will be returned, if the user didn't set a value. `type` defines the data
+type of key. For more information on data types [see below](#data-types).
+
+The API also supports passing a `KeySet` to `elektraOpen` that contains the specification. This is, however, not recommended for general use
+and is mainly useful for debugging and testing purposes.
+
### Struct `Elektra`
`Elektra` is the handle you use to access the underlying KDB (hierarchical key database) that stores the configuration key-value pairs.
|
tests for LTO builds | @@ -48,7 +48,6 @@ Build_Static:
paths:
- bart
expire_in: 45 minutes
- allow_failure: true
Build_UBSan:
@@ -75,6 +74,18 @@ Build_GPU:
expire_in: 45 minutes
+Build_LTO:
+ image: debian:stable
+ stage: build
+ script:
+ - CFLAGS="-flto -O2 -g" make
+ artifacts:
+ paths:
+ - bart
+ expire_in: 45 minutes
+
+
+
Build_Tensorflow:
image: nvidia/cuda:10.2-devel-ubuntu18.04
stage: build
@@ -155,6 +166,16 @@ Unit_Test_Tensorflow:
- Build_Tensorflow
+Unit_Test_LTO:
+ image: debian:stable
+ stage: test1
+ script:
+ - CFLAGS="-flto -O2 -g" make test
+ needs: [Build_LTO]
+ dependencies:
+ - Build_LTO
+
+
Integration_Test:
image: debian:stable
|
CMSIS-Core(A): Updated cmsis_gcc.h | /* ########################### Core Function Access ########################### */
+/**
+ \brief Enable IRQ Interrupts
+ \details Enables IRQ interrupts by clearing the I-bit in the CPSR.
+ Can only be executed in Privileged modes.
+ */
+__attribute__( ( always_inline ) ) __STATIC_INLINE void __enable_irq(void)
+{
+ __ASM volatile ("cpsie i" : : : "memory");
+}
+
+/**
+ \brief Disable IRQ Interrupts
+ \details Disables IRQ interrupts by setting the I-bit in the CPSR.
+ Can only be executed in Privileged modes.
+ */
+__attribute__( ( always_inline ) ) __STATIC_INLINE void __disable_irq(void)
+{
+ __ASM volatile ("cpsid i" : : : "memory");
+}
+
/**
\brief Get FPSCR
\details Returns the current value of the Floating Point Status/Control register.
@@ -147,22 +167,22 @@ __attribute__((always_inline)) __STATIC_INLINE void __set_FPSCR(uint32_t fpscr)
/**
\brief No Operation
*/
-#define __NOP __builtin_arm_nop
+#define __NOP() __ASM volatile ("nop")
/**
\brief Wait For Interrupt
*/
-#define __WFI __builtin_arm_wfi
+#define __WFI() __ASM volatile ("wfi")
/**
\brief Wait For Event
*/
-#define __WFE __builtin_arm_wfe
+#define __WFE() __ASM volatile ("wfe")
/**
\brief Send Event
*/
-#define __SEV __builtin_arm_sev
+#define __SEV() __ASM volatile ("sev")
/**
\brief Instruction Synchronization Barrier
|
in_opentelemetry: on closing connection, release channel | @@ -261,6 +261,10 @@ int opentelemetry_conn_del(struct http_conn *conn)
ctx = conn->ctx;
+ if (conn->session.channel != NULL) {
+ mk_channel_release(conn->session.channel);
+ }
+
mk_event_del(ctx->evl, &conn->event);
mk_list_del(&conn->_head);
flb_socket_close(conn->fd);
|
sway-input.5.scd: Fix spelling errors | @@ -233,7 +233,7 @@ correct seat.
not explicitly attached to another seat (similar to a "default" seat).
*seat* <name> hide_cursor <timeout>|when-typing [enable|disable]
- Hides the cursor image after the specified event occured.
+ Hides the cursor image after the specified event occurred.
If _timeout_ is specified, then the cursor will be hidden after _timeout_
(in milliseconds) has elapsed with no activity on the cursor. A timeout of 0
@@ -277,7 +277,7 @@ correct seat.
whether future inhibitors are honoured by default, i.e. activated
automatically, the default being _enable_. When used at runtime,
_disable_ also disables any currently active inhibitors. _activate_,
- _deactivate_ and _toggle_ are only useable at runtime and change the
+ _deactivate_ and _toggle_ are only usable at runtime and change the
state of a potentially existing inhibitor on the currently focused
window. This can be used with the current seat alias (_-_) to affect
only the currently focused window of the current seat. Subcommand
|
Remove obsolete entry from Changelog | @@ -421,8 +421,6 @@ Changes
* Fix the setting of the read timeout in the DTLS sample programs.
* Add extra printf compiler warning flags to builds.
* Fix memsan build false positive in x509_crt.c with clang 11
- * There is ongoing work for the next release (= Mbed TLS 3.0.0 branch to
- be released 2021-xx-xx), including various API-breaking changes.
* Alternative implementations of CMAC may now opt to not support 3DES as a
CMAC block cipher, and still pass the CMAC self test.
* Remove the AES sample application programs/aes/aescrypt2 which shows
|
Sanity check for CRYPTO offset | @@ -4648,7 +4648,8 @@ static int conn_recv_crypto(ngtcp2_conn *conn, uint64_t rx_offset_base,
fr_end_offset = rx_offset_base + fr->offset + fr->data[0].len;
- if (max_rx_offset && max_rx_offset < fr_end_offset) {
+ if (NGTCP2_MAX_VARINT < fr_end_offset ||
+ (max_rx_offset && max_rx_offset < fr_end_offset)) {
return NGTCP2_ERR_PROTO;
}
|
peview: Add section alignment characteristics | @@ -682,6 +682,53 @@ PPH_STRING PvpGetSectionCharacteristics(
PhAppendStringBuilder2(&stringBuilder, L"Locked, ");
if (Characteristics & IMAGE_SCN_MEM_PRELOAD)
PhAppendStringBuilder2(&stringBuilder, L"Preload, ");
+
+ switch (Characteristics & IMAGE_SCN_ALIGN_MASK)
+ {
+ case IMAGE_SCN_ALIGN_1BYTES:
+ PhAppendStringBuilder2(&stringBuilder, L"1 alignment, ");
+ break;
+ case IMAGE_SCN_ALIGN_2BYTES:
+ PhAppendStringBuilder2(&stringBuilder, L"2 alignment, ");
+ break;
+ case IMAGE_SCN_ALIGN_4BYTES:
+ PhAppendStringBuilder2(&stringBuilder, L"4 alignment, ");
+ break;
+ case IMAGE_SCN_ALIGN_8BYTES:
+ PhAppendStringBuilder2(&stringBuilder, L"8 alignment, ");
+ break;
+ case IMAGE_SCN_ALIGN_16BYTES:
+ PhAppendStringBuilder2(&stringBuilder, L"16 alignment, ");
+ break;
+ case IMAGE_SCN_ALIGN_32BYTES:
+ PhAppendStringBuilder2(&stringBuilder, L"32 alignment, ");
+ break;
+ case IMAGE_SCN_ALIGN_64BYTES:
+ PhAppendStringBuilder2(&stringBuilder, L"64 alignment, ");
+ break;
+ case IMAGE_SCN_ALIGN_128BYTES:
+ PhAppendStringBuilder2(&stringBuilder, L"128 alignment, ");
+ break;
+ case IMAGE_SCN_ALIGN_256BYTES:
+ PhAppendStringBuilder2(&stringBuilder, L"256 alignment, ");
+ break;
+ case IMAGE_SCN_ALIGN_512BYTES:
+ PhAppendStringBuilder2(&stringBuilder, L"512 alignment, ");
+ break;
+ case IMAGE_SCN_ALIGN_1024BYTES:
+ PhAppendStringBuilder2(&stringBuilder, L"1024 alignment, ");
+ break;
+ case IMAGE_SCN_ALIGN_2048BYTES:
+ PhAppendStringBuilder2(&stringBuilder, L"2048 alignment, ");
+ break;
+ case IMAGE_SCN_ALIGN_4096BYTES:
+ PhAppendStringBuilder2(&stringBuilder, L"4096 alignment, ");
+ break;
+ case IMAGE_SCN_ALIGN_8192BYTES:
+ PhAppendStringBuilder2(&stringBuilder, L"8192 alignment, ");
+ break;
+ }
+
if (Characteristics & IMAGE_SCN_LNK_NRELOC_OVFL)
PhAppendStringBuilder2(&stringBuilder, L"Extended relocations, ");
if (Characteristics & IMAGE_SCN_MEM_DISCARDABLE)
|
fixed output filter nonsense
Resolves and | @@ -506,7 +506,11 @@ int main(int argc, char *argv[])
if (!args.output_filter_arg || !strcmp(args.output_filter_arg, "default")) {
zconf.filter_duplicates = 1;
zconf.filter_unsuccessful = 1;
- log_debug("filter", "no output filter. will use default: exclude duplicates and unssuccessful");
+ log_debug("filter", "no output filter specified. will use default: exclude duplicates and unssuccessful");
+ } else if (args.output_filter_arg && !strcmp(args.output_filter_arg, "")) {
+ zconf.filter_duplicates = 0;
+ zconf.filter_unsuccessful = 0;
+ log_debug("filter", "empty output filter. will not exclude any values");
} else {
// Run it through yyparse to build the expression tree
if (!parse_filter_string(args.output_filter_arg)) {
|
mesh: Permit kr phase 0x00 to 0x03
MESH/NODE/KR/BI-01-C
Permit kr phase 0x00-->0x03
This is port of | @@ -83,6 +83,10 @@ static void key_refresh(struct bt_mesh_subnet *sub, uint8_t new_phase)
break;
/* Revoking keys */
case BT_MESH_KR_PHASE_3:
+ if (sub->kr_phase == BT_MESH_KR_NORMAL) {
+ return;
+ }
+ /* __fallthrough; */
case BT_MESH_KR_NORMAL:
sub->kr_phase = BT_MESH_KR_NORMAL;
memcpy(&sub->keys[0], &sub->keys[1], sizeof(sub->keys[0]));
@@ -331,7 +335,7 @@ uint8_t bt_mesh_subnet_kr_phase_set(uint16_t net_idx, uint8_t *phase)
{
/* Table in Bluetooth Mesh Profile Specification Section 4.2.14: */
const uint8_t valid_transitions[] = {
- 0x00, /* Normal phase: KR is started by key update */
+ BIT(BT_MESH_KR_PHASE_3), /* Normal phase: KR is started by key update */
BIT(BT_MESH_KR_PHASE_2) | BIT(BT_MESH_KR_PHASE_3), /* Phase 1 */
BIT(BT_MESH_KR_PHASE_3), /* Phase 2 */
/* Subnet is never in Phase 3 */
|
feat (cmock): add ruby and libbsd-dev to docker image
Closes | @@ -16,6 +16,7 @@ RUN : \
git \
gperf \
lcov \
+ libbsd-dev \
libffi-dev \
libncurses-dev \
libpython2.7 \
@@ -24,6 +25,7 @@ RUN : \
ninja-build \
python3 \
python3-venv \
+ ruby \
unzip \
wget \
xz-utils \
|
clear resp first | #define min(a,b) ((a) < (b) ? (a) : (b))
#define espconn_send_string(conn, x) espconn_send(conn, x, strlen(x))
-char resp[0x800];
+#define MAX_RESP 0x800
+char resp[MAX_RESP];
char staticpage[] = "HTTP/1.0 200 OK\nContent-Type: text/html\n\n"
"<pre>This is your comma.ai panda<br/><br/>"
"It's open source. Find the code <a href=\"https://github.com/commaai/panda\">here</a><br/>"
@@ -172,6 +173,8 @@ static void ICACHE_FLASH_ATTR web_rx_cb(void *arg, char *data, uint16_t len) {
// index
if (memcmp(data, "GET / ", 6) == 0) {
+ memset(resp, 0, MAX_RESP);
+
strcpy(resp, staticpage);
ets_strcat(resp, "<br/>ssid: ");
ets_strcat(resp, ssid);
|
No warning about FSTRs after training with text features | @@ -1693,8 +1693,7 @@ class CatBoost(_CatBoostBase):
if loss and is_groupwise_metric(loss):
pass # too expensive
elif len(self.get_text_feature_indices()) > 0:
- warnings.warn("Feature importances is not implemented for text features, fstr's will be empty")
- pass
+ pass # is not implemented yet
else:
if not self._object._has_leaf_weights_in_model():
if allow_clear_pool:
|
zephyr/test/drivers/isl923x/src/charge_ramp_hw.c: Format with clang-format
BRANCH=none
TEST=none | * found in the LICENSE file.
*/
-
#include <ztest.h>
#include "driver/charger/isl923x.h"
#define CHARGER_NUM get_charger_num(&isl923x_drv)
#define ISL923X_EMUL emul_get_binding(DT_LABEL(DT_NODELABEL(isl923x_emul)))
-ZTEST_SUITE(charge_ramp_hw, drivers_predicate_post_main, NULL, NULL,
- NULL, NULL);
+ZTEST_SUITE(charge_ramp_hw, drivers_predicate_post_main, NULL, NULL, NULL,
+ NULL);
ZTEST(charge_ramp_hw, test_charge_ramp_hw_ramp)
{
|
removes dead +mz:nl, updates +bif syntax
`+mz:nl` was determined by ~sorreg to be dead code, and there doesn't seem to be any possible `a` that will nest in the current code.
Also, `+bif:in` and `+bif:by` had the weird syntactical construct of `=< [+< +>]`. I simplified it to the more straightforward `=< +`. | ~/ %bif
|* b/*
^+ [l=a r=a]
- =< [+< +>]
+ =< +
|- ^+ a
?~ a
[b ~ ~]
~/ %bif
|* {b/* c/*}
^+ [l=a r=a]
- =< [+< +>]
+ =< +
|- ^+ a
?~ a
[[b c] ~ ~]
=> .(a ^+((le a) a))
(~(gas by `(map _p.i.-.a _q.i.-.a)`~) a)
:: ::
- ++ mz :: construct map
- |* a/(list (pair))
- => .(a ^+((le a) a))
- (~(gas by ~) a)
- :: ::
++ si :: construct set
|* a/(list)
=> .(a ^+((le a) a))
|
horadric update (299340279) | },
"horadric":{
"formula": {
- "sandbox_id": 299310905,
+ "sandbox_id": 299340279,
"match": "horadric"
},
"executable": {
|
Docker: Install Qt SVG Library | @@ -45,6 +45,7 @@ RUN apt-get update \
libpcre++-dev \
libpcre3-dev \
libpython3-dev \
+ libqt5svg5-dev \
libssl-dev \
libsystemd-dev \
libuv1-dev \
@@ -78,6 +79,7 @@ RUN apt-get update \
wine \
&& rm -rf /var/lib/apt/lists/*
+
# Google Test
ENV GTEST_ROOT=/opt/gtest
ARG GTEST_VER=release-1.8.1
|
Allow to override OPENSSL_PREFIX in Linux | @@ -77,7 +77,12 @@ ifeq ($(USE_SSL),1)
endif
ifeq ($(uname_S),Linux)
+ ifdef OPENSSL_PREFIX
+ CFLAGS+=-I$(OPENSSL_PREFIX)/include
+ SSL_LDFLAGS+=-L$(OPENSSL_PREFIX)/lib -lssl -lcrypto
+ else
SSL_LDFLAGS=-lssl -lcrypto
+ endif
else
OPENSSL_PREFIX?=/usr/local/opt/openssl
CFLAGS+=-I$(OPENSSL_PREFIX)/include
|
xpath BUGFIX missing removal of processed nodes from schema set | @@ -5448,6 +5448,8 @@ moveto_scnode(struct lyxp_set *set, const char *qname, uint16_t qname_len, int o
/* remember context node */
set->val.scnodes[i].in_ctx = -1;
+ } else {
+ set->val.scnodes[i].in_ctx = 0;
}
start_parent = set->val.scnodes[i].scnode;
@@ -5646,6 +5648,8 @@ moveto_scnode_alldesc(struct lyxp_set *set, const char *qname, uint16_t qname_le
/* remember context node */
set->val.scnodes[i].in_ctx = -1;
+ } else {
+ set->val.scnodes[i].in_ctx = 0;
}
/* TREE DFS */
@@ -6237,6 +6241,8 @@ moveto_scnode_parent(struct lyxp_set *set, int all_desc, int options)
/* remember context node */
set->val.scnodes[i].in_ctx = -1;
+ } else {
+ set->val.scnodes[i].in_ctx = 0;
}
node = set->val.scnodes[i].scnode;
|
examples: hello: Show CPU index when running in SMP mode | #include <nuttx/config.h>
#include <stdio.h>
+#ifdef CONFIG_SMP
+# include <nuttx/arch.h>
+#endif
+
/****************************************************************************
* Public Functions
****************************************************************************/
int main(int argc, FAR char *argv[])
{
+#ifdef CONFIG_SMP
+ uint32_t cpu = up_cpu_index();
+
+ printf("Hello, World from CPU%d !!\n", cpu);
+#else
printf("Hello, World!!\n");
+#endif
return 0;
}
|
delbin: Configure EC fan control table.
Configure EC fan control table by thermal request.
BRANCH=firmware-volteer-13521.B
TEST=make BOARD=delbin | @@ -163,7 +163,7 @@ const static struct ec_thermal_config thermal_cpu = {
[EC_TEMP_THRESH_HIGH] = C_TO_K(65),
},
.temp_fan_off = C_TO_K(35),
- .temp_fan_max = C_TO_K(50),
+ .temp_fan_max = C_TO_K(65),
};
/*
@@ -186,7 +186,7 @@ const static struct ec_thermal_config thermal_inductor = {
[EC_TEMP_THRESH_HIGH] = C_TO_K(65),
},
.temp_fan_off = C_TO_K(40),
- .temp_fan_max = C_TO_K(55),
+ .temp_fan_max = C_TO_K(65),
};
|
nat: fix nat44-ed-in2out fast path next node
When a session is found expired, the next node of in2out fast path
should be in2out slow path instead of out2in slow path.
Type: fix | @@ -1193,7 +1193,7 @@ nat44_ed_in2out_fast_path_node_fn_inline (vlib_main_t *vm,
// session is closed, go slow path
nat44_ed_free_session_data (sm, s0, thread_index, 0);
nat_ed_session_delete (sm, s0, thread_index, 1);
- next[0] = NAT_NEXT_OUT2IN_ED_SLOW_PATH;
+ next[0] = def_slow;
goto trace0;
}
|
servo_updater: Add retries for flash2
A workaround for the remaining character in the USB buffer.
BRANCH=None
TEST=servo_updater -b servo_micro | @@ -420,7 +420,7 @@ def main():
if vers == 2:
flash(brdfile, serialno, binfile)
elif vers == 6:
- flash2(vidpid, serialno, binfile)
+ do_with_retries(flash2, vidpid, serialno, binfile)
else:
raise ServoUpdaterException("Can't detect updater version")
@@ -439,7 +439,7 @@ def main():
if vers == 2:
flash(brdfile, serialno, binfile)
elif vers == 6:
- flash2(vidpid, serialno, binfile)
+ do_with_retries(flash2, vidpid, serialno, binfile)
else:
raise ServoUpdaterException("Can't detect updater version")
|
examples/jpeg: use flags | @@ -19,7 +19,7 @@ void decompressToYUV(
if (!dstBuf) {
return;
}
- tjDecompressToYUV2(tjh, buf, len, dstBuf, width, 4, height, 0);
+ tjDecompressToYUV2(tjh, buf, len, dstBuf, width, 4, height, TJFLAG_NOREALLOC);
tjFree(dstBuf);
}
@@ -31,7 +31,7 @@ void decompressToRGB(
if (!dstBuf) {
return;
}
- tjDecompress2(tjh, buf, len, dstBuf, width, pitch, height, TJPF_RGB, 0);
+ tjDecompress2(tjh, buf, len, dstBuf, width, pitch, height, TJPF_RGB, TJFLAG_NOREALLOC);
tjFree(dstBuf);
}
|
HV: Enable CR0.WP
Page fault could be raised if writing to read-only pages. This is
useful for debugging. | @@ -485,6 +485,12 @@ uint64_t get_paging_pml4(void)
void enable_paging(uint64_t pml4_base_addr)
{
+ uint64_t tmp64 = 0;
+
+ /* Enable Write Protect, inhibiting writing to read-only pages */
+ CPU_CR_READ(cr0, &tmp64);
+ CPU_CR_WRITE(cr0, tmp64 | CR0_WP);
+
CPU_CR_WRITE(cr3, pml4_base_addr);
}
|
fix send in adc-test-server.c | @@ -33,7 +33,6 @@ int main ()
volatile uint16_t *rx_rate;
volatile uint8_t *rx_rst;
volatile void *cfg, *sts, *ram;
- void *buf;
cpu_set_t mask;
struct sched_param param;
struct sockaddr_in addr;
@@ -137,7 +136,7 @@ int main ()
{
offset = limit > 0 ? 0 : 256*1024;
limit = limit > 0 ? 0 : 32*1024;
- if(send(sock_client, buf, 256*1024, MSG_NOSIGNAL) < 0) break;
+ if(send(sock_client, ram + offset, 256*1024, MSG_NOSIGNAL) < 0) break;
}
else
{
|
Add a missing log_strdup() | @@ -429,7 +429,7 @@ static void le_param_updated(struct bt_conn *conn, uint16_t interval, uint16_t l
bt_addr_le_to_str(bt_conn_get_dst(conn), addr, sizeof(addr));
- LOG_DBG("%s: interval %d latency %d timeout %d", addr, interval, latency, timeout);
+ LOG_DBG("%s: interval %d latency %d timeout %d", log_strdup(addr), interval, latency, timeout);
}
static struct bt_conn_cb conn_callbacks = {
|
docs: Add badges for quick information
It would useful to quickly get some information regrading the repository especially the CI status. So, I propose to add these badges.
Fixes | </picture>
</h1>
+[](https://github.com/inspektor-gadget/inspektor-gadget/actions/workflows/inspektor-gadget.yml)
+[](https://pkg.go.dev/github.com/inspektor-gadget/inspektor-gadget)
+[](https://goreportcard.com/report/github.com/inspektor-gadget/inspektor-gadget)
+[](https://github.com/inspektor-gadget/inspektor-gadget/releases)
+[](https://kubernetes.slack.com/messages/inspektor-gadget/)
+[](https://github.com/inspektor-gadget/inspektor-gadget/blob/main/LICENSE)
+[](https://github.com/inspektor-gadget/inspektor-gadget/blob/main/LICENSE-bpf.txt)
+
Inspektor Gadget is a collection of tools (or gadgets) to debug and inspect
Kubernetes resources and applications. It manages the packaging, deployment and
execution of [eBPF](https://ebpf.io/) programs in a Kubernetes cluster,
|
YAML CPP: Add info about binary values to ReadMe | @@ -305,6 +305,6 @@ level 1:
### Other Limitations
- Adding and removing keys does remove **comments** inside the configuration file
-- The plugin currently lacks proper **type support** for scalars
+- The plugin currently lacks proper **type support** for scalars. For example, YAML CPP saves binary keys directly as string. Ideally the plugin should [base64](https://en.wikipedia.org/wiki/Base64)-encode binary data and then save the result using the tag `tag:yaml.org,2002:binary` (shorthand: `!!binary`).
[yaml-cpp]: https://github.com/jbeder/yaml-cpp
|
publish: fixes single revision plurality
fixes | @@ -83,7 +83,7 @@ export function NotePreview(props: NotePreviewProps) {
{date}
</Box>
<Box mr={3}>{commentDesc}</Box>
- <Box>{rev === 1 ? `1 Revision` : `${rev} Revisions`}</Box>
+ <Box>{rev.valueOf() === 1 ? `1 Revision` : `${rev} Revisions`}</Box>
</Box>
</Col>
</Link>
|
sub shm CHANGE continue normally on callback timeout
Refs | @@ -1794,7 +1794,7 @@ sr_shmsub_multi_listen_write_event(sr_multi_sub_shm_t *multi_sub_shm, uint32_t v
break;
default:
/* 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 priority %u "
+ sr_errinfo_new(&err_info, SR_ERR_TIME_OUT, NULL, "Unable to finish processing event with ID %u priority %u "
"(timeout probably).", multi_sub_shm->request_id, multi_sub_shm->priority);
return err_info;
}
@@ -2064,7 +2064,7 @@ sr_shmsub_listen_write_event(sr_sub_shm_t *sub_shm, const char *data, uint32_t d
break;
default:
/* 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).",
+ sr_errinfo_new(&err_info, SR_ERR_TIME_OUT, NULL, "Unable to finish processing event with ID %u (timeout probably).",
sub_shm->request_id);
return err_info;
}
@@ -2839,7 +2839,9 @@ sr_shmsub_listen_thread(void *arg)
while (ATOMIC_LOAD_RELAXED(subs->thread_running)) {
/* process the new event (or subscription stop time has elapsed) */
- if (sr_process_events(subs, NULL, &stop_time_in) != SR_ERR_OK) {
+ ret = sr_process_events(subs, NULL, &stop_time_in);
+ if ((ret != SR_ERR_OK) && (ret != SR_ERR_TIME_OUT)) {
+ /* continue on time out */
goto error;
}
|
SOVERSION bump to version 7.11.13 | @@ -73,7 +73,7 @@ set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_
# with backward compatible change and micro version is connected with any internal change of the library.
set(SYSREPO_MAJOR_SOVERSION 7)
set(SYSREPO_MINOR_SOVERSION 11)
-set(SYSREPO_MICRO_SOVERSION 12)
+set(SYSREPO_MICRO_SOVERSION 13)
set(SYSREPO_SOVERSION_FULL ${SYSREPO_MAJOR_SOVERSION}.${SYSREPO_MINOR_SOVERSION}.${SYSREPO_MICRO_SOVERSION})
set(SYSREPO_SOVERSION ${SYSREPO_MAJOR_SOVERSION})
|
Update ZydisPerfTest.c
your check is incorrect. since the variables are unsigned, it is equivalent to data_written != bytes_read.
so I suggest a simple fix for the error. | @@ -234,7 +234,7 @@ static ZyanU64 ProcessBuffer(const ZydisDecoder* decoder, const ZydisFormatter*
ZydisDecodedInstruction* instruction;
char format_buffer[256];
- while (length - offset > 0)
+ while (length > offset)
{
if (use_cache)
{
|
gitmodules: now only use https instead of ssh
git submodule init --recursive --init would result in a public key error | url = https://github.com/ucb-bar/esp-tools.git
[submodule "tools/torture"]
path = tools/torture
- url = [email protected]:ucb-bar/riscv-torture.git
+ url = https://github.com/ucb-bar/riscv-torture.git
[submodule "generators/boom"]
path = generators/boom
- url = [email protected]:riscv-boom/riscv-boom.git
+ url = https://github.com/riscv-boom/riscv-boom.git
[submodule "generators/sifive-blocks"]
path = generators/sifive-blocks
- url = [email protected]:sifive/sifive-blocks.git
+ url = https://github.com/sifive/sifive-blocks.git
[submodule "generators/hwacha"]
path = generators/hwacha
- url = [email protected]:ucb-bar/hwacha.git
+ url = https://github.com/ucb-bar/hwacha.git
|
Take into account d_m3CodePageSize | @@ -14,11 +14,11 @@ IM3CodePage NewCodePage (u32 i_minNumLines)
{
static u32 s_sequence = 0;
- u32 pageSize = sizeof (M3CodePageHeader) + sizeof (code_t) * i_minNumLines;
+ IM3CodePage page;
- pageSize = (pageSize + 4095) & ~4095; // align to 4kB
+ u32 pageSize = sizeof (M3CodePageHeader) + sizeof (code_t) * i_minNumLines;
- IM3CodePage page;
+ pageSize = (pageSize + (d_m3CodePageSize-1)) & ~(d_m3CodePageSize-1); // align
m3Malloc ((void **) & page, pageSize);
if (page)
|
compiler-families/gnu-compilers: bump version to v8.3.0 | %include %{_sourcedir}/OHPC_macros
-%global gnu_version 8.2.0
+%global gnu_version 8.3.0
%global gnu_major_ver 8
-%global gnu_release 2
+%global gnu_release 3
%global pname gnu8-compilers
# Define subcomponent versions required for build
|
Reversed pairing instructions | @@ -9,7 +9,7 @@ The following page provides suggestions for common errors that may occur during
### File Transfer Error
-Variations of the warnings shown below occur when flashing the `<firmware>.uf2` onto the microcontroller. This is because the microcontroller resets itself before the OS receives confirmation that the file transfer is complete. Errors like this are normal and can generally be ignored. Verification of a functional board can be done by attempting to pair your computer to your newly flashed keyboard via Bluetooth or plugging in a USB cable if `ZMK_USB` is enabled in your Kconfig.defconfig.
+Variations of the warnings shown below occur when flashing the `<firmware>.uf2` onto the microcontroller. This is because the microcontroller resets itself before the OS receives confirmation that the file transfer is complete. Errors like this are normal and can generally be ignored. Verification of a functional board can be done by attempting to pair your newly flashed keyboard to your computer via Bluetooth or plugging in a USB cable if `ZMK_USB` is enabled in your Kconfig.defconfig.
|  |
| :-------------------------------------------------------------------------------: |
|
tools: Fix Python 3 incompatibility for building with Eclipse on Windows | @@ -20,7 +20,7 @@ def check_path(path):
pass
paths[path] = path # cache as failed, replace with success if it works
try:
- winpath = subprocess.check_output(["cygpath", "-w", path]).strip()
+ winpath = subprocess.check_output(["cygpath", "-w", path]).decode().strip()
except subprocess.CalledProcessError:
return path # something went wrong running cygpath, assume this is not a path!
if not os.path.exists(winpath):
|
Implement unit tests for localization (Issue | @@ -1169,7 +1169,20 @@ test_api(pappl_system_t *system) // I - System
size_t get_size, // Size for "get" call
set_size; // Size for ", set" call
pappl_printer_t *printer; // Current printer
+ pappl_loc_t *loc; // Current localization
_pappl_testprinter_t pdata; // Printer test data
+ const char *key = "A printer with that name already exists.",
+ // Key string
+ *text; // Localized text
+ static const char * const languages[] =
+ {
+ "de",
+ "en",
+ "es",
+ "fr",
+ "it",
+ "ja"
+ };
static const char * const set_locations[10][2] =
{
// Some wonders of the ancient world (all north-eastern portion of globe...)
@@ -1197,6 +1210,54 @@ test_api(pappl_system_t *system) // I - System
};
+ for (i = 0; i < (int)(sizeof(languages) / sizeof(languages[0])); i ++)
+ {
+ // papplSystemFindLoc
+ testBegin("api: papplSystemFindLoc('%s')", languages[i]);
+ if ((loc = papplSystemFindLoc(system, languages[i])) == NULL)
+ {
+ testEnd(false);
+ pass = false;
+ }
+ else
+ testEnd(true);
+
+ // papplLocGetString
+ testBegin("api: papplLocGetString('%s')", key);
+ if ((text = papplLocGetString(loc, key)) == NULL || text == key)
+ {
+ testEndMessage(false, "got %p", text);
+ pass = false;
+ }
+ else if (!strcmp(key, text) && strcmp(languages[i], "en"))
+ {
+ testEndMessage(false, "not localized");
+ pass = false;
+ }
+ else
+ testEndMessage(true, "got '%s'", text);
+ }
+
+ // papplSystemFindLoc
+ testBegin("api: papplSystemFindLoc('zz')");
+ if ((loc = papplSystemFindLoc(system, "zz")) != NULL)
+ {
+ testEndMessage(false, "got %p");
+ pass = false;
+ }
+ else
+ testEndMessage(true, "got NULL");
+
+ // papplLocGetString
+ testBegin("api: papplLocGetString('%s')", key);
+ if ((text = papplLocGetString(loc, key)) != key)
+ {
+ testEndMessage(false, "got %p", text);
+ pass = false;
+ }
+ else
+ testEndMessage(true, "got key string");
+
// papplSystemGet/SetAdminGroup
testBegin("api: papplSystemGetAdminGroup");
if (papplSystemGetAdminGroup(system, get_str, sizeof(get_str)))
|
idf.py hints: fix header not found regex to also match headerpaths with path seperator | match_to_output: True
-
- re: "fatal error: \\w+\\.h: No such file or directory"
+ re: "fatal error: [\\w/]+\\.h: No such file or directory"
hint: "Please check if you've specified all component dependencies with 'idf_component_register(REQUIRES ...)'. If the component is not present then it should be added by the IDF Component Manager. For more information run 'idf.py docs -sp api-guides/build-system.html'."
-
|
BugID:23251508: Fix fragment packet miss print issue | @@ -936,6 +936,8 @@ ip4_output_if_opt_src(struct pbuf *p, const ip4_addr_t *src, const ip4_addr_t *d
LWIP_DEBUGF(IP_DEBUG, ("ip4_output_if: %c%c%"U16_F"\n", netif->name[0], netif->name[1], (u16_t)netif->num));
ip4_debug_print(p);
+ LWIP_PKTDEBUGF("LwIP_send", p, netif);
+
#if ENABLE_LOOPBACK
if (ip4_addr_cmp(dest, netif_ip4_addr(netif))
#if !LWIP_HAVE_LOOPIF
@@ -959,8 +961,6 @@ ip4_output_if_opt_src(struct pbuf *p, const ip4_addr_t *src, const ip4_addr_t *d
}
#endif /* IP_FRAG */
- LWIP_PKTDEBUGF("LwIP_send", p, netif);
-
LWIP_DEBUGF(IP_DEBUG, ("ip4_output_if: call netif->output()\n"));
return netif->output(netif, p, dest);
}
|
Mark /opt/hse/bin as shared by multiple packages (hse-devel and hse-tools) | @@ -431,10 +431,9 @@ set( CPACK_RPM_PACKAGE_GROUP "Unspecified" )
set( CPACK_RPM_PACKAGE_VENDOR "Unspecified" )
-#
# We don't want to claim ownership of these directories, lest there be
-# conflicts.
-#
+# conflicts during RPM install. If a directory appears in this list,
+# it means it might be shared by multiple packages.
set( CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION
/usr/lib
/usr/lib/hse
@@ -448,6 +447,7 @@ set( CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION
/lib
/opt
/opt/hse
+ /opt/hse/bin
/opt/hse/config
)
|
added brake safety checks | @@ -13,7 +13,6 @@ int brake_prev = 0;
int gas_prev = 0;
int gas_interceptor_prev = 0;
int ego_speed = 0;
-
// TODO: auto-detect bosch hardware based on CAN messages?
bool bosch_hardware = false;
@@ -36,11 +35,15 @@ static void honda_rx_hook(CAN_FIFOMailBox_TypeDef *to_push) {
}
}
+ // user brake signal is different for nidec vs bosch hardware
+ // nidec hardware: 0x17C bit 53
+ // bosch hardware: 0x1BE bit 4
+ #define IS_USER_BRAKE_MSG(to_push) (!bosch_hardware ? to_push->RIR>>21 == 0x17C : to_push->RIR>>21 == 0x1BE)
+ #define USER_BRAKE_VALUE(to_push) (!bosch_hardware ? to_push->RDHR & 0x200000 : to_push->RDLR & 0x10)
// exit controls on rising edge of brake press or on brake press when
// speed > 0
- if (!bosch_hardware && (to_push->RIR>>21) == 0x17C) {
- // bit 53
- int brake = to_push->RDHR & 0x200000;
+ if (IS_USER_BRAKE_MSG(to_push)) {
+ int brake = USER_BRAKE_VALUE(to_push);
if (brake && (!(brake_prev) || ego_speed)) {
controls_allowed = 0;
}
|
AppVeyor: Explicitly disable Python | @@ -2,7 +2,7 @@ install:
- ps: choco install -y -r swig --version 3.0.9
before_build:
- - cmake -G "Visual Studio 14 2015 Win64" .
+ - cmake -G "Visual Studio 14 2015 Win64" -DTINYSPLINE_WITH_PYTHON=OFF .
build:
project: tinyspline.sln
|
khan: assert name | @@ -124,7 +124,7 @@ u3_khan_io_init(u3_pier* pir_u)
uv_listen((uv_stream_t*)&cop_u->pyp_u, 0, _khan_conn_cb);
if ( 0 != chdir(pax_c) ) {
- c3_assert(!"khan-chdir2");
+ c3_assert(!"khan-back");
}
}
}
|
Replace error type 'normal' with 'error' | @@ -69,13 +69,13 @@ ingroup:kdb
number:9
description:Insufficient permissions to open configuration file for writing. You might want to retry as root.
-severity:normal
+severity:error
ingroup:kdb
see:75 109 110
number:10
description:general parse error
-severity:normal
+severity:error
ingroup:kdb
macro:PARSE
@@ -657,7 +657,7 @@ see:9 75 110
number:110
description:could not open configuration file for reading.
-severity:normal
+severity:error
ingroup:plugin
module:storage
see:9 75 109
|
Doc: Update the doc of "Build UOS from ClearLinux" | @@ -12,15 +12,15 @@ Build UOS image in Clear Linux native
In order to build out the image of UOS,
please follow these steps in Clear Linux native:
-#. In Clear Linxu native, please install ``ister`` at first,
- ``ister`` is a template based installer for linux,
- which is inclued in the bundle ``os-installer`` in Clear Linux.
+#. In Clear Linux native, install ``ister`` (a template-based
+ installer for Linux) inclued in the Clear Linux bundle
+ ``os-installer``.
For more information about ``ister``,
please visit https://github.com/bryteise/ister.
.. code-block:: none
- # sudo swupd bundle-add os-installer
+ $ sudo swupd bundle-add os-installer
#. After installation is complete, use ``ister.py`` to
generate the image for UOS with the configuration in
@@ -28,8 +28,8 @@ please follow these steps in Clear Linux native:
.. code-block:: none
- # cd ~
- # sudo ister.py -t uos-image.json
+ $ cd ~
+ $ sudo ister.py -t uos-image.json
An example of the configuration file ``uos-image.json``
is shown as below:
@@ -81,6 +81,8 @@ please follow these steps in Clear Linux native:
To generate the image with a specified version,
please modify with the ``"Version"`` argument,
and we can set ``"Version": 26550`` for example.
+ If you want to build out the latest, please
+ set ``"Version": "latest"`` here.
Here we will use ``"Version": 26550`` for example,
and the image of UOS called ``uos.img`` will be generated
@@ -138,7 +140,7 @@ Start the User OS (UOS)
install.d
org.clearlinux.iot-lts2018.4.19.0-26
-#. And you need to adjust the ``/usr/share/acrn/samples/nuc/launch_uos.sh``
+#. Adjust the ``/usr/share/acrn/samples/nuc/launch_uos.sh``
script to match your installation.
These are the couple of lines you need to modify:
@@ -148,13 +150,13 @@ Start the User OS (UOS)
-k /mnt/usr/lib/kernel/default-iot-lts2018 \
.. note::
- UOS image ``uos.img`` stored in the directory ``~/``
- and UOS kernel ``default-iot-lts2018`` stored ``/mnt/usr/lib/kernel/``.
+ UOS image ``uos.img`` is in the directory ``~/``
+ and UOS kernel ``default-iot-lts2018`` is in ``/mnt/usr/lib/kernel/``.
#. You are now all set to start the User OS (UOS):
.. code-block:: none
- sudo /usr/share/acrn/samples/nuc/launch_uos.sh
+ $ sudo /usr/share/acrn/samples/nuc/launch_uos.sh
You are now watching the User OS booting up!
|
admin/nagios: default-init is in startup | @@ -201,7 +201,7 @@ install -p -m 0644 %{SOURCE10} %{SOURCE11} %{SOURCE12} html/images/logos/
make %{?_smp_mflags} all
#sed -i -e "s| package Embed::Persistent;|#\!%{_bindir}/perl\npackage Embed::Persistent;|" p1.pl
-sed -i -e "s|NagiosCmd=/var/log/nagios/rw/nagios.cmd|NagiosCmd=%{_localstatedir}/spool/%{pname}/cmd/nagios.cmd|" default-init
+sed -i -e "s|NagiosCmd=/var/log/nagios/rw/nagios.cmd|NagiosCmd=%{_localstatedir}/spool/%{pname}/cmd/nagios.cmd|" startup/default-init
sed -i -e "s|resource.cfg|private/resource.cfg|" \
-e "s|#query_socket=/var/log/nagios/rw/nagios.qh|query_socket=%{_localstatedir}/log/%{pname}/nagios.qh|" \
-e "s|command_file=/var/log/nagios/rw/nagios.cmd|command_file=%{_localstatedir}/spool/%{pname}/cmd/nagios.cmd|" sample-config/nagios.cfg
|
Update INSTALL_CMAKE filename to INSTALL_CMAKE.md
Fixing for | # $Id: Makefile.am,v 1.37 2009/03/26 15:41:15 bagder Exp $
-EXTRA_DIST = template.3 BINDINGS INSTALL_AUTOTOOLS INSTALL_CMAKE HACKING TODO \
+EXTRA_DIST = template.3 BINDINGS INSTALL_AUTOTOOLS INSTALL_CMAKE.md HACKING TODO \
AUTHORS CMakeLists.txt HACKING.CRYPTO SECURITY.md
dist_man_MANS = \
|
Fix border case handling in moveToFitBounds | @@ -342,6 +342,9 @@ namespace carto {
cglib::vec3<double> maxPos = projectionSurface->calculatePosition(mapBounds.getMax());
cglib::mat4x4<double> transform = projectionSurface->calculateTranslateMatrix(minPos, maxPos, 0.5f);
centerPos = cglib::transform_point(minPos, transform);
+ if (std::isnan(cglib::norm(centerPos))) {
+ centerPos = cglib::vec3<double>(0, 0, 0);
+ }
}
// Adjust the camera tilt, rotation and position to the final state of this animation
|
Update README now that MMX is done. | # SIMD Everywhere
SIMDe is an experimental project which attempts to implement SIMD
-intrinsics on hardware which doesn't natively support them.
+intrinsics on hardware which doesn't natively support them (*e.g.*,
+calling SSE functions on ARM).
-The first target for SIMDe is SSE. The goal is to be able to to
-include SIMDe's `sse.h` and have SSE functions like `_mm_add_ps()`
-available for use everywhere (i.e., even on ARM).
+The initial focus is on writing complete portable implementations.
+Once that's complete we will start focusing on optimizations, such as
+implementing one set of functions with another (*e.g.*, a NEON
+implementation of SSE).
-Right now the focus is on portable implementations, but eventually I'd
-like to try to implement instruction sets with one another (like
-implementing SSE using NEON).
+Currently, there are full implementations of the following instruction
+sets:
-For information on which instruction sets we intend to support, or to
-track progress, see the
+ * MMX
+
+For information on which instruction sets we intend to support, as
+well as detailed progress information, see the
[instruction-set-support](https://github.com/nemequ/simde/issues?q=is%3Aissue+is%3Aopen+label%3Ainstruction-set-support)
-label in the issue tracker.
+label in the issue tracker. If you'd like to be notified when an
+instruction set is available you may subscribe to the relevant issue.
-It's going to be a while before this project is really usable, if
-ever. There are a *lot* of instructions. If you'd like to help,
-please feel free to dive right in! All instructions must have a test
-(see `test.c`), which tends to be harder than writing the actual
-implementation, but it's really not difficult work.
+There are a *lot* of instructions to get through. If you're
+interested in helping please feel free to dive right in! All
+instructions must have a test (see `test.c`), as well as a portable
+implementation in the relevant header.
## Portability
|
system/input: add input tool button support | ****************************************************************************/
#include <errno.h>
+#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <fcntl.h>
+#include <unistd.h>
+#include <nuttx/input/buttons.h>
#include <nuttx/input/touchscreen.h>
/****************************************************************************
@@ -55,8 +57,8 @@ static int input_utouch_tap(int argc, char** argv);
static int input_utouch_swipe(int argc, char **argv);
static int input_sleep(int argc, char **argv);
static int input_help(int argc, char **argv);
+static int input_button(int argc, char **argv);
static void input_utouch_move(int fd, int x, int y, int pendown);
-
/****************************************************************************
* Private Data
****************************************************************************/
@@ -67,6 +69,7 @@ static const struct input_cmd_s g_input_cmd_list[] =
{"sleep", input_sleep },
{"tap", input_utouch_tap },
{"swipe", input_utouch_swipe},
+ {"button", input_button },
{NULL, NULL }
};
@@ -220,6 +223,29 @@ static int input_utouch_swipe(int argc, char** argv)
return 0;
}
+static int input_button(int argc, char **argv)
+{
+ int fd;
+ btn_buttonset_t button;
+
+ if (argc != 2)
+ {
+ return -EINVAL;
+ }
+
+ button = strtoul(argv[1], NULL, 0);
+ fd = open("/dev/ubutton", O_WRONLY);
+ if (fd < 0)
+ {
+ return -errno;
+ }
+
+ write(fd, &button, sizeof(button));
+ close(fd);
+
+ return 0;
+}
+
/****************************************************************************
* Name: intput_help
****************************************************************************/
@@ -231,10 +257,12 @@ static int input_help(int argc, char** argv)
"\thelp\n"
"\tsleep <time(ms)>\n"
"\ttap <x> <y> [interval(ms)]\n"
- "\tswipe <x1> <y1> <x2> <y2> [duration(ms)] [distance(pix)]\n\n"
+ "\tswipe <x1> <y1> <x2> <y2> [duration(ms)] [distance(pix)]\n"
+ "\tbutton <buttonvalue>\n"
"\tinterval: Time interval between two reports of sample\n"
"\tduration: Duration of sliding\n"
- "\tdistance: Report the pixel distance of the sample twice\n");
+ "\tdistance: Report the pixel distance of the sample twice\n"
+ "\tbuttonvalue: button value in hex format\n");
return 0;
}
@@ -256,6 +284,11 @@ int main(int argc, char** argv)
int i;
int ret = -EINVAL;
+ if (argv[1] == NULL)
+ {
+ goto errout;
+ }
+
for (i = 0; g_input_cmd_list[i].cmd != NULL; i++)
{
/* Matching the function corresponding to the command */
@@ -267,10 +300,12 @@ int main(int argc, char** argv)
}
}
- if (ret < 0)
+errout:
+ if (ret != 0)
{
input_help(argc, argv);
+ return EXIT_FAILURE;
}
- return ret;
+ return EXIT_SUCCESS;
}
|
angle_pid: tidy | @@ -16,19 +16,22 @@ static float apidoutput2[ANGLE_PID_SIZE];
static float apidoutput[ANGLE_PID_SIZE];
static float lasterror[ANGLE_PID_SIZE];
+extern float timefactor;
+
float angle_pid(int x) {
+ const float angle_error_abs = fabsf(state.angleerror[x]);
+
// P term 1 weighted
- apidoutput1[x] = (1 - fabsf(state.angleerror[x])) * state.angleerror[x] * profile.pid.small_angle.kp;
+ apidoutput1[x] = (1 - angle_error_abs) * state.angleerror[x] * profile.pid.small_angle.kp;
// P term 2 weighted
- apidoutput2[x] = fabsf(state.angleerror[x]) * state.angleerror[x] * profile.pid.big_angle.kp;
+ apidoutput2[x] = angle_error_abs * state.angleerror[x] * profile.pid.big_angle.kp;
- extern float timefactor;
// D term 1 weighted + P term 1 weighted
- apidoutput1[x] += (state.angleerror[x] - lasterror[x]) * profile.pid.small_angle.kd * (1 - fabsf(state.angleerror[x])) * timefactor;
+ apidoutput1[x] += (state.angleerror[x] - lasterror[x]) * profile.pid.small_angle.kd * (1 - angle_error_abs) * timefactor;
// D term 2 weighted + P term 2 weighted
- apidoutput2[x] += ((state.angleerror[x] - lasterror[x]) * profile.pid.big_angle.kd * fabsf(state.angleerror[x]) * timefactor);
+ apidoutput2[x] += ((state.angleerror[x] - lasterror[x]) * profile.pid.big_angle.kd * angle_error_abs * timefactor);
// apidoutput sum
apidoutput[x] = apidoutput1[x] + apidoutput2[x];
|
opal-ci: Build qemu from Cedric's powernv-2.12 branch
This contains the latest features. It's close to upstream, but there's
enough stuff in there that it probably makes sense to continue using it
for now. | set -e
set -vx
-git clone --depth=1 -b qemu-powernv-for-skiboot-3 git://github.com/open-power/qemu.git
+git clone --depth=1 -b powernv-2.12 git://github.com/legoater/qemu.git
cd qemu
git submodule update --init dtc
export CC="ccache gcc"
|
Python2 install broken for lib64 | @@ -37,7 +37,7 @@ if( HAVE_PYTHON )
set( _gribapi_swig "gribapi/_gribapi_swig${CMAKE_SHARED_LIBRARY_SUFFIX}" )
# Build the extension module for use in build tree with RPATH pointing to the build tree
add_custom_command( OUTPUT ${_gribapi_swig}
- COMMAND ${PYTHON_EXECUTABLE} setup.py build_ext --inplace --rpath ${CMAKE_BINARY_DIR}/lib
+ COMMAND ${PYTHON_EXECUTABLE} setup.py build_ext --inplace --rpath ${CMAKE_BINARY_DIR}/${INSTALL_LIB_DIR}
DEPENDS grib_interface.h grib_interface.c swig_wrap_numpy.c setup.py.in eccodes )
add_custom_target(eccodes_build_swig_wrapper ALL DEPENDS ${_gribapi_swig})
@@ -61,10 +61,11 @@ ${PYTHON_EXECUTABLE} setup.py build_ext --rpath ${CMAKE_INSTALL_PREFIX}/${INSTAL
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})")
# Library installation directory override
+ # INSTALL_LIB_DIR = lib or lib64
if( NOT INSTALL_LIB_DIR STREQUAL lib )
execute_process( COMMAND ${PYTHON_EXECUTABLE} -c "from __future__ import print_function; import sys; print(sys.version[:3], end='')"
OUTPUT_VARIABLE PYVER )
- set( __install_lib "--install-lib=${ECCODES_FULL_INSTALL_LIB_DIR}/python${PYVER}/site-packages" )
+ set( __install_lib "--install-lib=${eccodes_FULL_INSTALL_LIB_DIR}/python${PYVER}/site-packages" )
endif()
# Call distutils for installation
|
try to fix (dos line endings) | @@ -54,7 +54,7 @@ static char * parseRecord (char ** ptr, char delim, int * isQuoted, int * isCol,
++(*counter);
if (mode == PARSE) return NULL;
}
- else if (*(*ptr + 1) == '\n')
+ else if (*(*ptr + 1) == '\n' || *(*ptr + 1) == '\r')
{
*isQuoted = 0;
*isCol = 0;
@@ -75,7 +75,7 @@ static char * parseRecord (char ** ptr, char delim, int * isQuoted, int * isCol,
if (mode == PARSE) return NULL;
}
}
- else if (**ptr != '\n')
+ else if (**ptr != '\n' || **ptr != '\r')
{
if (!(*isCol))
{
@@ -145,7 +145,7 @@ static char * parseLine (char * origLine, char delim, unsigned long offset, Key
unsigned long len = elektraStrLen (line);
if (isQuoted)
{
- if (line[len - 2] == '\n')
+ if (line[len - 2] == '\n' || line[len - 2] == '\r')
{
line[len - 2] = '\0';
}
@@ -154,7 +154,7 @@ static char * parseLine (char * origLine, char delim, unsigned long offset, Key
}
else if (isCol)
{
- if (line[len - 2] == '\n')
+ if (line[len - 2] == '\n' || line[len - 2] == '\r')
{
line[len - 2] = '\0';
}
@@ -178,7 +178,7 @@ static unsigned long getLineLength (FILE * fp)
char c;
while ((c = fgetc (fp)) && (!feof (fp)))
{
- if (c == '\n') break;
+ if (c == '\n' || c == '\r') break;
}
int endPos = ftell (fp);
fseek (fp, startPos, SEEK_SET);
|
elfhacks: check UINTPTR_MAX size of architecture bitness instead | Pyry Haulos <[email protected]>
*/
-
+#pragma once
#include <elf.h>
#include <link.h>
+#include <stdint.h>
#ifdef __cplusplus
extern "C" {
@@ -38,10 +39,9 @@ extern "C" {
#define __PUBLIC __attribute__ ((visibility ("default")))
-#ifdef __x86_64__
+#if UINTPTR_MAX == 0xffffffffffffffff
# define __elf64
-#endif
-#ifdef __i386__
+#else
# define __elf32
#endif
|
ci: remove redundancy | @@ -14,11 +14,6 @@ jobs:
strategy:
fail-fast: false
matrix:
- name:
- - default
- - OpenSSL 1.1.0
- - OpenSSL 1.1.1
- - DTrace
include:
- name: default
command: make -f misc/docker-ci/check.mk ALL
|
BugID:18679699: delete useless code | @@ -20,7 +20,7 @@ int rec_2boot_cmd_check(void)
while(1) {
if(uart_recv_byte(&c) && ('w' == c)) {
- printf("2nd boot cmd:\r\n");
+ printf("Will enter aos 2nd boot cmd ...\r\n");
return 0;
}
i ++;
@@ -54,12 +54,7 @@ void print_usage()
void rec_2boot_cmd_process()
{
#ifdef AOS_OTA_2BOOT_CLI
- PatchStatus *pstatus;
unsigned char c = 0;
-
- pstatus = nbpatch_get_pstatus();
- read_patch_status(pstatus);
-
print_usage();
printf("aos boot# ");
while(1) {
@@ -79,7 +74,7 @@ void rec_2boot_cmd_process()
break;
case '2' :
- printf("Active part B \r\n");
+ printf("Active backup version \r\n");
nbpatch_swap_app2ota(TRUE);
rec_reboot();
break;
|
fixed broken GPS handling | @@ -5115,7 +5115,7 @@ static char *nmeaptr;
static const char *gpgga = "$GPGGA";
static const char *gprmc = "$GPRMC";
-nmeatemplen = recvfrom(fd_gps, nmeatempsentence, NMEA_MAX -1, 0, NULL, NULL);
+nmeatemplen = read(fd_gps, nmeatempsentence, NMEA_MAX -1);
if(nmeatemplen < 44) return;
nmeatempsentence[nmeatemplen] = 0;
nmeaptr = strstr(nmeatempsentence, gpgga);
@@ -5355,6 +5355,7 @@ if(beaconactiveflag == true)
send_beacon_hidden();
}
if(rgbeaconlist->timestamp != 0) send_beacon_list_active();
+
while(1)
{
gettimeofday(&tv, NULL);
|
Fixing close connection issue in ble data service | @@ -206,6 +206,7 @@ typedef struct IotBleDataTransferService
uint8_t identifier; /**< Uniquely identifies a data transfer service. */
BTService_t gattService; /**< Internal gatt Service structure. */
IotBleDataTransferChannel_t channel; /**< Channel used ot send or receive data. */
+ bool isReady;
} IotBleDataTransferService_t;
@@ -510,7 +511,7 @@ static void _ControlCharCallback( IotBleAttributeEvent_t * pEventParam )
if (pService != NULL)
{
resp.pAttrData->handle = pEventParam->pParamRead->attrHandle;
- resp.pAttrData->pData = ( uint8_t * ) pService->channel.isOpen;
+ resp.pAttrData->pData = ( uint8_t * ) pService->isReady;
resp.pAttrData->size = 1;
resp.attrDataOffset = 0;
resp.eventStatus = eBTStatusSuccess;
@@ -523,10 +524,11 @@ static void _ControlCharCallback( IotBleAttributeEvent_t * pEventParam )
pService = _getServiceFromHandle(pEventParam->pParamWrite->attrHandle);
if (pService != NULL)
{
- pService->channel.isOpen = ( *( ( uint8_t * ) pEventParam->pParamWrite->pValue ) == 1 );
+ pService->isReady = ( *( ( uint8_t * ) pEventParam->pParamWrite->pValue ) == 1 );
if( pService->channel.callback != NULL )
{
- channelEvent = ( pService->channel.isOpen == true ) ? IOT_BLE_DATA_TRANSFER_CHANNEL_OPENED : IOT_BLE_DATA_TRANSFER_CHANNEL_CLOSED;
+ pService->channel.isOpen = pService->isReady;
+ channelEvent = ( pService->isReady == true ) ? IOT_BLE_DATA_TRANSFER_CHANNEL_OPENED : IOT_BLE_DATA_TRANSFER_CHANNEL_CLOSED;
pService->channel.callback( channelEvent,
&pService->channel,
pService->channel.pContext );
@@ -804,7 +806,9 @@ static void _connectionCallback( BTStatus_t status,
for( index = 0; index < IOT_BLE_NUM_DATA_TRANSFER_SERVICES; index++ )
{
IotBleDataTransfer_Close( &_services[index].channel );
+ _services[index].isReady = false;
}
+
transmitLength = _TRANSMIT_LENGTH( IOT_BLE_PREFERRED_MTU_SIZE );
}
}
@@ -952,6 +956,11 @@ IotBleDataTransferChannel_t * IotBleDataTransfer_Open( uint8_t serviceIdentifier
{
pChannel = &_services[ index ].channel;
pChannel->isUsed = true;
+
+ if( _services[index].isReady == true )
+ {
+ pChannel->isOpen = true;
+ }
}
}
}
|
fix(warning):
warnings in boathwbcs.c | @@ -71,7 +71,7 @@ __BOATSTATIC BOAT_RESULT hwbcsPayloadPacked(BoatHwbcsTx *tx_ptr,
BOAT_RESULT result = BOAT_SUCCESS;
boat_try_declare;
- if (tx_ptr->var.type == HWBCS_TYPE_PROPOSAL)
+ if (tx_ptr->var.type == (BoatHlfabricType)HWBCS_TYPE_PROPOSAL)
{
/* contractInvocation info*/
contractInvocation.contract_name = tx_ptr->var.contract_name;
@@ -145,7 +145,7 @@ __BOATSTATIC BOAT_RESULT hwbcsPayloadPacked(BoatHwbcsTx *tx_ptr,
result = boat_exception;
}
/* free malloc */
- if (tx_ptr->var.type == HWBCS_TYPE_PROPOSAL){
+ if (tx_ptr->var.type == (BoatHlfabricType)HWBCS_TYPE_PROPOSAL){
if(NULL != contractInvocation.args){
BoatFree(contractInvocation.args);
}
@@ -179,7 +179,7 @@ BOAT_RESULT hwbcsProposalTransactionPacked(BoatHwbcsTx *tx_ptr)
}
/* step-1: generate nonce once for proposal */
- if (tx_ptr->var.type == HWBCS_TYPE_PROPOSAL)
+ if (tx_ptr->var.type == (BoatHlfabricType)HWBCS_TYPE_PROPOSAL)
{
tx_ptr->var.nonce.field_len = 8;
result = BoatRandom(tx_ptr->var.nonce.field, tx_ptr->var.nonce.field_len, NULL);
|
Fix size overflow in calculation introduced by commits and
Reported-by: Thomas Munro
Author: Takayuki Tsunakawa
Discussion: | * being dropped. For the relations with size below this threshold, we find
* the buffers by doing lookups in BufMapping table.
*/
-#define BUF_DROP_FULL_SCAN_THRESHOLD (uint32) (NBuffers / 32)
+#define BUF_DROP_FULL_SCAN_THRESHOLD (uint64) (NBuffers / 32)
typedef struct PrivateRefCountEntry
{
@@ -2987,7 +2987,7 @@ DropRelFileNodeBuffers(SMgrRelation smgr_reln, ForkNumber *forkNum,
int j;
RelFileNodeBackend rnode;
BlockNumber nForkBlock[MAX_FORKNUM];
- BlockNumber nBlocksToInvalidate = 0;
+ uint64 nBlocksToInvalidate = 0;
rnode = smgr_reln->smgr_rnode;
@@ -3111,7 +3111,7 @@ DropRelFileNodesAllBuffers(SMgrRelation *smgr_reln, int nnodes)
int n = 0;
SMgrRelation *rels;
BlockNumber (*block)[MAX_FORKNUM + 1];
- BlockNumber nBlocksToInvalidate = 0;
+ uint64 nBlocksToInvalidate = 0;
RelFileNode *nodes;
bool cached = true;
bool use_bsearch;
|
global-plugins: simplify initialization for lower McCabe complexity | @@ -344,9 +344,7 @@ int mountGlobals (KDB * kdb, KeySet * keys, KeySet * modules, Key * errorKey)
keys = elektraDefaultGlobalConfig ();
root = ksHead (keys);
}
- for (int i = 0; i < NR_GLOBAL_POSITIONS; ++i)
- for (int j = 0; j < NR_GLOBAL_SUBPOSITIONS; ++j)
- kdb->globalPlugins[i][j] = NULL;
+ memset (kdb->globalPlugins, 0, NR_GLOBAL_POSITIONS * NR_GLOBAL_SUBPOSITIONS * sizeof (Plugin *));
KeySet * global = ksCut (keys, root);
Key * cur;
|
Add a CHANGES entry for the SSL_SECOP_TMP_DH change | @@ -23,6 +23,17 @@ OpenSSL 3.0
### Changes between 1.1.1 and 3.0 [xx XXX xxxx]
+ * The security callback, which can be customised by application code, supports
+ the security operation SSL_SECOP_TMP_DH. This is defined to take an EVP_PKEY
+ in the "other" parameter. In most places this is what is passed. All these
+ places occur server side. However there was one client side call of this
+ security operation and it passed a DH object instead. This is incorrect
+ according to the definition of SSL_SECOP_TMP_DH, and is inconsistent with all
+ of the other locations. Therefore this client side call has been changed to
+ pass an EVP_PKEY instead.
+
+ *Matt Caswell*
+
* Add PKCS7_get_octet_string() and PKCS7_type_is_other() to the public
interface. Their functionality remains unchanged.
|
tests/motors/run_test: Add reference speed plot. | @@ -126,6 +126,7 @@ def plot_control_data(time, data, build_dir, subtitle=None):
error_axis.plot(time, count_ref - count, drawstyle="steps-post", label="Reported error")
error_axis.plot(time, count_ref - count_est, drawstyle="steps-post", label="Estimated error")
+ error_axis.plot(time, count_est - count, drawstyle="steps-post", label="Estimation error")
error_axis.set_ylabel("angle error (deg)")
speed_axis.plot(time, rate, drawstyle="steps-post", label="Reported rate")
@@ -133,6 +134,7 @@ def plot_control_data(time, data, build_dir, subtitle=None):
speed_axis.plot(
time, gradient(count, time / 1000), drawstyle="steps-post", label="Future count derivative"
)
+ speed_axis.plot(time, rate_ref, drawstyle="steps-post", label="Reference")
speed_axis.set_ylabel("speed (deg/s)")
torque_axis.plot(time, torque_p, label="P", drawstyle="steps-post")
|
Don't wait if there aren't any open connections | @@ -1452,9 +1452,8 @@ static void facil_cycle_schedule_events(void) {
/* reactor pattern cycling during cleanup */
static void facil_cycle_unwind(void *ignr, void *ignr2) {
- facil_cycle_schedule_events();
if (facil_data->connection_count) {
- // fprintf(stderr, "Connection Count: %zu\n", facil_data->connection_count);
+ facil_cycle_schedule_events();
defer(facil_cycle_unwind, ignr, ignr2);
return;
}
|
second try to swap back | @@ -509,7 +509,8 @@ avtH5PartFileFormat::avtH5PartFileFormat(const char *filename,
it != particleVarNameToTypeMap.end(); ++it)
// for( const auto &it : particleVarNameToTypeMap )
{
- std::string varName = it.first;
+ // std::string varName = it.first;
+ std::string varName = it->first;
// Store information about whether the variable has
// FastBit information. If the min max is found then
|
restores white-listed moves lost in the merge | $nuke `%a
$ogre `%c
$perm `%c
+ $rule `%e
$serv `%e
+ $tend `%a
$them `%e
$wait `%b
$want `%a
$warp `%c
$well `%e
+ $well `%e
$wipe `%f
==
--
|
horadric update (316348528)
Note: mandatory check (NEED_CHECK) was skipped | },
"horadric":{
"formula": {
- "sandbox_id": 314886234,
+ "sandbox_id": 316348528,
"match": "horadric"
},
"executable": {
|
Fixed esp_core_dump_image_erase() for flash encryption with 16byte long write buffer | // See the License for the specific language governing permissions and
// limitations under the License.
#include <string.h>
+#include <assert.h>
+#include "esp_core_dump.h"
#include "esp_partition.h"
#include "esp_log.h"
#include "esp_core_dump_types.h"
@@ -456,9 +458,21 @@ esp_err_t esp_core_dump_image_erase(void)
return err;
}
+ // helper to create (multiple of) 16 byte long write buffers
+ struct __attribute__((__packed__)) {
+ uint32_t size;
+ char buf[16-sizeof(uint32_t)];
+ } helper;
+
+ _Static_assert(sizeof(helper) % 16 == 0, "esp_partition_write() needs multiple of 16 byte long buffers");
+
// Mark core dump as deleted by setting field size
- const uint32_t blank_size = BLANK_COREDUMP_SIZE;
- err = esp_partition_write(core_part, 0, &blank_size, sizeof(blank_size));
+ helper.size = BLANK_COREDUMP_SIZE;
+
+ // fill the remaining bytes
+ memset(&helper.buf, '\0', sizeof(helper.buf));
+
+ err = esp_partition_write(core_part, 0, &helper, sizeof(helper));
if (err != ESP_OK) {
ESP_LOGE(TAG, "Failed to write core dump partition size (%d)!", err);
}
|
hw/slw: use dt_new_check()
On P9 systems the /ibm,opal/power-mgt/ node may be created by the HDAT
parser before reaching add_cpu_idle_state_properties(). This is fine,
but it needs to be handled. | @@ -648,11 +648,10 @@ void add_cpu_idle_state_properties(void)
u32 *residency_ns_buf;
u32 *flags_buf;
-
prlog(PR_DEBUG, "CPU idle state device tree init\n");
- /* Create /ibm,opal/power-mgt */
- power_mgt = dt_new(opal_node, "power-mgt");
+ /* Create /ibm,opal/power-mgt if it doesn't exist already */
+ power_mgt = dt_new_check(opal_node, "power-mgt");
if (!power_mgt) {
/**
* @fwts-label CreateDTPowerMgtNodeFail
|
BugID:18173406:[infra] add sdk ver info to client_id | @@ -738,6 +738,7 @@ int iotx_guider_authenticate(iotx_conn_info_t *conn)
#ifdef SUPPORT_ITLS
",authtype=id2"
#endif
+ ",ver=c-sdk-%s"
"|"
, dev.device_id
, secure_mode
@@ -746,6 +747,7 @@ int iotx_guider_authenticate(iotx_conn_info_t *conn)
, ext
, partner_id
, module_id
+ , LINKKIT_VERSION
);
guider_print_conn_info(conn);
|
change localhost -> 127.0.0.1 | @@ -59,7 +59,7 @@ static uint32_t flows_active = 0;
static uint32_t server_runs = 0;
static char *cert_file = NULL;
static char *key_file = NULL;
-static char *loop_hostname = "localhost";
+static char *loop_hostname = "127.0.0.1";
/*
macro - tvp-uvp=vvp
|
fix: the return value of LCUI_GetAppId() is incorrect | @@ -160,6 +160,7 @@ LCUI_AppDriver LCUI_CreateWinAppDriver(void)
MessageBoxW(NULL, str, win.class_name, MB_ICONERROR);
return NULL;
}
+ app->id = LCUI_APP_WINDOWS;
app->GetData = WIN_GetData;
app->ProcessEvents = WIN_ProcessEvents;
app->BindSysEvent = WIN_BindSysEvent;
|
When `pci_dev` is set, don't skip AMD gpu if device id doesn't match | @@ -695,9 +695,9 @@ void init_gpu_stats(uint32_t& vendorID, uint32_t reported_deviceID, overlay_para
if ((fp = fopen(device.c_str(), "r"))){
uint32_t temp = 0;
if (fscanf(fp, "%x", &temp) == 1) {
- if (reported_deviceID && temp != reported_deviceID){
+ if (!pci_bus_parsed && reported_deviceID && temp != reported_deviceID){
fclose(fp);
- SPDLOG_DEBUG("DeviceID does not match vulkan report {}", reported_deviceID);
+ SPDLOG_DEBUG("DeviceID does not match vulkan report {:X}", reported_deviceID);
continue;
}
deviceID = temp;
|
nimble/test: Fix LE SC tests
Some LE SC tests depend on known initial values on crypto side.
With latest update to TinyCrypt provided prng function is used also
for initial seeding and thus tests were failing. To keep things simple
just don't initialize random source function when doign unit tests. | @@ -494,6 +494,10 @@ ble_sm_alg_gen_key_pair(uint8_t *pub, uint8_t *priv)
return 0;
}
+#if MYNEWT_VAL(SELFTEST)
+/* Unit tests rely on custom RNG function not being set */
+#define ble_sm_alg_rand NULL
+#else
/* used by uECC to get random data */
static int
ble_sm_alg_rand(uint8_t *dst, unsigned int size)
@@ -519,6 +523,7 @@ ble_sm_alg_rand(uint8_t *dst, unsigned int size)
return 1;
}
+#endif
void
ble_sm_alg_ecc_init(void)
|
fib: Adjacency walk fix for IPv6
Type: fix | @@ -671,7 +671,7 @@ adj_nbr_walk_nh (u32 sw_if_index,
FOR_EACH_VNET_LINK(linkt)
{
- ai = adj_nbr_find (FIB_PROTOCOL_IP4, linkt, nh, sw_if_index);
+ ai = adj_nbr_find (adj_nh_proto, linkt, nh, sw_if_index);
if (INDEX_INVALID != ai)
cb(ai, ctx);
|
add support for new code (harware button) | @@ -51,6 +51,7 @@ public class BarcodeFactory extends RhoApiFactory<Barcode, BarcodeSingleton> imp
private int defaultEMDKScanner = -1;
protected final int KEYCODE_TRIGGER_1 = 102;
protected final int KEYCODE_TRIGGER_2 = 103;
+ protected final int KEYCODE_SCAN = 10036;
private int lastKeyAction;
private StartScannerTask startTask;
private StopScannerTask stopTask;
@@ -470,13 +471,29 @@ public class BarcodeFactory extends RhoApiFactory<Barcode, BarcodeSingleton> imp
return defaultEMDKScanner;
}
+ private boolean isKeyScan(int keyCode)
+ {
+ switch (keyCode) {
+ case KEYCODE_TRIGGER_2:
+ case KEYCODE_TRIGGER_1:
+ case KEYCODE_SCAN:
+ return true;
+
+ default:
+ {
+ Logger.E(TAG, "Key code not found: " + keyCode);
+ return false;
+ }
+ }
+ }
+
public boolean onKey(int keyCode, KeyEvent event)
{
//Logger.D(TAG, " onKey+ enabledScanner = " + enabledScanner);
//TODO enabledScanner is not being populated by EMDK3 Scanner
if(enabledScanner != null)
{
- if (((keyCode == KEYCODE_TRIGGER_1) || (keyCode == KEYCODE_TRIGGER_2)) && event.getRepeatCount() == 0)
+ if (isKeyScan(keyCode) && event.getRepeatCount() == 0)
{
boolean isDown = (event.getAction() == KeyEvent.ACTION_DOWN);
Logger.D(TAG, "Caught Trigger for the Scanner: " + isDown);
|
kdf snmp interop change | @@ -207,7 +207,7 @@ ACVP_RESULT acvp_kdf135_snmp_kat_handler(ACVP_CTX *ctx, JSON_Object *obj) {
return ACVP_MISSING_ARG;
}
int actual_len = strnlen(password, ACVP_KDF135_SNMP_PASSWORD_MAX);
- if (actual_len != p_len / 8) {
+ if (actual_len != p_len) {
ACVP_LOG_ERR("pLen(%d) or password length(%d) incorrect", p_len, actual_len);
return ACVP_INVALID_ARG;
}
|
slightly reduce tolerances in sol checking | @@ -215,12 +215,12 @@ const char *verify_solution_correct(ScsData *d, ScsCone *k, ScsSettings *stgs,
/**************** ASSERTS *****************/
if (status == SCS_SOLVED) {
mu_assert_less("Primal residual ERROR", ABS(res_pri - info->res_pri),
- 1e-14);
+ 1e-12);
mu_assert_less("Dual residual ERROR", ABS(res_dual - info->res_dual),
- 1e-14);
- mu_assert_less("Gap ERROR", ABS(gap - info->gap), 1e-14);
- mu_assert_less("Primal obj ERROR", ABS(pobj - info->pobj), 1e-14);
- mu_assert_less("Dual obj ERROR", ABS(dobj - info->dobj), 1e-14);
+ 1e-12);
+ mu_assert_less("Gap ERROR", ABS(gap - info->gap), 1e-12);
+ mu_assert_less("Primal obj ERROR", ABS(pobj - info->pobj), 1e-12);
+ mu_assert_less("Dual obj ERROR", ABS(dobj - info->dobj), 1e-12);
/* slightly looser tol */
mu_assert_less("Complementary slackness ERROR", ABS(sty), 1e-6);
mu_assert_less("s cone dist ERROR", ABS(sdist), 1e-6);
@@ -234,14 +234,14 @@ const char *verify_solution_correct(ScsData *d, ScsCone *k, ScsSettings *stgs,
} else if (status == SCS_INFEASIBLE) {
mu_assert_less("Infeas ERROR", ABS(res_infeas - info->res_infeas), 1e-8);
- mu_assert_less("bty ERROR", ABS(bty + 1), 1e-14);
+ mu_assert_less("bty ERROR", ABS(bty + 1), 1e-12);
mu_assert_less("y cone dist ERROR", ABS(ydist), 1e-6);
mu_assert_less("Infeas invalid ERROR", res_infeas, stgs->eps_infeas);
} else if (status == SCS_UNBOUNDED) {
mu_assert_less("Unbdd_a ERROR", ABS(res_unbdd_a - info->res_unbdd_a), 1e-8);
mu_assert_less("Unbdd_p ERROR", ABS(res_unbdd_p - info->res_unbdd_p), 1e-8);
- mu_assert_less("ctx ERROR", ABS(ctx + 1), 1e-14);
+ mu_assert_less("ctx ERROR", ABS(ctx + 1), 1e-12);
mu_assert_less("s cone dist ERROR", ABS(sdist), 1e-6);
mu_assert_less("Unbounded P invalid ERROR", res_unbdd_p, stgs->eps_infeas);
mu_assert_less("Unbounded A invalid ERROR", res_unbdd_a, stgs->eps_infeas);
|
ikev2: fix memory leak in auth routine
Type: fix | @@ -1671,11 +1671,13 @@ ikev2_sa_auth (ikev2_sa_t * sa)
authmsg = ikev2_sa_generate_authmsg (sa, 1);
if (sel_p->auth.method == IKEV2_AUTH_METHOD_SHARED_KEY_MIC)
{
+ vec_free (sa->r_auth.data);
sa->r_auth.data = ikev2_calc_prf (tr_prf, psk, authmsg);
sa->r_auth.method = IKEV2_AUTH_METHOD_SHARED_KEY_MIC;
}
else if (sel_p->auth.method == IKEV2_AUTH_METHOD_RSA_SIG)
{
+ vec_free (sa->r_auth.data);
sa->r_auth.data = ikev2_calc_sign (km->pkey, authmsg);
sa->r_auth.method = IKEV2_AUTH_METHOD_RSA_SIG;
}
@@ -1732,11 +1734,13 @@ ikev2_sa_auth_init (ikev2_sa_t * sa)
if (sa->i_auth.method == IKEV2_AUTH_METHOD_SHARED_KEY_MIC)
{
+ vec_free (sa->i_auth.data);
sa->i_auth.data = ikev2_calc_prf (tr_prf, psk, authmsg);
sa->i_auth.method = IKEV2_AUTH_METHOD_SHARED_KEY_MIC;
}
else if (sa->i_auth.method == IKEV2_AUTH_METHOD_RSA_SIG)
{
+ vec_free (sa->i_auth.data);
sa->i_auth.data = ikev2_calc_sign (km->pkey, authmsg);
sa->i_auth.method = IKEV2_AUTH_METHOD_RSA_SIG;
}
|
README: add a description about record_modifier | @@ -43,6 +43,7 @@ $ bin/fluent-bit -i cpu -o stdout
| name | option | description |
|--------------------|------------|---------------------------------------------------------------------------------|
+| Record Modifier | record_modifier | Append/Remove key-value pair |
| Grep | grep | Match or exclude specific records by patterns |
| Kubernetes | kubernetes | Enrich logs with Kubernetes Metadata |
| Stdout | stdout | Print records to the standard output interface |
|
BugID:18747037:[board]remove extra aos_get_version_info, slove ci build problem | @@ -116,7 +116,3 @@ void soc_err_proc(kstat_t err)
krhino_err_proc_t g_err_proc = soc_err_proc;
-unsigned int aos_get_version_info (u8 *version_num, u8 *random_num, u8 *mac_address, u8 *chip_code, u8 *output_buffer, u32 output_buffer_size)
-{
- return 0;
-}
\ No newline at end of file
|
fix path spliter | @@ -38,7 +38,7 @@ script:
- cat xmake/core/_xmake_main.lua >> tmp
- mv tmp xmake/core/_xmake_main.lua
- cp core/build/xmake $(which xmake) || sudo cp core/build/xmake $(which xmake)
- - xmake lua --backtrace tests\test.lua
+ - xmake lua --backtrace tests/test.lua
after_success:
- luacov
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.