message
stringlengths 6
474
| diff
stringlengths 8
5.22k
|
---|---|
pylint ignore import error | @@ -140,7 +140,7 @@ check_py () {
fi
echo -e "\n===== pylint -E ====="
- $PYLINT -E -f parseable --ignore=__init__.py --ignore-patterns="test_.*.py" $FILES
+ $PYLINT -E -f parseable --disable=E0401 --ignore=__init__.py --ignore-patterns="test_.*.py" $FILES
if [ $? -ne 0 ]; then
echo "test-codingstyle-py FAILED"
popd >/dev/null
|
lib/utils: Expose pyb_set_repl_info function public
The patch enables the possibility to disable or initialize the repl
info from outside of the module. Can also be used to initialize the
repl_display_debugging_info in pyexec.c if not startup file is clearing
.bss segment. | @@ -50,6 +50,7 @@ int pyexec_frozen_module(const char *name);
void pyexec_event_repl_init(void);
int pyexec_event_repl_process_char(int c);
extern uint8_t pyexec_repl_active;
+mp_obj_t pyb_set_repl_info(mp_obj_t o_value);
MP_DECLARE_CONST_FUN_OBJ_1(pyb_set_repl_info_obj);
|
Fix Description header | @@ -4,7 +4,9 @@ Logging
Mynewt log package supports logging of information within a Mynewt
application. It allows packages to define their own log streams with
separate names. It also allows an application to control the output
-destination of logs. ### Description
+destination of logs.
+
+### Description
In the Mynewt OS, the log package comes in two versions:
|
[DeviceDriver][Serial] Fix serial open flag lost when device reopen. | @@ -641,6 +641,13 @@ static rt_err_t rt_serial_open(struct rt_device *dev, rt_uint16_t oflag)
serial->serial_rx = RT_NULL;
}
}
+ else
+ {
+ if (oflag & RT_DEVICE_FLAG_DMA_RX)
+ dev->open_flag |= RT_DEVICE_FLAG_DMA_RX;
+ else if (oflag & RT_DEVICE_FLAG_INT_RX)
+ dev->open_flag |= RT_DEVICE_FLAG_INT_RX;
+ }
if (serial->serial_tx == RT_NULL)
{
@@ -676,6 +683,13 @@ static rt_err_t rt_serial_open(struct rt_device *dev, rt_uint16_t oflag)
serial->serial_tx = RT_NULL;
}
}
+ else
+ {
+ if (oflag & RT_DEVICE_FLAG_DMA_TX)
+ dev->open_flag |= RT_DEVICE_FLAG_DMA_TX;
+ else if (oflag & RT_DEVICE_FLAG_INT_TX)
+ dev->open_flag |= RT_DEVICE_FLAG_INT_TX;
+ }
/* set stream flag */
dev->open_flag |= stream_flag;
|
use a UTC timestamp for POCL_BUILD_TIMESTAMP
this will be reproducible if SOURCE_DATE_EPOCH is set,
regardless of any TZ setting | @@ -1043,7 +1043,7 @@ endif()
set_expr(POCL_KERNEL_CACHE_DEFAULT KERNEL_CACHE_DEFAULT)
-string(TIMESTAMP POCL_BUILD_TIMESTAMP "%d%m%Y%H%M%S")
+string(TIMESTAMP POCL_BUILD_TIMESTAMP "%d%m%Y%H%M%S" UTC)
file(WRITE "${CMAKE_BINARY_DIR}/pocl_build_timestamp.h" "#define POCL_BUILD_TIMESTAMP \"${POCL_BUILD_TIMESTAMP}\"")
####################################################################
|
Fixed off-by-one error when doing %lin wrapping. | =/ txt (tuba (trip msg.sep))
|- ^- (list tape)
?~ txt ~
- =/ end
- ?: (lte (lent txt) wyd) (lent txt)
+ =+ ^- {end/@ud nex/?}
+ ?: (lte (lent txt) wyd) [(lent txt) &]
=+ ace=(find " " (flop (scag +(wyd) `(list @c)`txt)))
- ?~ ace wyd
- (sub wyd u.ace)
+ ?~ ace [wyd |]
+ [(sub wyd u.ace) &]
:- (weld pef (tufa (scag end `(list @c)`txt)))
- $(txt (slag +(end) `(list @c)`txt), pef (reap (lent pef) ' '))
+ $(txt (slag ?:(nex +(end) end) `(list @c)`txt), pef (reap (lent pef) ' '))
::
$inv
:_ ~
|
add batch methods into libbpf.h | @@ -151,6 +151,12 @@ int bcc_iter_attach(int prog_fd, union bpf_iter_link_info *link_info,
int bcc_iter_create(int link_fd);
int bcc_make_parent_dir(const char *path);
int bcc_check_bpffs_path(const char *path);
+int bpf_lookup_batch(int fd, __u32 *in_batch, __u32 *out_batch, void *keys,
+ void *values, __u32 *count);
+int bpf_delete_batch(int fd, void *keys, __u32 *count);
+int bpf_update_batch(int fd, void *keys, void *values, __u32 *count);
+int bpf_lookup_and_delete_batch(int fd, __u32 *in_batch, __u32 *out_batch,
+ void *keys, void *values, __u32 *count);
#define LOG_BUF_SIZE 65536
|
Cleanup valuesEqual | @@ -389,17 +389,25 @@ bool valuesEqual(Value a, Value b) {
#ifdef NAN_TAGGING
if (IS_OBJ(a) && IS_OBJ(b)) {
- if (AS_OBJ(a)->type == OBJ_LIST && AS_OBJ(b)->type == OBJ_LIST) {
+ if (AS_OBJ(a)->type != AS_OBJ(b)->type) return false;
+
+ switch (AS_OBJ(a)->type) {
+ case OBJ_LIST: {
return listComparison(a, b);
}
- if (AS_OBJ(a)->type == OBJ_DICT && AS_OBJ(b)->type == OBJ_DICT) {
+ case OBJ_DICT: {
return dictComparison(a, b);
}
- if (AS_OBJ(a)->type == OBJ_SET && AS_OBJ(b)->type == OBJ_SET) {
+ case OBJ_SET: {
return setComparison(a, b);
}
+
+ // Pass through
+ default:
+ break;
+ }
}
return a == b;
|
[make] tweak the way top level modules are included and add a few comments
No functional change. | @@ -144,11 +144,17 @@ $(error couldn't find target or target doesn't define platform)
endif
include platform/$(PLATFORM)/rules.mk
+ifndef ARCH
+$(error couldn't find arch or platform doesn't define arch)
+endif
+include arch/$(ARCH)/rules.mk
+
$(info PROJECT = $(PROJECT))
$(info PLATFORM = $(PLATFORM))
$(info TARGET = $(TARGET))
+$(info ARCH = $(ARCH))
-include arch/$(ARCH)/rules.mk
+# include the top level module that includes basic always-there modules
include top/rules.mk
# recursively include any modules in the MODULE variable, leaving a trail of included
|
Added python unit test for emulator cosmology w/neutrinos | @@ -33,9 +33,12 @@ def reference_models():
p6=ccl.Parameters(Omega_c=0.27, Omega_b=0.022/0.67**2, h=0.67, sigma8=0.8, n_s=0.96,N_nu_rel=3.04,N_nu_mass=0.,m_nu=0.)
cosmo6 = ccl.Cosmology(p6,transfer_function='emulator',matter_power_spectrum='emu')
+ # Emulator Pk w/neutrinos
+ p7=ccl.Parameters(Omega_c=0.27, Omega_b=0.022/0.67**2, h=0.67, sigma8=0.8, n_s=0.96,N_nu_rel=3.04,N_nu_mass=1,m_nu=0.06)
+ cosmo7 = ccl.Cosmology(p7,transfer_function='emulator',matter_power_spectrum='emu')
- # Return (only do one cosmology for now, for speed reasons)
- return [cosmo1,cosmo4,cosmo5,cosmo6] # cosmo2, cosmo3
+ # Return (do a few cosmologies, for speed reasons)
+ return [cosmo1,cosmo4,cosmo5,cosmo7] # cosmo2, cosmo3, cosmo6
def all_finite(vals):
"""
|
YAwn: Rebuild grammar header after grammar update | @@ -57,6 +57,9 @@ function (check_dependencies)
file (WRITE ${SOURCE_FILE_GRAMMAR}
${GRAMMAR})
+ # Make sure the build system recreates the header for the grammar, if we modify `yaml.bnf`
+ set_source_files_properties (${SOURCE_FILE_GRAMMAR} PROPERTIES GENERATED TRUE)
+
set (SOURCE_FILES
${SOURCE_FILES_INPUT}
${SOURCE_FILE_GRAMMAR}
|
fix the order of functions in main.c | @@ -2492,6 +2492,16 @@ static void on_accept(h2o_socket_t *listener, const char *err)
} while (--num_accepts != 0);
}
+struct init_ebpf_key_info_t {
+ struct sockaddr *local, *remote;
+};
+
+static int init_ebpf_key_from_info(h2o_ebpf_map_key_t *key, void *_info)
+{
+ struct init_ebpf_key_info_t *info = _info;
+ return h2o_socket_ebpf_init_key_raw(key, SOCK_DGRAM, info->local, info->remote);
+}
+
static int validate_token(h2o_http3_server_ctx_t *ctx, struct sockaddr *remote, ptls_iovec_t client_cid, ptls_iovec_t server_cid,
quicly_address_token_plaintext_t *token)
{
@@ -2522,16 +2532,6 @@ static int validate_token(h2o_http3_server_ctx_t *ctx, struct sockaddr *remote,
return 1;
}
-struct init_ebpf_key_info_t {
- struct sockaddr *local, *remote;
-};
-
-static int init_ebpf_key_from_info(h2o_ebpf_map_key_t *key, void *_info)
-{
- struct init_ebpf_key_info_t *info = _info;
- return h2o_socket_ebpf_init_key_raw(key, SOCK_DGRAM, info->local, info->remote);
-}
-
static h2o_quic_conn_t *on_http3_accept(h2o_quic_ctx_t *_ctx, quicly_address_t *destaddr, quicly_address_t *srcaddr,
quicly_decoded_packet_t *packet)
{
|
review: getSpatial > isSpatial | @@ -51,7 +51,7 @@ static int l_lovrSourceSetVolume(lua_State* L) {
return 0;
}
-static int l_lovrSourceGetSpatial(lua_State* L) {
+static int l_lovrSourceIsSpatial(lua_State* L) {
Source* source = luax_checktype(L, 1, Source);
lua_pushboolean(L, lovrSourceGetSpatial(source));
return 1;
@@ -120,7 +120,7 @@ const luaL_Reg lovrSource[] = {
{ "setLooping", l_lovrSourceSetLooping },
{ "getVolume", l_lovrSourceGetVolume },
{ "setVolume", l_lovrSourceSetVolume },
- { "getSpatial", l_lovrSourceGetSpatial },
+ { "isSpatial", l_lovrSourceIsSpatial },
{ "setPose", l_lovrSourceSetPose },
{ "getDuration", l_lovrSourceGetDuration },
{ "getTime", l_lovrSourceGetTime },
|
Make ZydisWinKernel compatible with Clang | @@ -58,10 +58,13 @@ RtlImageNtHeader(
_In_ PVOID ImageBase
);
+#if defined(ZYDIS_CLANG) || defined(ZYDIS_GNUC)
+__attribute__((section("INIT")))
+#endif
DRIVER_INITIALIZE
DriverEntry;
-#ifdef ALLOC_PRAGMA
+#if defined(ALLOC_PRAGMA) && !(defined(ZYDIS_CLANG) || defined(ZYDIS_GNUC))
#pragma alloc_text(INIT, DriverEntry)
#endif
|
options/ansi: Implement proper setvbuf() | @@ -570,9 +570,29 @@ int fflush(FILE *file_base) {
return fflush_unlocked(file_base);
}
-int setvbuf(FILE *__restrict stream, char *__restrict buffer, int mode, size_t size) {
- // TODO: Honor the buffering mode.
- mlibc::infoLogger() << "\e[35mmlibc: setvbuf() is ignored\e[39m" << frg::endlog;
+int setvbuf(FILE *file_base, char *buffer, int mode, size_t size) {
+ // TODO: We could also honor the buffer, but for now use just set the mode.
+ auto file = static_cast<mlibc::abstract_file *>(file_base);
+ if(mode == _IONBF) {
+ if(int e = file->update_bufmode(mlibc::buffer_mode::no_buffer); e) {
+ errno = e;
+ return -1;
+ }
+ }else if(mode == _IOLBF) {
+ if(int e = file->update_bufmode(mlibc::buffer_mode::line_buffer); e) {
+ errno = e;
+ return -1;
+ }
+ }else if(mode == _IOLBF) {
+ if(int e = file->update_bufmode(mlibc::buffer_mode::full_buffer); e) {
+ errno = e;
+ return -1;
+ }
+ }else{
+ errno = EINVAL;
+ return -1;
+ }
+
return 0;
}
|
os/include/pthread.h : Change pthread_set/getname_np's prctl option
To set/get the name through prctl, PR_SET/GET_NAME_BYPID option should be used. | * @since TizenRT v1.0
*/
#define pthread_setname_np(thread, name) \
- prctl((int)PR_SET_NAME, (char*)name, (int)thread)
+ prctl((int)PR_SET_NAME_BYPID, (char*)name, (int)thread)
/**
* @ingroup PTHREAD_KERNEL
* @since TizenRT v1.0
*/
#define pthread_getname_np(thread, name) \
- prctl((int)PR_GET_NAME, (char*)name, (int)thread)
+ prctl((int)PR_GET_NAME_BYPID, (char*)name, (int)thread)
/********************************************************************************
* Global Type Declarations
|
* ejdb2 release preparations | MIT License
-Copyright (c) 2012-2018 Softmotions Ltd <[email protected]>
+Copyright (c) 2012-2019 Softmotions Ltd <[email protected]>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
|
odissey: allocate default config string values | @@ -526,7 +526,9 @@ od_config_parse_user(od_config_t *config, od_schemedb_t *db)
if (! od_config_next_keyword(config, &od_config_keywords[OD_LDEFAULT]))
return -1;
user->is_default = 1;
- user->user = "default";
+ user->user = strdup("default");
+ if (user->user == NULL)
+ return -1;
}
user->db = db;
user->user_len = strlen(user->user);
@@ -661,7 +663,9 @@ od_config_parse_database(od_config_t *config)
if (! od_config_next_keyword(config, &od_config_keywords[OD_LDEFAULT]))
return -1;
db->is_default = 1;
- db->name = "default";
+ db->name = strdup("default");
+ if (db->name == NULL)
+ return -1;
}
/* { */
|
oc_acl:update DOC access policy for doxm | @@ -388,6 +388,19 @@ oc_sec_check_acl(oc_method_t method, oc_resource_t *resource,
}
}
+ if ((pstat->s == OC_DOS_RFPRO || pstat->s == OC_DOS_RFNOP ||
+ pstat->s == OC_DOS_SRESET) &&
+ !(endpoint->flags & SECURED)) {
+ /* anonp-clear requests to /oic/sec/doxm while the
+ * dos is RFPRO, RFNOP or SRESET should not be authorized
+ * regardless of the ACL configuration.
+ */
+ if (oc_string_len(resource->uri) == 13 &&
+ memcmp(oc_string(resource->uri), "/oic/sec/doxm", 13) == 0) {
+ return false;
+ }
+ }
+
oc_uuid_t *uuid = NULL;
if (peer) {
uuid = &peer->uuid;
|
sched/wqueue: do work_cancel when worker is not null | @@ -118,7 +118,10 @@ int work_queue(int qid, FAR struct work_s *work, worker_t worker,
/* Remove the entry from the timer and work queue. */
+ if (work->worker != NULL)
+ {
work_cancel(qid, work);
+ }
/* Initialize the work structure. */
|
quic: fix tests
Reduce the amount of data sent to avoid a hang in the QUIC stack when
the fifos get full. This fixes the QUIC tests in debug mode while
is not merged.
Type: test | @@ -131,7 +131,7 @@ class QUICEchoInternalTransferTestCase(QUICEchoInternalTestCase):
@unittest.skipUnless(running_extended_tests, "part of extended tests")
def test_quic_internal_transfer(self):
self.server()
- self.client("no-output", "mbytes", "10")
+ self.client("no-output", "mbytes", "2")
class QUICEchoInternalSerialTestCase(QUICEchoInternalTestCase):
@@ -139,11 +139,11 @@ class QUICEchoInternalSerialTestCase(QUICEchoInternalTestCase):
@unittest.skipUnless(running_extended_tests, "part of extended tests")
def test_quic_serial_internal_transfer(self):
self.server()
- self.client("no-output", "mbytes", "10")
- self.client("no-output", "mbytes", "10")
- self.client("no-output", "mbytes", "10")
- self.client("no-output", "mbytes", "10")
- self.client("no-output", "mbytes", "10")
+ self.client("no-output", "mbytes", "2")
+ self.client("no-output", "mbytes", "2")
+ self.client("no-output", "mbytes", "2")
+ self.client("no-output", "mbytes", "2")
+ self.client("no-output", "mbytes", "2")
class QUICEchoInternalMStreamTestCase(QUICEchoInternalTestCase):
|
Correction of too restrictive ssl cli minor check | @@ -1952,7 +1952,7 @@ static int ssl_parse_hello_verify_request( mbedtls_ssl_context *ssl )
p += 2;
if( major_ver < MBEDTLS_SSL_MAJOR_VERSION_3 ||
- minor_ver < MBEDTLS_SSL_MINOR_VERSION_3 ||
+ minor_ver < MBEDTLS_SSL_MINOR_VERSION_2 ||
major_ver > ssl->conf->max_major_ver ||
minor_ver > ssl->conf->max_minor_ver )
{
|
bq25720: add more options for VSYS_UVP
BRANCH=none
TEST=make -j BOARD=taeko | #define BQ25720_CHARGE_OPTION_4_VSYS_UVP_SHIFT 13
#define BQ25720_CHARGE_OPTION_4_VSYS_UVP_BITS 3
#define BQ25720_CHARGE_OPTION_4_VSYS_UVP__2P4 0
+#define BQ25720_CHARGE_OPTION_4_VSYS_UVP__3P2 1
#define BQ25720_CHARGE_OPTION_4_VSYS_UVP__4P0 2
+#define BQ25720_CHARGE_OPTION_4_VSYS_UVP__4P8 3
+#define BQ25720_CHARGE_OPTION_4_VSYS_UVP__5P6 4
+#define BQ25720_CHARGE_OPTION_4_VSYS_UVP__6P4 5
+#define BQ25720_CHARGE_OPTION_4_VSYS_UVP__7P2 6
+#define BQ25720_CHARGE_OPTION_4_VSYS_UVP__8P0 7
#define BQ25720_CHARGE_OPTION_4_IDCHG_DEG2_SHIFT 6
#define BQ25720_CHARGE_OPTION_4_IDCHG_DEG2_BITS 2
|
Fix print call arguments | @@ -5050,7 +5050,7 @@ void DeRestPluginPrivate::processTasks()
int dt = idleTotalCounter - j->sendTime;
if (dt < 5 || onAir >= maxOnAir)
{
- DBG_Printf(DBG_INFO, "request %u send time %d, cluster 0x%04X, onAir %d\n", j->sendTime, j->req.clusterId(), onAir);
+ DBG_Printf(DBG_INFO, "request %u send time %d, cluster 0x%04X, onAir %d\n", i->req.id(), j->sendTime, j->req.clusterId(), onAir);
DBG_Printf(DBG_INFO_L2, "delay sending request %u dt %d ms to %s\n", i->req.id(), dt, qPrintable(i->req.dstAddress().toStringExt()));
ok = false;
break;
|
[tests] fix Python3 print form in test_dynamical_systems.py | @@ -34,7 +34,7 @@ def test_ds_interface():
class_name = args
attr = ds_classes[args]
ds = class_name(*attr)
- print class_name, attr[0]
+ print(class_name, attr[0])
ds.initializeNonSmoothInput(1)
ds.resetAllNonSmoothParts()
ds.resetNonSmoothPart(1)
|
Yardoc: Fix unexpected syntax in tag | @@ -718,7 +718,7 @@ Draw_stroke_eq(VALUE self, VALUE stroke)
*
* @!attribute [w] stroke_pattern
* @param pattern [Magick::Image] the stroke pattern
- * @return pattern [Magick::Image] the given pattern
+ * @return [Magick::Image] the given pattern
* @see #fill_pattern
*/
VALUE
|
inproved help | @@ -5690,10 +5690,10 @@ printf("%s %s (C) %s ZeroBeat\n"
" 100 = M3+M4, EAPOL from M3 (authorized) - unused\n"
" 101 = M3+M4, EAPOL from M4 if not zeroed (authorized)\n"
"3: reserved\n"
- "4: ap-less attack (set to 1) - no nonce-error-corrections necessary\n"
- "5: LE router detected (set to 1) - nonce-error-corrections only for LE necessary\n"
- "6: BE router detected (set to 1) - nonce-error-corrections only for BE necessary\n"
- "7: not replaycount checked (set to 1) - replaycount not checked, nonce-error-corrections definitely necessary\n"
+ "4: ap-less attack (set to 1) - nonce-error-corrections not required\n"
+ "5: LE router detected (set to 1) - nonce-error-corrections required only on LE\n"
+ "6: BE router detected (set to 1) - nonce-error-corrections required only on BE\n"
+ "7: not replaycount checked (set to 1) - replaycount not checked, nonce-error-corrections mandatory\n"
"\n"
"Do not edit, merge or convert pcapng files! This will remove optional comment fields!\n"
"Detection of bit errors does not work on cleaned dump files!\n"
|
Fix small typo
In test/ssl_test, parsing ExpectedClientSignHash ended up in the
expected_server_sign_hash field. | @@ -509,7 +509,7 @@ __owur static int parse_expected_server_sign_hash(SSL_TEST_CTX *test_ctx,
__owur static int parse_expected_client_sign_hash(SSL_TEST_CTX *test_ctx,
const char *value)
{
- return parse_expected_sign_hash(&test_ctx->expected_server_sign_hash,
+ return parse_expected_sign_hash(&test_ctx->expected_client_sign_hash,
value);
}
|
vere: replaces obsolete references to u3v_numb and u3A->sen | @@ -781,9 +781,22 @@ static u3_noun
_pier_wyrd_card(u3_pier* pir_u)
{
u3_lord* god_u = pir_u->god_u;
+ u3_noun sen;
_pier_work_time(pir_u);
- u3v_numb();
+
+ {
+ c3_l sev_l;
+ u3_noun now;
+ struct timeval tim_u;
+ gettimeofday(&tim_u, 0);
+
+ now = u3_time_in_tv(&tim_u);
+ sev_l = u3r_mug(now);
+ sen = u3dc("scot", c3__uv, sev_l);
+
+ u3z(now);
+ }
// XX god_u not necessarily available yet, refactor call sites
//
@@ -795,7 +808,7 @@ _pier_wyrd_card(u3_pier* pir_u)
u3nc(c3__nock, 4), // god_u->noc_y
u3_none);
u3_noun wir = u3nc(c3__arvo, u3_nul);
- return u3nt(c3__wyrd, u3nc(u3k(u3A->sen), ver), kel);
+ return u3nt(c3__wyrd, u3nc(sen, ver), kel);
}
/* _pier_wyrd_init(): send %wyrd.
|
Don't rely on mac address to filter XAL nodes | @@ -908,10 +908,11 @@ bool DeRestPluginPrivate::sendConfigureReportingRequest(BindingTask &bt)
rq.minInterval = 5;
rq.maxInterval = 180;
}
- else if ((bt.restNode->address().ext() & macPrefixMask) == xalMacPrefix)
+ else if ((bt.restNode->address().ext() & macPrefixMask) == xalMacPrefix ||
+ bt.restNode->node()->nodeDescriptor().manufacturerCode() == VENDOR_XAL)
{
rq.minInterval = 5;
- rq.maxInterval = 120;
+ rq.maxInterval = 3600;
}
else // default configuration
{
@@ -1264,7 +1265,7 @@ void DeRestPluginPrivate::checkLightBindingsForAttributeReporting(LightNode *lig
}
if ((lightNode->address().ext() & macPrefixMask) == deMacPrefix ||
- (lightNode->address().ext() & macPrefixMask) == xalMacPrefix)
+ lightNode->manufacturerCode() == VENDOR_XAL)
{
lightNode->enableRead(READ_BINDING_TABLE);
lightNode->setNextReadTime(READ_BINDING_TABLE, queryTime);
|
test: print test output immediately and decrease indenting | @@ -28,21 +28,20 @@ echo "Running $testcase:"
west build -d build/$testcase -b native_posix -- -DZMK_CONFIG="$(pwd)/$testcase" > /dev/null 2>&1
if [ $? -gt 0 ]; then
- echo "FAILED: $testcase did not build" >> ./build/tests/pass-fail.log
+ echo "FAILED: $testcase did not build" | tee -a ./build/tests/pass-fail.log
exit 1
-else
+fi
+
./build/$testcase/zephyr/zmk.exe | sed -e "s/.*> //" | tee build/$testcase/keycode_events_full.log | sed -n -f $testcase/events.patterns > build/$testcase/keycode_events.log
diff -au $testcase/keycode_events.snapshot build/$testcase/keycode_events.log
if [ $? -gt 0 ]; then
if [ -f $testcase/pending ]; then
- echo "PENDING: $testcase" >> ./build/tests/pass-fail.log
+ echo "PENDING: $testcase" | tee -a ./build/tests/pass-fail.log
exit 0
- else
- echo "FAILED: $testcase" >> ./build/tests/pass-fail.log
+ fi
+ echo "FAILED: $testcase" | tee -a ./build/tests/pass-fail.log
exit 1
fi
- else
- echo "PASS: $testcase" >> ./build/tests/pass-fail.log
+
+echo "PASS: $testcase" | tee -a ./build/tests/pass-fail.log
exit 0
- fi
-fi
|
Fix issue where if only some colors we overriden project wouldn't compile | @@ -13,7 +13,11 @@ export default {
settings: {
showCollisions: true,
showConnections: true,
- sidebarWidth: 300
+ sidebarWidth: 300,
+ customColorsWhite: "E0F8D0",
+ customColorsLight: "88C070",
+ customColorsDark: "306850",
+ customColorsBlack: "081820"
}
},
world: {},
|
Check for return value in the ftruncate call | @@ -758,7 +758,10 @@ static int gen_gperf(MainOptions *mo, const char *file, const char *name) {
if (wd == -1) {
wd = open (out, O_RDWR | O_CREAT, 0644);
} else {
- ftruncate (wd, 0);
+ if (ftruncate (wd, 0) == -1) {
+ close (wd);
+ return -1;
+ }
}
int rc = -1;
if (wd != -1) {
@@ -781,6 +784,9 @@ static int gen_gperf(MainOptions *mo, const char *file, const char *name) {
} else {
if (rc == 0) {
char *cname = get_cname (name);
+ if (!cname) {
+ return -1;
+ }
snprintf (buf, buf_size, "gperf -aclEDCIG --null-strings -H sdb_hash_c_%s"
" -N sdb_get_c_%s -t %s.gperf > %s.c\n", cname, cname, name, name);
free (cname);
@@ -792,8 +798,7 @@ static int gen_gperf(MainOptions *mo, const char *file, const char *name) {
eprintf ("Generated %s.c and %s.h\n", name, name);
}
} else {
- eprintf ("Cannot run gperf\n");
- eprintf ("%s\n", buf);
+ eprintf ("Cannot run gperf: %s\n", buf);
}
} else {
eprintf ("Outdated sdb binary in PATH?\n");
|
sse: add compile time range checks | @@ -1674,7 +1674,8 @@ simde_mm_div_ss (simde__m128 a, simde__m128 b) {
SIMDE__FUNCTION_ATTRIBUTES
int16_t
-simde_mm_extract_pi16 (simde__m64 a, const int imm8) {
+simde_mm_extract_pi16 (simde__m64 a, const int imm8)
+ HEDLEY_REQUIRE_MSG((imm8 & 3) == imm8, "imm8 must be in range [0, 3]") {
return simde__m64_to_private(a).i16[imm8];
}
#if defined(SIMDE_SSE_NATIVE) && defined(SIMDE_ARCH_X86_MMX) && !defined(HEDLEY_PGI_VERSION)
@@ -1756,7 +1757,8 @@ SIMDE_MM_SET_ROUNDING_MODE(unsigned int a) {
SIMDE__FUNCTION_ATTRIBUTES
simde__m64
-simde_mm_insert_pi16 (simde__m64 a, int16_t i, const int imm8) {
+simde_mm_insert_pi16 (simde__m64 a, int16_t i, const int imm8)
+ HEDLEY_REQUIRE_MSG((imm8 & 3) == imm8, "imm8 must be in range [0, 3]") {
simde__m64_private
r_,
a_ = simde__m64_to_private(a);
@@ -2796,7 +2798,8 @@ simde_mm_sfence (void) {
#else
SIMDE__FUNCTION_ATTRIBUTES
simde__m64
-simde_mm_shuffle_pi16 (simde__m64 a, const int imm8) {
+simde_mm_shuffle_pi16 (simde__m64 a, const int imm8)
+ HEDLEY_REQUIRE_MSG((imm8 & 0xff) == imm8, "imm8 must be in range [0, 255]") {
simde__m64_private r_;
simde__m64_private a_ = simde__m64_to_private(a);
@@ -2837,7 +2840,8 @@ HEDLEY_DIAGNOSTIC_POP
#else
SIMDE__FUNCTION_ATTRIBUTES
simde__m128
-simde_mm_shuffle_ps (simde__m128 a, simde__m128 b, const int imm8) {
+simde_mm_shuffle_ps (simde__m128 a, simde__m128 b, const int imm8)
+ HEDLEY_REQUIRE_MSG((imm8 & 0xff) == imm8, "imm8 must be in range [0, 255]") {
simde__m128_private
r_,
a_ = simde__m128_to_private(a),
|
h2olog: explain -dd in the help message | @@ -39,7 +39,7 @@ Usage: h2olog -p PID
h2olog quic -s response_header_name -p PID
Other options:
-h Print this help and exit
- -d Print debugging information
+ -d Print debugging information (-dd shows more)
-w Path to write the output (default: stdout)
)",
H2O_VERSION);
|
rsa/rsa_ossl.c: make RSAerr call in rsa_ossl_private_decrypt unconditional. | #include "internal/cryptlib.h"
#include "internal/bn_int.h"
#include "rsa_locl.h"
+#include "internal/constant_time_locl.h"
static int rsa_ossl_public_encrypt(int flen, const unsigned char *from,
unsigned char *to, RSA *rsa, int padding);
@@ -479,8 +480,8 @@ static int rsa_ossl_private_decrypt(int flen, const unsigned char *from,
RSAerr(RSA_F_RSA_OSSL_PRIVATE_DECRYPT, RSA_R_UNKNOWN_PADDING_TYPE);
goto err;
}
- if (r < 0)
RSAerr(RSA_F_RSA_OSSL_PRIVATE_DECRYPT, RSA_R_PADDING_CHECK_FAILED);
+ err_clear_last_constant_time(r >= 0);
err:
if (ctx != NULL)
|
change cblk args -n32 for -b32 | #
if [[ "$t0l" == "10140001" || "${env_action}" == "hdl_nvme_example" ]];then echo -e "$del\ntesting hdl_nvme_example"
step "snap_cblk -h" # write max 2blk, read max 32blk a 512B
- options="-n4 -t1" # 512B blocks, one thread
+ options="-n32 -t1" # 512B blocks, one thread
export CBLK_BUSYTIMEOUT=350
export CBLK_REQTIMEOUT=360
# export SNAP_TRACE=0xFFF
#
if [[ "$t0l" == "10141003" || "${env_action}" == "hls_search"* ]];then echo -e "$del\ntesting snap_search"
step "snap_search -h"
- for size in 1 2 30 257 1024 $rnd1k4k; do to=$((size*60+400))
+ for size in 1 2 30 257 1024 $rnd1k4k; do to=$((size*160+600))
char=$(cat /dev/urandom|tr -dc 'a-zA-Z0-9'|fold -w 1|head -n 1) # one random ASCII char to search for
head -c $size </dev/zero|tr '\0' 'A' >${size}.uni # same char mult times
cat /dev/urandom|tr -dc 'a-zA-Z0-9'|fold -w ${size}|head -n 1 >${size}.rnd;head ${size}.rnd # random data alphanumeric, includes EOF
|
Posix: fix build failure
Fixes: ("Posix Port: Comment and remove unused variables (#230)")
Authored-by: Thomas Pedersen | @@ -525,7 +525,7 @@ int iRet;
* will be unblocked.
*/
(void)pthread_sigmask( SIG_SETMASK, &xAllSignals,
- *&xSchedulerOriginalSignalMask );
+ &xSchedulerOriginalSignalMask );
/* SIG_RESUME is only used with sigwait() so doesn't need a
handler. */
|
SharePointRESTConnector: fix delete attachments | <field name="sp_site" type="string" indexed="true" stored="true" multiValued="false"/>
<field name="sp_item" type="string" indexed="true" stored="true" multiValued="false"/>
<field name="sp_parentids" type="string" indexed="true" stored="true" multiValued="true"/>
+ <field name="sp_attachments" type="string" indexed="true" stored="true" multiValued="true"/>
<!-- O365 fields -->
<field name="o365_attachments" type="string" indexed="true" stored="true" multiValued="true"/>
|
Match ledion's requested json format of _raw field.
Adds _metric, _metric_type, and _value fields. | @@ -418,6 +418,25 @@ addJsonFields(format_t* fmt, event_field_t* fields, yaml_emitter_t* emitter)
return TRUE;
}
+static const char*
+metricTypeStr(data_type_t type)
+{
+ switch (type) {
+ case DELTA:
+ return "counter";
+ case CURRENT:
+ return "gauge";
+ case DELTA_MS:
+ return "timer";
+ case HISTOGRAM:
+ return "histogram";
+ case SET:
+ return "set";
+ default:
+ return "unknown";
+ }
+}
+
static char *
fmtMetricJson(format_t *fmt, event_t *metric)
{
@@ -459,14 +478,33 @@ fmtMetricJson(format_t *fmt, event_t *metric)
if (!rv || !yaml_emitter_emit(&emitter, &event)) goto cleanup;
// add the base metric definition
+ rv = yaml_scalar_event_initialize(&event, NULL, (yaml_char_t*)YAML_STR_TAG,
+ (yaml_char_t*)"_metric", strlen("_metric"),
+ 0, 1, YAML_DOUBLE_QUOTED_SCALAR_STYLE);
+ if (!rv || !yaml_emitter_emit(&emitter, &event)) goto cleanup;
rv = yaml_scalar_event_initialize(&event, NULL, (yaml_char_t*)YAML_STR_TAG,
(yaml_char_t*)metric->name, strlen(metric->name),
0, 1, YAML_DOUBLE_QUOTED_SCALAR_STYLE);
if (!rv || !yaml_emitter_emit(&emitter, &event)) goto cleanup;
+ // add the metric type
+ rv = yaml_scalar_event_initialize(&event, NULL, (yaml_char_t*)YAML_STR_TAG,
+ (yaml_char_t*)"_metric_type", strlen("_metric_type"),
+ 0, 1, YAML_DOUBLE_QUOTED_SCALAR_STYLE);
+ if (!rv || !yaml_emitter_emit(&emitter, &event)) goto cleanup;
+ const char* metric_type = metricTypeStr(metric->type);
+ rv = yaml_scalar_event_initialize(&event, NULL, (yaml_char_t*)YAML_STR_TAG,
+ (yaml_char_t*)metric_type, strlen(metric_type),
+ 0, 1, YAML_DOUBLE_QUOTED_SCALAR_STYLE);
+ if (!rv || !yaml_emitter_emit(&emitter, &event)) goto cleanup;
+
+ // add the value
rv = snprintf(numbuf, sizeof(numbuf), "%lli", metric->value);
if (rv <= 0) goto cleanup;
-
+ rv = yaml_scalar_event_initialize(&event, NULL, (yaml_char_t*)YAML_STR_TAG,
+ (yaml_char_t*)"_value", strlen("_value"),
+ 0, 1, YAML_DOUBLE_QUOTED_SCALAR_STYLE);
+ if (!rv || !yaml_emitter_emit(&emitter, &event)) goto cleanup;
rv = yaml_scalar_event_initialize(&event, NULL, (yaml_char_t*)YAML_INT_TAG,
(yaml_char_t*)numbuf, rv, 1, 0, YAML_PLAIN_SCALAR_STYLE);
if (!rv || !yaml_emitter_emit(&emitter, &event)) goto cleanup;
|
perfmon: fixes for cache hierarchy
Account for occasional instances with the misses rates between caches
are inconsistent.
Type: fix | @@ -27,24 +27,28 @@ format_intel_core_cache_hit_miss (u8 *s, va_list *args)
switch (row)
{
case 0:
- s = format (s, "%.2f", (f64) ns->value[0] / ns->n_packets);
+ s = format (s, "%0.2f", (f64) ns->value[0] / ns->n_packets);
break;
case 1:
- s = format (s, "%.2f", (f64) ns->value[1] / ns->n_packets);
+ s = format (s, "%0.2f", (f64) ns->value[1] / ns->n_packets);
break;
case 2:
- s = format (s, "%.2f",
- (f64) (ns->value[1] - ns->value[2]) / ns->n_packets);
+ s =
+ format (s, "%0.2f",
+ (f64) (ns->value[1] - clib_min (ns->value[1], ns->value[2])) /
+ ns->n_packets);
break;
case 3:
- s = format (s, "%.2f", (f64) ns->value[2] / ns->n_packets);
+ s = format (s, "%0.2f", (f64) ns->value[2] / ns->n_packets);
break;
case 4:
- s = format (s, "%.2f",
- (f64) (ns->value[2] - ns->value[3]) / ns->n_packets);
+ s =
+ format (s, "%0.2f",
+ (f64) (ns->value[2] - clib_min (ns->value[2], ns->value[3])) /
+ ns->n_packets);
break;
case 5:
- s = format (s, "%.2f", (f64) ns->value[3] / ns->n_packets);
+ s = format (s, "%0.2f", (f64) ns->value[3] / ns->n_packets);
break;
}
|
Add support for MLOCK_ONFAULT to secure arena | # include <unistd.h>
# include <sys/types.h>
# include <sys/mman.h>
+# if defined(OPENSSL_SYS_LINUX)
+# include <sys/syscall.h>
+# include <linux/mman.h>
+# include <errno.h>
+# endif
# include <sys/param.h>
# include <sys/stat.h>
# include <fcntl.h>
@@ -433,8 +438,19 @@ static int sh_init(size_t size, int minsize)
if (mprotect(sh.map_result + aligned, pgsize, PROT_NONE) < 0)
ret = 2;
+#if defined(OPENSSL_SYS_LINUX) && defined(MLOCK_ONFAULT) && defined(SYS_mlock2)
+ if (syscall(SYS_mlock2, sh.arena, sh.arena_size, MLOCK_ONFAULT) < 0) {
+ if (errno == ENOSYS) {
if (mlock(sh.arena, sh.arena_size) < 0)
ret = 2;
+ } else {
+ ret = 2;
+ }
+ }
+#else
+ if (mlock(sh.arena, sh.arena_size) < 0)
+ ret = 2;
+#endif
#ifdef MADV_DONTDUMP
if (madvise(sh.arena, sh.arena_size, MADV_DONTDUMP) < 0)
ret = 2;
|
use highest MP value | @@ -1502,7 +1502,7 @@ for(c = 0; c < 20; c ++)
if(memcmp(zeiger->eapol, handshakelistptr->eapol, handshakelistptr->eapauthlen) != 0) continue;
if(zeiger->timestampgap > handshakelistptr->timestampgap) zeiger->timestampgap = handshakelistptr->timestampgap;
if(zeiger->rcgap > handshakelistptr->rcgap) zeiger->rcgap = handshakelistptr->rcgap;
- zeiger->status = handshakelistptr->status;
+ if(zeiger->status < handshakelistptr->status) zeiger->status = handshakelistptr->status;
zeiger->messageap |= handshakelistptr->messageap;
zeiger->messageclient |= handshakelistptr->messageclient;
return true;
|
aqua: revert erroneously committed changes
These changes, part of optimization experiments, had snuck in somewhere. | 1
lyfe
==
- ::NOTE if you use this separately, add spam-logs call here maybe?
- :: =/ =pass pub:ex:(get-keys:aqua-azimuth who lyfe)
- :: (inject-udiffs [who [0x0 0] %keys [lyfe 1 pass] |] ~)
- [~ state]
+ state
::
++ breach
|= who=@p
- ^- (quip card:agent:gall _state)
- ~& [%aqua-breach who]
- =^ * state (cycle-keys who)
+ ^- _state
+ =. state (cycle-keys who)
=/ prev (~(got by lives.azi.piers) who)
=/ rut +(rut.prev)
=. lives.azi.piers (~(put by lives.azi.piers) who [lyfe.prev rut])
=. logs.azi.piers
%+ weld logs.azi.piers
[(broke-continuity:lo:aqua-azimuth who rut) ~]
- :: =. state (spam-logs 10)
- =/ lyfe lyfe:(~(got by lives.azi.piers) who)
- =/ =pass pub:ex:(get-keys:aqua-azimuth who lyfe)
- ::TODO i think we're misinterpreting the boot flag, but it dont matter anyway
- :: %- inject-udiffs
- :: :~ [who [0x0 0] %keys [lyfe 1 pass] &]
- :: [who [0x0 0] %rift rut &]
- :: ==
- [~ (spam-logs 10)]
+ (spam-logs 10)
::
++ dawn
|= who=ship
|
Add run-binary-hex docs | @@ -150,6 +150,12 @@ The ``.hex`` file should be a text file with a hexadecimal number on each line.
Each line uses little-endian order, so this file would produce the bytes "ef be ad de 01 23". ``LOADMEM_ADDR`` specifies which address in memory (in hexadecimal) to write the first byte to. The default is 0x81000000.
+A special target that facilitates automatically generating a hex file for an entire elf RISC-V exectuable and then running the simulator with the appropriate flags is also available.
+
+.. code-block:: shell
+
+ make run-binary-hex BINARY=test.riscv
+
Generating Waveforms
-----------------------
|
.ticp project loads from command line | @@ -1564,9 +1564,11 @@ static void onConsoleExportCommand(Console* console, const char* param)
#if defined(TIC80_PRO)
+static const char ProjectExt[] = ".ticp";
+
static const char* getProjectName(const char* name)
{
- return getName(name, ".ticp");
+ return getName(name, ProjectExt);
}
static void buf2str(const void* data, s32 size, char* ptr, bool flip)
@@ -1802,7 +1804,7 @@ static void loadBinarySection(const char* project, const char* tag, s32 count, v
}
}
-static bool loadProject(Console* console, const char* data, s32 size)
+static bool loadProject(Console* console, const char* data, s32 size, tic_cartridge* dst)
{
tic_mem* tic = console->tic;
@@ -1838,7 +1840,7 @@ static bool loadProject(Console* console, const char* data, s32 size)
loadBinarySection(project, "COVER", 1, &cart->cover, -1, true);
- SDL_memcpy(&tic->cart, cart, sizeof(tic_cartridge));
+ SDL_memcpy(dst, cart, sizeof(tic_cartridge));
SDL_free(cart);
@@ -1853,6 +1855,8 @@ static bool loadProject(Console* console, const char* data, s32 size)
static void onConsoleLoadProjectCommandConfirmed(Console* console, const char* param)
{
+ tic_mem* tic = console->tic;
+
if(param)
{
s32 size = 0;
@@ -1860,7 +1864,7 @@ static void onConsoleLoadProjectCommandConfirmed(Console* console, const char* p
void* data = fsLoadFile(console->fs, name, &size);
- if(data && loadProject(console, data, size))
+ if(data && loadProject(console, data, size, &tic->cart))
{
strcpy(console->romName, name);
@@ -2665,8 +2669,18 @@ static void cmdLoadCart(Console* console, const char* name)
void* data = fsReadFile(name, &size);
if(data)
+ {
+#if defined(TIC80_PRO)
+ if(strstr(name, ProjectExt) == name + strlen(name) - strlen(ProjectExt))
+ {
+ loadProject(console, data, size, &embed.file);
+ }
+ else
+#endif
{
loadCart(console->tic, &embed.file, data, size, true);
+ }
+
embed.yes = true;
SDL_free(data);
|
Fix the "uri-security-supported" value to be based on the current connection
(Issue | @@ -45,6 +45,7 @@ Changes in CUPS v2.3.3op1
- Fixed remote access to the cupsd.conf and log files (Issue #24)
- Fixed fax phone number handling with GNOME (Issue #40)
- Fixed potential rounding error in rastertopwg filter (Issue #41)
+- Fixed the "uri-security-supported" value from the scheduler (Issue #42)
- Fixed IPP backend crash bug with "printer-alert" values (Issue #43)
- Fixed crash in rastertopwg (Apple issue #5773)
- Fixed cupsManualCopies values in IPP Everywhere PPDs (Apple issue #5807)
|
Profiling: Mention filename convention | @@ -42,7 +42,19 @@ ninja
### Profiling the Code
-We use the tool [`benchmark_plugingetset`](../../benchmarks/README.md) to profile the execution time of [YAy PEG][]. The file [`test.yaml`](../../benchmarks/data/test.yaml) serves as input file for the plugin. First we call `benchmark_plugingetset` directly to make sure that everything works as expected:
+We use the tool [`benchmark_plugingetset`](../../benchmarks/README.md) to profile the execution time of [YAy PEG][]. The file [`test.yaml`](../../benchmarks/data/test.yaml) serves as input file for the plugin. Since `benchmark_plugingetset` requires a data file called
+
+```sh
+test.$plugin.in
+```
+
+, we save a copy of `test.yaml` as `test.yaypeg.in`:
+
+```sh
+cp benchmarks/data/test.yaml benchmarks/data/test.yaypeg.in
+```
+
+. After that we call `benchmark_plugingetset` directly to make sure that everything works as expected:
```sh
build/bin/benchmark_plugingetset benchmarks/data user yaypeg get
|
in_http: memory leak correction | @@ -261,6 +261,10 @@ int http_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);
|
afalg: fix coverity improper use of negative value | @@ -544,7 +544,7 @@ static int afalg_cipher_init(EVP_CIPHER_CTX *ctx, const unsigned char *key,
const unsigned char *iv, int enc)
{
int ciphertype;
- int ret;
+ int ret, len;
afalg_ctx *actx;
const char *ciphername;
@@ -588,8 +588,9 @@ static int afalg_cipher_init(EVP_CIPHER_CTX *ctx, const unsigned char *key,
if (ret < 1)
return 0;
-
- ret = afalg_set_key(actx, key, EVP_CIPHER_CTX_get_key_length(ctx));
+ if ((len = EVP_CIPHER_CTX_get_key_length(ctx)) <= 0)
+ goto err;
+ ret = afalg_set_key(actx, key, len);
if (ret < 1)
goto err;
|
Add undocumented PSM functions | * Process Hacker -
* Appmodel support functions
*
- * Copyright (C) 2017-2018 dmex
+ * Copyright (C) 2017-2019 dmex
*
* This file is part of Process Hacker.
*
@@ -73,6 +73,34 @@ static HRESULT (WINAPI* AppPolicyGetWindowingModel_I)(
_Out_ AppPolicyWindowingModel *ProcessWindowingModelPolicy
) = NULL;
+// rev
+static NTSTATUS (NTAPI* PsmGetKeyFromProcess_I)(
+ _In_ HANDLE ProcessHandle,
+ _Out_ PVOID KeyBuffer,
+ _Inout_ PULONG KeyLength
+ ) = NULL;
+
+// rev
+static NTSTATUS (NTAPI* PsmGetKeyFromToken_I)(
+ _In_ HANDLE TokenHandle,
+ _Out_ PVOID KeyBuffer,
+ _Inout_ PULONG KeyLength
+ ) = NULL;
+
+// rev
+static NTSTATUS (NTAPI* PsmGetApplicationNameFromKey_I)(
+ _In_ PVOID KeyBuffer,
+ _Out_ PVOID NameBuffer,
+ _Inout_ PULONG NameLength
+ ) = NULL;
+
+// rev
+static NTSTATUS (NTAPI* PsmGetPackageFullNameFromKey_I)(
+ _In_ PVOID KeyBuffer,
+ _Out_ PVOID NameBuffer,
+ _Inout_ PULONG NameLength
+ ) = NULL;
+
typedef enum _START_MENU_APP_ITEMS_FLAGS
{
SMAIF_DEFAULT = 0,
|
Fix typo to create only 1 switch resource for Namron switches | @@ -5142,7 +5142,7 @@ void DeRestPluginPrivate::addSensorNode(const deCONZ::Node *node, const deCONZ::
modelId.startsWith(QLatin1String("ICZB-RM")) || // icasa remote
modelId.startsWith(QLatin1String("ZGRC-KEY")) || // Sunricher remote
modelId.startsWith(QLatin1String("ED-1001")) || // EcoDim switches
- modelId.startsWith(QLatin1String("ED-1001"))) // Namron switches
+ modelId.startsWith(QLatin1String("45127"))) // Namron switches
{
if (i->endpoint() == 0x01) // create sensor only for first endpoint
{
|
Changed lv_dropdown_add_option parameter from int to uint16_t | @@ -119,10 +119,10 @@ void lv_dropdown_set_static_options(lv_obj_t * ddlist, const char * options);
/**
* Add an options to a drop down list from a string. Only works for dynamic options.
* @param ddlist pointer to drop down list object
- * @param options a string without '\n'. E.g. "Four"
- * @param position the insert position, indexed from 0, LV_DROPDOWN_POS_LAST = end of string
+ * @param option a string without '\n'. E.g. "Four"
+ * @param pos the insert position, indexed from 0, LV_DROPDOWN_POS_LAST = end of string
*/
-void lv_dropdown_add_option(lv_obj_t * ddlist, const char * option, int pos);
+void lv_dropdown_add_option(lv_obj_t * ddlist, const char * option, uint16_t pos);
/**
* Set the selected option
|
CMakeLists: update libwally (and secp256k1)
Pulled in libwally and rebased our patches, and put them into the
bitbox02-firmare branch of
(reviously firmware_v2
branch). | @@ -23,7 +23,7 @@ if(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/libwally-core-${TARGET_CODE}-build/.li
file(MAKE_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/libwally-core-${TARGET_CODE}-build/)
ExternalProject_Add(libwally-core
GIT_REPOSITORY https://github.com/shiftdevices/libwally-core.git
- GIT_TAG firmware_v2
+ GIT_TAG bitbox02-firmware
PREFIX ${CMAKE_CURRENT_BINARY_DIR}/${TARGET_CODE}/libwally-core
STEP_TARGETS build-libwally
SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/libwally-core
|
Fixed the talk command mark to be cool with recent changes to the structures. | ::
++ audi
^- $-(json (unit audience))
- (op parn memb)
- ::
- ++ memb (ot [envelope+lope delivery+(ci (soft delivery) so) ~])
- ++ lope (ot [visible+bo sender+(mu (su parn)) ~])
+ (as (su parn))
::
++ parn
^- $-(nail (like partner))
::
++ speech-or-eval $?(speech {$eval p/@t} {$mor ses/(list speech-or-eval)})
++ eval
- |= a/(trel @da bouquet speech-or-eval)
+ |= a/(pair @da speech-or-eval)
^- statement
%= a
- r
+ q
|- ^- speech
- ?: ?=($mor -.r.a)
- [%mor (turn ses.r.a |=(b/speech-or-eval ^$(r.a b)))]
- ?. ?=($eval -.r.a) r.a
- =- [%fat tank+- %exp p.r.a]
+ ?: ?=($mor -.q.a)
+ ::[%mor (turn ses.q.a |=(b/speech-or-eval ^$(q.a b)))]
+ ~& %todo-talk-command-mark ::TODO fix
+ *speech
+ ?. ?=($eval -.q.a) q.a
+ =- [%exp p.q.a -]
=+ pax=[&1:% &2:% (scot %da p.a) |3:%]
- p:(mule |.([(sell (slap !>(..zuse) (rain pax p.r.a)))]~))
+ p:(mule |.([(sell (slap !>(..zuse) (rain pax p.q.a)))]~))
==
::
++ stam
|
Documentation: Use bold font to emphasize word | @@ -32,7 +32,7 @@ plugin that was used to mount the configuration data. `kdbSet()` calls `elektraP
that allow the plug-in to work:
- `elektraPluginOpen()` is designed to allow each plug-in to do initialization if necessary.
-- `elektraPluginGet()` is designed to turn information from a configuration file into a usable KeySet, this is technically the only function that is REQUIRED in a plug-in.
+- `elektraPluginGet()` is designed to turn information from a configuration file into a usable KeySet, this is technically the only function that is **required** in a plug-in.
- `elektraPluginSet()` is designed to store the information from the keyset back into a configuration file.
- `elektraPluginError()` is designed to allow proper rollback of operations if needed and is called if any plugin fails during the set operation. This allows exception-safety.
- `elektraPluginClose()` is used to free resources that might be required for the plug-in.
|
CHANGE valgrind tests return 1 on error | @@ -17,7 +17,7 @@ if (ENABLE_VALGRIND_TESTS)
find_program(valgrind_FOUND valgrind)
if (valgrind_FOUND)
foreach (test_name IN LISTS tests)
- add_test(${test_name}_valgrind valgrind --leak-check=full ${CMAKE_BINARY_DIR}/tests/${test_name})
+ add_test(${test_name}_valgrind valgrind --leak-check=full --error-exitcode=1 ${CMAKE_BINARY_DIR}/tests/${test_name})
endforeach()
else (valgrind_FOUND)
Message("-- valgrind executable not found! Disabling memory leaks tests")
|
SOVERSION bump to version 1.3.15 | @@ -48,7 +48,7 @@ set(LIBNETCONF2_VERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION
# with backward compatible change and micro version is connected with any internal change of the library.
set(LIBNETCONF2_MAJOR_SOVERSION 1)
set(LIBNETCONF2_MINOR_SOVERSION 3)
-set(LIBNETCONF2_MICRO_SOVERSION 14)
+set(LIBNETCONF2_MICRO_SOVERSION 15)
set(LIBNETCONF2_SOVERSION_FULL ${LIBNETCONF2_MAJOR_SOVERSION}.${LIBNETCONF2_MINOR_SOVERSION}.${LIBNETCONF2_MICRO_SOVERSION})
set(LIBNETCONF2_SOVERSION ${LIBNETCONF2_MAJOR_SOVERSION})
|
ipc_type -> dill_ipc_type | @@ -37,7 +37,7 @@ static int dill_ipc_resolve(const char *addr, struct sockaddr_un *su);
static int dill_ipc_makeconn(int fd, void *mem);
dill_unique_id(ipc_listener_type);
-dill_unique_id(ipc_type);
+dill_unique_id(dill_ipc_type);
/******************************************************************************/
/* UNIX connection socket */
@@ -67,7 +67,7 @@ DILL_CT_ASSERT(sizeof(struct dill_ipc_storage) >= sizeof(struct dill_ipc_conn));
static void *dill_ipc_hquery(struct dill_hvfs *hvfs, const void *type) {
struct dill_ipc_conn *self = (struct dill_ipc_conn*)hvfs;
if(type == dill_bsock_type) return &self->bvfs;
- if(type == ipc_type) return self;
+ if(type == dill_ipc_type) return self;
errno = ENOTSUP;
return NULL;
}
@@ -139,7 +139,7 @@ static int dill_ipc_brecvl(struct dill_bsock_vfs *bvfs,
}
int dill_ipc_done(int s, int64_t deadline) {
- struct dill_ipc_conn *self = dill_hquery(s, ipc_type);
+ struct dill_ipc_conn *self = dill_hquery(s, dill_ipc_type);
if(dill_slow(!self)) return -1;
if(dill_slow(self->outdone)) {errno = EPIPE; return -1;}
if(dill_slow(self->outerr)) {errno = ECONNRESET; return -1;}
@@ -161,7 +161,7 @@ int dill_ipc_close(int s, int64_t deadline) {
if(dill_hquery(s, ipc_listener_type)) {
return dill_hclose(s);
}
- struct dill_ipc_conn *self = dill_hquery(s, ipc_type);
+ struct dill_ipc_conn *self = dill_hquery(s, dill_ipc_type);
if(dill_slow(!self)) return -1;
if(dill_slow(self->inerr || self->outerr)) {err = ECONNRESET; goto error;}
/* If not done already, flush the outbound data and start the terminal
|
wuffs gen -version=0.2.0-alpha.27 | @@ -50,13 +50,14 @@ extern "C" {
// forwards compatibility guarantees.
//
// WUFFS_VERSION was overridden by "wuffs gen -version" on 2018-12-29 UTC,
-// based on revision 314b1209edcd2c7d02a10064fc299ec6a22b3ea2.
+// based on revision 2b631202bcd9cd86eec387bd98c1c2eb4b4afd50.
#define WUFFS_VERSION ((uint64_t)0x0000000000020000)
#define WUFFS_VERSION_MAJOR ((uint64_t)0x00000000)
#define WUFFS_VERSION_MINOR ((uint64_t)0x0002)
#define WUFFS_VERSION_PATCH ((uint64_t)0x0000)
-#define WUFFS_VERSION_EXTENSION "alpha.26"
-#define WUFFS_VERSION_STRING "0.2.0-alpha.26"
+#define WUFFS_VERSION_EXTENSION "alpha.27"
+#define WUFFS_VERSION_STRING "0.2.0-alpha.27"
+#define WUFFS_VERSION_GIT_REV_LIST_COUNT 1527
// Define WUFFS_CONFIG__STATIC_FUNCTIONS to make all of Wuffs' functions have
// static storage. The motivation is discussed in the "ALLOW STATIC
|
Joxer: reduce battery I2C frequency to 50 kHz
Follow CL:3721954 to reduce battery I2C frquency.
BRANCH=none
TEST=make sure EC can read battery info and battery can be charged. | &i2c1 {
label = "I2C_BATTERY";
- clock-frequency = <I2C_BITRATE_STANDARD>;
+ clock-frequency = <50000>;
pinctrl-0 = <&i2c1_clk_gpc1_default
&i2c1_data_gpc2_default>;
pinctrl-names = "default";
|
fixed set_false_path for the nvme_reset_n_q signal | ############################################################################
##
-set_false_path -from [get_ports sys_rst_n]
+set_false_path -from [get_pins nvme_reset_n_q*/C] -to [get_clocks pcie_clk?]
+
# ------------------------------
# Pin Locations & I/O Standards
# ------------------------------
|
fix segfault if no plugin is provided | @@ -2331,6 +2331,11 @@ protoop_transaction_t *get_next_transaction(picoquic_cnx_t *cnx, protoop_transac
/* This implements a deficit round robin with bursts */
void picoquic_frame_fair_reserve(picoquic_cnx_t *cnx)
{
+ /* If there is no transaction, there is no frame to reserve! */
+ if (!cnx->transactions) {
+ return;
+ }
+ /* Handle the first call */
if (!cnx->first_drr) {
cnx->first_drr = cnx->transactions;
}
|
GRIB2: Implement Lambert Azimuthal geoiterator on oblate spheroid (First working version) | @@ -257,7 +257,7 @@ static int init_oblate(grib_handle* h,
xy_x /= Q__dd;
xy_y *= Q__dd;
rho = hypot(xy_x, xy_y);
- Assert(rho >= EPS10); // TODO
+ Assert(rho >= EPS10); // TODO(masn): check
sCe = 2. * asin(.5 * rho / Q__rq);
cCe = cos(sCe);
sCe = sin(sCe);
@@ -274,7 +274,8 @@ static int init_oblate(grib_handle* h,
//printf("lp__phi=%g, lp__lam=%g\n", lp__phi * RAD2DEG, lp__lam* RAD2DEG);
*lats = lp__phi * RAD2DEG;
- *lons = lp__lam * RAD2DEG;
+ *lons = (lp__lam + centralLongitudeInRadians) * RAD2DEG;
+
//rho = sqrt(x * x + ysq);
//if (rho > epsilon) {
// c = 2 * asin(rho / (2.0 * radius));
@@ -318,7 +319,7 @@ static int init_oblate(grib_handle* h,
xy_x /= Q__dd;
xy_y *= Q__dd;
rho = hypot(xy_x, xy_y);
- Assert(rho >= EPS10); // TODO
+ Assert(rho >= EPS10);
sCe = 2. * asin(.5 * rho / Q__rq);
cCe = cos(sCe);
sCe = sin(sCe);
@@ -334,7 +335,6 @@ static int init_oblate(grib_handle* h,
lp__phi = pj_authlat(asin(ab), APA); // latitude
printf("lp__phi=%g, lp__lam=%g\n", lp__phi, lp__lam);
-
latDeg = latRad * RAD2DEG; /* Convert to degrees */
lonDeg = lonRad * RAD2DEG;
lonDeg = normalise_longitude_in_degrees(lonDeg);
@@ -343,8 +343,7 @@ static int init_oblate(grib_handle* h,
}
}
#endif
- //grib_context_log(h->context, GRIB_LOG_ERROR, "Lambert Azimuthal Equal Area only supported for spherical earth.");
- //return GRIB_GEOCALCULUS_PROBLEM;
+
return GRIB_SUCCESS;
}
|
refactors effect iteration in arvo +poke | ^- [(list ovum) *]
=> .(+< ((hard ,[now=@da ovo=ovum]) +<))
=^ ova +>+.$ (^poke now ovo)
+ =| out=(list ovum)
|- ^- [(list ovum) *]
?~ ova
- [~ +>.^$]
+ [(flop out) +>.^$]
:: upgrade the kernel -- %vega here is an effect from a vane
::
?: ?=(%vega -.q.i.ova)
:: and passing the rest through as output
::
=^ vov +>+.^$ (feck now i.ova)
- ?~ vov
+ =? out ?=(^ vov) [+.vov out]
$(ova t.ova)
- =/ avo $(ova t.ova)
- [[+.vov -.avo] +.avo]
::
++ wish |=(* (^wish ((hard @ta) +<))) :: 22
--
|
ADDING FEC - fix the get of the offset for packet header | @@ -885,9 +885,9 @@ protoop_arg_t get_ph(picoquic_packet_header *ph, access_key_t ak)
case PH_AK_DESTINATION_CNXID:
return (protoop_arg_t) &ph->dest_cnx_id;
case PH_AK_OFFSET:
- return (protoop_arg_t) &ph->offset;
+ return (protoop_arg_t) ph->offset;
case PH_AK_PAYLOAD_LENGTH:
- return (protoop_arg_t) &ph->payload_length;
+ return (protoop_arg_t) ph->payload_length;
default:
printf("ERROR: unknown packet header access key %u\n", ak);
return 0;
|
Display uuid of client certification app for automation purpose | */
#include "oc_api.h"
+#include "oc_core_res.h"
#include "port/oc_clock.h"
#include "oc_pki.h"
#include "oc_introspection.h"
@@ -505,6 +506,15 @@ factory_presets_cb(size_t device, void *data)
#endif /* OC_SECURITY && OC_PKI */
}
+void
+display_device_uuid(void)
+{
+ char buffer[OC_UUID_LEN];
+ oc_uuid_to_str(oc_core_get_device_id(0), buffer, sizeof(buffer));
+
+ PRINT("Started device with ID: %s\n", buffer);
+}
+
int
main(void)
{
@@ -536,6 +546,8 @@ main(void)
return -1;
}
+ display_device_uuid();
+
int c;
while (quit != 1) {
display_menu();
|
stm32/moduos: Add VfsLfs1 and VfsLfs2 to uos module, if enabled. | #include "extmod/misc.h"
#include "extmod/vfs.h"
#include "extmod/vfs_fat.h"
+#include "extmod/vfs_lfs.h"
#include "genhdr/mpversion.h"
#include "rng.h"
#include "usb.h"
@@ -174,6 +175,12 @@ STATIC const mp_rom_map_elem_t os_module_globals_table[] = {
#if MICROPY_VFS_FAT
{ MP_ROM_QSTR(MP_QSTR_VfsFat), MP_ROM_PTR(&mp_fat_vfs_type) },
#endif
+ #if MICROPY_VFS_LFS1
+ { MP_ROM_QSTR(MP_QSTR_VfsLfs1), MP_ROM_PTR(&mp_type_vfs_lfs1) },
+ #endif
+ #if MICROPY_VFS_LFS2
+ { MP_ROM_QSTR(MP_QSTR_VfsLfs2), MP_ROM_PTR(&mp_type_vfs_lfs2) },
+ #endif
};
STATIC MP_DEFINE_CONST_DICT(os_module_globals, os_module_globals_table);
|
poly1305/poly1305_ieee754.c: add support for MIPS. | /*
- * Copyright 2016 The OpenSSL Project Authors. All Rights Reserved.
+ * Copyright 2016-20018 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the OpenSSL license (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
@@ -101,6 +101,8 @@ static const u64 one = 1;
static const u32 fpc = 1;
#elif defined(__sparc__)
static const u64 fsr = 1ULL<<30;
+#elif defined(__mips__)
+static const u32 fcsr = 1;
#else
#error "unrecognized platform"
#endif
@@ -147,6 +149,11 @@ int poly1305_init(void *ctx, const unsigned char key[16])
asm volatile ("stx %%fsr,%0":"=m"(fsr_orig));
asm volatile ("ldx %0,%%fsr"::"m"(fsr));
+#elif defined(__mips__)
+ u32 fcsr_orig;
+
+ asm volatile ("cfc1 %0,$31":"=r"(fcsr_orig));
+ asm volatile ("ctc1 %0,$31"::"r"(fcsr));
#endif
/* r &= 0xffffffc0ffffffc0ffffffc0fffffff */
@@ -206,6 +213,8 @@ int poly1305_init(void *ctx, const unsigned char key[16])
asm volatile ("lfpc %0"::"m"(fpc_orig));
#elif defined(__sparc__)
asm volatile ("ldx %0,%%fsr"::"m"(fsr_orig));
+#elif defined(__mips__)
+ asm volatile ("ctc1 %0,$31"::"r"(fcsr_orig));
#endif
}
@@ -262,6 +271,11 @@ void poly1305_blocks(void *ctx, const unsigned char *inp, size_t len,
asm volatile ("stx %%fsr,%0":"=m"(fsr_orig));
asm volatile ("ldx %0,%%fsr"::"m"(fsr));
+#elif defined(__mips__)
+ u32 fcsr_orig;
+
+ asm volatile ("cfc1 %0,$31":"=r"(fcsr_orig));
+ asm volatile ("ctc1 %0,$31"::"r"(fcsr));
#endif
/*
@@ -408,6 +422,8 @@ void poly1305_blocks(void *ctx, const unsigned char *inp, size_t len,
asm volatile ("lfpc %0"::"m"(fpc_orig));
#elif defined(__sparc__)
asm volatile ("ldx %0,%%fsr"::"m"(fsr_orig));
+#elif defined(__mips__)
+ asm volatile ("ctc1 %0,$31"::"r"(fcsr_orig));
#endif
}
|
msgSend: Check if msg != NULL
JIRA: | @@ -310,11 +310,16 @@ int proc_send(u32 port, msg_t *msg)
thread_t *sender;
spinlock_ctx_t sc;
+ if (msg == NULL)
+ return -EINVAL;
+
if ((p = proc_portGet(port)) == NULL)
return -EINVAL;
sender = proc_current();
+ /* TODO - check if msg pointer belongs to user vm_map */
+
hal_memcpy(&kmsg.msg, msg, sizeof(msg_t));
kmsg.src = sender->process;
kmsg.threads = NULL;
|
h2olog: remove a redundant http_version variable | @@ -32,7 +32,6 @@ BPF_PERF_OUTPUT(reqbuf);
int trace_receive_req(struct pt_regs *ctx) {
struct req_line_t line = {};
uint64_t conn_id, req_id;
- uint32_t http_version;
bpf_usdt_readarg(1, ctx, &line.conn_id);
bpf_usdt_readarg(2, ctx, &line.req_id);
|
rename tls options | @@ -121,9 +121,9 @@ const char *kadnode_usage_str = "KadNode - A P2P name resolution daemon.\n"
" --fwd-disable Disable UPnP/NAT-PMP to forward router ports.\n\n"
#endif
#ifdef TLS
-" --tls-client-entry <path> Path to file or folder of CA certificates to authenticate addresses.\n"
+" --tls-client-cert <path> Path to file or folder of CA certificates.\n"
" This option may occur multiple times.\n\n"
-" --tls-server-entry <triple> Add a comma separated triple of domain, certificate and key for the TLS server.\n"
+" --tls-server-cert <triple> Add a comma separated triple of server domain, certificate and key.\n"
" This option may occur multiple times.\n"
" Example: kanode.p2p,kadnode.crt,kadnode.key\n\n"
#endif
@@ -357,8 +357,8 @@ static struct option_t options[] = {
{"--nss-port", 1, oNssPort},
#endif
#ifdef TLS
- {"--tls-client-entry", 1, oTlsClientEntry},
- {"--tls-server-entry", 1, oTlsServerEntry},
+ {"--tls-client-cert", 1, oTlsClientEntry},
+ {"--tls-server-cert", 1, oTlsServerEntry},
#endif
{"--config", 1, oConfig},
{"--mode", 1, oMode},
|
Fix leak with no-ec config | @@ -1195,9 +1195,9 @@ void SSL_free(SSL *s)
#ifndef OPENSSL_NO_EC
OPENSSL_free(s->ext.ecpointformats);
OPENSSL_free(s->ext.peer_ecpointformats);
+#endif /* OPENSSL_NO_EC */
OPENSSL_free(s->ext.supportedgroups);
OPENSSL_free(s->ext.peer_supportedgroups);
-#endif /* OPENSSL_NO_EC */
sk_X509_EXTENSION_pop_free(s->ext.ocsp.exts, X509_EXTENSION_free);
#ifndef OPENSSL_NO_OCSP
sk_OCSP_RESPID_pop_free(s->ext.ocsp.ids, OCSP_RESPID_free);
@@ -3291,8 +3291,8 @@ void SSL_CTX_free(SSL_CTX *a)
#ifndef OPENSSL_NO_EC
OPENSSL_free(a->ext.ecpointformats);
- OPENSSL_free(a->ext.supportedgroups);
#endif
+ OPENSSL_free(a->ext.supportedgroups);
OPENSSL_free(a->ext.alpn);
OPENSSL_secure_free(a->ext.secure);
|
max payne fov update | @@ -601,7 +601,8 @@ DWORD WINAPI Init(LPVOID bDelay)
//FOV
static auto FOVHook = [](uintptr_t _this, uintptr_t edx) -> float
{
- Screen.fFieldOfView = GetFOV2(*(float*)(_this + 88), Screen.fAspectRatio) * Screen.fFOVFactor;
+ float f = AdjustFOV(*(float*)(_this + 0x58) * 57.295776f, Screen.fAspectRatio) * Screen.fFOVFactor;
+ Screen.fFieldOfView = (((f > 179.0f) ? 179.0f : f) / 57.295776f);
return Screen.fFieldOfView;
};
|
dotprod_crcf/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
@@ -139,21 +139,38 @@ void runtest_dotprod_crcf(unsigned int _n)
y_test += h[i] * x[i];
// create and run dot product object
- float complex y;
+ float complex y_struct;
dotprod_crcf dp;
dp = dotprod_crcf_create(h,_n);
- dotprod_crcf_execute(dp, x, &y);
+ dotprod_crcf_execute(dp, x, &y_struct);
dotprod_crcf_destroy(dp);
+ // run unstructured
+ float complex y_run, y_run4;
+ dotprod_crcf_run (h,x,_n,&y_run );
+ dotprod_crcf_run4(h,x,_n,&y_run4);
+
// print results
if (liquid_autotest_verbose) {
- printf(" dotprod-crcf-%-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-crcf-%-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-crcf-%-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-crcf-%-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
|
Close file handle in any case | @@ -3124,16 +3124,14 @@ ts_bspline_load(const char *path,
}
value = json_parse_file(path);
if (!value) {
- TS_RETURN_0(status, TS_PARSE_ERROR,
+ TS_THROW_0(try, err, status, TS_PARSE_ERROR,
"invalid json input")
}
TS_CALL(try, err, ts_int_bspline_parse_json(
value, spline, status))
TS_FINALLY
- if (file)
- fclose(file);
- if (value)
- json_value_free(value);
+ if (file) fclose(file);
+ if (value) json_value_free(value);
TS_CATCH(err)
ts_bspline_free(spline);
TS_END_TRY_RETURN(err)
|
placed the warning in check_readability_of_stream.
here we can say that the file you provided is empty. | @@ -132,6 +132,10 @@ namespace ebi
{
std::string compression_type = ebi::vcf::get_compression_from_magic_num(line);
+ if (line.size() == 0) {
+ BOOST_LOG_TRIVIAL(warning) << "The VCF file provided is empty";
+ }
+
if (compression_type != NO_EXT) {
throw std::invalid_argument{"Input file should not be compressed twice"};
}
|
nimble/ll: Fix start point for supervision timeout
We should count supervision timeout from the end of last reveived packet
and not the beginning. | @@ -3615,7 +3615,7 @@ ble_ll_conn_rx_isr_end(uint8_t *rxbuf, struct ble_mbuf_hdr *rxhdr)
uint8_t rem_bytes;
uint8_t opcode = 0;
uint8_t rx_pyld_len;
- uint32_t endtime;
+ uint32_t begtime;
uint32_t add_usecs;
struct os_mbuf *txpdu;
struct ble_ll_conn_sm *connsm;
@@ -3652,7 +3652,7 @@ ble_ll_conn_rx_isr_end(uint8_t *rxbuf, struct ble_mbuf_hdr *rxhdr)
* but for the 32768 crystal we add the time it takes to send the packet
* to the 'additional usecs' field to save some calculations.
*/
- endtime = rxhdr->beg_cputime;
+ begtime = rxhdr->beg_cputime;
#if BLE_LL_BT5_PHY_SUPPORTED
rx_phy_mode = connsm->phy_data.rx_phy_mode;
#else
@@ -3687,7 +3687,8 @@ ble_ll_conn_rx_isr_end(uint8_t *rxbuf, struct ble_mbuf_hdr *rxhdr)
connsm->cons_rxd_bad_crc = 0;
/* Set last valid received pdu time (resets supervision timer) */
- connsm->last_rxd_pdu_cputime = endtime;
+ connsm->last_rxd_pdu_cputime = begtime +
+ os_cputime_usecs_to_ticks(add_usecs);
/*
* Check for valid LLID before proceeding. We have seen some weird
@@ -3834,7 +3835,7 @@ chk_rx_terminate_ind:
if (rx_pyld_len && CONN_F_ENCRYPTED(connsm)) {
rx_pyld_len += BLE_LL_DATA_MIC_LEN;
}
- if (reply && ble_ll_conn_can_send_next_pdu(connsm, endtime, add_usecs)) {
+ if (reply && ble_ll_conn_can_send_next_pdu(connsm, begtime, add_usecs)) {
rc = ble_ll_conn_tx_data_pdu(connsm);
}
|
session CHANGE increase PS queue timeout
On slower systems 1 s was too little,
changed to 5 s.
Fixes cesnet/netopeer2#465 | @@ -323,9 +323,8 @@ struct nc_server_opts {
/**
* Timeout in msec for a thread to wait for its turn to work with a pollsession structure.
- *
*/
-#define NC_PS_QUEUE_TIMEOUT 1000
+#define NC_PS_QUEUE_TIMEOUT 5000
/**
* Time slept in msec if no endpoint was created for a running Call Home client.
|
webp-lossless-bitstream-spec: add amendment note
for recent changes to color transform, simple code length code, image
structure and details of decoding prefix codes | @@ -16,6 +16,8 @@ _Jyrki Alakuijala, Ph.D., Google, Inc., 2012-06-19_
Paragraphs marked as \[AMENDED\] were amended on 2014-09-16.
+Paragraphs marked as \[AMENDED2\] were amended on 2022-05-13.
+
Abstract
--------
@@ -367,6 +369,7 @@ the predicted value for the left-topmost pixel of the image is
0xff000000, L-pixel for all pixels on the top row, and T-pixel for all
pixels on the leftmost column.
+\[AMENDED2\]
Addressing the TR-pixel for pixels on the rightmost column is
exceptional. The pixels on the rightmost column are predicted by using
the modes \[0..13\] just like pixels not on the border, but the leftmost pixel
@@ -375,6 +378,8 @@ on the same row as the current pixel is instead used as the TR-pixel.
### Color Transform
+\[AMENDED2\]
+
The goal of the color transform is to decorrelate the R, G and B values
of each pixel. Color transform keeps the green (G) value as it is,
transforms red (R) based on green and transforms blue (B) based on green
@@ -834,7 +839,7 @@ potentially better compression.
The encoded image data consists of several parts:
- 1. Decoding and building the prefix codes
+ 1. Decoding and building the prefix codes \[AMENDED2\]
1. Meta Huffman codes
1. Entropy-coded image data
@@ -858,6 +863,8 @@ stream. This may be inefficient, but it is allowed by the format.
**(i) Simple Code Length Code:**
+\[AMENDED2\]
+
This variant is used in the special case when only 1 or 2 Huffman symbols are
in the range \[0, 255\] with code length `1`. All other Huffman code lengths
are implicitly zeros.
@@ -1031,6 +1038,8 @@ The decoder then uses Huffman code group `huff_group` to decode the pixel
#### 5.2.3 Decoding Entropy-coded Image Data
+\[AMENDED2\]
+
For the current position (x, y) in the image, the decoder first identifies the
corresponding Huffman code group (as explained in the last section). Given the
Huffman code group, the pixel is read and decoded as follows:
@@ -1097,6 +1106,8 @@ of pixels (xsize * ysize).
#### Structure of the Image Data
+\[AMENDED2\]
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<spatially-coded image> ::= <color cache info><meta huffman><data>
<entropy-coded image> ::= <color cache info><data>
|
board/primus/board.c: Format with clang-format
BRANCH=none
TEST=none | @@ -93,8 +93,8 @@ int board_is_vbus_too_low(int port, enum chg_ramp_vbus_state ramp_state)
}
if (voltage < BC12_MIN_VOLTAGE) {
- CPRINTS("%s: port %d: vbus %d lower than %d", __func__,
- port, voltage, BC12_MIN_VOLTAGE);
+ CPRINTS("%s: port %d: vbus %d lower than %d", __func__, port,
+ voltage, BC12_MIN_VOLTAGE);
return 1;
}
@@ -137,9 +137,8 @@ __override void board_set_charge_limit(int port, int supplier, int charge_ma,
else
charge_ma = charge_ma * 93 / 100;
- charge_set_input_current_limit(MAX(charge_ma,
- CONFIG_CHARGER_INPUT_CURRENT),
- charge_mv);
+ charge_set_input_current_limit(
+ MAX(charge_ma, CONFIG_CHARGER_INPUT_CURRENT), charge_mv);
}
static void configure_input_current_limit(void)
|
Fix process map parsing when freeing bcc memory
This fixes the format string used to parse the major and minor
device fields in /proc/self/maps. These fields have hexadecimal
values and hence cannot be parsed as unsigned integers.
Fixes: ("implement free_bcc_memory() API (#2097)")
Reported-by: Nageswara R Sastry | @@ -863,7 +863,7 @@ int bcc_free_memory() {
int path_start = 0, path_end = 0;
unsigned int devmajor, devminor;
char perms[8];
- if (sscanf(line, "%lx-%lx %7s %lx %u:%u %lu %n%*[^\n]%n",
+ if (sscanf(line, "%lx-%lx %7s %lx %x:%x %lu %n%*[^\n]%n",
&addr_start, &addr_end, perms, &offset,
&devmajor, &devminor, &inode,
&path_start, &path_end) < 7)
|
out_counter: summarize all records | #include <fluent-bit/flb_time.h>
#include <fluent-bit/flb_output.h>
+struct flb_counter_ctx {
+ uint64_t total;
+};
+
int cb_counter_init(struct flb_output_instance *ins,
struct flb_config *config,
void *data)
@@ -30,7 +34,16 @@ int cb_counter_init(struct flb_output_instance *ins,
(void) ins;
(void) config;
(void) data;
+ struct flb_counter_ctx *ctx;
+ ctx = flb_malloc(sizeof(struct flb_counter_ctx));
+ if (!ctx) {
+ flb_errno();
+ return -1;
+ }
+ ctx->total = 0;
+
+ flb_output_set_context(ins, ctx);
return 0;
}
@@ -47,7 +60,7 @@ void cb_counter_flush(void *data, size_t bytes,
(void) i_ins;
(void) out_context;
(void) config;
-
+ struct flb_counter_ctx *ctx = out_context;
msgpack_unpacked result;
size_t off = 0, cnt = 0;
struct flb_time tm;
@@ -57,17 +70,27 @@ void cb_counter_flush(void *data, size_t bytes,
cnt++;
}
msgpack_unpacked_destroy(&result);
+ ctx->total += cnt;
flb_time_get(&tm);
- printf("%f,%lu\n", flb_time_to_double(&tm), cnt);
+ printf("%f,%lu (total = %"PRIu64")\n", flb_time_to_double(&tm), cnt,
+ ctx->total);
FLB_OUTPUT_RETURN(FLB_OK);
}
+int cb_counter_exit(void *data, struct flb_config *config)
+{
+ struct flb_counter_ctx *ctx = data;
+ flb_free(ctx);
+ return 0;
+}
+
struct flb_output_plugin out_counter_plugin = {
.name = "counter",
.description = "Records counter",
.cb_init = cb_counter_init,
.cb_flush = cb_counter_flush,
+ .cb_exit = cb_counter_exit,
.flags = 0,
};
|
Reduce YR_ATOMS_PER_RULE_WARNING_THRESHOLD. | @@ -82,7 +82,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// If a rule generates more than this number of atoms a warning is shown.
#ifndef YR_ATOMS_PER_RULE_WARNING_THRESHOLD
-#define YR_ATOMS_PER_RULE_WARNING_THRESHOLD 30000
+#define YR_ATOMS_PER_RULE_WARNING_THRESHOLD 15000
#endif
// Maximum number of nested "for" loops in rule. Rules ith nested loops
|
Improve error message if there're no good features after quantization. | @@ -558,7 +558,7 @@ namespace NCB {
CB_ENSURE(
featuresLayout->HasAvailableAndNotIgnoredFeatures(),
- "No available and not ignored features has remained after quantization"
+ "All features are either constant or ignored."
);
data->ObjectsData.QuantizedFeaturesInfo = quantizedFeaturesInfo;
|
add some more comments + fix indentation | @@ -379,6 +379,7 @@ javaReadClass(const unsigned char* classData)
classInfo->major_version = be16toh(*((uint16_t *)off)); off += 2;
classInfo->constant_pool_count = be16toh(*((uint16_t *)off)); off += 2;
classInfo->_constant_pool_count = classInfo->constant_pool_count;
+ //allocate memory for existing constant pool enties and make a room for up to 100 new entries
classInfo->constant_pool = (unsigned char **) calloc(100 + (classInfo->constant_pool_count - 1), sizeof(unsigned char *));
for(int i=1;i<classInfo->constant_pool_count;i++) {
classInfo->constant_pool[i - 1] = (unsigned char *)off;
@@ -392,7 +393,7 @@ javaReadClass(const unsigned char* classData)
classInfo->interfaces = (uint16_t *)off;
off += classInfo->interfaces_count * 2;
- //fields
+ //read fields
classInfo->fields_count = be16toh(*((uint16_t *)off)); off += 2;
classInfo->fields = (unsigned char **) calloc(classInfo->fields_count, sizeof(unsigned char *));
for (int i=0;i<classInfo->fields_count;i++) {
@@ -400,17 +401,19 @@ javaReadClass(const unsigned char* classData)
off += getAttributesLength(off + 6) + 6;
}
+ //read methods
classInfo->methods_count = be16toh(*((uint16_t *)off)); off += 2;
classInfo->_methods_count = classInfo->methods_count;
+ //allocate memory for existing methods and make a room for up to 100 new methods
classInfo->methods = (unsigned char **) calloc(100 + classInfo->methods_count, sizeof(unsigned char *));
for (int i=0;i<classInfo->methods_count;i++) {
classInfo->methods[i] = off;
off += javaGetMethodLength(off);
}
+ //read attributes
classInfo->attributes_count = be16toh(*((uint16_t *)off)); off += 2;
classInfo->attributes = (unsigned char **) calloc(classInfo->attributes_count, sizeof(unsigned char *));
-
for (int i=0;i<classInfo->attributes_count;i++) {
classInfo->attributes[i] = off;
uint32_t attribute_length = be32toh(*((uint32_t *)(off + 2)));
|
add preethi to codeowners for iot | @@ -23,11 +23,11 @@ sdk/src/azure/core/ @ahsonkhan @antkmsft @rickwinter @vhvb1989 @gearam
sdk/tests/core/ @ahsonkhan @antkmsft @rickwinter @vhvb1989 @gearama
# IoT
-sdk/docs/iot/ @CIPop @danewalton @ericwol-msft @ewertons @jspaith @momuno
-sdk/inc/azure/iot/ @CIPop @danewalton @ericwol-msft @ewertons @jspaith @momuno
-sdk/samples/iot/ @CIPop @danewalton @ericwol-msft @ewertons @jspaith @momuno
-sdk/src/azure/iot/ @CIPop @danewalton @ericwol-msft @ewertons @jspaith @momuno
-sdk/tests/iot/ @CIPop @danewalton @ericwol-msft @ewertons @jspaith @momuno
+sdk/docs/iot/ @CIPop @danewalton @ericwol-msft @ewertons @jspaith @momuno @preethi826
+sdk/inc/azure/iot/ @CIPop @danewalton @ericwol-msft @ewertons @jspaith @momuno @preethi826
+sdk/samples/iot/ @CIPop @danewalton @ericwol-msft @ewertons @jspaith @momuno @preethi826
+sdk/src/azure/iot/ @CIPop @danewalton @ericwol-msft @ewertons @jspaith @momuno @preethi826
+sdk/tests/iot/ @CIPop @danewalton @ericwol-msft @ewertons @jspaith @momuno @preethi826
# Platform
sdk/src/azure/platform/ @ahsonkhan @antkmsft @rickwinter @vhvb1989 @gearama
|
viofs-svc: Write now handle WriteToEndOfFile flag. | @@ -1027,14 +1027,23 @@ static NTSTATUS Write(FSP_FILE_SYSTEM *FileSystem, PVOID FileContext0,
ConstrainedIo);
DBG("fh: %Iu nodeid: %Iu", FileContext->FileHandle, FileContext->NodeId);
- if (ConstrainedIo)
+ // Both these cases requires knowing the actual file size.
+ if ((WriteToEndOfFile == TRUE) || (ConstrainedIo == TRUE))
{
Status = GetFileInfoInternal(VirtFs, FileContext, FileInfo, NULL);
if (!NT_SUCCESS(Status))
{
return Status;
}
+ }
+ if (WriteToEndOfFile == TRUE)
+ {
+ Offset = FileInfo->FileSize;
+ }
+
+ if (ConstrainedIo == TRUE)
+ {
if (Offset >= FileInfo->FileSize)
{
return STATUS_SUCCESS;
|
sse: add _MM_TRANSPOSE4_PS macro.
Fixes | @@ -2505,6 +2505,19 @@ simde_mm_setcsr (uint32_t a) {
#endif
}
+#define _MM_TRANSPOSE4_PS(row0, row1, row2, row3) \
+ do { \
+ simde__m128 tmp3, tmp2, tmp1, tmp0; \
+ tmp0 = simde_mm_unpacklo_ps((row0), (row1)); \
+ tmp2 = simde_mm_unpacklo_ps((row2), (row3)); \
+ tmp1 = simde_mm_unpackhi_ps((row0), (row1)); \
+ tmp3 = simde_mm_unpackhi_ps((row2), (row3)); \
+ row0 = simde_mm_movelh_ps(tmp0, tmp2); \
+ row1 = simde_mm_movehl_ps(tmp2, tmp0); \
+ row2 = simde_mm_movelh_ps(tmp1, tmp3); \
+ row3 = simde_mm_movehl_ps(tmp3, tmp1); \
+ } while (0)
+
SIMDE__END_DECLS
#endif /* !defined(SIMDE__SSE_H) */
|
sysrepo DOC clarify rcp output params
Refs cesnet/netopeer2#767 | @@ -1473,8 +1473,7 @@ typedef int (*sr_rpc_cb)(sr_session_ctx_t *session, const char *xpath, const sr_
* @param[in] input Data tree of input parameters. Always points to the __RPC/action__ itself, even for nested operations.
* @param[in] event Type of the callback event that has occurred.
* @param[in] request_id Request ID unique for the specific @p op_path.
- * @param[out] output Data tree of output parameters. Should be allocated on heap,
- * will be freed by sysrepo after sending of the RPC response.
+ * @param[out] output Data tree for appending any output parameters, the operation root node is provided..
* @param[in] private_data Private context opaque to sysrepo, as passed to ::sr_rpc_subscribe_tree call.
* @return User error code (::SR_ERR_OK on success).
*/
|
Add arcs to g meter between max and min. | @@ -149,8 +149,20 @@ function gMeterRenderer(locationId, plim, nlim) {
el.addClass('marks')
.rotate((i-1)/this.nticks*360, 0, 0);
}
- card.line(-140, 0, -190, 0).addClass('marks limit').rotate((plim-10)/this.nticks*360, 0, 0);
- card.line(-140, 0, -190, 0).addClass('marks limit').rotate((nlim-10)/this.nticks*360, 0, 0);
+ card.line(-140, 0, -190, 0).addClass('marks limit').rotate((plim-1)/this.nticks*360, 0, 0);
+ card.line(-140, 0, -190, 0).addClass('marks limit').rotate((nlim-1)/this.nticks*360, 0, 0);
+
+ var ax = -Math.cos(2*Math.PI/this.nticks),
+ ay = -Math.sin(2*Math.PI/this.nticks);
+ card.path('M -170 0, A 170 170 0 0 1 ' + 170*ax + ' ' + 170*ay)
+ .rotate(-Math.floor(plim)/this.nticks*360, 0, 0)
+ .addClass('marks')
+ .style('fill-opacity', '0');
+ card.path('M -175 0, A 175 175 0 0 1 ' + 175*ax + ' ' + 175*ay)
+ .rotate(-Math.floor(plim)/this.nticks*360, 0, 0)
+ .addClass('marks')
+ .style('fill-opacity', '0');
+
this.pointer_el = gMeter.group().addClass('g');
this.pointer_el.polygon('0,0 -170,0 -150,-10 0,-10').addClass('pointer');
@@ -170,7 +182,9 @@ function gMeterRenderer(locationId, plim, nlim) {
reset.circle(60).cx(0).cy(0).addClass('reset');
reset.text("RESET").cx(0).cy(0).addClass('text');
reset.on('click', function() {
+ reset.animate(200).rotate(20, 0, 0);
this.reset();
+ reset.animate(200).rotate(0, 0, 0);
}, this);
}
|
Clarify some things about application_name | @@ -255,9 +255,13 @@ MangoHud comes with a config file which can be used to set configuration options
1. `/path/to/application/dir/MangoHud.conf`
2. Per-application configuration in ~/.config/MangoHud:
- 1. `$HOME/.config/MangoHud/application_name.conf`
- 2. `$HOME/.config/MangoHud/wine-application_name.conf` for wine/proton apps
-3. `$HOME/.config/MangoHud/MangoHud.conf`
+ 1. `~/.config/MangoHud/<application_name>.conf` for native applications, where `<application_name>` is the case sensitive name of the executable
+ 2. `~/.config/MangoHud/wine-<application_name>.conf` for wine/proton apps, where `<application_name>` is the case sensitive name of the executable without the `.exe` ending
+3. `~/.config/MangoHud/MangoHud.conf`
+
+Example: For Overwatch, this would be `wine-Overwatch.conf` (even though the executable you run from Lutris is `Battle.net.exe`, the actual game executable name is `Overwatch.exe`).
+
+If you start the game from the terminal with MangoHud enabled (for example by starting Lutris from the terminal), MangoHud will print the config file names it is looking for.
You can find an example config in /usr/share/doc/mangohud
|
garg: add HDMI SKU ID again
BRANCH=octopus
TEST=make buildall -j | @@ -299,7 +299,7 @@ void board_overcurrent_event(int port, int is_overcurrented)
__override uint8_t board_get_usb_pd_port_count(void)
{
/* HDMI SKU has one USB PD port */
- if (sku_id == 9 || sku_id == 19 || sku_id == 50)
+ if (sku_id == 9 || sku_id == 19 || sku_id == 50 || sku_id == 52)
return CONFIG_USB_PD_PORT_MAX_COUNT - 1;
return CONFIG_USB_PD_PORT_MAX_COUNT;
}
|
Add debug info for bootstrap copy phase. | @@ -53,6 +53,7 @@ if(NOT OPTION_BUILD_GUIX)
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/lib/package.json ${CMAKE_CURRENT_BINARY_DIR}
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/lib/package-lock.json ${CMAKE_CURRENT_BINARY_DIR}
COMMAND ${NPM_EXECUTABLE} --prefix ${CMAKE_CURRENT_BINARY_DIR} install ${CMAKE_CURRENT_BINARY_DIR}
+ COMMAND ${CMAKE_COMMAND} -E echo "Copying ${target} dependencies"
COMMAND ${CMAKE_COMMAND} -E make_directory ${PROJECT_OUTPUT_DIR}/node_modules
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_BINARY_DIR}/node_modules/espree ${PROJECT_OUTPUT_DIR}/node_modules/espree
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_BINARY_DIR}/node_modules/acorn ${PROJECT_OUTPUT_DIR}/node_modules/acorn
|
twping: Add zero-addresses option to twping manpage | @@ -100,6 +100,16 @@ SO_BINDTODEVICE.
Unspecified (sockets not bound to a particular interface).
.RE
.TP
+\fB\-Z\fR
+.br
+Do not specify sender and receiver IP addresses for tests packets when
+creating a TWAMP session. This allows the UDP test packets to pass through
+some types of NAT. This option is not available for OWAMP.
+.RS
+.IP Default:
+Unspecified (addresses for test packets are defined by the client).
+.RE
+.TP
\fB\-u\fR \fIusername\fR
.br
Specify the username that identifies the shared secret (pass-phrase)
|
doc: add Chef Cookbook highlight | @@ -38,7 +38,7 @@ You can also read the news [on our website](https://www.libelektra.org/news/0.8.
## Highlights
- Type system preview
-- <<HIGHLIGHT2>>
+- Chef Cookbook
- <<HIGHLIGHT3>>
@@ -63,6 +63,39 @@ For more details see the
Thanks to Armin Wurzinger.
+
+### Chef Cookbook
+
+Next to the [Puppet Resource Type](http://puppet.libelektra.org/)
+we now also prepared a [Chef Cookbook](https://supermarket.chef.io/cookbooks/kdb)
+which allows us to use Elektra from within chef.
+
+For example, to set mount a configuration file, you can use:
+
+```
+kdbmount 'system/hosts' do
+ file '/etc/hosts'
+ plugins 'hosts'
+ action :create
+end
+```
+
+And to add an hosts entry, you can use:
+
+```
+kdbset '/hosts/ipv4/showthatitworks' do
+ namespace 'system'
+ value '127.0.0.33'
+ action :create
+end
+```
+
+> Note that currently `kdb` is invoked
+> and Elektra needs to be installed for
+> managed systems.
+
+Thanks to Michael Zronek and Vanessa Kos.
+
### <<HIGHLIGHT2>>
@@ -120,6 +153,8 @@ Thanks to Armin Wurzinger.
It can be used to integrate the notification feature with applications based
on [ev](http://libev.schmorp.de) main loops. *(Thomas Wahringer)*
+
+
## Tools
- The new tool `kdb find` lists keys of the database matching a certain regular expression. *(Markus Raab)*
|
gdl90Report uses Gyro_heading. | @@ -1818,11 +1818,10 @@ func makeAHRSGDL90Report() {
if isAHRSValid() {
pitch = roundToInt16(mySituation.Pitch * 10)
roll = roundToInt16(mySituation.Roll * 10)
- hdg = roundToInt16(mySituation.Gyro_heading * 10)
+ hdg = roundToInt16(mySituation.Gyro_heading * 10) // TODO westphae: switch to Mag_heading?
slip_skid = roundToInt16(mySituation.SlipSkid * 10)
yaw_rate = roundToInt16(mySituation.RateOfTurn * 10)
g = roundToInt16(mySituation.GLoad * 10)
- hdg = roundToInt16(mySituation.Mag_heading * 10)
}
if isTempPressValid() {
palt = uint16(mySituation.Pressure_alt + 5000.5)
|
Change how thread flags are handled | @@ -104,9 +104,10 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/SystemResources.in.cpp
${CMAKE_CURRENT_BINARY_DIR}/SystemResources.cpp @ONLY)
list(APPEND LIME_SUITE_SOURCES ${CMAKE_CURRENT_BINARY_DIR}/SystemResources.cpp)
-if(CMAKE_COMPILER_IS_GNUCXX)
- list(APPEND LIME_SUITE_LIBRARIES -pthread)
-endif(CMAKE_COMPILER_IS_GNUCXX)
+set(CMAKE_THREAD_PREFER_PTHREAD TRUE)
+set(THREADS_PREFER_PTHREAD_FLAG TRUE)
+find_package(Threads REQUIRED)
+list(APPEND LIME_SUITE_LIBRARIES Threads::Threads)
include(CheckAtomic)
if(NOT HAVE_CXX_ATOMICS_WITHOUT_LIB OR NOT HAVE_CXX_ATOMICS64_WITHOUT_LIB)
|
Add info on static runtime loader | @@ -90,7 +90,12 @@ At a minimum, you must set the `LD_PRELOAD` environment variable in your Lambda
LD_PRELOAD=libscope.so
```
-You must also tell AppScope where to deliver events. This can be accomplished by setting one of the following in the environment variables:
+For static executables (like the Go runtime), set `SCOPE_EXEC_PATH` to run the [loader](/docs/how-works):
+```
+SCOPE_EXEC_PATH=/lib/ldscope
+```
+
+You must also tell AppScope where to deliver events. This can be accomplished by setting one of the following environment variables:
- `SCOPE_CONF_PATH=lib/scope.yml`
or:
|
ShareRecorder cleanup | @@ -458,6 +458,12 @@ namespace MiningCore.Mining
}
}
+ catch (ObjectDisposedException)
+ {
+ logger.Info($"Exiting monitoring thread for external stratum {url}/[{string.Join(", ", topics)}]");
+ break;
+ }
+
catch (Exception ex)
{
logger.Error(ex);
@@ -493,11 +499,8 @@ namespace MiningCore.Mining
{
logger.Info(() => "Stopping ..");
- queueSub?.Dispose();
- queueSub = null;
-
- queue?.Dispose();
- queue = null;
+ queueSub.Dispose();
+ queue.Dispose();
logger.Info(() => "Stopped");
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.