message
stringlengths 6
474
| diff
stringlengths 8
5.22k
|
|---|---|
Fix faulty assert
|
@@ -342,7 +342,7 @@ static int ipdnametoaddr(uint8_t* dname, size_t dnamelen,
ia[i] = (uint8_t)chunk;
i--;
} else {
- log_assert(i < 15 && i >= 1);
+ log_assert(i < 16 && i >= 1);
/* ia in network byte order */
ia[i-1] = (uint8_t)(chunk >> 8);
ia[i] = (uint8_t)(chunk & 0x00FF);
|
Give a better error message about incomparable types.
|
@@ -393,7 +393,7 @@ compare(Flattenctx *s, Node *n, int fields)
} else if (fields) {
r = comparecomplex(s, n, exprop(n));
} else {
- fatal(n, "unsupported comparison on values");
+ fatal(n, "unsupported comparison on type %s", tystr(ty));
}
r->expr.type = mktype(n->loc, Tybool);
return r;
|
hw/mcu/dialog: Fix FPU state store/restore
|
* under the License.
*/
+#include "syscfg/syscfg.h"
+
.syntax unified
.arch armv7-m
@@ -40,8 +42,10 @@ da1469x_m33_sleep_state:
.space 40 /* IPR[0..39] */
.saved_scb:
.space 28 /* SCR, CCR, SHPR[0..11], CPACR */
+#if MYNEWT_VAL(HARDFLOAT)
.saved_fpu:
.space 8 /* FPCCR, FPDSCR */
+#endif
.size da1469x_m33_sleep_state, . - da1469x_m33_sleep_state
@@ -101,12 +105,14 @@ da1469x_m33_sleep:
and r10, r10, #(SCB_CPACR_MASK)
stmia r3!, {r4-r10}
-/* Save NVIC state (FPCCR and FPDSCR) */
+#if MYNEWT_VAL(HARDFLOAT)
+/* Save FPU state (FPCCR and FPDSCR) */
ldr r0, =FPU_BASE
ldr r4, [r0, #(FPU_FPCCR_OFFSET)]
and r4, r4, #(FPU_FPCCR_MASK)
ldr r5, [r0, #(FPU_FPDSCR_OFFSET)]
stmia r3!, {r4-r5}
+#endif
/* Clear RESET_STAT_REG so wakeup handler can detect wakeup from deep sleep */
ldr r0, =RESET_STAT_REG
@@ -182,6 +188,7 @@ da1469x_m33_wakeup:
orr r9, r9, r1
stmia r0!, {r4-r9}
+#if MYNEWT_VAL(HARDFLOAT)
/* Restore FPU state */
ldmia r3!, {r4-r5}
ldr r0, =FPU_BASE
@@ -189,6 +196,7 @@ da1469x_m33_wakeup:
orr r4, r4, r1
str r4, [r0, #(FPU_FPCCR_OFFSET)]
str r5, [r0, #(FPU_FPDSCR_OFFSET)]
+#endif
/* Restore MSP, PSP and CONTROL */
ldr r3, =.saved_msp
|
Fix incorrect value of `ZydisDecodedInstruction.raw.prefixes[n].type` (again)
Fixed another edge case where the prefix type was `ZYDIS_PREFIX_TYPE_IGNORED` instead of `ZYDIS_PREFIX_TYPE_EFFECTIVE`
see
|
@@ -4628,6 +4628,12 @@ static ZyanStatus ZydisDecodeInstruction(ZydisDecoderContext* context,
}
if (context->prefixes.mandatory_candidate == 0x66)
{
+ if (context->prefixes.offset_osz_override ==
+ context->prefixes.offset_mandatory)
+ {
+ instruction->raw.prefixes[context->prefixes.offset_mandatory].type =
+ ZYDIS_PREFIX_TYPE_EFFECTIVE;
+ }
instruction->attributes |= ZYDIS_ATTRIB_HAS_OPERANDSIZE;
}
continue;
|
examples/coap-server : trivial patch on handle signal function
This commit is trivial patch on handle signal function
- handle_sigint function name can be used by other applications
- it can causes linking error after compiling so, fix it to static
|
@@ -61,7 +61,7 @@ static coap_async_state_t *async = NULL;
#endif /* WITHOUT_ASYNC */
/* SIGINT handler: set quit to 1 for graceful termination */
-void handle_sigint(int signum)
+static void handle_sigint(int signum)
{
quit = 1;
}
|
Fix `t/50mruby-redis.t` timeout case.
|
@@ -373,6 +373,7 @@ EOT
};
subtest 'connect timeout' => sub {
+ my $blackhole = t::Util::find_blackhole_ip();
my $spawner = sub {
my $conf = <<"EOT";
num-threads: 1
@@ -383,7 +384,7 @@ hosts:
mruby.handler: |
proc {|env|
# if query string is empty, wait forever
- redis = H2O::Redis.new(:host => '192.0.2.0', :port => 6379, :connect_timeout => env['QUERY_STRING'])
+ redis = H2O::Redis.new(:host => '$blackhole', :port => 6379, :connect_timeout => env['QUERY_STRING'])
begin
redis.get('hoge').join
rescue H2O::Redis::ConnectTimeoutError
|
Clarify dashes are required for openssl list command
Fixes
CLA: trivial
|
@@ -13,13 +13,13 @@ I<command>
B<openssl>
B<list>
-B<standard-commands> |
-B<digest-commands> |
-B<cipher-commands> |
-B<cipher-algorithms> |
-B<digest-algorithms> |
-B<mac-algorithms> |
-B<public-key-algorithms>
+B<-standard-commands> |
+B<-digest-commands> |
+B<-cipher-commands> |
+B<-cipher-algorithms> |
+B<-digest-algorithms> |
+B<-mac-algorithms> |
+B<-public-key-algorithms>
B<openssl> B<no->I<XXX> [ I<options> ]
|
netkvm: improve guess for VF miniport version
Use macro that only bumps the miniport version.
Any feature from higher protocol bumps the version.
|
#include "ParaNdis_Protocol.tmh"
#endif
+#define GUESS_VERSION(a, b) (a) = max((a), (b))
+
static PVOID ParaNdis_ReferenceBinding(PARANDIS_ADAPTER *pContext)
{
return pContext->m_StateMachine.ReferenceSriovBinding();
@@ -1104,7 +1106,7 @@ void CProtocolBinding::QueryCapabilities(PNDIS_BIND_PARAMETERS BindParameters)
hds.ipv6ext = flags & NDIS_HD_SPLIT_CAPS_SUPPORTS_IPV6_EXTENSION_HEADERS;
hds.maxHeader = BindParameters->HDSplitCurrentConfig->MaxHeaderSize;
hds.backfill = BindParameters->HDSplitCurrentConfig->BackfillSize;
- m_Capabilies.NdisMinor = 10;
+ GUESS_VERSION(m_Capabilies.NdisMinor, 10);
TraceNoPrefix(0, "[%s] HDS: ipv4opt:%d, ipv6ext:%d, tcpopt:%d, max header:%d, backfill %d\n",
__FUNCTION__, hds.ipv4opt, hds.ipv6ext, hds.tcpopt, hds.maxHeader, hds.backfill);
}
@@ -1118,9 +1120,12 @@ void CProtocolBinding::QueryCapabilities(PNDIS_BIND_PARAMETERS BindParameters)
m_Capabilies.rss.v6ex = flags & NDIS_RSS_CAPS_HASH_TYPE_TCP_IPV6_EX;
m_Capabilies.rss.queues = BindParameters->RcvScaleCapabilities->NumberOfReceiveQueues;
m_Capabilies.rss.vectors = BindParameters->RcvScaleCapabilities->NumberOfInterruptMessages;
+ if (flags & NDIS_RSS_CAPS_USING_MSI_X) {
+ GUESS_VERSION(m_Capabilies.NdisMinor, 20);
+ }
if (BindParameters->RcvScaleCapabilities->Header.Revision > NDIS_SIZEOF_RECEIVE_SCALE_CAPABILITIES_REVISION_1)
{
- m_Capabilies.NdisMinor = 30;
+ GUESS_VERSION(m_Capabilies.NdisMinor, 30);
m_Capabilies.rss.tableSize = BindParameters->RcvScaleCapabilities->NumberOfIndirectionTableEntries;
}
TraceNoPrefix(0, "[%s] RSS: v4:%d,v6:%d,v6ex:%d, queues:%d, vectors:%d, max table:%d\n", __FUNCTION__,
@@ -1139,7 +1144,7 @@ void CProtocolBinding::QueryCapabilities(PNDIS_BIND_PARAMETERS BindParameters)
m_Capabilies.rsc.v6 = doc->Rsc.IPv6.Enabled;
if (m_Capabilies.rsc.v4 || m_Capabilies.rsc.v6)
{
- m_Capabilies.NdisMinor = 30;
+ GUESS_VERSION(m_Capabilies.NdisMinor, 30);
}
m_Capabilies.lsov2.v4.maxPayload = doc->LsoV2.IPv4.MaxOffLoadSize;
m_Capabilies.lsov2.v4.minSegments = doc->LsoV2.IPv4.MinSegmentCount;
|
HLS intersect: Remove mmio write and attach.
Attach is done in execute function during dnut_kernel_sync_execute_job().
|
@@ -209,19 +209,11 @@ static void dump_table(value_t* table, uint32_t num)
static int run_one_step(struct dnut_kernel *kernel, struct dnut_job *cjob, unsigned long timeout, int action_irq, uint64_t step)
{
-
int rc;
struct timeval etime, stime;
+
gettimeofday(&stime, NULL);
- if (action_irq) {
- dnut_kernel_mmio_write32(kernel, 0x8, 1);
- dnut_kernel_mmio_write32(kernel, 0x4, 1);
- }
rc = dnut_kernel_sync_execute_job(kernel, cjob, timeout, action_irq);
- if (action_irq) {
- dnut_kernel_mmio_write32(kernel, 0xc, 1);
- dnut_kernel_mmio_write32(kernel, 0x4, 0);
- }
if (rc != 0) {
fprintf(stderr, "err: job execution %d: %s!\n\n\n", rc,
strerror(errno));
@@ -447,27 +439,6 @@ int main(int argc, char *argv[])
goto out_error;
}
-#if 1 /* FIXME Circumvention should go away */
- pr_info("FIXME Wait a sec ...\n");
- sleep(1);
-#endif
- rc = dnut_attach_action((void*)kernel, HLS_INTERSECT_ID, attach_flags, timeout);
- if (rc != 0) {
- fprintf(stderr, "err: job Attach %d: %s!\n", rc,
- strerror(errno));
- goto out_error2;
- }
-
-#if 1 /* FIXME Circumvention should go away */
- pr_info("FIXME temporary setting to define memory base address\n");
- dnut_kernel_mmio_write32(kernel, 0x00030, 0);
- dnut_kernel_mmio_write32(kernel, 0x00034, 0);
- dnut_kernel_mmio_write32(kernel, 0x00040, 0);
- dnut_kernel_mmio_write32(kernel, 0x00044, 0);
- dnut_kernel_mmio_write32(kernel, 0x00050, 0);
- dnut_kernel_mmio_write32(kernel, 0x00054, 0);
-#endif
-
//------------------------------------
// Action begin (1)
printf("Start Step1 (Copy source data from Host to DDR) ..............\n");
|
fix(lv_obj_scroll.h) typos
|
@@ -40,9 +40,9 @@ typedef uint8_t lv_scrollbar_mode_t;
/** Scroll span align options. Tells where to align the snappable children when scroll stops.*/
enum {
LV_SCROLL_SNAP_NONE, /**< Do not align, leave where it is*/
- LV_SCROLL_SNAP_START, /**< Align to to the left/top*/
- LV_SCROLL_SNAP_END, /**< Align to to the right/bottom*/
- LV_SCROLL_SNAP_CENTER /**< Align to to the center*/
+ LV_SCROLL_SNAP_START, /**< Align to the left/top*/
+ LV_SCROLL_SNAP_END, /**< Align to the right/bottom*/
+ LV_SCROLL_SNAP_CENTER /**< Align to the center*/
};
typedef uint8_t lv_scroll_snap_t;
@@ -71,14 +71,14 @@ void lv_obj_set_scroll_dir(struct _lv_obj_t * obj, lv_dir_t dir);
/**
* Set where to snap the children when scrolling ends horizontally
* @param obj pointer to an object
- * @param align the snap align to set from `lv_snap_align_t`
+ * @param align the snap align to set from `lv_scroll_snap_t`
*/
void lv_obj_set_scroll_snap_x(struct _lv_obj_t * obj, lv_scroll_snap_t align);
/**
* Set where to snap the children when scrolling ends vertically
* @param obj pointer to an object
- * @param align the snap align to set from `lv_snap_align_t`
+ * @param align the snap align to set from `lv_scroll_snap_t`
*/
void lv_obj_set_scroll_snap_y(struct _lv_obj_t * obj, lv_scroll_snap_t align);
@@ -89,7 +89,7 @@ void lv_obj_set_scroll_snap_y(struct _lv_obj_t * obj, lv_scroll_snap_t align);
/**
* Get the current scroll mode (when to hide the scrollbars)
* @param obj pointer to an object
- * @return the current scroll mode from `lv_scroll_mode_t`
+ * @return the current scroll mode from `lv_scrollbar_mode_t`
*/
lv_scrollbar_mode_t lv_obj_get_scrollbar_mode(const struct _lv_obj_t * obj);
@@ -103,14 +103,14 @@ lv_dir_t lv_obj_get_scroll_dir(const struct _lv_obj_t * obj);
/**
* Get where to snap the children when scrolling ends horizontally
* @param obj pointer to an object
- * @return the current snap align from `lv_snap_align_t`
+ * @return the current snap align from `lv_scroll_snap_t`
*/
lv_scroll_snap_t lv_obj_get_scroll_snap_x(const struct _lv_obj_t * obj);
/**
* Get where to snap the children when scrolling ends vertically
* @param obj pointer to an object
- * @return the current snap align from `lv_snap_align_t`
+ * @return the current snap align from `lv_scroll_snap_t`
*/
lv_scroll_snap_t lv_obj_get_scroll_snap_y(const struct _lv_obj_t * obj);
@@ -255,8 +255,8 @@ void lv_obj_update_snap(struct _lv_obj_t * obj, lv_anim_enable_t anim_en);
/**
* Get the area of the scrollbars
* @param obj pointer to an object
- * @param hor_area pointer to store the area of the horizontal scrollbar
- * @param ver_area pointer to store the area of the vertical scrollbar
+ * @param hor pointer to store the area of the horizontal scrollbar
+ * @param ver pointer to store the area of the vertical scrollbar
*/
void lv_obj_get_scrollbar_area(struct _lv_obj_t * obj, lv_area_t * hor, lv_area_t * ver);
|
get_disto: fix reference file read
previously this was reading the first file a second time, since:
ReadImage(): restore size reporting
|
@@ -278,7 +278,7 @@ int main(int argc, const char *argv[]) {
goto End;
}
size1 = ReadPicture(name1, &pic1, 1);
- size2 = ReadPicture(name1, &pic2, 1);
+ size2 = ReadPicture(name2, &pic2, 1);
if (size1 == 0 || size2 == 0) goto End;
if (!keep_alpha) {
|
fix scripts/get.sh
|
@@ -209,7 +209,7 @@ else
fi
write_profile()
{
- grep -sq ".xmake/profile" $1 || echo "[[ -s \"\$HOME/.xmake/profile\" ]] && source \"\$HOME/.xmake/profile\" # load xmake profile" >> $1
+ grep -sq ".xmake/profile" $1 || echo -e "\n[[ -s \"\$HOME/.xmake/profile\" ]] && source \"\$HOME/.xmake/profile\" # load xmake profile" >> $1
}
install_profile()
{
|
autotest: saving erroneous values in psd check for debugging
|
@@ -193,6 +193,9 @@ int liquid_autotest_validate_spectrum(float * _psd, unsigned int _nfft,
autotest_psd_s * _regions, unsigned int _num_regions, const char * _debug_filename)
{
unsigned int i, j;
+ int fail[_nfft];
+ for (j=0; j<_nfft; j++)
+ fail[j] = 0;
for (i=0; i<_num_regions; i++) {
autotest_psd_s r = _regions[i];
if (liquid_autotest_verbose) {
@@ -208,10 +211,21 @@ int liquid_autotest_validate_spectrum(float * _psd, unsigned int _nfft,
continue;
// test lower bound
- if (r.test_lo) CONTEND_GREATER_THAN(_psd[j], r.pmin);
+ if (r.test_lo && _psd[j] < r.pmin) {
+ //AUTOTEST_FAIL("region[%3u], %8.2f exceed minimum (%8.2f)", i, _psd[j], r.pmin);
+ AUTOTEST_FAIL("minimum value exceeded");
+ fail[j] = 1;
+ } else {
+ AUTOTEST_PASS();
+ }
// test upper bound
- if (r.test_hi) CONTEND_LESS_THAN(_psd[j], r.pmax);
+ if (r.test_hi && _psd[j] > r.pmax) {
+ AUTOTEST_FAIL("maximum value exceeded");
+ fail[j] = 1;
+ } else {
+ AUTOTEST_PASS();
+ }
}
}
@@ -223,6 +237,9 @@ int liquid_autotest_validate_spectrum(float * _psd, unsigned int _nfft,
return -1;
}
fprintf(fid,"clear all; close all; nfft=%u; f=[0:(nfft-1)]/nfft-0.5; psd=zeros(1,nfft);\n", _nfft);
+ fprintf(fid,"idx = [");
+ for (i=0; i<_nfft; i++) { if (fail[i]) fprintf(fid,"%d,",i+1); }
+ fprintf(fid,"];\n");
for (i=0; i<_nfft; i++) { fprintf(fid,"psd(%6u) = %8.2f;\n", i+1, _psd[i]); }
fprintf(fid,"figure; xlabel('f/F_s'); ylabel('PSD [dB]'); hold on;\n");
// add target regions
@@ -234,6 +251,7 @@ int liquid_autotest_validate_spectrum(float * _psd, unsigned int _nfft,
}
// plot spectrum
fprintf(fid," plot(f,psd,'LineWidth',2,'Color',[0 0.3 0.5]);\n");
+ fprintf(fid," plot(f(idx),psd(idx),'xr');\n"); // identifying errors
fprintf(fid,"hold off; grid on; xlim([-0.5 0.5]);\n");
fclose(fid);
printf("debug file written to %s\n", _debug_filename);
|
cannot use git log to get REPO_ID when building from release source
|
@@ -51,7 +51,14 @@ else
TARGETS_TO_BUILD="AMDGPU;${AOMP_NVPTX_TARGET}X86"
fi
fi
-MYCMAKEOPTS="-DLLVM_ENABLE_PROJECTS=clang;lld -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_INSTALL_PREFIX=$INSTALL_PROJECT -DLLVM_ENABLE_ASSERTIONS=ON -DLLVM_TARGETS_TO_BUILD=$TARGETS_TO_BUILD $COMPILERS -DLLVM_VERSION_SUFFIX=_AOMP_Version_$AOMP_VERSION_STRING -DBUG_REPORT_URL='https://github.com/ROCm-Developer-Tools/aomp' -DLLVM_ENABLE_BINDINGS=OFF -DLLVM_INCLUDE_BENCHMARKS=0 -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=ON -DCMAKE_INSTALL_RPATH=$AOMP_INSTALL_DIR/lib"
+
+# When building from release source (no git), turn off test items that are not distributed
+if [ "$AOMP_CHECK_GIT_BRANCH" == 1 ] ; then
+ DO_TESTS=""
+else
+ DO_TESTS="-DLLVM_BUILD_TESTS=OFF -DLLVM_INCLUDE_TESTS=OFF"
+fi
+MYCMAKEOPTS="-DLLVM_ENABLE_PROJECTS=clang;lld -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_INSTALL_PREFIX=$INSTALL_PROJECT -DLLVM_ENABLE_ASSERTIONS=ON -DLLVM_TARGETS_TO_BUILD=$TARGETS_TO_BUILD $COMPILERS -DLLVM_VERSION_SUFFIX=_AOMP_Version_$AOMP_VERSION_STRING -DBUG_REPORT_URL='https://github.com/ROCm-Developer-Tools/aomp' -DLLVM_ENABLE_BINDINGS=OFF -DLLVM_INCLUDE_BENCHMARKS=OFF $DO_TESTS -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=ON -DCMAKE_INSTALL_RPATH=$AOMP_INSTALL_DIR/lib"
if [ "$1" == "-h" ] || [ "$1" == "help" ] || [ "$1" == "-help" ] ; then
help_build_aomp
@@ -82,7 +89,11 @@ fi
if [ "$AOMP_PROJECT_REPO_BRANCH" != "master" ] ; then
# Fix the banner to print the AOMP version string.
cd $AOMP_REPOS/$AOMP_PROJECT_REPO_NAME
+if [ "$AOMP_CHECK_GIT_BRANCH" == 1 ] ; then
MONO_REPO_ID=`git log | grep -m1 commit | cut -d" " -f2`
+else
+ MONO_REPO_ID="build_from_release_source"
+fi
SOURCEID="Source ID:$AOMP_VERSION_STRING-$MONO_REPO_ID"
TEMPCLFILE="/tmp/clfile$$.cpp"
ORIGCLFILE="$AOMP_REPOS/$AOMP_PROJECT_REPO_NAME/llvm/lib/Support/CommandLine.cpp"
|
Fixed negative patterns combined with address rules.
|
@@ -192,6 +192,7 @@ static nxt_http_route_rule_t *nxt_http_route_rule_create(nxt_task_t *task,
nxt_mp_t *mp, nxt_conf_value_t *cv, nxt_bool_t case_sensitive,
nxt_http_route_pattern_case_t pattern_case);
static int nxt_http_pattern_compare(const void *one, const void *two);
+static int nxt_http_addr_pattern_compare(const void *one, const void *two);
static nxt_int_t nxt_http_route_pattern_create(nxt_task_t *task, nxt_mp_t *mp,
nxt_conf_value_t *cv, nxt_http_route_pattern_t *pattern,
nxt_http_route_pattern_case_t pattern_case);
@@ -881,6 +882,12 @@ nxt_http_route_addr_rule_create(nxt_task_t *task, nxt_mp_t *mp,
}
}
+ if (n > 1) {
+ nxt_qsort(addr_rule->addr_pattern, addr_rule->items,
+ sizeof(nxt_http_route_addr_pattern_t),
+ nxt_http_addr_pattern_compare);
+ }
+
return addr_rule;
}
@@ -904,6 +911,18 @@ nxt_http_pattern_compare(const void *one, const void *two)
}
+static int
+nxt_http_addr_pattern_compare(const void *one, const void *two)
+{
+ const nxt_http_route_addr_pattern_t *p1, *p2;
+
+ p1 = one;
+ p2 = two;
+
+ return (p2->base.negative - p1->base.negative);
+}
+
+
static nxt_int_t
nxt_http_route_pattern_create(nxt_task_t *task, nxt_mp_t *mp,
nxt_conf_value_t *cv, nxt_http_route_pattern_t *pattern,
@@ -1527,21 +1546,36 @@ static nxt_int_t
nxt_http_route_addr_rule(nxt_http_request_t *r,
nxt_http_route_addr_rule_t *addr_rule, nxt_sockaddr_t *sa)
{
- uint32_t i, n;
+ uint32_t n;
+ nxt_bool_t matches;
nxt_http_route_addr_pattern_t *p;
n = addr_rule->items;
+ p = &addr_rule->addr_pattern[0] - 1;
- for (i = 0; i < n; i++) {
- p = &addr_rule->addr_pattern[i];
- if (nxt_http_route_addr_pattern_match(p, sa)) {
- return 1;
- }
+ do {
+ p++;
+ n--;
+
+ matches = nxt_http_route_addr_pattern_match(p, sa);
+
+ if (p->base.negative) {
+ if (matches) {
+ continue;
}
return 0;
}
+ if (matches) {
+ return 1;
+ }
+
+ } while (n > 0);
+
+ return p->base.negative;
+}
+
static nxt_int_t
nxt_http_route_header(nxt_http_request_t *r, nxt_http_route_rule_t *rule)
|
SOVERSION bump to version 1.3.22
|
@@ -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 21)
+set(LIBNETCONF2_MICRO_SOVERSION 22)
set(LIBNETCONF2_SOVERSION_FULL ${LIBNETCONF2_MAJOR_SOVERSION}.${LIBNETCONF2_MINOR_SOVERSION}.${LIBNETCONF2_MICRO_SOVERSION})
set(LIBNETCONF2_SOVERSION ${LIBNETCONF2_MAJOR_SOVERSION})
|
common/uptime.c: Format with clang-format
BRANCH=none
TEST=none
|
@@ -32,14 +32,12 @@ host_command_get_uptime_info(struct host_cmd_handler_args *args)
r->ec_reset_flags = system_get_reset_flags();
memset(r->recent_ap_reset, 0, sizeof(r->recent_ap_reset));
- rc = get_ap_reset_stats(recent_ap_reset,
- ARRAY_SIZE(r->recent_ap_reset),
+ rc = get_ap_reset_stats(recent_ap_reset, ARRAY_SIZE(r->recent_ap_reset),
&ap_resets_since_ec_boot);
r->ap_resets_since_ec_boot = ap_resets_since_ec_boot;
args->response_size = sizeof(*r);
return rc == EC_SUCCESS ? EC_RES_SUCCESS : EC_RES_ERROR;
}
-DECLARE_HOST_COMMAND(EC_CMD_GET_UPTIME_INFO,
- host_command_get_uptime_info,
+DECLARE_HOST_COMMAND(EC_CMD_GET_UPTIME_INFO, host_command_get_uptime_info,
EC_VER_MASK(0));
|
gphdfs Java 1.6 -> 1.7 requirement [ci skip]
|
<body>
<p>Install and configure Hadoop for use with <codeph>gphdfs</codeph> as follows:<ol
id="ol_whb_fxz_h4">
- <li id="du188617">Install Java 1.6 or later on <b>all</b> Greenplum Database hosts:
+ <li id="du188617">Install Java 1.7 or later on <b>all</b> Greenplum Database hosts:
master, segment, and standby master.</li>
<li id="du225465">Install a compatible Hadoop distribution on all hosts. The
distribution must be the same on all hosts. For Hadoop installation information, see
|
http-api: If scry fails, return reject response
|
@@ -545,7 +545,12 @@ export class Urbit {
const response = await fetch(
`${this.url}/~/scry/${app}${path}.json`,
this.fetchOptions
- );
+ )
+
+ if (!response.ok) {
+ return Promise.reject(response);
+ }
+
return await response.json();
}
|
mm/kmm_realloc.c : Fix to get kheap before free
To free the kheap, we should get the kheap first.
|
@@ -98,12 +98,13 @@ void *kmm_realloc_at(int heap_index, void *oldmem, size_t size)
return NULL;
}
+ kheap = kmm_get_heap();
+
if (size == 0) {
mm_free(&kheap[heap_index], oldmem);
return NULL;
}
- kheap = kmm_get_heap();
#ifdef CONFIG_DEBUG_MM_HEAPINFO
ret = mm_realloc(&kheap[heap_index], oldmem, size, caller_retaddr);
#else
|
Rmove set power threshold2 in PR flow
Changes:
-OPAE PR flow sets power threshold2 value,BBS ignores Threshold2 value
OPAE doen't set threshold2 in PR flow
|
@@ -252,25 +252,6 @@ fpga_result set_fpga_pwr_threshold(fpga_handle handle,
return result;
}
- // FIXME Fix threshold2 calculation.
- // FPGA threshold2 = 110% (FPGA threshold1)
- fpga_power = fpga_power + FPGA_THRESHOLD2(fpga_power);
- if (fpga_power > FPGA_MAX_POWER) {
- FPGA_ERR("Invalid power threshold 2");
- result = FPGA_NOT_SUPPORTED;
- return result;
- }
-
- // set fpga threshold 2
- snprintf(sysfs_path, sizeof(sysfs_path), "%s/%s", _token->sysfspath, PWRMGMT_THRESHOLD2);
- FPGA_DBG(" FPGA Threshold2 :%ld watts\n", fpga_power);
-
- result = sysfs_write_u64(sysfs_path, fpga_power);
- if (result != FPGA_OK) {
- FPGA_ERR("Failed to write power threshold 2");
- return result;
- }
-
return result;
}
|
elrs_phase: reset lpf
|
@@ -139,6 +139,9 @@ void elrs_phase_reset() {
pl_state.offset = 0;
pl_state.offset_dx = 0;
+
+ elrs_lpf_init((elrs_lpf_t *)&pl_state.offset_lpf, 2);
+ elrs_lpf_init((elrs_lpf_t *)&pl_state.offset_dx_lpf, 4);
}
void TIM3_IRQHandler() {
|
pkg/gadgets/trace/network/types: Remove unused functions
|
package types
import (
- "encoding/json"
"fmt"
"github.com/inspektor-gadget/inspektor-gadget/pkg/columns"
@@ -87,34 +86,3 @@ func GetColumns() *columns.Columns[Event] {
func (e Event) GetBaseEvent() eventtypes.Event {
return e.Event
}
-
-func Unique(edges []Event) []Event {
- keys := make(map[string]bool)
- list := []Event{}
- for _, e := range edges {
- key := e.Key()
- if _, value := keys[key]; !value {
- keys[key] = true
- list = append(list, e)
- }
- }
- return list
-}
-
-func (e *Event) Key() string {
- return fmt.Sprintf("%s/%s/%s/%s/%s/%d",
- e.Namespace,
- e.Pod,
- e.PktType,
- e.Proto,
- e.RemoteAddr,
- e.Port)
-}
-
-func EventsString(edges []Event) string {
- b, err := json.Marshal(edges)
- if err != nil {
- return fmt.Sprintf("error marshalling event: %s\n", err)
- }
- return string(b)
-}
|
[stm32l475-pandora] select AHT10_USING_SENSOR_DEVICE
|
@@ -103,8 +103,6 @@ menu "Onboard Peripheral Drivers"
default y
endif
-
-
menuconfig BSP_USING_FS
bool "Enable File System"
select RT_USING_DFS
@@ -145,7 +143,7 @@ menu "Onboard Peripheral Drivers"
select BSP_USING_I2C
select BSP_USING_I2C4
select PKG_USING_AHT10
- select PKG_USING_AHT10_LATEST_VERSION
+ select AHT10_USING_SENSOR_DEVICE
default n
menuconfig BSP_USING_AUDIO
|
fixed compilerwarning on older gcc
|
@@ -67,7 +67,6 @@ void cowprocess(FILE *fhcowin, FILE *fhpwout, FILE *fhpmkpwout, FILE *fhpmkout,
int rd, c;
uint8_t pwlen = 0;
-
cow_head_t cowh;
uint8_t recsize;
@@ -77,7 +76,7 @@ char passwort[66];
rd = fread(&cowh, COWHEAD_SIZE, 1, fhcowin);
if(rd != 1)
{
- fprintf(stderr, "error reading cowpatty file header %ld %d\n",COWHEAD_SIZE , rd);
+ fprintf(stderr, "error reading cowpatty file header\n");
return;
}
|
Update client_upcall.c
Strlen will just look for a null character for its calculations. so this code doesn't make sense.
but it is dangerous because if the code is changed as a result of the development of the project, then the function may go beyond the allocated memory.
I suggest deleting this call.
|
@@ -308,7 +308,6 @@ main(int argc, char *argv[])
while (!done && !input_done) {
if (inputAvailable()) {
if (fgets(buffer, sizeof(buffer), stdin) != NULL) {
- buffer[strlen(buffer)] = '\0';
usrsctp_sendv(sock, buffer, strlen(buffer), NULL, 0, NULL, 0, SCTP_SENDV_NOINFO, 0);
} else {
if (usrsctp_shutdown(sock, SHUT_WR) < 0) {
|
Fix option related issues in pg_verifybackup.
This commit does:
get rid of the garbage code for unused --print-parse-wal option.
add help message for --quiet option into usage().
fix typo of option name in help message.
Author: Fujii Masao
Discussion:
|
@@ -162,7 +162,6 @@ main(int argc, char **argv)
{"ignore", required_argument, NULL, 'i'},
{"manifest-path", required_argument, NULL, 'm'},
{"no-parse-wal", no_argument, NULL, 'n'},
- {"print-parse-wal", no_argument, NULL, 'p'},
{"quiet", no_argument, NULL, 'q'},
{"skip-checksums", no_argument, NULL, 's'},
{"wal-directory", required_argument, NULL, 'w'},
@@ -894,8 +893,9 @@ usage(void)
printf(_("Options:\n"));
printf(_(" -e, --exit-on-error exit immediately on error\n"));
printf(_(" -i, --ignore=RELATIVE_PATH ignore indicated path\n"));
- printf(_(" -m, --manifest=PATH use specified path for manifest\n"));
+ printf(_(" -m, --manifest-path=PATH use specified path for manifest\n"));
printf(_(" -n, --no-parse-wal do not try to parse WAL files\n"));
+ printf(_(" -q, --quiet do not print any output, except for errors\n"));
printf(_(" -s, --skip-checksums skip checksum verification\n"));
printf(_(" -w, --wal-directory=PATH use specified path for WAL files\n"));
printf(_(" -V, --version output version information, then exit\n"));
|
modnxtdevices/LightSensor: Compensate ambient
This adds a convenience option to compensate the Light Sensor value for presence of ambient light.
|
@@ -273,6 +273,7 @@ STATIC const mp_obj_type_t nxtdevices_SoundSensor_type = {
// pybricks.nxtdevices.LightSensor class object
typedef struct _nxtdevices_LightSensor_obj_t {
mp_obj_base_t base;
+ bool compensate_ambient;
#ifdef PBDRV_CONFIG_HUB_EV3BRICK
pbio_ev3iodev_t *iodev;
#else
@@ -283,13 +284,17 @@ typedef struct _nxtdevices_LightSensor_obj_t {
// pybricks.nxtdevices.LightSensor.__init__
STATIC mp_obj_t nxtdevices_LightSensor_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_kw, const mp_obj_t *args ) {
PB_PARSE_ARGS_CLASS(n_args, n_kw, args,
- PB_ARG_REQUIRED(port)
+ PB_ARG_REQUIRED(port),
+ PB_ARG_DEFAULT_FALSE(compensation)
);
nxtdevices_LightSensor_obj_t *self = m_new_obj(nxtdevices_LightSensor_obj_t);
self->base.type = (mp_obj_type_t*) type;
mp_int_t port_num = enum_get_value_maybe(port, &pb_enum_type_Port);
+
+ self->compensate_ambient = mp_obj_is_true(compensation);
+
#ifdef PBDRV_CONFIG_HUB_EV3BRICK
// Get the device and assert that it is of the right type
pb_assert(ev3device_get_device(&self->iodev, PBIO_IODEV_TYPE_ID_NXT_LIGHT_SENSOR, port_num));
@@ -339,13 +344,31 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_1(nxtdevices_LightSensor_ambient_obj, nxtdevices_
STATIC mp_obj_t nxtdevices_LightSensor_reflection(mp_obj_t self_in) {
nxtdevices_LightSensor_obj_t *self = MP_OBJ_TO_PTR(self_in);
int32_t analog;
+ int32_t ambient = 0;
+ int32_t reflection;
#ifdef PBDRV_CONFIG_HUB_EV3BRICK
+ if (self->compensate_ambient) {
+ pb_assert(ev3device_get_values_at_mode(self->iodev, PBIO_IODEV_MODE_NXT_COLOR_SENSOR__AMBIENT, &analog));
+ mp_hal_delay_ms(30);
+ pb_assert(ev3device_get_values_at_mode(self->iodev, PBIO_IODEV_MODE_NXT_COLOR_SENSOR__AMBIENT, &analog));
+ ambient = analog_light(analog);
pb_assert(ev3device_get_values_at_mode(self->iodev, PBIO_IODEV_MODE_NXT_COLOR_SENSOR__REFLECT, &analog));
+ mp_hal_delay_ms(30);
+ pb_assert(ev3device_get_values_at_mode(self->iodev, PBIO_IODEV_MODE_NXT_COLOR_SENSOR__REFLECT, &analog));
+ reflection = analog_light(analog);
+ }
+ else {
+ pb_assert(ev3device_get_values_at_mode(self->iodev, PBIO_IODEV_MODE_NXT_COLOR_SENSOR__REFLECT, &analog));
+ reflection = analog_light(analog);
+ ambient = 0;
+ }
#else
- analog = self->port;
+ analog = 0;
+ reflection = analog;
+ ambient = self->port;
pb_assert(PBIO_ERROR_NOT_IMPLEMENTED);
#endif
- return mp_obj_new_int((analog));
+ return mp_obj_new_int(max(reflection-ambient, 0));
}
STATIC MP_DEFINE_CONST_FUN_OBJ_1(nxtdevices_LightSensor_reflection_obj, nxtdevices_LightSensor_reflection);
|
README: fix a couple of outdated links
|
@@ -97,8 +97,8 @@ make sense since they will always be green, but here are the links:
* [Semaphore CI](https://nemequ.semaphoreci.com/projects/simde)
* [Circle CI](https://app.circleci.com/pipelines/github/simd-everywhere/simde)
* [AppVeyor](https://ci.appveyor.com/project/nemequ/simde)
-* [Azure Pipelines](https://dev.azure.com/nemequ/SIMDe/_build)
-* [Drone CI](https://cloud.drone.io/nemequ/simde)
+* [Azure Pipelines](https://dev.azure.com/simd-everywhere/SIMDe/_build)
+* [Drone CI](https://cloud.drone.io/simd-everywhere/simde/)
* [Travis CI](https://travis-ci.org/simd-everywhere/simde)
If you're adding a new build I suggest Cirrus CI, which is where we
|
Fix service delayed start typo
|
@@ -234,7 +234,7 @@ static VOID PhpRefreshControls(
}
else
{
- EnableWindow(GetDlgItem(hwndDlg, IDC_DELAYEDSTART), TRUE);
+ EnableWindow(GetDlgItem(hwndDlg, IDC_USERACCOUNT), TRUE);
EnableWindow(GetDlgItem(hwndDlg, IDC_PASSWORD), TRUE);
EnableWindow(GetDlgItem(hwndDlg, IDC_PASSWORDCHECK), TRUE);
EnableWindow(GetDlgItem(hwndDlg, IDC_SERVICEDLL), TRUE);
|
Badger2040: Sleep after writing the book, to fix possible write delay when on battery
|
import badger2040
+import time
import gc
import badger_os
@@ -13,7 +14,10 @@ except OSError:
# If the specified file doesn't exist,
# pre-populate with Wind In The Willows
import witw
- open(text_file, "wb").write(witw.data())
+ with open(text_file, "wb") as f:
+ f.write(witw.data())
+ f.flush()
+ time.sleep(0.1)
del witw
except ImportError:
pass
|
Enums now write their generics to introspect data.
|
@@ -539,6 +539,19 @@ static void write_generics(lily_parse_state *parser, uint16_t where)
add_data_string(parser, lily_mb_raw(msgbuf));
}
+static uint16_t store_enum_docblock(lily_parse_state *parser)
+{
+ if ((parser->flags & PARSER_HAS_DOCBLOCK) == 0) {
+ lily_u16_write_1(parser->data_stack, 0);
+ add_data_string(parser, "");
+ }
+ else
+ parser->flags &= ~PARSER_HAS_DOCBLOCK;
+
+ write_generics(parser, 1);
+ return build_doc_data(parser, 2);
+}
+
static void set_definition_doc(lily_parse_state *parser)
{
lily_var *define_var = parser->emit->scope_block->scope_var;
@@ -4961,8 +4974,8 @@ static void parse_enum_header(lily_parse_state *parser, lily_class *enum_cls)
lily_fix_enum_variant_ids(parser->symtab, enum_cls);
- if (parser->flags & PARSER_HAS_DOCBLOCK)
- enum_cls->doc_id = store_docblock(parser);
+ if (parser->flags & PARSER_EXTRA_INFO)
+ enum_cls->doc_id = store_enum_docblock(parser);
}
static void enum_method_check(lily_parse_state *parser)
|
imgtool: Discard public RSA if set for signing
If imgtool is used for signing with encryption
it will disallow using public RSA key for
signing.
|
@@ -156,9 +156,9 @@ def sign(key, align, version, header_size, pad_header, slot_size, pad,
enckey = load_key(encrypt) if encrypt else None
if enckey:
if not isinstance(enckey, (keys.RSA2048, keys.RSA2048Public)):
- raise Exception("Encryption only available with RSA")
- if key and not isinstance(key, (keys.RSA2048, keys.RSA2048Public)):
- raise Exception("Encryption with sign only available with RSA")
+ raise Exception("Encryption only available with RSA key")
+ if key and not isinstance(key, keys.RSA2048):
+ raise Exception("Signing only available with private RSA key")
img.create(key, enckey)
img.save(outfile)
|
[run_rocm_test] - Add sollve45 and sollve50 to blocking list for epsdb.
|
EPSDB_LIST=${EPSDB_LIST:-"examples smoke smokefails omp5 openmpapps nekbone sollve babelstream"}
SUITE_LIST=${SUITE_LIST:-"examples smoke smokefails omp5 openmpapps nekbone sollve"}
-blockinglist="examples_fortran examples_openmp smoke nekbone"
+blockinglist="examples_fortran examples_openmp smoke nekbone sollve45 sollve50"
# Use bogus path to avoid using target.lst, a user-defined target list
# used by rocm_agent_enumerator.
|
parse the correct frame id when encountering an unknown frame when logging
|
@@ -1322,7 +1322,7 @@ void picoquic_log_frames(FILE* F, uint64_t cnx_id64, uint8_t* bytes, size_t leng
default: {
/* Not implemented yet! */
uint64_t frame_id64;
- if (picoquic_varint_decode(bytes, length - byte_index, &frame_id64) > 0) {
+ if (picoquic_varint_decode(bytes + byte_index, length - byte_index, &frame_id64) > 0) {
fprintf(F, " Unknown frame, type: %llu\n", (unsigned long long)frame_id64);
} else {
fprintf(F, " Truncated frame type\n");
|
Fix minimal build.
|
@@ -54,11 +54,13 @@ typedef struct {
int is_error;
} JanetTimeout;
+#ifdef JANET_THREADS
typedef struct {
JanetMailbox *original;
JanetMailbox *newbox;
uint64_t flags;
} JanetMailboxPair;
+#endif
struct JanetVM {
/* Top level dynamic bindings */
@@ -121,7 +123,7 @@ struct JanetVM {
JanetTraversalNode *traversal_base;
/* Threading */
-#ifndef JANET_SINGLE_THREADED
+#ifdef JANET_THREADS
JanetMailbox *mailbox;
JanetThread *thread_current;
JanetTable *thread_decode;
|
[core] adjust when TCP_CORK used on TLS connection
|
@@ -287,7 +287,9 @@ connection_write_chunkqueue (connection * const con, chunkqueue * const restrict
/* Linux: put a cork into socket as we want to combine write() calls
* but only if we really have multiple chunks including non-MEM_CHUNK
* (or if multiple chunks and TLS), and only if TCP socket */
- if (NULL != c || (max_bytes > 16384 && con->is_ssl_sock)) {
+ /* (max_bytes may have been reduced by connection_write_throttle(),
+ * but not bothering to check; might result in some extra corking) */
+ if (NULL != c || (con->is_ssl_sock && chunkqueue_length(cq) > 16384)) {
const int sa_family = sock_addr_get_family(&con->srv_socket->addr);
if (sa_family == AF_INET || sa_family == AF_INET6) {
corked = 1;
|
improves encryption password handling
|
@@ -55,6 +55,8 @@ static struct argp argp = {options, parse_opt, args_doc, doc};
static struct oidc_provider* provider = NULL;
+char* encryptionPassword = NULL;
+
int main(int argc, char** argv) {
openlog("oidc-gen", LOG_CONS|LOG_PID, LOG_AUTHPRIV);
// setlogmask(LOG_UPTO(LOG_DEBUG));
@@ -104,10 +106,42 @@ int main(int argc, char** argv) {
printf("%s\n", pairs[0].value);
free(pairs[0].value);
- char* encryptionPassword = promptPassword("Enter encrpytion password: ");
+ do {
+ char* input = promptPassword("Enter encrpytion password%s: ", encryptionPassword ? " [***]" : "");
+ if(encryptionPassword && !isValid(input)) { // use same encrpytion password
+ free(input);
+ break;
+ } else {
+ if(encryptionPassword) {
+ memset(encryptionPassword, 0, strlen(encryptionPassword));
+ free(encryptionPassword);
+ }
+ encryptionPassword = input;
+ }
+ char* confirm = promptPassword("Confirm encryption Password: ");
+ if(strcmp(encryptionPassword, confirm)!=0) {
+ printf("Encryption passwords did not match.\n");
+ if(confirm) {
+ memset(confirm, 0, strlen(confirm));
+ free(confirm);
+ }
+ if(encryptionPassword) {
+ memset(encryptionPassword, 0, strlen(encryptionPassword));
+ free(encryptionPassword);
+ encryptionPassword = NULL;
+ }
+ continue;
+ }
+ memset(confirm, 0, strlen(confirm));
+ free(confirm);
+ } while(encryptionPassword==NULL);
char* toWrite = encryptProvider(json, encryptionPassword);
free(json);
+ if(encryptionPassword) {
+ memset(encryptionPassword, 0, strlen(encryptionPassword));
free(encryptionPassword);
+ }
+
writeOidcFile(provider->name, toWrite);
free(toWrite);
saveExit(EXIT_SUCCESS);
@@ -175,9 +209,8 @@ struct oidc_provider* genNewProvider() {
free(res);
struct oidc_provider* loaded_p = NULL;
while(NULL==loaded_p) {
- char* encryptionPassword = promptPassword("Enter the encryption Password: ");
+ encryptionPassword = promptPassword("Enter encryption Password: ");
loaded_p = decryptProvider(provider_getName(*provider), encryptionPassword);
- free(encryptionPassword);
}
freeProvider(provider);
provider = loaded_p;
|
tests: fixed wrongly replaced egrep
In this case, the usage of egrep was correct as it's the type of regex that the `find` command is using
|
@@ -14,7 +14,7 @@ command -v checkbashisms > /dev/null 2>&1 || {
cd "@CMAKE_SOURCE_DIR@" || exit
# Use (non-emacs) extended regex for GNU find or BSD find
-find -version > /dev/null 2>&1 > /dev/null && FIND='find scripts -regextype grep -E' || FIND='find -E scripts'
+find -version > /dev/null 2>&1 > /dev/null && FIND='find scripts -regextype egrep' || FIND='find -E scripts'
# - The scripts `reformat-c`, `reformat-java` and `install-config-file` use `command -v`,
# which was optional in POSIX until issue 7. Since `which` is not part of POSIX
|
Put socket destroyed signal handling to the right place to prevent double exec
|
@@ -8056,6 +8056,9 @@ void DeRestPluginPrivate::pushClientForClose(QTcpSocket *sock, int closeTimeout,
client.sock = sock;
client.closeTimeout = closeTimeout;
+ connect(sock, SIGNAL(destroyed()),
+ this, SLOT(clientSocketDestroyed()));
+
openClients.push_back(client);
}
@@ -12469,9 +12472,6 @@ int DeRestPlugin::handleHttpRequest(const QHttpRequestHeader &hdr, QTcpSocket *s
}
}
- connect(sock, SIGNAL(destroyed()),
- d, SLOT(clientSocketDestroyed()));
-
QStringList path = hdrmod.path().split(QLatin1String("/"), QString::SkipEmptyParts);
ApiRequest req(hdrmod, path, sock, content);
ApiResponse rsp;
|
misc: updating obs packages for v1.3.8
|
@@ -18,7 +18,7 @@ runtimes = ["singularity","ocr","charliecloud"]
rms = ["slurm","pbspro","pmix"]
serial-libs = ["R","openblas","plasma"]
parallel-libs = ["boost","hypre","mumps","opencoarrays","petsc","slepc","superlu_dist"]
-perf-tools = ["dimemas","extrae","likwid","scorep","tau"]
+perf-tools = ["dimemas","extrae","likwid","papi","scorep","tau"]
compiler-families=["gnu-compilers","intel-compilers-devel"]
mpi-families=["mpich","mvapich2","openmpi"]
@@ -61,9 +61,14 @@ skip_aarch=["-intel\\b","lustre-client","-impi\\b","-mvapich2\\b","likwid-gnu"]
compiler_families=["gnu8","intel"]
mpi_families=["openmpi3","mpich","mvapich2","impi"]
-standalone = ["charliecloud","clustershell","easybuild","lmod"]
+
+standalone = ["charliecloud","clustershell","cmake","easybuild","lmod","papi","slurm","valgrind"]
# define (compiler dependent) packages
-compiler_dependent = ["hdf5","openmpi","mvapich2","likwid"]
+compiler_dependent = ["hdf5","openmpi","mvapich2","likwid","R"]
+
+# overdefault compiler families for any desired components
+R_compiler=["gnu8"]
+>>>>>>> misc: updating obs packages for v1.3.8
mpi_dependent = ["boost","mumps","petsc","phdf5","scorep","slepc"]
|
some new headers 4 mapkit
|
@@ -1245,8 +1245,12 @@ mach/vm_statistics.h
sys/kauth.h
sys/proc_info.h
sys/statfs.h
+Cocoa/Cocoa.h
+CommonCrypto/CommonCrypto.h
CoreFoundation/CoreFoundation.h
CoreFoundation/CFRunLoop.h
+CoreGraphics/CoreGraphics.h
+CoreText/CoreText.h
IOKit/ps/IOPSKeys.h
IOKit/ps/IOPowerSources.h
IOKit/ps/IOPowerSources.h
@@ -1257,6 +1261,8 @@ IOKit/IOBSD.h
IOKit/ps/IOPowerSources.h
IOKit/ps/IOPSKeys.h
IOKit/kext/KextManager.h
+QuartzCore/QuartzCore.h
+asl.h
System/pthread_machdep.h
util.h
#endif
@@ -2283,10 +2289,12 @@ CoreMotion/CoreMotion.h
CoreTelephony/CTCarrier.h
CoreTelephony/CTTelephonyNetworkInfo.h
Foundation/Foundation.h
+Foundation/NSException.h
Foundation/NSString.h
GLKit/GLKit.h
UIKit/UIImage.h
UIKit/UIKit.h
+UIKit/UIWebView.h
XCTest/XCTest.h
objc/runtime.h
# end objc
|
Check Spec: Require list and sync plugin for test
|
@@ -13,7 +13,7 @@ echo "Test specification get"
ROOT_FILE=spec_tests.ecf
ROOT_MOUNTPOINT=/test/script/spec
-if is_plugin_available dump
+if is_plugin_available dump && is_plugin_available list && is_plugin_available sync
then
"$KDB" mount $ROOT_FILE $ROOT_MOUNTPOINT dump 1>/dev/null
succeed_if "could not mount root: $ROOT_FILE at $ROOT_MOUNTPOINT"
|
doc: explain intr storm monitor params in acrn-dm
add the introduction of interrupt storm monitor params in acrn-dm
commond lines.
|
@@ -54,7 +54,7 @@ options:
acrn-dm [-abehuwxACHPSTWY] [-c vcpus] [-g <gdb port>] [-l <lpc>]
[-m mem] [-p vcpu:hostcpu] [-s <pci>] [-U uuid]
[--vsbl vsbl_file_name] [--part_info part_info_name]
- [--enable_trusty] <vm>
+ [--enable_trusty] [--intr_monitor param_setting] <vm>
-a: local apic is in xAPIC mode (deprecated)
-A: create ACPI tables
@@ -87,7 +87,8 @@ options:
--part_info: guest partition info file path
--enable_trusty: enable trusty for guest
--ptdev_no_reset: disable reset check for ptdev
-
+ --intr_monitor: enable interrupt storm monitor, params:
+ threshold/s,probe-period(s),delay_time(ms),delay_duration(ms)
Here's an example showing how to run a VM with:
@@ -105,6 +106,7 @@ Here's an example showing how to run a VM with:
-s 5,virtio-console,@pty:pty_port \
-s 3,virtio-blk,b,/data/clearlinux/clearlinux.img \
-s 4,virtio-net,tap_LaaG --vsbl /usr/share/acrn/bios/VSBL.bin \
+ --intr_monitor 10000,10,1,100 \
-B "root=/dev/vda2 rw rootwait maxcpus=3 nohpet console=hvc0 \
console=ttyS0 no_timer_check ignore_loglevel log_buf_len=16M \
consoleblank=0 tsc=reliable i915.avail_planes_per_pipe=0x070F00 \
|
News: Add introductory sentences to sections
|
@@ -50,6 +50,7 @@ You can also read the news [on our website](https://www.libelektra.org/news/0.8.
## Plugins
+The following section lists news about the [modules](https://www.libelektra.org/plugins/readme) we updated in this release.
### <<Plugin1>>
@@ -62,6 +63,8 @@ You can also read the news [on our website](https://www.libelektra.org/news/0.8.
## Libraries
+The text below summarizes updates to the [C (and C++) based interface](https://www.libelektra.org/libraries/readme) of Elektra.
+
### <<Library1>>
@@ -73,6 +76,9 @@ You can also read the news [on our website](https://www.libelektra.org/news/0.8.
## Bindings
+Bindings allow you to utilize Elektra using [various programming languages](https://www.libelektra.org/bindings/readme). This section keeps
+you up to date with the multi-language support provided by Elektra.
+
### <<Binding1>>
|
Allow building with external jsoncpp
Tested-by: Build Bot
|
@@ -309,7 +309,14 @@ ADD_SUBDIRECTORY(src/vbucket)
ADD_SUBDIRECTORY(contrib/cbsasl)
ADD_SUBDIRECTORY(contrib/cliopts)
ADD_SUBDIRECTORY(src/ssl)
+IF(NOT LCB_JSONCPP_LIB)
ADD_SUBDIRECTORY(contrib/lcb-jsoncpp)
+ENDIF()
+IF(NOT LCB_JSONCPP_INCLUDE_DIR)
+ INCLUDE_DIRECTORIES(contrib/lcb-jsoncpp)
+ELSE()
+ INCLUDE_DIRECTORIES(${LCB_JSONCPP_INCLUDE_DIR})
+ENDIF()
IF(NOT LCB_SNAPPY_LIB)
ADD_SUBDIRECTORY(contrib/snappy)
ENDIF()
@@ -354,11 +361,13 @@ SET(LCB_CORE_OBJS
$<TARGET_OBJECTS:lcbcore>
$<TARGET_OBJECTS:lcbcore-cxx>
$<TARGET_OBJECTS:lcb_jsparse>
- $<TARGET_OBJECTS:lcb_jsoncpp>
${LCB_DTRACE_OBJECT}
${lcb_plat_objs}
${lcb_ssl_objs})
+IF(NOT LCB_JSONCPP_LIB)
+ LIST (APPEND LCB_CORE_OBJS $<TARGET_OBJECTS:lcb_jsoncpp>)
+ENDIF()
IF(NOT LCB_SNAPPY_LIB)
LIST (APPEND LCB_CORE_OBJS $<TARGET_OBJECTS:lcb_snappy>)
ENDIF()
@@ -410,6 +419,9 @@ ENDIF()
IF(LIBPROFILER)
SET(LCB_LINK_DEPS ${LCB_LINK_DEPS} ${LIBPROFILER})
ENDIF()
+IF(LCB_JSONCPP_LIB)
+ SET(LCB_LINK_DEPS ${LCB_LINK_DEPS} ${LCB_JSONCPP_LIB})
+ENDIF()
IF(LCB_SNAPPY_LIB)
SET(LCB_LINK_DEPS ${LCB_LINK_DEPS} ${LCB_SNAPPY_LIB})
ENDIF()
|
Don't intercept our own getaddrinfo in transport.
We don't want this in DNS metrics.
|
struct _transport_t
{
cfg_transport_t type;
- ssize_t (*write)(int, const void *, size_t);
ssize_t (*send)(int, const void *, size_t, int);
int (*open)(const char *, int, ...);
int (*dup2)(int, int);
int (*close)(int);
+ int (*fcntl)(int, int, ...);
+ ssize_t (*write)(int, const void *, size_t);
int (*socket)(int, int, int);
int (*connect)(int, const struct sockaddr *, socklen_t);
- int (*fcntl)(int, int, ...);
+ int (*getaddrinfo)(const char *, const char *,
+ const struct addrinfo *,
+ struct addrinfo **);
union {
struct {
int sock;
@@ -55,13 +58,16 @@ newTransport()
if ((t->write = dlsym(RTLD_NEXT, "write")) == NULL) goto out;
if ((t->socket = dlsym(RTLD_NEXT, "socket")) == NULL) goto out;
if ((t->connect = dlsym(RTLD_NEXT, "connect")) == NULL) goto out;
+ if ((t->getaddrinfo = dlsym(RTLD_NEXT, "getaddrinfo")) == NULL) goto out;
return t;
out:
DBG("send=%p open=%p dup2=%p close=%p "
- "fcntl=%p write=%p socket=%p connect=%p",
+ "fcntl=%p write=%p socket=%p connect=%p "
+ "getaddrinfo=%p",
t->send, t->open, t->dup2, t->close,
- t->fcntl, t->write, t->socket, t->connect);
+ t->fcntl, t->write, t->socket, t->connect,
+ t->getaddrinfo);
free(t);
return NULL;
}
@@ -114,7 +120,7 @@ transportCreateUdp(const char* host, const char* port)
hints.ai_family = AF_UNSPEC; // IPv4 or IPv6
hints.ai_socktype = SOCK_DGRAM; // For udp
hints.ai_protocol = IPPROTO_UDP; // For udp
- if (getaddrinfo(host, port, &hints, &addr_list)) goto out;
+ if (t->getaddrinfo(host, port, &hints, &addr_list)) goto out;
// Loop through the addresses until one works
struct addrinfo* addr;
|
Always use the best render scale quality available
Because why not.
See <https://wiki.libsdl.org/SDL_HINT_RENDER_SCALE_QUALITY>.
|
@@ -18,8 +18,8 @@ SDL_bool sdl_init_and_configure(void) {
atexit(SDL_Quit);
- // Bilinear resizing
- if (!SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "1")) {
+ // Use the best available scale quality
+ if (!SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "2")) {
LOGW("Could not enable bilinear filtering");
}
|
examples/apache: no need to instrument server/util.c any more
|
@@ -108,63 +108,6 @@ index bda60827c..2e4abccfe 100644
char c;
int showcompile = 0, showdirectives = 0;
const char *confname = SERVER_CONFIG_FILE;
-diff --git a/server/util.c b/server/util.c
-index d302764e3..e4848b2c8 100644
---- a/server/util.c
-+++ b/server/util.c
-@@ -27,6 +27,8 @@
- * #define DEBUG_CFG_LINES to trace every line read from the config files
- */
-
-+#include <libhfuzz.h>
-+
- #include "apr.h"
- #include "apr_strings.h"
- #include "apr_lib.h"
-@@ -3408,6 +3410,7 @@ static const short ucharmap[] = {
-
- AP_DECLARE(int) ap_cstr_casecmp(const char *s1, const char *s2)
- {
-+ unsigned int z = 0;
- const unsigned char *str1 = (const unsigned char *)s1;
- const unsigned char *str2 = (const unsigned char *)s2;
- for (;;)
-@@ -3416,15 +3419,19 @@ AP_DECLARE(int) ap_cstr_casecmp(const char *s1, const char *s2)
- const int c2 = (int)(*str2);
- const int cmp = ucharmap[c1] - ucharmap[c2];
- /* Not necessary to test for !c2, this is caught by cmp */
-- if (cmp || !c1)
-+ if (cmp || !c1) {
-+ instrumentCmpMap(__builtin_return_address(0), z);
- return cmp;
-+ }
- str1++;
- str2++;
-+ z++;
- }
- }
-
- AP_DECLARE(int) ap_cstr_casecmpn(const char *s1, const char *s2, apr_size_t n)
- {
-+ unsigned int z = 0;
- const unsigned char *str1 = (const unsigned char *)s1;
- const unsigned char *str2 = (const unsigned char *)s2;
- while (n--)
-@@ -3433,10 +3440,13 @@ AP_DECLARE(int) ap_cstr_casecmpn(const char *s1, const char *s2, apr_size_t n)
- const int c2 = (int)(*str2);
- const int cmp = ucharmap[c1] - ucharmap[c2];
- /* Not necessary to test for !c2, this is caught by cmp */
-- if (cmp || !c1)
-+ if (cmp || !c1) {
-+ instrumentCmpMap(__builtin_return_address(0), z);
- return cmp;
-+ }
- str1++;
- str2++;
-+ z++;
- }
- return 0;
- }
diff --git a/support/ab.c b/support/ab.c
index 58769a9c8..ddf141bcc 100644
--- a/support/ab.c
|
update for big-endian MPU.
|
#ifndef MRBC_SRC_OPCODE_H_
#define MRBC_SRC_OPCODE_H_
+#include <stdint.h>
+
#ifdef __cplusplus
extern "C" {
#endif
-#define GET_OPCODE(code) ((code) & 0x7f)
-#define GETARG_A(code) (((code) >> 23) & 0x1ff)
-#define GETARG_B(code) (((code) >> 14) & 0x1ff)
-#define GETARG_C(code) (((code) >> 7) & 0x7f)
-#define GETARG_Ax(code) (((code) >> 7) & 0x1ffffff)
-
-#define GETARG_Bz(code) GETARG_UNPACK_b(code,14,2)
+#define GET_OPCODE(code) ((code) & 0x7f) // 7bit
+#define GETARG_A(code) (((code) >> 23) & 0x1ff) // 9bit
+#define GETARG_B(code) (((code) >> 14) & 0x1ff) // 9bit
+#define GETARG_C(code) (((code) >> 7) & 0x7f) // 7bit
+#define GETARG_Ax(code) (((code) >> 7) & 0x1ffffff) // 25bit
+#define GETARG_Bx(code) (((code) >> 7) & 0xffff) // 16bit
+#define GETARG_Bz(code) (((code) >> 9) & 0x3fff) // 14bit
+#define GETARG_sBx(code) (GETARG_Bx(code)-0x7fff)
-#define GETARG_UNPACK_b(i,n1,n2) ((((code)) >> (7+(n2))) & (((1<<(n1))-1)))
-#define MKOPCODE(op) ((op & 0x7f)<<24)
-#define MKARG_A(c) ((c & 0xff)<<1 | (c & 0x01)>>8)
-#define MKARG_B(c) ((c & 0x1fc)<<6 | (c & 0x03)<<22)
-#define MKARG_C(c) ((c & 0x7e)<<15 | (c & 0x01)<<31)
+#if defined(MRBC_LITTLE_ENDIAN)
+#define MKOPCODE(op) (((op) & 0x7f)<<24)
+#define MKARG_A(x) (((uint32_t)(x) & 0xff)<<1 | ((uint32_t)(x) & 0x01)>>8)
+#define MKARG_B(x) (((uint32_t)(x) & 0x1fc)<<6 | ((uint32_t)(x) & 0x03)<<22)
+#define MKARG_C(x) (((uint32_t)(x) & 0x7e)<<15 | ((uint32_t)(x) & 0x01)<<31)
-
-#define MAXARG_Bx (0xffff)
-#define MAXARG_sBx (MAXARG_Bx>>1)
-#define GETARG_Bx(code) (((code) >> 7) & 0xffff)
-#define GETARG_sBx(code) (GETARG_Bx(code)-MAXARG_sBx)
-#define GETARG_C(code) (((code) >> 7) & 0x7f)
+#elif defined(MRBC_BIG_ENDIAN)
+#define MKOPCODE(op) ((op) & 0x7f)
+#define MKARG_A(x) ((uint32_t)(x) << 23)
+#define MKARG_B(x) ((uint32_t)(x) << 14)
+#define MKARG_C(x) ((uint32_t)(x) << 7)
+#endif
//================================================================
|
Print comprehensible progress messages
|
@@ -720,10 +720,10 @@ public:
bool IsContinueTraining(const TMetricsAndTimeLeftHistory& /*history*/) override {
++IterationIdx;
- constexpr double HeartbeatSeconds = 1;
+ constexpr double HeartbeatSeconds = 600;
if (TrainTimer.Passed() > HeartbeatSeconds) {
TSetLogging infomationMode(ELoggingLevel::Info);
- CATBOOST_INFO_LOG << "Train iteration " << IterationIdx << " of " << IterationCount << Endl;
+ CATBOOST_NOTICE_LOG << "Status after (another) " << HeartbeatSeconds << " seconds: iteration " << IterationIdx << " of " << IterationCount << Endl;
TrainTimer.Reset();
}
return /*continue training*/true;
@@ -805,6 +805,13 @@ static bool HaveFeaturesToEvaluate(const TVector<TTrainingDataProviders>& foldsD
return true;
}
+static ui32 GetTrainingCount(const NCatboostOptions::TFeatureEvalOptions& featureEvalOptions) {
+ const auto useCommonBaseline = featureEvalOptions.FeatureEvalMode != NCB::EFeatureEvalMode::OneVsOthers;
+ const ui32 foldCount = featureEvalOptions.FoldCount;
+ const ui32 featureSetCount = featureEvalOptions.FeaturesToEvaluate->size();
+ return foldCount * (useCommonBaseline ? featureSetCount + 1 : 2 * featureSetCount);
+}
+
static void EvaluateFeaturesImpl(
const NCatboostOptions::TCatBoostOptions& catBoostOptions,
const NCatboostOptions::TOutputFilesOptions& outputFileOptions,
@@ -926,6 +933,11 @@ static void EvaluateFeaturesImpl(
results->SetHeaderInfo(metrics, featureEvalOptions.FeaturesToEvaluate);
}
+ const ui32 trainingCount = GetTrainingCount(featureEvalOptions);
+ CATBOOST_NOTICE_LOG << "Feature evaluation requires training " << trainingCount << " model(s); "
+ "if training takes more than 10 minutes to complete, progress is printed every 10 minutes" << Endl;
+ ui32 trainingIdx = 0;
+
const ui32 offsetInRange = cvParams.Initialized() ? 0 : featureEvalOptions.Offset.Get();
const auto trainFullModels = [&] (
bool isTest,
@@ -936,6 +948,9 @@ static void EvaluateFeaturesImpl(
const bool isCalcFstr = !outputFileOptions.CreateFstrIternalFullPath().empty();
const bool isCalcRegularFstr = !outputFileOptions.CreateFstrRegularFullPath().empty();
for (auto foldIdx : xrange(foldCount)) {
+ ++trainingIdx;
+ CATBOOST_NOTICE_LOG << "Training model number " << trainingIdx << " of " << trainingCount << Endl;
+
const bool haveSummary = callbacks->HaveEvalFeatureSummary(
foldRangeBegin,
featureSetIdx,
|
porting: Assert when setting data for queued event
Setting data when event is already queued always indicates bug in code.
|
#include <stdint.h>
#include <string.h>
+#include <assert.h>
#include "os/os.h"
#ifdef __cplusplus
@@ -146,6 +147,7 @@ ble_npl_event_get_arg(struct ble_npl_event *ev)
static inline void
ble_npl_event_set_arg(struct ble_npl_event *ev, void *arg)
{
+ assert(ev->ev.ev_queued == 0);
ev->ev.ev_arg = arg;
}
|
Add Flocklab Openmotes as an example deployment mapping
|
@@ -63,6 +63,21 @@ const struct id_mac deployment_cooja8[] = {
{ 0, {{0}}}
};
+/** \brief An example mapping for Openmotes in Flocklab.
+ * To use, set DEPLOYMENT_MAPPING to deployment_flocklab_openmotes */
+const struct id_mac deployment_flocklab_openmotes[] = {
+ { 3, {{0x00,0x12,0x4b,0x00,0x06,0x0d,0x9b,0x29}}},
+ { 6, {{0x00,0x12,0x4b,0x00,0x06,0x0d,0x9b,0x34}}},
+ { 8, {{0x00,0x12,0x4b,0x00,0x06,0x0d,0x9b,0x1f}}},
+ { 15, {{0x00,0x12,0x4b,0x00,0x06,0x0d,0x9b,0x85}}},
+ { 16, {{0x00,0x12,0x4b,0x00,0x06,0x0d,0x9b,0x00}}},
+ { 18, {{0x00,0x12,0x4b,0x00,0x06,0x0d,0x9b,0x37}}},
+ { 22, {{0x00,0x12,0x4b,0x00,0x06,0x0d,0x9b,0x08}}},
+ { 23, {{0x00,0x12,0x4b,0x00,0x06,0x0d,0x9b,0x5f}}},
+ { 31, {{0x00,0x12,0x4b,0x00,0x06,0x0d,0x9b,0xb1}}},
+ { 0, {{0}}}
+};
+
/*---------------------------------------------------------------------------*/
PROCESS(app_process, "App process");
AUTOSTART_PROCESSES(&app_process);
|
DOCS: Add link to 19.08 test framework docs
|
@@ -4,6 +4,7 @@ Test Framework Documentation {#test_framework_doc}
PyDoc generated documentation for the "make test" framework is available for
the following releases:
+- [Test framework documentation for VPP 19.08](https://docs.fd.io/vpp/19.08/vpp_make_test/html)
- [Test framework documentation for VPP 19.04](https://docs.fd.io/vpp/19.04/vpp_make_test/html)
- [Test framework documentation for VPP 19.01](https://docs.fd.io/vpp/19.01/vpp_make_test/html)
- [Test framework documentation for VPP 18.10](https://docs.fd.io/vpp/18.10/vpp_make_test/html)
|
Enabling building Bionic packages.
|
@@ -1030,7 +1030,7 @@ yanlr/YAML(((Base)?Listener|ImprovedSymbolNames)|.h)|\
def generateArtifactStages() {
def tasks = [:]
tasks << buildDebianPackage("buildPackage/debian/buster", DOCKER_IMAGES.buster)
- // tasks << buildDebianPackage("buildPackage/debian/bionic", DOCKER_IMAGES.bionic)
+ tasks << buildDebianPackage("buildPackage/debian/bionic", DOCKER_IMAGES.bionic)
tasks << buildWebsite()
// tasks << buildWebUI()
return tasks
|
getscom: Add chip info for P9.
Took the cfam values from hw/xscom.
|
@@ -60,6 +60,12 @@ static void print_chip_info(uint32_t chip_id)
case 0xd3:
name = "P8NVL (Naples) processor";
break;
+ case 0xd1:
+ name = "P9 (Nimbus) processor";
+ break;
+ case 0xd4:
+ name = "P9 (Cumulus) processor";
+ break;
case 0xe9:
name = "Centaur memory buffer";
break;
|
Remove ChooseRelationNameWithCache() and a merge fixme
It's not being used since Greenplum 6, remove and align to the upstream.
|
@@ -2467,12 +2467,9 @@ makeObjectName(const char *name1, const char *name2, const char *label)
* Note: it is theoretically possible to get a collision anyway, if someone
* else chooses the same name concurrently. This is fairly unlikely to be
* a problem in practice, especially if one is holding an exclusive lock on
- * the relation identified by name1.
- *
- * If choosing multiple names within a single command, there are two options:
- * 1) Create the new object and do CommandCounterIncrement
- * 2) Pass a hash-table to this function to use as a cache of objects
- * created in this statement.
+ * the relation identified by name1. However, if choosing multiple names
+ * within a single command, you'd better create the new object and do
+ * CommandCounterIncrement before choosing the next one!
*
* Returns a palloc'd string.
*/
@@ -2480,23 +2477,10 @@ char *
ChooseRelationName(const char *name1, const char *name2,
const char *label, Oid namespaceid,
bool isconstraint)
-{
- return ChooseRelationNameWithCache(name1, name2, label, namespaceid, isconstraint,
- NULL);
-}
-
-/* GPDB_12_MERGE_FIXME: this cache seems to be unused now. I guess we reverted
- * the stuff that used it. Is this still needed? */
-char *
-ChooseRelationNameWithCache(const char *name1, const char *name2,
- const char *label, Oid namespaceid,
- bool isconstraint,
- HTAB *cache)
{
int pass = 0;
char *relname = NULL;
char modlabel[NAMEDATALEN];
- bool found = false;
if (GP_ROLE_EXECUTE == Gp_role)
elog(ERROR, "relation names cannot be chosen on QE");
@@ -2508,10 +2492,7 @@ ChooseRelationNameWithCache(const char *name1, const char *name2,
{
relname = makeObjectName(name1, name2, modlabel);
- if (cache)
- hash_search(cache, (void *) relname, HASH_FIND, &found);
-
- if (!found && !OidIsValid(get_relname_relid(relname, namespaceid)))
+ if (!OidIsValid(get_relname_relid(relname, namespaceid)))
{
if (!isconstraint ||
!ConstraintNameExists(relname, namespaceid))
@@ -2523,13 +2504,6 @@ ChooseRelationNameWithCache(const char *name1, const char *name2,
snprintf(modlabel, sizeof(modlabel), "%s%d", label, ++pass);
}
- /* If we are caching found values add the value to our hash */
- if (cache)
- {
- hash_search(cache, (void *) relname, HASH_ENTER, &found);
- Assert(!found);
- }
-
return relname;
}
|
http_client: fixing SSL error when specifying 443 port in the host header
|
@@ -530,7 +530,13 @@ static int add_host_and_content_length(struct flb_http_client *c)
out_port = c->port;
}
+ if (c->flags & FLB_IO_TLS && out_port == 443) {
+ tmp = flb_sds_copy(host, out_host, strlen(out_host));
+ }
+ else {
tmp = flb_sds_printf(&host, "%s:%i", out_host, out_port);
+ }
+
if (!tmp) {
flb_sds_destroy(host);
flb_error("[http_client] cannot compose temporary host header");
|
Update mailing list URL.
|
+16 December 2019: George
+ - Update mailing list URL.
+
12 December 2019: Ralph
- Master is 1.9.7 in development.
- Fix typo to let serve-expired-ttl work with ub_ctx_set_option(), by
|
If none of the BUILD_ options is set, enable them all
|
@@ -73,6 +73,18 @@ endif
#
# Beginning of system configuration
#
+ifneq ($(BUILD_SINGLE),1)
+ifneq ($(BUILD_DOUBLE),1)
+ifneq ($(BUILD_COMPLEX),1)
+ifneq ($(BUILD_COMPLEX16),1)
+override BUILD_SINGLE=1
+override BUILD_DOUBLE=1
+override BUILD_COMPLEX=1
+override BUILD_COMPLEX16=1
+endif
+endif
+endif
+endif
ifndef HOSTCC
HOSTCC = $(CC)
|
stm32/adc: Update ADC driver to work with the new H7 HAL.
Use NB_TO_CHANNEL to map decimal numbers to channel numbers. And use the
correct rank to initialize channels (ADC_REGULAR_RANK_1).
|
#define ADC_SCALE (ADC_SCALE_V / ((1 << ADC_CAL_BITS) - 1))
#define VREFIN_CAL ((uint16_t *)ADC_CAL_ADDRESS)
+#ifndef __HAL_ADC_IS_CHANNEL_INTERNAL
+#define __HAL_ADC_IS_CHANNEL_INTERNAL(channel) \
+ (channel == ADC_CHANNEL_VBAT \
+ || channel == ADC_CHANNEL_VREFINT \
+ || channel == ADC_CHANNEL_TEMPSENSOR)
+#endif
+
typedef struct _pyb_obj_adc_t {
mp_obj_base_t base;
mp_obj_t pin_name;
@@ -188,8 +195,11 @@ STATIC bool is_adcx_channel(int channel) {
#if defined(STM32F411xE)
// The HAL has an incorrect IS_ADC_CHANNEL macro for the F411 so we check for temp
return IS_ADC_CHANNEL(channel) || channel == ADC_CHANNEL_TEMPSENSOR;
-#elif defined(STM32F0) || defined(STM32F4) || defined(STM32F7) || defined(STM32H7)
+#elif defined(STM32F0) || defined(STM32F4) || defined(STM32F7)
return IS_ADC_CHANNEL(channel);
+#elif defined(STM32H7)
+ return __HAL_ADC_IS_CHANNEL_INTERNAL(channel)
+ || IS_ADC_CHANNEL(__HAL_ADC_DECIMAL_NB_TO_CHANNEL(channel));
#elif defined(STM32L4)
ADC_HandleTypeDef handle;
handle.Instance = ADCx;
@@ -308,8 +318,16 @@ STATIC void adc_init_single(pyb_obj_adc_t *adc_obj) {
STATIC void adc_config_channel(ADC_HandleTypeDef *adc_handle, uint32_t channel) {
ADC_ChannelConfTypeDef sConfig;
- sConfig.Channel = channel;
+ #if defined (STM32H7)
+ sConfig.Rank = ADC_REGULAR_RANK_1;
+ if (__HAL_ADC_IS_CHANNEL_INTERNAL(channel) == 0) {
+ channel = __HAL_ADC_DECIMAL_NB_TO_CHANNEL(channel);
+ }
+ #else
sConfig.Rank = 1;
+ #endif
+ sConfig.Channel = channel;
+
#if defined(STM32F0)
sConfig.SamplingTime = ADC_SAMPLETIME_55CYCLES_5;
#elif defined(STM32F4) || defined(STM32F7)
|
examples: nxwidget: nxstyle fixes
nxstyle fixes for nxwidget exaples
|
@@ -590,7 +590,7 @@ void CWidgetControl::newMouseEvent(FAR const struct nxgl_point_s *pos, uint8_t b
#ifdef CONFIG_NX_KBD
void CWidgetControl::newKeyboardEvent(uint8_t nCh, FAR const uint8_t *pStr)
{
- FAR uint8_t *pBuffer = &m_kbdbuf[m_nCh];
+ FAR uint8_t *buffer = &m_kbdbuf[m_nCh];
// Append each new character to keyboard character buffer
@@ -598,7 +598,7 @@ void CWidgetControl::newKeyboardEvent(uint8_t nCh, FAR const uint8_t *pStr)
i < nCh && m_nCh < CONFIG_NXWIDGETS_KBDBUFFER_SIZE;
i++, m_nCh++)
{
- *pBuffer++ = *pStr++;
+ *buffer++ = *pStr++;
}
// Notify any external logic that a keyboard event has occurred
|
Add test for tofloat shadowing
|
@@ -1039,6 +1039,11 @@ describe("Pallene coder /", function()
end
return res
end
+
+ function tofloat_shadowing(x:integer) : float
+ local tofloat = 1.0
+ return (x + tofloat)
+ end
]]))
it("local variable doesn't shadow its type annotation", function()
@@ -1056,6 +1061,10 @@ describe("Pallene coder /", function()
it("for loop variable scope doesn't shadow its initializers", function()
run_test([[ assert( 34 == test.for_initializer() ) ]])
end)
+
+ it("tofloat in coercions doesn't get shadowed", function()
+ run_test([[ assert( 21.0 == test.tofloat_shadowing(20) ) ]])
+ end)
end)
describe("Non-constant toplevel initializers", function()
|
cram,win: fixed tests where long doubles are not supported
|
@@ -219,17 +219,17 @@ Testing all assert messages
[----] reference: 0.33333333333333331
[----] failmessages.c:108: Assertion Failed
[----] lt(ldbl, 1 / 3.l, 0):
- [----] actual: 0.333333333333333333342
+ \[----\] actual: 0\.3333333333333333(33342|1) (re)
[----] reference: 0
[----] le(ldbl, 1 / 3.l, 0):
- [----] actual: 0.333333333333333333342
+ \[----\] actual: 0\.3333333333333333(33342|1) (re)
[----] reference: 0
[----] gt(ldbl, 0, 1 / 3.l):
[----] actual: 0
- [----] reference: 0.333333333333333333342
+ \[----\] reference: 0\.3333333333333333(33342|1) (re)
[----] ge(ldbl, 0, 1 / 3.l):
[----] actual: 0
- [----] reference: 0.333333333333333333342
+ \[----\] reference: 0\.3333333333333333(33342|1) (re)
[----] failmessages.c:111: Assertion Failed
[----] lt(ptr, (void *) 1, (void *) 0):
[----] actual: 0x1
@@ -356,7 +356,7 @@ Testing all assert messages
[----] diff: [-0-]{+0.33333333333333331+}
[----] failmessages.c:39: Assertion Failed
[----] eq(ldbl, 0, 1 / 3.l):
- [----] diff: [-0-]{+0.333333333333333333342+}
+ \[----\] diff: \[-0-\]\{\+0\.3333333333333333(1|33342)\+\} (re)
[----] failmessages.c:42: Assertion Failed
[----] eq(ptr, (void *) 1, (void *) 0):
[----] diff: [-0x1-]{+0x0+}
|
client: Fix client does not finish on error
|
@@ -469,6 +469,8 @@ Client::~Client() {
}
void Client::disconnect() {
+ handle_error();
+
config.tx_loss_prob = 0;
ev_timer_stop(loop_, &delay_stream_timer_);
@@ -481,7 +483,6 @@ void Client::disconnect() {
ev_signal_stop(loop_, &sigintev_);
- handle_error();
}
void Client::close() {
|
Fix failing perf counter test
|
@@ -64,7 +64,7 @@ int main(int argc, const char *argv[])
0, 0, // PERF_DCACHE_MISS
10, 30, // PERF_DCACHE_HIT
0, 0, // PERF_DTLB_MISS
- 2, 10, // PERF_UNCOND_BRANCH
+ 2, 15, // PERF_UNCOND_BRANCH
9, 15, // PERF_COND_BRANCH_TAKEN
1, 8 // PERF_COND_BRANCH_NOT_TAKEN
};
|
Minor code cleanup of Cooja log
|
@@ -130,14 +130,9 @@ dbg_putchar(int c)
unsigned int
dbg_send_bytes(const unsigned char *s, unsigned int len)
{
- unsigned int i = 0;
-
- while(s && *s != 0) {
- if(i >= len) {
- break;
- }
+ unsigned int i;
+ for(i = 0; i < len && s && *s != 0; i++) {
putchar(*s++);
- i++;
}
return i;
}
|
remove conv_0 from mcpha/osc.tcl
|
@@ -5,7 +5,7 @@ cell pavel-demin:user:port_slicer slice_0 {
DIN_WIDTH 8 DIN_FROM 0 DIN_TO 0
}
-# conv_0/aresetn and writer_0/aresetn
+# writer_0/aresetn
# Create port_slicer
cell pavel-demin:user:port_slicer slice_1 {
@@ -121,23 +121,13 @@ cell pavel-demin:user:axis_oscilloscope scope_0 {
aresetn slice_0/dout
}
-# Create axis_dwidth_converter
-cell xilinx.com:ip:axis_dwidth_converter conv_0 {
- S_TDATA_NUM_BYTES.VALUE_SRC USER
- S_TDATA_NUM_BYTES 4
- M_TDATA_NUM_BYTES 8
-} {
- S_AXIS scope_0/M_AXIS
- aclk /pll_0/clk_out1
- aresetn slice_1/dout
-}
-
# Create axis_ram_writer
cell pavel-demin:user:axis_ram_writer writer_0 {
ADDR_WIDTH 22
AXI_ID_WIDTH 3
+ AXIS_TDATA_WIDTH 32
} {
- S_AXIS conv_0/M_AXIS
+ S_AXIS scope_0/M_AXIS
cfg_data slice_5/dout
aclk /pll_0/clk_out1
aresetn slice_1/dout
|
docs - add examples for deprecated timestamp format YYYYMMDDHH24MISS.
Add examples to note when migration from GPDB 4,5 to 6
What fails in 6 and some workarounds.
|
not permit tables <codeph>DISTRIBUTED RANDOMLY</codeph> to have primary keys or unique
indexes. Restoring such a table from a Greenplum 4.3 or 5 backup will cause an error.</li>
<li>Greenplum 6 no longer automatically converts from the deprecated timestamp format
- YYYYMMDDHH24MISS. The format could not be parsed unambiguously in previous Greenplum
- Database releases. You can still specify the YYYYMMDDHH24MISS format in conversion
- functions such as <codeph>to_timestamp</codeph> and <codeph>to_char</codeph> for
- compatibility with other database systems. You can use input formats for converting text
- to date or timestamp values to avoid unexpected results or query execution failures.</li>
+ <codeph>YYYYMMDDHH24MISS</codeph>. The format could not be parsed unambiguously in
+ previous Greenplum Database releases. You can still specify the
+ <codeph>YYYYMMDDHH24MISS</codeph> format in conversion functions such as
+ <codeph>to_timestamp</codeph> and <codeph>to_char</codeph> for compatibility with other
+ database systems. You can use input formats for converting text to date or timestamp
+ values to avoid unexpected results or query execution failures. For example, this
+ <codeph>SELECT</codeph> command returns a timestamp in Greenplum Database 5 and fails in
+ 6.<codeblock>SELECT to_timestamp('20190905140000');</codeblock><p>To convert the string
+ to a timestamp in Greenplum Database 6, you must use a valid format. Both of these
+ commands return a timestamp in Greenplum Database 6. The first example explicitly
+ specifies a timestamp format. The second example uses the string in a format that
+ Greenplum Database
+ recognizes.<codeblock>SELECT to_timestamp('20190905140000','YYYYMMDDHH24MISS');
+SELECT to_timestamp('201909051 40000');</codeblock></p><p>The
+ timestamp issue also applies when you use the <codeph>::</codeph> syntax. In Greenplum
+ Database 6, the first command returns an error. The second command returns a timestamp.
+ <codeblock>SELECT '20190905140000'::timestamp ;
+SELECT '20190905 140000'::timestamp ;</codeblock></p></li>
<li>Creating a table using the <codeph>CREATE TABLE AS</codeph> command in Greenplum 4.3 or
5 could create a table with a duplicate distribution key. The <codeph>gpbackup</codeph>
utility saves the table to the backup using a <codeph>CREATE TABLE</codeph> command that
|
brya: Set retimer interrupt trigger to FALLING
The EC GPIO review recommends setting the retimer interrupts to trigger
on the FALLING edge instead of BOTH.
BRANCH=none
TEST=boots on board ID 1
|
@@ -23,14 +23,14 @@ GPIO_INT(TABLET_MODE_L, PIN(9, 5), GPIO_INT_BOTH, gmr_tablet_sw
GPIO_INT(USB_C0_BC12_INT_ODL, PIN(C, 6), GPIO_INT_FALLING, bc12_interrupt)
GPIO_INT(USB_C0_C2_TCPC_INT_ODL, PIN(E, 0), GPIO_INT_FALLING, tcpc_alert_event)
GPIO_INT(USB_C0_PPC_INT_ODL, PIN(6, 2), GPIO_INT_FALLING, ppc_interrupt)
-GPIO_INT(USB_C0_RT_INT_ODL, PIN(B, 1), GPIO_INT_BOTH, retimer_interrupt)
+GPIO_INT(USB_C0_RT_INT_ODL, PIN(B, 1), GPIO_INT_FALLING, retimer_interrupt)
GPIO_INT(USB_C1_BC12_INT_ODL, PIN(5, 0), GPIO_INT_FALLING, bc12_interrupt)
GPIO_INT(USB_C1_PPC_INT_ODL, PIN(F, 5), GPIO_INT_FALLING, ppc_interrupt)
-GPIO_INT(USB_C1_RT_INT_ODL, PIN(A, 0), GPIO_INT_BOTH, retimer_interrupt)
+GPIO_INT(USB_C1_RT_INT_ODL, PIN(A, 0), GPIO_INT_FALLING, retimer_interrupt)
GPIO_INT(USB_C1_TCPC_INT_ODL, PIN(A, 2), GPIO_INT_FALLING, tcpc_alert_event)
GPIO_INT(USB_C2_BC12_INT_ODL, PIN(8, 3), GPIO_INT_FALLING, bc12_interrupt)
GPIO_INT(USB_C2_PPC_INT_ODL, PIN(7, 0), GPIO_INT_FALLING, ppc_interrupt)
-GPIO_INT(USB_C2_RT_INT_ODL, PIN(4, 1), GPIO_INT_BOTH, retimer_interrupt)
+GPIO_INT(USB_C2_RT_INT_ODL, PIN(4, 1), GPIO_INT_FALLING, retimer_interrupt)
/* USED GPIOs: */
GPIO(CCD_MODE_ODL, PIN(E, 5), GPIO_INPUT)
|
removed xerbla and lsame for Makefile
|
@@ -56,7 +56,7 @@ include ../make.inc
#
#######################################################################
-ALLAUX = ilaenv.o ieeeck.o lsamen.o xerbla.o xerbla_array.o iparmq.o iparam2stage.o\
+ALLAUX_O = ilaenv.o ieeeck.o lsamen.o xerbla.o xerbla_array.o iparmq.o iparam2stage.o\
ilaprec.o ilatrans.o ilauplo.o iladiag.o chla_transtype.o \
../INSTALL/ilaver.o ../INSTALL/lsame.o ../INSTALL/slamch.o
@@ -494,6 +494,8 @@ DEPRECSRC = DEPRECATED/cgegs.o DEPRECATED/cgegv.o DEPRECATED/cgelsx.o \
DEPRECATED/zlahrd.o DEPRECATED/zlatzm.o DEPRECATED/ztzrqf.o
# filter out optimized codes from OpenBLAS
+ALL_AUX_OBJS = xerbla.o ../INSTALL/lsame.o
+
SLAPACKOBJS = \
sgetrf.o sgetrs.o spotrf.o sgetf2.o \
spotf2.o slaswp.o sgesv.o slauu2.o \
@@ -515,6 +517,7 @@ ZLAPACKOBJS = \
zlauum.o ztrti2.o ztrtri.o
+ALLAUX = $(filter-out $(ALL_AUX_OBJS),$(ALLAUX_O))
SLASRC = $(filter-out $(SLAPACKOBJS),$(SLASRC_O))
DLASRC = $(filter-out $(DLAPACKOBJS),$(DLASRC_O))
CLASRC = $(filter-out $(CLAPACKOBJS),$(CLASRC_O))
|
fix error overwriting beginning of config file
|
@@ -141,11 +141,11 @@ ELSE ()
ENDIF ()
IF (FORCE_CXX03)
- FILE ( WRITE ${CMAKE_CURRENT_BINARY_DIR}/config/IlmBaseConfig.h "#define ILMBASE_FORCE_CXX03 1\n" )
+ FILE ( APPEND ${CMAKE_CURRENT_BINARY_DIR}/config/IlmBaseConfig.h "#define ILMBASE_FORCE_CXX03 1\n" )
ELSE ()
# really only care about c++11 right now for the threading bits, but this can be changed to 14
# when needed...
- FILE ( WRITE ${CMAKE_CURRENT_BINARY_DIR}/config/IlmBaseConfig.h "#if __cplusplus < 201103L\n# error \"Modern C++ 11/14 not enabled but force cxx98 not set\"\n#endif\n" )
+ FILE ( APPEND ${CMAKE_CURRENT_BINARY_DIR}/config/IlmBaseConfig.h "#if __cplusplus < 201103L\n# error \"Modern C++ 11/14 not enabled but force cxx03 not set\"\n#endif\n" )
ENDIF ()
IF (NAMESPACE_VERSIONING)
|
build: rename lock
|
@@ -104,7 +104,7 @@ if(new_target) {
// # Main Stages #
// Build containers, locked to single build executing
-lock('docker-build') {
+lock('docker-images') {
stage("Build docker images") {
parallel generate_docker_images()
}
|
examples: fix vlan_learning example
BPF_HASH declaration fixed.
|
@@ -15,7 +15,7 @@ struct ifindex_leaf_t {
BPF_HASH(egress, int, struct ifindex_leaf_t, 4096);
// redirect based on mac -> out_ifindex (config-driven)
-BPF_HASH(ingress, struct ifindex_leaf_t, 4096);
+BPF_HASH(ingress, u64, struct ifindex_leaf_t, 4096);
int handle_phys2virt(struct __sk_buff *skb) {
// only handle vlan packets
|
Fix run dialog skipping MRU strings in some cases
|
@@ -466,7 +466,6 @@ static VOID PhpAddProgramsToComboBox(
_In_ HWND ComboBoxHandle
)
{
- static PH_STRINGREF prefixSr = PH_STRINGREF_INIT(L"\\1");
HANDLE listHandle;
INT listCount;
@@ -484,33 +483,27 @@ static VOID PhpAddProgramsToComboBox(
for (INT i = 0; i < listCount; i++)
{
- PPH_STRING programName;
- PH_STRINGREF nameSr;
- PH_STRINGREF firstPart;
- PH_STRINGREF remainingPart;
- WCHAR entry[MAX_PATH] = L"";
+ INT returnLength;
+ WCHAR buffer[MAX_PATH] = L"";
- if (!EnumMRUList_I(
+ returnLength = EnumMRUList_I(
listHandle,
i,
- entry,
- RTL_NUMBER_OF(entry)
- ))
- {
- break;
- }
-
- PhInitializeStringRefLongHint(&nameSr, entry);
+ buffer,
+ RTL_NUMBER_OF(buffer)
+ );
- if (!PhSplitStringRefAtString(&nameSr, &prefixSr, TRUE, &firstPart, &remainingPart))
- {
- ComboBox_AddString(ComboBoxHandle, entry);
+ if (returnLength >= RTL_NUMBER_OF(buffer))
continue;
- }
+ if (returnLength < sizeof(UNICODE_NULL))
+ continue;
+
+ buffer[returnLength] = UNICODE_NULL;
+
+ if (buffer[returnLength - 1] == L'1' && buffer[returnLength - 2] == L'\\')
+ buffer[returnLength - 2] = UNICODE_NULL; // trim \\1 (dmex)
- programName = PhCreateString2(&firstPart);
- ComboBox_AddString(ComboBoxHandle, PhGetString(programName));
- PhDereferenceObject(programName);
+ ComboBox_AddString(ComboBoxHandle, buffer);
}
FreeMRUList_I(listHandle);
|
[stm32] fix linkscript issue in stm32f411-atk-nano
|
/* Program Entry, set to mark it as "used" and avoid gc */
MEMORY
{
- ROM (rx) : ORIGIN = 0x08000000, LENGTH = 256 /* 256KB flash */
+ ROM (rx) : ORIGIN = 0x08000000, LENGTH = 256k /* 256KB flash */
RAM (rw) : ORIGIN = 0x20000000, LENGTH = 128k /* 128K sram */
}
ENTRY(Reset_Handler)
|
PR : adds documentation.
|
@@ -143,11 +143,15 @@ NSD will bind to the listed ip\-address. Can be given multiple times
to bind multiple ip\-addresses. Optionally, a port number can be given.
If none are given NSD listens to the wildcard interface. Same as commandline option
.BR \-a.
+.IP
To limit which NSD server(s) listen on the given interface, specify one or
more servers separated by whitespace after <ip>[@port]. Ranges can be used as
a shorthand to specify multiple consecutive servers. By default every server
will listen.
-.BR
+.IP
+If an interface name is used instead of ip4 or ip6, the list of IP addresses
+associated with that interface is picked up and used at server start.
+.IP
For servers with multiple IP addresses that can be used to send traffic
to the internet, list them one by one, or the source address of replies
could be wrong. This is because if the udp socket associates a source
|
Check conn is not null
|
@@ -840,7 +840,7 @@ ngtcp2_ssize ngtcp2_rtb_recv_ack(ngtcp2_rtb *rtb, const ngtcp2_ack *fr,
/* Assume that ngtcp2_pkt_validate_ack(fr) returns 0 */
it = ngtcp2_ksl_lower_bound(&rtb->ents, &largest_ack);
if (ngtcp2_ksl_it_end(&it)) {
- if (verify_ecn) {
+ if (conn && verify_ecn) {
conn_verify_ecn(conn, pktns, rtb->cc, cstat, fr, ecn_acked,
largest_acked_sent_ts, ts);
}
|
yaviks: update thermistor naming
BRANCH=none
TEST="ectool temps all" thermistor name is intended.
|
};
named-temp-sensors {
- memory {
+ cpu {
compatible = "cros-ec,temp-sensor-thermistor",
"cros-ec,temp-sensor";
thermistor = <&thermistor_3V3_51K1_47K_4050B>;
- enum-name = "TEMP_SENSOR_1";
+ enum-name = "TEMP_SENSOR_CPU";
temp_fan_off = <35>;
temp_fan_max = <60>;
temp_host_high = <85>;
adc = <&adc_temp_sensor_1>;
power-good-pin = <&gpio_ec_soc_dsw_pwrok>;
};
- charger {
+ 5v_regulator {
compatible = "cros-ec,temp-sensor-thermistor",
"cros-ec,temp-sensor";
thermistor = <&thermistor_3V3_51K1_47K_4050B>;
- enum-name = "TEMP_SENSOR_CHARGER";
+ enum-name = "TEMP_SENSOR_PP5000_REGULATOR";
temp_fan_off = <35>;
temp_fan_max = <60>;
temp_host_high = <85>;
adc = <&adc_temp_sensor_2>;
power-good-pin = <&gpio_ec_soc_dsw_pwrok>;
};
- ambient {
+ charger {
compatible = "cros-ec,temp-sensor-thermistor",
"cros-ec,temp-sensor";
thermistor = <&thermistor_3V3_51K1_47K_4050B>;
- enum-name = "TEMP_SENSOR_AMB";
+ enum-name = "TEMP_SENSOR_CHARGER";
temp_fan_off = <35>;
temp_fan_max = <60>;
temp_host_high = <85>;
|
board/asurada_scp/board.h: Format with clang-format
BRANCH=none
TEST=none
|
#define CONFIG_ROM_BASE 0x0
#define CONFIG_RAM_BASE 0x58000
#define CONFIG_ROM_SIZE (CONFIG_RAM_BASE - CONFIG_ROM_BASE)
-#define CONFIG_RAM_SIZE ((CONFIG_IPC_SHARED_OBJ_ADDR & (~(0x400 - 1))) - \
- CONFIG_RAM_BASE)
+#define CONFIG_RAM_SIZE \
+ ((CONFIG_IPC_SHARED_OBJ_ADDR & (~(0x400 - 1))) - CONFIG_RAM_BASE)
#define SCP_FW_END 0x100000
|
fix Luos_ReadFromContainer returning the wrong message bug.
|
@@ -562,7 +562,7 @@ error_return_t Luos_ReadMsg(container_t *container, msg_t **returned_msg)
return FAILED;
}
/******************************************************************************
- * @brief read last msg from buffer from a special id container
+ * @brief read last msg from buffer from a specific id container
* @param container who receive the message we are looking for
* @param id who sent the message we are looking for
* @param returned_msg oldest message of the container
@@ -575,15 +575,16 @@ error_return_t Luos_ReadFromContainer(container_t *container, short id, msg_t **
error_return_t error = SUCCEED;
while (MsgAlloc_LookAtLuosTask(remaining_msg_number, &oldest_ll_container) != FAILED)
{
- // Check the source id
+ // Check if this message is for us
if (oldest_ll_container == container->ll_container)
{
+ // Check the source id
uint16_t source = 0;
- MsgAlloc_GetLuosTaskSourceId(remaining_msg_number, &source);
+ LUOS_ASSERT(MsgAlloc_GetLuosTaskSourceId(remaining_msg_number, &source) == SUCCEED);
if (source == id)
{
// Source id of this message match, get it and treat it.
- error = MsgAlloc_PullMsg(container->ll_container, returned_msg);
+ error = MsgAlloc_PullMsgFromLuosTask(remaining_msg_number, returned_msg);
// check if the content of this message need to be managed by Luos and do it if it is.
if ((Luos_MsgHandler(container, *returned_msg) == FAILED) & (error == SUCCEED))
{
|
config-tools: add validation to IVSHMEM widget
Add validation to IVSHMEM widget, displaying error msg below the
input line. Currently only check for empty line.
|
<label>Region name: </label>
</b-col>
<b-col md="4">
- <b-form-input v-model="IVSHMEM_VMO.NAME" placeholder="Any string with no white spaces."/>
+ <b-form-input :state="validation(IVSHMEM_VMO.NAME)" v-model="IVSHMEM_VMO.NAME" placeholder="Any string with no white spaces."/>
+ <b-form-invalid-feedback>
+ must have value
+ </b-form-invalid-feedback>
</b-col>
</b-row>
<label>VM name:</label>
</b-col>
<b-col sm="3">
- <b-form-select v-model="IVSHMEM_VM.VM_NAME" :options="vmNames"></b-form-select>
+ <b-form-select :state="validation(IVSHMEM_VM.VM_NAME)" v-model="IVSHMEM_VM.VM_NAME" :options="vmNames"></b-form-select>
+ <b-form-invalid-feedback>
+ must have value
+ </b-form-invalid-feedback>
</b-col>
<b-col sm="3">
- <b-form-input v-model="IVSHMEM_VM.VBDF" placeholder="00:[device].[function], e.g. 00:0c.0. All fields are in hexadecimal."/>
+ <b-form-input :state="validation(IVSHMEM_VM.VBDF)" v-model="IVSHMEM_VM.VBDF" placeholder="00:[device].[function], e.g. 00:0c.0. All fields are in hexadecimal./>
+ <b-form-invalid-feedback>
+ must have value
+ </b-form-invalid-feedback>
</b-col>
<b-col sm="3">
<div class="ToolSet">
@@ -148,6 +157,9 @@ export default {
}
},
methods: {
+ validation(value) {
+ return value.length != 0;
+ },
addSharedVM(vms, index) {
// add new item after current item
vms.splice(index + 1, 0, {
@@ -175,11 +187,11 @@ export default {
"IVSHMEM_VMS": {
"IVSHMEM_VM": [
{
- "VM_NAME": "PRE_RT_VM0",
+ "VM_NAME": "",
"VBDF": ""
},
{
- "VM_NAME": "POST_STD_VM1",
+ "VM_NAME": "",
"VBDF": ""
}
]
|
exercise some additional code for e2e tests
|
@@ -180,6 +180,8 @@ FILE *launch_xwping(PROTOCOL protocol, uint16_t port, const char *authmode, cons
char *argv[] = {
protocol == OWAMP ? "../owping/owping" : "../owping/twping",
"-c", num_packets,
+ "-a", "25,50,75",
+ "-b", ".000001",
"-A", (char *) authmode,
"-u", (char *) USERID,
"-k", pfs_filename,
@@ -188,8 +190,8 @@ FILE *launch_xwping(PROTOCOL protocol, uint16_t port, const char *authmode, cons
};
if (!strstr(authmode, "A") && !strstr(authmode, "E")) {
- argv[3] = address;
- argv[4] = NULL;
+ argv[7] = address;
+ argv[8] = NULL;
}
if (execvp(*argv, argv) < 0) {
perror("execvp error launching ping process");
|
py/asmx64: Support use of top 8 regs in src_r64 argument.
|
@@ -285,31 +285,28 @@ void asm_x64_mov_r64_to_mem64(asm_x64_t *as, int src_r64, int dest_r64, int dest
}
void asm_x64_mov_mem8_to_r64zx(asm_x64_t *as, int src_r64, int src_disp, int dest_r64) {
- assert(src_r64 < 8);
- if (dest_r64 < 8) {
+ if (src_r64 < 8 && dest_r64 < 8) {
asm_x64_write_byte_2(as, 0x0f, OPCODE_MOVZX_RM8_TO_R64);
} else {
- asm_x64_write_byte_3(as, REX_PREFIX | REX_R, 0x0f, OPCODE_MOVZX_RM8_TO_R64);
+ asm_x64_write_byte_3(as, REX_PREFIX | REX_R_FROM_R64(dest_r64) | REX_B_FROM_R64(src_r64), 0x0f, OPCODE_MOVZX_RM8_TO_R64);
}
asm_x64_write_r64_disp(as, dest_r64, src_r64, src_disp);
}
void asm_x64_mov_mem16_to_r64zx(asm_x64_t *as, int src_r64, int src_disp, int dest_r64) {
- assert(src_r64 < 8);
- if (dest_r64 < 8) {
+ if (src_r64 < 8 && dest_r64 < 8) {
asm_x64_write_byte_2(as, 0x0f, OPCODE_MOVZX_RM16_TO_R64);
} else {
- asm_x64_write_byte_3(as, REX_PREFIX | REX_R, 0x0f, OPCODE_MOVZX_RM16_TO_R64);
+ asm_x64_write_byte_3(as, REX_PREFIX | REX_R_FROM_R64(dest_r64) | REX_B_FROM_R64(src_r64), 0x0f, OPCODE_MOVZX_RM16_TO_R64);
}
asm_x64_write_r64_disp(as, dest_r64, src_r64, src_disp);
}
void asm_x64_mov_mem32_to_r64zx(asm_x64_t *as, int src_r64, int src_disp, int dest_r64) {
- assert(src_r64 < 8);
- if (dest_r64 < 8) {
+ if (src_r64 < 8 && dest_r64 < 8) {
asm_x64_write_byte_1(as, OPCODE_MOV_RM64_TO_R64);
} else {
- asm_x64_write_byte_2(as, REX_PREFIX | REX_R, OPCODE_MOV_RM64_TO_R64);
+ asm_x64_write_byte_2(as, REX_PREFIX | REX_R_FROM_R64(dest_r64) | REX_B_FROM_R64(src_r64), OPCODE_MOV_RM64_TO_R64);
}
asm_x64_write_r64_disp(as, dest_r64, src_r64, src_disp);
}
|
sysdeps/managarm: Fix sys_pwrite
|
@@ -2139,11 +2139,12 @@ int sys_pwrite(int fd, const void *buf, size_t n, off_t off, ssize_t *bytes_writ
frg::string<MemoryAllocator> ser(getSysdepsAllocator());
req.SerializeToString(&ser);
- auto [offer, send_head, send_tail, imbue_creds, recv_resp] = exchangeMsgsSync(
+ auto [offer, send_head, imbue_creds, to_write, recv_resp] = exchangeMsgsSync(
handle,
helix_ng::offer(
- helix_ng::sendBragiHeadTail(req, getSysdepsAllocator()),
+ helix_ng::sendBragiHeadOnly(req, getSysdepsAllocator()),
helix_ng::imbueCredentials(),
+ helix_ng::sendBuffer(buf, n),
helix_ng::recvInline()
)
);
@@ -2151,6 +2152,7 @@ int sys_pwrite(int fd, const void *buf, size_t n, off_t off, ssize_t *bytes_writ
HEL_CHECK(offer.error());
HEL_CHECK(send_head.error());
HEL_CHECK(imbue_creds.error());
+ HEL_CHECK(to_write.error());
HEL_CHECK(recv_resp.error());
managarm::fs::SvrResponse<MemoryAllocator> resp(getSysdepsAllocator());
@@ -2167,7 +2169,6 @@ int sys_pwrite(int fd, const void *buf, size_t n, off_t off, ssize_t *bytes_writ
return EINVAL;
}else{
__ensure(resp.error() == managarm::fs::Errors::SUCCESS);
- HEL_CHECK(send_tail.error());
*bytes_written = n;
return 0;
}
|
hdata/i2c: Skip unknown device type
Do not add unknown I2C devices to device tree.
|
@@ -322,11 +322,13 @@ int parse_i2c_devs(const struct HDIF_common_hdr *hdr, int idata_index,
* outdated or the device is marked as unknown (0xFF) in the
* hdat. Log both cases to see what/where/why.
*/
- if (!type || dev->type == 0xFF)
+ if (!type || dev->type == 0xFF) {
prlog(PR_WARNING, "HDAT I2C: found e%dp%d - %s@%x dp:%02x (%#x:%s)\n",
dev->i2cm_engine, dev->i2cm_port, name, dev_addr,
dev->dev_port, purpose, info->label);
- else
+ continue;
+ }
+
prlog(PR_DEBUG, "HDAT I2C: found e%dp%d - %s@%x dp:%02x (%#x:%s)\n",
dev->i2cm_engine, dev->i2cm_port, name, dev_addr,
dev->dev_port, purpose, info->label);
|
fixed empty file name
|
@@ -1474,7 +1474,7 @@ if((apstaessidlistecleaned != NULL) && (hcpmkidoutname != NULL))
{
printf("%llu ESSID changes detected\n", essidchangecount);
}
- printf("%llu PMKID(s) written to %s\n", writtencount, hcpmkidoldoutname);
+ printf("%llu PMKID(s) written to %s\n", writtencount, hcpmkidoutname);
}
}
|
peview: Add clr type
|
@@ -44,8 +44,8 @@ typedef struct _STORAGESIGNATURE
typedef struct _STORAGEHEADER
{
- BYTE Flags; // STGHDR_xxx flags.
- BYTE Reserved;
+ UCHAR Flags; // STGHDR_xxx flags.
+ UCHAR Reserved;
USHORT Streams; // How many streams are there.
} STORAGEHEADER, *PSTORAGEHEADER;
@@ -55,6 +55,17 @@ typedef struct _STORAGESTREAM
ULONG Size; // Size of the file.
CHAR Name[32]; // Start of name, null terminated.
} STORAGESTREAM, *PSTORAGESTREAM;
+
+typedef struct _MDSTREAMHEADER
+{
+ ULONG Reserved;
+ UCHAR Major;
+ UCHAR Minor;
+ UCHAR Heaps;
+ UCHAR Rid;
+ ULONGLONG MaskValid;
+ ULONGLONG Sorted;
+} MDSTREAMHEADER, *PMDSTREAMHEADER;
#include <poppack.h>
PSTORAGESIGNATURE PvpPeGetClrMetaDataHeader(
|
Fix family_support.cmake to use new skip.txt and only.txt files for skipping mcus
|
@@ -11,23 +11,52 @@ if (NOT TARGET _family_support_marker)
function(family_filter RESULT DIR)
get_filename_component(DIR ${DIR} ABSOLUTE BASE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
- file(GLOB ONLYS "${DIR}/.only.MCU_*")
- if (ONLYS)
+
+ if (EXISTS "${DIR}/only.txt")
+ file(READ "${DIR}/only.txt" ONLYS)
+ # Replace newlines with semicolon so that it is treated as a list by CMake
+ string(REPLACE "\n" ";" ONLYS_LINES ${ONLYS})
+ # For each mcu
foreach(MCU IN LISTS FAMILY_MCUS)
- if (EXISTS ${DIR}/.only.MCU_${MCU})
+ # For each line in only.txt
+ foreach(_line ${ONLYS_LINES})
+ # If mcu:xxx exists for this mcu then include
+ if (${_line} STREQUAL "mcu:${MCU}")
set(${RESULT} 1 PARENT_SCOPE)
return()
endif()
endforeach()
- else()
+ endforeach()
+
+ # Didn't find it in only file so don't build
+ set(${RESULT} 0 PARENT_SCOPE)
+
+ elseif (EXISTS "${DIR}/skip.txt")
+ file(READ "${DIR}/skip.txt" SKIPS)
+ # Replace newlines with semicolon so that it is treated as a list by CMake
+ string(REPLACE "\n" ";" SKIPS_LINES ${SKIPS})
+ # For each mcu
foreach(MCU IN LISTS FAMILY_MCUS)
- if (EXISTS ${DIR}/.skip.MCU_${MCU})
+ # For each line in only.txt
+ foreach(_line ${SKIPS_LINES})
+ # If mcu:xxx exists for this mcu then skip
+ if (${_line} STREQUAL "mcu:${MCU}")
set(${RESULT} 0 PARENT_SCOPE)
return()
endif()
endforeach()
- endif()
+ endforeach()
+
+ # Didn't find in skip file so build
+ set(${RESULT} 1 PARENT_SCOPE)
+
+ else()
+
+ # Didn't find skip or only file so build
set(${RESULT} 1 PARENT_SCOPE)
+
+ endif()
+
endfunction()
function(family_add_subdirectory DIR)
|
Extend drivers subcommand to also show supported device IDs
|
@@ -781,7 +781,9 @@ _papplMainloopShowDrivers(
}
for (i = 0; i < system->num_drivers; i ++)
- printf("%-39s %s\n", system->drivers[i].name, system->drivers[i].description);
+ {
+ printf("%s \"%s\" \"%s\" \n", system->drivers[i].name, system->drivers[i].description, system->drivers[i].device_id);
+ }
papplSystemDelete(system);
|
Change azure build from ubuntu 16.04 to ubuntu 20.04
|
@@ -6,8 +6,8 @@ stages:
timeoutInMinutes: 10
strategy:
matrix:
- ubuntu16_04:
- imageName: 'ubuntu-16.04'
+ ubuntu20_04:
+ imageName: 'ubuntu-20.04'
mac10_14:
imageName: 'macos-10.14'
# windows_2017:
|
Make sure ret type is not null
|
@@ -50,7 +50,7 @@ bool FunctionOverride::HookRunPureScriptFunction(RED4ext::CClassFunction* apFunc
const auto result = call->ScriptFunction(as_args(args), call->Environment);
if (!call->Forward)
{
- if (result.valid())
+ if (result.valid() && ret.value && ret.type)
Scripting::ToRED(result.get<sol::object>(), &ret);
return true;
@@ -200,16 +200,20 @@ void FunctionOverride::HandleOverridenFunction(RED4ext::IScriptable* apContext,
}
const auto& calls = context.Calls;
+ for (const auto& call : calls)
{
const auto result = call->ScriptFunction(as_args(args), call->Environment);
if (!call->Forward)
+ {
+ if (apFunction->returnType)
{
RED4ext::CStackType redResult;
redResult.type = apFunction->returnType->type;
redResult.value = apOut;
- if (result.valid())
+ if (result.valid() && apOut)
Scripting::ToRED(result.get<sol::object>(), &redResult);
+ }
return;
}
|
fixes the c99 fix
|
@@ -39,9 +39,9 @@ project(ccl VERSION 0.2.1)
# Compilation flags
if ("${CMAKE_C_COMPILER_ID}" MATCHES "^(Apple)?Clang$")
# using Clang, disabling OpenMP support
- set(CMAKE_C_FLAGS "-O3 -fomit-frame-pointer -fno-common -fPIC -D__CCL_DATA_DIR__=${CMAKE_INSTALL_PREFIX}/share/ccl")
+ set(CMAKE_C_FLAGS "-O3 -fomit-frame-pointer -fno-common -fPIC -std=gnu99 -D__CCL_DATA_DIR__=${CMAKE_INSTALL_PREFIX}/share/ccl")
else()
- set(CMAKE_C_FLAGS "-O3 -fomit-frame-pointer -fno-common -fPIC -fopenmp -D__CCL_DATA_DIR__=${CMAKE_INSTALL_PREFIX}/share/ccl")
+ set(CMAKE_C_FLAGS "-O3 -fomit-frame-pointer -fno-common -fPIC -std=gnu99 -fopenmp -D__CCL_DATA_DIR__=${CMAKE_INSTALL_PREFIX}/share/ccl")
endif()
# Define include and library directories for external dependencies
|
board/rtl8721csm/app_start.c : Disable PSRAM MPU setting
With PSRAM MPU setting, binary manager cannot load the user binary.
So temporarily disable PSRAM MPU setting.
|
@@ -1000,6 +1000,7 @@ u32 app_mpu_nocache_init(void)
mpu_region_cfg(mpu_entry, &mpu_cfg);
#endif
+#if 0 //fix me!
/* set PSRAM Memory Write-Back */
/* To prevent data confusion issue in PSRAM */
mpu_entry = mpu_entry_alloc();
@@ -1010,6 +1011,7 @@ u32 app_mpu_nocache_init(void)
mpu_cfg.sh = MPU_NON_SHAREABLE;
mpu_cfg.attr_idx = MPU_MEM_ATTR_IDX_WB_T_RWA;
mpu_region_cfg(mpu_entry, &mpu_cfg);
+#endif
g_mpu_nregion_allocated = mpu_entry + 1;
return 0;
|
fix new CLI max unnamed API
|
@@ -291,7 +291,7 @@ print_help:
void fio_cli_start AVOID_MACRO(int argc, char const *argv[], int unnamed_min,
int unnamed_max, char const *description,
char const **names) {
- if (unnamed_max > 0 && unnamed_max < unnamed_min)
+ if (unnamed_max >= 0 && unnamed_max < unnamed_min)
unnamed_max = unnamed_min;
fio_cli_parser_data_s parser = {
.unnamed_min = unnamed_min,
|
back to 64k pages but 32MiB segments and a 1MiB minimal commit size
|
@@ -132,10 +132,10 @@ typedef int32_t mi_ssize_t;
// Main tuning parameters for segment and page sizes
// Sizes for 64-bit (usually divide by two for 32-bit)
-#define MI_SEGMENT_SLICE_SHIFT (12 + MI_INTPTR_SHIFT) // 32KiB (32KiB on 32-bit)
+#define MI_SEGMENT_SLICE_SHIFT (13 + MI_INTPTR_SHIFT) // 64KiB (32KiB on 32-bit)
#if MI_INTPTR_SIZE > 4
-#define MI_SEGMENT_SHIFT (10 + MI_SEGMENT_SLICE_SHIFT) // 32MiB
+#define MI_SEGMENT_SHIFT ( 9 + MI_SEGMENT_SLICE_SHIFT) // 32MiB
#else
#define MI_SEGMENT_SHIFT ( 7 + MI_SEGMENT_SLICE_SHIFT) // 4MiB on 32-bit
#endif
@@ -325,7 +325,7 @@ typedef enum mi_segment_kind_e {
// is still tracked in fine-grained MI_COMMIT_SIZE chunks)
// ------------------------------------------------------
-#define MI_MINIMAL_COMMIT_SIZE (2*MI_MiB)
+#define MI_MINIMAL_COMMIT_SIZE (16*MI_SEGMENT_SLICE_SIZE) // 1MiB
#define MI_COMMIT_SIZE (MI_SEGMENT_SLICE_SIZE) // 64KiB
#define MI_COMMIT_MASK_BITS (MI_SEGMENT_SIZE / MI_COMMIT_SIZE)
#define MI_COMMIT_MASK_FIELD_BITS MI_SIZE_BITS
|
luci-app-serverchan: bump to 1.85
|
include $(TOPDIR)/rules.mk
PKG_NAME:=luci-app-serverchan
-PKG_VERSION:=1.83
+PKG_VERSION:=1.85
PKG_RELEASE:=9
include $(INCLUDE_DIR)/package.mk
|
Fix unused variable in generate_psa_tests.py
Remove the newly-unused variable that became unused in
a previous commit.
|
@@ -714,7 +714,6 @@ def main(args):
return
# List in a cmake list format (i.e. ';'-separated)
if options.list_for_cmake:
- filenames = []
print(';'.join(generator.filename_for(name)
for name in sorted(generator.TARGETS)), end='')
return
|
add synonym objective for loss_function
|
@@ -528,6 +528,12 @@ class CatBoost(_CatBoostBase):
raise CatboostError("Invalid param `{}`.".format(param))
def _process_synonyms(self, params):
+ if 'objective' in params:
+ if 'loss_function' in params:
+ raise CatboostError('only one of parameters loss_function, objective should be initialized.')
+ params['loss_function'] = params['objective']
+ del params['objective']
+
if 'max_depth' in params:
if 'depth' in params:
raise CatboostError('only one of parameters depth, max_depth should be initialised.')
@@ -1291,6 +1297,8 @@ class CatBoostClassifier(CatBoost):
random_state : int, synonym for random_seed.
reg_lambda : float, synonym for l2_leaf_reg.
+
+ objective : string, synonym for loss_function.
"""
def __init__(
self,
@@ -1354,8 +1362,13 @@ class CatBoostClassifier(CatBoost):
colsample_bylevel=None,
random_state=None,
reg_lambda=None,
+ objective=None,
**kwargs
):
+ if objective is not None:
+ loss_function = objective
+ objective = None
+
if isinstance(loss_function, str) and not self._is_classification_loss(loss_function):
raise CatboostError("Invalid loss_function='{}': for classifier use "
"Logloss, CrossEntropy, MultiClass, MultiClassOneVsAll, AUC, Accuracy, Precision, Recall, F1, TotalF1, MCC or custom objective object".format(loss_function))
@@ -1661,8 +1674,13 @@ class CatBoostRegressor(CatBoost):
colsample_bylevel=None,
random_state=None,
reg_lambda=None,
+ objective=None,
**kwargs
):
+ if objective is not None:
+ loss_function = objective
+ objective = None
+
if isinstance(loss_function, str) and self._is_classification_loss(loss_function):
raise CatboostError("Invalid loss_function={}: for Regressor use RMSE, MAE, Quantile, LogLinQuantile, Poisson, MAPE, R2.".format(loss_function))
params = {}
|
xive: Remove obsolete comment
|
@@ -1089,8 +1089,6 @@ static void xive_init_vp_allocator(void)
*
* These are 0x80..0xff, so order 7 starting at 0x80. This will
* reserve that range on each chip.
- *
- * XXX This can go away if we just call xive_reset ..
*/
assert(buddy_reserve(xive_vp_buddy, 0x80, 7));
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.