message
stringlengths 6
474
| diff
stringlengths 8
5.22k
|
---|---|
appveyor.yml: Move printing of env variables such that locally defined ones are shown as well. | @@ -20,8 +20,6 @@ before_build:
Install-Module VSSetup -Scope CurrentUser
- ps: >-
Get-VSSetupInstance -All
- - ps: >-
- gci env:* | sort-object name
- ps: >-
If ($env:Platform -Match "x86") {
$env:VCVARS_PLATFORM="x86"
@@ -45,7 +43,7 @@ before_build:
- perl configdata.pm --dump
- cd ..
- ps: >-
- if (-not $env:APPVEYOR_PULL_REQUEST_NUMBER`
+ If (-not $env:APPVEYOR_PULL_REQUEST_NUMBER`
-or (&git log -1 $env:APPVEYOR_PULL_REQUEST_HEAD_COMMIT |
Select-String "\[extended tests\]") ) {
$env:EXTENDED_TESTS="yes"
@@ -56,6 +54,8 @@ before_build:
} Else {
$env:NMAKE="nmake /S"
}
+ - ps: >-
+ gci env:* | sort-object name
build_script:
- cd _build
|
vm state: reset vm state to VM_CREATED when reset_vm is called
When we call reset_vm() function to reset vm, the vm state
should be reset to VM_CREATED as well.
Acked-by: Eddie Dong | @@ -591,6 +591,7 @@ int32_t reset_vm(struct acrn_vm *vm)
vioapic_reset(vm);
destroy_secure_world(vm, false);
vm->sworld_control.flag.active = 0UL;
+ vm->state = VM_CREATED;
ret = 0;
} else {
ret = -1;
|
docs/uzlib: Add description of "dictbuf" param to DecompIO(). | @@ -23,7 +23,7 @@ Functions
to be raw DEFLATE stream. *bufsize* parameter is for compatibility with
CPython and is ignored.
-.. class:: DecompIO(stream, wbits=0)
+.. class:: DecompIO(stream, wbits=0, dictbuf=None)
Create a `stream` wrapper which allows transparent decompression of
compressed data in another *stream*. This allows to process compressed
@@ -31,6 +31,13 @@ Functions
values described in :func:`decompress`, *wbits* may take values
24..31 (16 + 8..15), meaning that input stream has gzip header.
+ If `buffer` *dictbuf* is passed, it's used to store decompression
+ dictionary (the size of *dictbuf* should be consistent with *wbits*
+ parameter). Otherwise, decompression dictionary is allocated by the
+ constructor. Using *dictbuf* is useful to preallocate large chunk of
+ memory for dictionary at the start of program, and avoid memory
+ `fragmentation`.
+
.. admonition:: Difference to CPython
:class: attention
|
decribe two procedures | # Several modes for snap_intersect
+
## With HW (simulation or real FPGA run)
- ./snap_intersect -m1 (default using hash method)
- ./snap_intersect -m2 (need to change the symbolic link of hw, pointint to hw_s)
+ FPGA doing intersection step(1-3-5)
+ (FPGA does memcopy in step1 and step5. FPGA does intersection in step3.)
+ ./snap_intersect -m1 (hash method)
+ ./snap_intersect -m2 (sort method)
+
+ CPU doing intersection step(1-2-4):
+ (FPGA does memcopy in step1 and step2. CPU does intersection in step4.)
+ ./snap_intersect -m1 -s (hash method)
+ ./snap_intersect -m2 -s (sort method)
+
## Run SW
SNAP_CONFIG=1 ./snap_intersect -m0 -s (software naive way for intersection)
SNAP_CONFIG=1 ./snap_intersect -m1 -s (software hash method)
SNAP_CONFIG=1 ./snap_intersect -m2 -s (software sort method)
-
"-s" is needed.
+
+## Other arguments please look in `./snap_intersect -h`
+
|
refactors non-zero hash iteration in u3r_mur* | @@ -1758,14 +1758,15 @@ c3_w
u3r_mur_words(const c3_w* key_w, c3_w len_w)
{
c3_w syd_w = 0xcafebabe;
+ c3_w ham_w = 0;
- while ( 1 ) {
+ while ( 0 == ham_w ) {
c3_w haz_w = _mur_words(syd_w, key_w, len_w);
- c3_w ham_w = (haz_w >> 31) ^ (haz_w & 0x7fffffff);
-
- if ( 0 != ham_w ) return ham_w;
- else syd_w++;
+ ham_w = (haz_w >> 31) ^ (haz_w & 0x7fffffff);
+ syd_w++;
}
+
+ return ham_w;
}
/* u3r_mur_bytes():
@@ -1778,16 +1779,16 @@ u3r_mur_bytes(const c3_y *buf_y,
c3_w len_w)
{
c3_w syd_w = 0xcafebabe;
+ c3_w ham_w = 0;
- while ( 1 ) {
- c3_w haz_w, ham_w;
-
+ while ( 0 == ham_w ) {
+ c3_w haz_w;
MurmurHash3_x86_32(buf_y, len_w, syd_w, &haz_w);
ham_w = (haz_w >> 31) ^ (haz_w & 0x7fffffff);
-
- if ( 0 != ham_w ) return ham_w;
- else syd_w++;
+ syd_w++;
}
+
+ return ham_w;
}
/* u3r_mur_d():
|
[io] fix KernelText::t7, did not import Disk | @@ -433,14 +433,14 @@ void KernelTest::t7()
std::ofstream ofs("Kernelt7.xml");
{
boost::archive::xml_oarchive oa(ofs);
- siconos_io_register_Kernel(oa);
+ siconos_io_register_Mechanics(oa);
oa << NVP(ds1);
}
std::ifstream ifs("Kernelt7.xml");
{
boost::archive::xml_iarchive ia(ifs);
- siconos_io_register_Kernel(ia);
+ siconos_io_register_Mechanics(ia);
ia >> NVP(ds2);
}
|
coverity: remove dependency on uint32_t in fib_test.c
Fixes make build-coverity | @@ -5934,7 +5934,7 @@ fib_test_pref (void)
*/
#define N_PFXS 64
fib_prefix_t pfx_r[N_PFXS];
- uint32_t n_pfxs;
+ unsigned int n_pfxs;
for (n_pfxs = 0; n_pfxs < N_PFXS; n_pfxs++)
{
pfx_r[n_pfxs].fp_len = 32;
|
following the ever evolving compiler warnings we do not want | @@ -59,7 +59,6 @@ AC_ARG_ENABLE([poll-streams],
# Checks for programs.
AC_PROG_CC
-AC_PROG_CC_STDC
# extern, we need to find where the apxs is. which then
# can tell us the various directories we need.
@@ -232,6 +231,7 @@ if test "x$werror" != "xno"; then
# This is used by the APR_OFFSET macro
AX_CHECK_COMPILE_FLAG([-Wno-null-pointer-subtraction], [WERROR_CFLAGS="$WERROR_CFLAGS -Wno-null-pointer-subtraction"])
+ AX_CHECK_COMPILE_FLAG([-Wno-null-dereference], [WERROR_CFLAGS="$WERROR_CFLAGS -Wno-null-dereference"])
fi
AC_SUBST(WERROR_CFLAGS)
|
fix(bot-audit-log): error check order | @@ -59,20 +59,20 @@ void on_audit_channel_create(
client,
msg->guild_id,
&(struct discord_get_guild_audit_log_params){
- .user_id = msg->author->id,
+ .user_id = msg->guild_id,
.action_type = DISCORD_AUDIT_LOG_CHANNEL_CREATE
},
&audit_log);
- if (!audit_log.audit_log_entries) {
- goto _error;
- }
- struct discord_audit_log_entry *entry = audit_log.audit_log_entries[0];
-
if (code != ORCA_OK) {
log_error("%s", discord_strerror(code, client));
goto _error;
}
+ if (!audit_log.audit_log_entries) {
+ goto _error;
+ }
+
+ struct discord_audit_log_entry *entry = audit_log.audit_log_entries[0];
if (!entry->user_id || !entry->target_id) {
goto _error;
}
|
filter_kubernetes: append meta before merge json log | @@ -184,6 +184,18 @@ static int cb_kube_filter(void *data, size_t bytes,
}
}
+ /* Append Kubernetes metadata */
+ msgpack_pack_str(&tmp_pck, 10);
+ msgpack_pack_str_body(&tmp_pck, "kubernetes", 10);
+
+ if (cache_size > 0) {
+ msgpack_sbuffer_write(&tmp_sbuf, cache_buf, cache_size);
+ }
+ else {
+ msgpack_pack_str(&tmp_pck, 30);
+ msgpack_pack_str_body(&tmp_pck, "error connecting to api server", 30);
+ }
+
/*
* JSON maps inside a Docker JSON logs are escaped string, before
* to pack it we need to convert it to a native structured format.
@@ -227,18 +239,6 @@ static int cb_kube_filter(void *data, size_t bytes,
else {
merge_json_nil(tmp_pck);
}
-
- /* Append Kubernetes metadata */
- msgpack_pack_str(&tmp_pck, 10);
- msgpack_pack_str_body(&tmp_pck, "kubernetes", 10);
-
- if (cache_size > 0) {
- msgpack_sbuffer_write(&tmp_sbuf, cache_buf, cache_size);
- }
- else {
- msgpack_pack_str(&tmp_pck, 30);
- msgpack_pack_str_body(&tmp_pck, "error connecting to api server", 30);
- }
}
msgpack_unpacked_destroy(&result);
|
sdl: surface: Fix CreateRGBSurfaceWithFormat function | @@ -111,7 +111,7 @@ func CreateRGBSurfaceWithFormat(flags uint32, width, height, depth int32, format
// CreateRGBSurfaceWithFormatFrom allocates an RGB surface from provided pixel data.
// (https://wiki.libsdl.org/SDL_CreateRGBSurfaceWithFormatFrom)
-func CreateRGBSurfaceWithFormatFrom(pixels unsafe.Pointer, width, height, depth, pitch int, format uint32) (*Surface, error) {
+func CreateRGBSurfaceWithFormatFrom(pixels unsafe.Pointer, width, height, depth, pitch int32, format uint32) (*Surface, error) {
surface := (*Surface)(unsafe.Pointer(C.SDL_CreateRGBSurfaceWithFormatFrom(
pixels,
C.int(width),
|
[core] extend server.http-parseopts
"header-strict" => "enable"
restrict chars permitted in HTTP request headers
(overrides server.http-parseopt-header-strict)
"host-strict" => "enable"
restrict chars permitted in HTTP request Host header
(overrides server.http-parseopt-host-strict)
"host-normalize" => "enable"
normalize HTTP Host header
(overrides server.http-parseopt-host-normalize) | @@ -77,6 +77,18 @@ static int config_http_parseopts (server *srv, array *a) {
for (size_t i = 0; i < a->used; ++i) {
const data_string * const ds = (data_string *)a->data[i];
unsigned short int opt;
+ int val = 0;
+ if (buffer_is_equal_string(ds->value, CONST_STR_LEN("enable")))
+ val = 1;
+ else if (buffer_is_equal_string(ds->value, CONST_STR_LEN("disable")))
+ val = 0;
+ else {
+ log_error_write(srv, __FILE__, __LINE__, "sbsbs",
+ "unrecognized value for server.http-parseopts:",
+ ds->key, "=>", ds->value,
+ "(expect \"[enable|disable]\")");
+ rc = 0;
+ }
if (buffer_is_equal_string(ds->key, CONST_STR_LEN("url-normalize")))
opt = HTTP_PARSEOPT_URL_NORMALIZE;
else if (buffer_is_equal_string(ds->key, CONST_STR_LEN("url-normalize-unreserved")))
@@ -97,6 +109,18 @@ static int config_http_parseopts (server *srv, array *a) {
opt = HTTP_PARSEOPT_URL_NORMALIZE_PATH_DOTSEG_REJECT;
else if (buffer_is_equal_string(ds->key, CONST_STR_LEN("url-query-20-plus")))
opt = HTTP_PARSEOPT_URL_NORMALIZE_QUERY_20_PLUS;
+ else if (buffer_is_equal_string(ds->key, CONST_STR_LEN("header-strict"))) {
+ srv->srvconf.http_header_strict = val;
+ continue;
+ }
+ else if (buffer_is_equal_string(ds->key, CONST_STR_LEN("host-strict"))) {
+ srv->srvconf.http_host_strict = val;
+ continue;
+ }
+ else if (buffer_is_equal_string(ds->key, CONST_STR_LEN("host-normalize"))) {
+ srv->srvconf.http_host_normalize = val;
+ continue;
+ }
else {
log_error_write(srv, __FILE__, __LINE__, "sb",
"unrecognized key for server.http-parseopts:",
@@ -104,9 +128,9 @@ static int config_http_parseopts (server *srv, array *a) {
rc = 0;
continue;
}
- if (buffer_is_equal_string(ds->value, CONST_STR_LEN("enable")))
+ if (val)
opts |= opt;
- else if (buffer_is_equal_string(ds->value, CONST_STR_LEN("disable"))) {
+ else {
opts &= ~opt;
if (opt == HTTP_PARSEOPT_URL_NORMALIZE) {
opts = 0;
@@ -116,13 +140,6 @@ static int config_http_parseopts (server *srv, array *a) {
decode_2f = 0;
}
}
- else {
- log_error_write(srv, __FILE__, __LINE__, "sbsbs",
- "unrecognized value for server.http-parseopts:",
- ds->key, "=>", ds->value,
- "(expect \"[enable|disable]\")");
- rc = 0;
- }
}
if (opts != 0) {
opts |= HTTP_PARSEOPT_URL_NORMALIZE;
|
tinyusb: Update VBUS detection for stm32f7
Some register content differs between F4 and F7.
One of the differences is VBUS detection bits in
GOTGCTL and GCCFG.
This adds code for F7 flavour of synopsys module
for VBUS detection. | @@ -72,5 +72,16 @@ tinyusb_hardware_init(void)
USB_OTG_FS->GCCFG |= ~USB_OTG_GCCFG_VBUSASEN;
hal_gpio_init_af(MCU_GPIO_PORTA(9), GPIO_AF10_OTG_FS, GPIO_NOPULL, GPIO_MODE_AF_PP);
#endif
+#elif USB_OTG_GCCFG_VBDEN
+#if MYNEWT_VAL(USB_VBUS_DETECTION_ENABLE)
+ hal_gpio_init_in(MCU_GPIO_PORTA(9), HAL_GPIO_PULL_NONE);
+ USB_OTG_FS->GCCFG |= USB_OTG_GCCFG_VBDEN;
+#else
+ /* PA9- VUSB not used for USB */
+ USB_OTG_FS->GCCFG &= ~USB_OTG_GCCFG_VBDEN;
+ /* B-peripheral session valid override enable */
+ USB_OTG_FS->GOTGCTL |= USB_OTG_GOTGCTL_BVALOEN;
+ USB_OTG_FS->GOTGCTL |= USB_OTG_GOTGCTL_BVALOVAL;
+#endif
#endif
}
|
Add probability option to inject | # Note: presently there are a few hacks to get around various rewriter/verifier
# issues.
#
-# Note: this tool requires(as of v4.16-rc5):
-# - commit f7174d08a5fc ("mm: make should_failslab always available for fault
-# injection")
+# Note: this tool requires:
# - CONFIG_BPF_KPROBE_OVERRIDE
#
-# USAGE: inject [-h] [-I header] [-v]
+# USAGE: inject [-h] [-I header] [-P probability] [-v] mode spec
#
# Copyright (c) 2018 Facebook, Inc.
# Licensed under the Apache License, Version 2.0 (the "License")
@@ -45,8 +43,9 @@ class Probe:
}
@classmethod
- def configure(cls, mode):
+ def configure(cls, mode, probability):
cls.mode = mode
+ cls.probability = probability
def __init__(self, func, preds, length, entry):
# length of call chain
@@ -68,15 +67,25 @@ class Probe:
if not chk:
return ""
+ if Probe.probability == 1:
+ early_pred = "false"
+ else:
+ early_pred = "bpf_get_prandom_u32() > %s" % str(int((1<<32)*Probe.probability))
# init the map
# dont do an early exit here so the singular case works automatically
+ # have an early exit for probability option
enter = """
+ /*
+ * Early exit for probability case
+ */
+ if (%s)
+ return 0;
/*
* Top level function init map
*/
struct pid_struct p_struct = {0, 0};
m.insert(&pid, &p_struct);
- """
+ """ % early_pred
# kill the entry
exit = """
@@ -221,9 +230,9 @@ class Probe:
if (p->conds_met == %s && %s)
bpf_override_return(ctx, %s);
return 0;
-}""" % (self.prep, self.length, pred, self._get_err(), self.length - 1, pred,
- self._get_err())
- return text
+}"""
+ return text % (self.prep, self.length, pred, self._get_err(),
+ self.length - 1, pred, self._get_err())
# presently parses and replaces STRCMP
# STRCMP exists because string comparison is inconvenient and somewhat buggy
@@ -302,6 +311,9 @@ class Tool:
parser.add_argument("-I", "--include", action="append",
metavar="header",
help="additional header files to include in the BPF program")
+ parser.add_argument("-P", "--probability", default=1,
+ metavar="probability", type=float,
+ help="probability that this call chain will fail")
parser.add_argument("-v", "--verbose", action="store_true",
help="print BPF program")
self.args = parser.parse_args()
@@ -315,7 +327,7 @@ class Tool:
# create_probes and associated stuff
def _create_probes(self):
self._parse_spec()
- Probe.configure(self.args.mode)
+ Probe.configure(self.args.mode, self.args.probability)
# self, func, preds, total, entry
# create all the pair probes
@@ -425,8 +437,7 @@ struct pid_struct {
def _generate_program(self):
# leave out auto includes for now
-
- self.program += "#include <linux/mm.h>\n"
+ self.program += '#include <linux/mm.h>\n'
for include in (self.args.include or []):
self.program += "#include <%s>\n" % include
|
Small improvement to the test. | @@ -164,6 +164,8 @@ TEST_F(DepenencyManagerTests, AddSvcDepAfterBuild) {
TestService svc{nullptr};
long svcId = celix_bundleContext_registerService(ctx, &svc, "TestService", nullptr);
+ long svcId2 = celix_bundleContext_registerService(ctx, &svc, "AnotherService", nullptr); //note should not be found.
+
ASSERT_EQ(0, count); //service dep not yet build -> so no set call
dep.build();
@@ -181,4 +183,5 @@ TEST_F(DepenencyManagerTests, AddSvcDepAfterBuild) {
ASSERT_EQ(2, count); //new service dep build -> so count is 2
celix_bundleContext_unregisterService(ctx, svcId);
+ celix_bundleContext_unregisterService(ctx, svcId2);
}
\ No newline at end of file
|
fake controller events (left mouse for trigger) | @@ -118,13 +118,43 @@ static void cursor_position_callback(GLFWwindow* window, double xpos, double ypo
}
+
static void mouse_button_callback(GLFWwindow* window, int button, int action, int mods)
{
+
+ // clicking in window grabs mouse
if (!state.mouselook) {
if (button == GLFW_MOUSE_BUTTON_LEFT && action == GLFW_PRESS) {
enableMouselook(window);
}
}
+
+ // now generate events on fake controllers
+ {
+ Event ev;
+ Controller* controller;
+ int i;
+ switch (action) {
+ case GLFW_PRESS:
+ ev.type = EVENT_CONTROLLER_PRESSED;
+ break;
+ case GLFW_RELEASE:
+ ev.type = EVENT_CONTROLLER_RELEASED;
+ break;
+ default:
+ return;
+ }
+
+ vec_foreach(&state.controllers, controller, i) {
+ if (controller->id == 0) {
+ if (button == GLFW_MOUSE_BUTTON_LEFT) {
+ ev.data.controllerpressed.controller = controller;
+ ev.data.controllerpressed.button = CONTROLLER_BUTTON_TRIGGER;
+ lovrEventPush(ev);
+ }
+ }
+ }
+ }
}
// headset can start up without a window, so we poll window existance here
|
added (void), to prevent gcc warning unused var | @@ -47,7 +47,8 @@ static void test_memoryvalueplugin ()
int main (int argc, char ** argv)
{
-
+ (void)argc;
+ (void)argv;
test_memoryvalueplugin ();
print_result ("testmod_memoryvalue");
return nbError;
|
unit-test: better host_nonce test in keystore_secp256k1_sign
Zero bytes are also mixed in, but a non-zero value gives more confidence. | @@ -231,6 +231,7 @@ static void _test_keystore_secp256k1_sign(void** state)
uint8_t sig[64] = {0};
uint8_t host_nonce[32] = {0};
+ memset(host_nonce, 0x56, sizeof(host_nonce));
{
mock_state(NULL, NULL);
|
Remove unreachable error code in character ref handling | @@ -5788,12 +5788,15 @@ storeEntityValue(XML_Parser parser,
goto endEntityValue;
}
n = XmlEncode(n, (ICHAR *)buf);
- if (!n) {
- if (enc == encoding)
- eventPtr = entityTextPtr;
- result = XML_ERROR_BAD_CHAR_REF;
- goto endEntityValue;
- }
+ /* The XmlEncode() functions can never return 0 here. That
+ * error return happens if the code point passed in is either
+ * negative or greater than or equal to 0x110000. The
+ * XmlCharRefNumber() functions will all return a number
+ * strictly less than 0x110000 or a negative value if an error
+ * occurred. The negative value is intercepted above, so
+ * XmlEncode() is never passed a value it might return an
+ * error for.
+ */
for (i = 0; i < n; i++) {
if (pool->end == pool->ptr && !poolGrow(pool)) {
result = XML_ERROR_NO_MEMORY;
|
Fixed kNL() docstring in power.py. | @@ -117,7 +117,7 @@ def kNL(cosmo, a):
a (float or array_like): Scale factor(s), normalized to 1 today.
Returns:
- float: Scale of non-linear cut-off.
+ float or array-like: Scale of non-linear cut-off; Mpc^-1.
"""
cosmo.compute_linear_power()
return _vectorize_fn(lib.kNL, lib.kNL_vec, cosmo, a)
|
Remove duplicate ws_visible | @@ -454,7 +454,7 @@ VOID PhMwpInitializeControls(
PhMwpProcessTreeNewHandle = CreateWindow(
PH_TREENEW_CLASSNAME,
NULL,
- WS_CHILD | WS_VISIBLE | WS_CLIPCHILDREN | WS_CLIPSIBLINGS | TN_STYLE_ICONS | TN_STYLE_DOUBLE_BUFFERED | TN_STYLE_ANIMATE_DIVIDER | thinRows | treelistBorder | treelistCustomColors,
+ WS_CHILD | WS_CLIPCHILDREN | WS_CLIPSIBLINGS | TN_STYLE_ICONS | TN_STYLE_DOUBLE_BUFFERED | TN_STYLE_ANIMATE_DIVIDER | thinRows | treelistBorder | treelistCustomColors,
0,
0,
3,
|
Fix Quail nanoBooter main code
Reworked code to comply with latest workflow. | #include <hal.h>
#include <cmsis_os.h>
-#include <usbcfg.h>
+#include <targetHAL.h>
#include <WireProtocol_ReceiverThread.h>
#include <LaunchCLR.h>
@@ -53,15 +53,15 @@ int main(void) {
osKernelInitialize();
// Initializes a serial-over-USB CDC driver.
- sduObjectInit(&SDU1);
- sduStart(&SDU1, &serusbcfg);
+ //sduObjectInit(&SDU1);
+ //sduStart(&SDU1, &serusbcfg);
// Activates the USB driver and then the USB bus pull-up on D+.
// Note, a delay is inserted in order to not have to disconnect the cable after a reset.
- usbDisconnectBus(serusbcfg.usbp);
- chThdSleepMilliseconds(1500);
- usbStart(serusbcfg.usbp, &usbcfg);
- usbConnectBus(serusbcfg.usbp);
+ //usbDisconnectBus(serusbcfg.usbp);
+ //chThdSleepMilliseconds(1500);
+ //usbStart(serusbcfg.usbp, &usbcfg);
+ //usbConnectBus(serusbcfg.usbp);
// Creates the blinker thread, it does not start immediately.
blinkerThreadId = osThreadCreate(osThread(BlinkerThread), NULL);
@@ -81,9 +81,14 @@ int main(void) {
osThreadTerminate(blinkerThreadId);
// stop the serial-over-USB CDC driver
- sduStop(&SDU1);
+ //sduStop(&SDU1);
+ // check for valid CLR image at address contiguous to nanoBooter
+ if(CheckValidCLRImage((uint32_t)&__nanoImage_end__))
+ {
+ // there seems to be a valid CLR image
// launch nanoCLR
- LaunchCLR(0x08008000);
+ LaunchCLR((uint32_t)&__nanoImage_end__);
+ }
}
|
fix datarace warning | @@ -419,15 +419,13 @@ public:
}
NCB::NModelEvaluation::TConstModelEvaluatorPtr GetCurrentEvaluator() const {
- if (!Evaluator) {
with_lock(CurrentEvaluatorLock) {
if (!Evaluator) {
Evaluator = CreateEvaluator(FormulaEvaluatorType);
}
- }
- }
return Evaluator;
}
+ }
bool operator==(const TFullModel& other) const {
return *ObliviousTrees == *other.ObliviousTrees;
|
Completions: Fix option suggestion
Before this change Fish would suggest common options such as `-v`, even
if the current `kdb` command did not contain a subcommand. | @@ -14,6 +14,15 @@ function __fish_kdb_subcommand_includes -d 'Check if the current kdb subcommand
contains -- "$subcommand" $argv
end
+function __fish_kdb_subcommand_does_not_include -d 'Check if the current kdb subcommand does not include any of the given subcommands'
+ set -l subcommand (__fish_kdb_subcommand)
+
+ test -z $subcommand
+ and return 1
+
+ not contains -- "$subcommand" $argv
+end
+
function __fish_kdb_subcommand -d 'Check for and print the current kdb subcommand'
set -l input (commandline -op)
@@ -95,11 +104,11 @@ end
function __fish_kdb_subcommand_supports_option_verbose -d 'Check if the current subcommand supports the option verbose'
set -l commands export file getmeta global-mount gmount info mount qt-gui remount rm sget shell test vset help list-tools qt-gui
- not __fish_kdb_subcommand_includes $commands
+ __fish_kdb_subcommand_does_not_include $commands
end
function __fish_kdb_subcommand_supports_common_options -d 'Check if the current subcommand supports common options'
- not __fish_kdb_subcommand_includes help list-tools qt-gui
+ __fish_kdb_subcommand_does_not_include help list-tools qt-gui
end
# -- Completions ---------------------------------------------------------------------------------------------------------------------------
|
Update runFuzzTest.sh to print out tests/sec and warn if too low | @@ -26,6 +26,7 @@ fi
TEST_NAME=$1
FUZZ_TIMEOUT_SEC=$2
+MIN_TEST_PER_SEC="1000"
if [[ $TEST_NAME == *_negative_test ]];
then
@@ -55,18 +56,27 @@ printf "Running %-40s for %5d sec with %2d threads... " ${TEST_NAME} ${FUZZ_TIM
./${TEST_NAME} ${LIBFUZZER_ARGS} ./corpus/${TEST_NAME} > ${TEST_NAME}_output.txt 2>&1 || ACTUAL_TEST_FAILURE=1
TEST_COUNT=`grep -o "stat::number_of_executed_units: [0-9]*" ${TEST_NAME}_output.txt | awk '{test_count += $2} END {print test_count}'`
+TESTS_PER_SEC=`echo $(($TEST_COUNT / $FUZZ_TIMEOUT_SEC))`
BRANCH_COVERAGE=`grep -o "cov: [0-9]*" ${TEST_NAME}_output.txt | awk '{print $2}' | sort | tail -1`
if [ $ACTUAL_TEST_FAILURE == $EXPECTED_TEST_FAILURE ];
then
+ printf "\033[32;1mPASSED\033[0m %8d tests, %6d test/sec, %5d branches covered\n" $TEST_COUNT $TESTS_PER_SEC $BRANCH_COVERAGE
+
if [ $EXPECTED_TEST_FAILURE == 1 ];
then
# Clean up LibFuzzer corpus files if the test is negative.
rm -f leak-* crash-*
+ else
+ if [ "$TESTS_PER_SEC" -lt $MIN_TEST_PER_SEC ]; then
+ printf "\033[31;1mWARNING!\033[0m ${TEST_NAME} is only ${TESTS_PER_SEC} tests/sec, which is below ${MIN_TEST_PER_SEC}/sec! Fuzz tests are more effective at higher rates.\n\n"
+ fi
fi
- printf "\033[32;1mPASSED\033[0m %12d tests, %8d branches covered\n" $TEST_COUNT $BRANCH_COVERAGE
+
+
+
else
cat ${TEST_NAME}_output.txt
- printf "\033[31;1mFAILED\033[0m %12d tests, %8d branches covered\n" $TEST_COUNT $BRANCH_COVERAGE
+ printf "\033[31;1mFAILED\033[0m %10d tests, %6d branches covered\n" $TEST_COUNT $BRANCH_COVERAGE
exit -1
fi
\ No newline at end of file
|
fix warning in oos_sniffer project. | @@ -201,8 +201,7 @@ owerror_t sixtop_request(
uint8_t sfid,
uint16_t listingOffset,
uint16_t listingMaxNumCells
-) {return;}
-bool sixtop_setHandler(six2six_handler_t handler) {return TRUE;}
+) {return E_FAIL;}
void sixtop_setIsResponseEnabled(bool isEnabled) {return;}
void sixtop_setKaPeriod(uint16_t kaPeriod) {return;}
void sf0_appPktPeriod(uint8_t numAppPacketsPerSlotFrame) {return;}
|
HAL: remove useless DIRCLR | @@ -167,7 +167,6 @@ hal_gpio_deinit(int pin)
conf = GPIO_PIN_CNF_INPUT_Disconnect << GPIO_PIN_CNF_INPUT_Pos;
port = HAL_GPIO_PORT(pin);
port->PIN_CNF[pin_index] = conf;
- port->DIRCLR = HAL_GPIO_MASK(pin);
return 0;
}
|
Added comments documenting class VmaJsonWriter | @@ -5101,30 +5101,58 @@ void VmaStringBuilder::AddPointer(const void* ptr)
#endif // _VMA_STRING_BUILDER
#if !defined(_VMA_JSON_WRITER) && VMA_STATS_STRING_ENABLED
+/*
+Allows to conveniently build a correct JSON document to be written to the
+VmaStringBuilder passed to the constructor.
+*/
class VmaJsonWriter
{
VMA_CLASS_NO_COPY(VmaJsonWriter)
public:
+ // sb - string builder to write the document to. Must remain alive for the whole lifetime of this object.
VmaJsonWriter(const VkAllocationCallbacks* pAllocationCallbacks, VmaStringBuilder& sb);
~VmaJsonWriter();
+ // Begins object by writing "{".
+ // Inside an object, you must call pairs of WriteString and a value, e.g.:
+ // j.BeginObject(true); j.WriteString("A"); j.WriteNumber(1); j.WriteString("B"); j.WriteNumber(2); j.EndObject();
+ // Will write: { "A": 1, "B": 2 }
void BeginObject(bool singleLine = false);
+ // Ends object by writing "}".
void EndObject();
+ // Begins array by writing "[".
+ // Inside an array, you can write a sequence of any values.
void BeginArray(bool singleLine = false);
+ // Ends array by writing "[".
void EndArray();
+ // Writes a string value inside "".
+ // pStr can contain any ANSI characters, including '"', new line etc. - they will be properly escaped.
void WriteString(const char* pStr);
+
+ // Begins writing a string value.
+ // Call BeginString, ContinueString, ContinueString, ..., EndString instead of
+ // WriteString to conveniently build the string content incrementally, made of
+ // parts including numbers.
void BeginString(const char* pStr = VMA_NULL);
+ // Posts next part of an open string.
void ContinueString(const char* pStr);
+ // Posts next part of an open string. The number is converted to decimal characters.
void ContinueString(uint32_t n);
void ContinueString(uint64_t n);
+ // Posts next part of an open string. Pointer value is converted to characters
+ // using "%p" formatting - shown as hexadecimal number, e.g.: 000000081276Ad00
void ContinueString_Pointer(const void* ptr);
+ // Ends writing a string value by writing '"'.
void EndString(const char* pStr = VMA_NULL);
+ // Writes a number value.
void WriteNumber(uint32_t n);
void WriteNumber(uint64_t n);
+ // Writes a boolean value - false or true.
void WriteBool(bool b);
+ // Writes a null value.
void WriteNull();
private:
|
Don't send empty Authorization header for HTTP requests
If there's no username and/or password
Tested-by: Build Bot | @@ -406,6 +406,10 @@ Request::get_api_node(lcb_error_t &rc)
return lcbvb_get_resturl(vbc, ix, svc, mode);
}
+static bool is_nonempty(const char *s) {
+ return s != NULL && *s != '\0';
+}
+
lcb_error_t
Request::setup_inputs(const lcb_CMDHTTP *cmd)
{
@@ -473,7 +477,7 @@ Request::setup_inputs(const lcb_CMDHTTP *cmd)
}
add_header("Accept", "application/json");
- if (password && username) {
+ if (is_nonempty(password) && is_nonempty(username)) {
char auth[256];
std::string upassbuf;
upassbuf.append(username).append(":").append(password);
|
Fix building zlib under MSVC | @@ -30,10 +30,15 @@ NO_COMPILER_WARNINGS()
NO_RUNTIME()
CFLAGS(
- -DHAVE_HIDDEN
-D_LARGEFILE64_SOURCE=1
)
+IF (NOT MSVC)
+ CFLAGS(
+ -DHAVE_HIDDEN
+ )
+ENDIF()
+
SRCS(
adler32.c
compress.c
|
Get Go 16 working again. | @@ -460,7 +460,8 @@ initGoHook(elf_buf_t *ebuf)
* are entering the Go func past the runtime stack check?
* Need to investigate later.
*/
- if ((go_runtime_cgocall = getGoSymbol(ebuf->buf, "runtime.asmcgocall")) == 0) {
+ if (((go_runtime_cgocall = getGoSymbol(ebuf->buf, "runtime.asmcgocall")) == 0) &&
+ ((go_runtime_cgocall = getSymbol(ebuf->buf, "runtime.asmcgocall")) == 0)) {
sysprint("ERROR: can't get the address for runtime.cgocall\n");
return; // don't install our hooks
}
@@ -469,8 +470,9 @@ initGoHook(elf_buf_t *ebuf)
tap_t* tap = NULL;
for (tap = g_go_tap; tap->assembly_fn; tap++) {
- void* orig_func = getGoSymbol(ebuf->buf, tap->func_name);
- if (!orig_func) {
+ void* orig_func;
+ if (((orig_func = getGoSymbol(ebuf->buf, tap->func_name)) == NULL) &&
+ ((orig_func = getSymbol(ebuf->buf, tap->func_name)) == NULL)) {
sysprint("ERROR: can't get the address for %s\n", tap->func_name);
continue;
}
|
libhfuzz: better comments for _HF_USE_RET_ADDR | int hfuzz_module_memorycmp = 0;
#if !defined(_HF_USE_RET_ADDR)
+/* Use just single ret-address */
#define RET_CALL_CHAIN (uintptr_t) __builtin_return_address(0)
#elif _HF_USE_RET_ADDR == 2
-/* Use mix of two previous addresses */
+/* Use mix of two previous return addresses - unsafe */
#define RET_CALL_CHAIN \
((uintptr_t)__builtin_return_address(0)) ^ ((uintptr_t)__builtin_return_address(1) << 12)
#elif _HF_USE_RET_ADDR == 3
-/* Use mix of three previous addresses */
+/* Use mix of three previous returen addresses - unsafe */
#define RET_CALL_CHAIN \
((uintptr_t)__builtin_return_address(0)) ^ ((uintptr_t)__builtin_return_address(1) << 8) ^ \
((uintptr_t)__builtin_return_address(1) << 16)
#else
-#error "Unknown value of _HF_USE_RET_ADDR" ## _HF_USE_RET_ADDR
+#error "Unknown value of _HF_USE_RET_ADDR"
#endif /* !defined(_HF_USE_RET_ADDR_1) */
static inline int _strcmp(const char* s1, const char* s2, uintptr_t addr) {
|
Remove invalid copy command | @@ -8,7 +8,6 @@ copy %PROJECT_DIR%..\..\..\lib\include\public\*.* %PROJECT_DIR%\include
copy %PROJECT_DIR%..\..\..\Solutions\out\%1\%2\win32-dll\*.lib %PROJECT_DIR%\lib\%1\%2
@mkdir %PROJECT_DIR%\%1\%2
-copy %PROJECT_DIR%..\..\
copy %PROJECT_DIR%..\..\..\Solutions\out\%1\%2\win32-dll\*.* %PROJECT_DIR%\lib\%1\%2
copy %PROJECT_DIR%..\..\..\Solutions\out\%1\%2\win32-dll\*.* %3
exit /b 0
|
Fix gem dependency. | @@ -40,7 +40,7 @@ Gem::Specification.new do |spec|
spec.test_files = Dir.glob('test/tc_*.rb')
spec.required_ruby_version = '>= 1.8.6'
spec.date = DateTime.now
- spec.add_development_dependency('hanna_guado')
+ spec.add_development_dependency('hanna-nouveau')
spec.add_development_dependency('rake-compiler')
spec.add_development_dependency('minitest')
spec.license = 'MIT'
|
android: updating rhobuild.yml.example | @@ -3,7 +3,7 @@ env:
paths:
java: C:/Program Files/Java/jdk1.7.0_67/bin
android: C:/android-sdk-windows
- android-ndk: C:/android-ndk-r10
+ android-ndk: C:/android-ndk-r16
cabwiz: C:/Program Files (x86)/Windows Mobile 6 SDK/Tools/CabWiz
msbuild: C:/Program Files (x86)/MSBuild/14.0/Bin/MSBuild.exe
vcbuild: C:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/vcpackages/vcbuild.exe
|
remproary fix pipe has eneded | @@ -167,10 +167,10 @@ class Osr2mp4:
if self.data["Process"] >= 1:
for i in range(self.data["Process"]):
self.drawers[i].join()
+ self.writers[i].join() # temporary fixm might cause some infinite loop
conn1, conn2 = self.pipes[i]
conn1.close()
conn2.close()
- self.writers[i].join()
self.drawers, self.writers, self.pipes = None, None, None
|
Widgets must now be a single file
Setting a widget took too much time and if many modules are installed and the users has many scripts, Pyto wasted too much storage. | @@ -71,24 +71,7 @@ import CoreLocation
}
try FileManager.default.copyItem(at: widgetURL, to: newWidgetURL)
-
- for file in ((try? FileManager.default.contentsOfDirectory(at: EditorViewController.directory(for: url!), includingPropertiesForKeys: nil, options: .init(rawValue: 0))) ?? []) {
- let newURL = sharedDir.appendingPathComponent(file.lastPathComponent)
- if FileManager.default.fileExists(atPath: newURL.path) {
- try? FileManager.default.removeItem(at: newURL)
- }
-
- try? FileManager.default.copyItem(at: file, to: newURL)
- }
}
-
- let sharedModulesDir = sharedDir.appendingPathComponent("modules")
-
- if FileManager.default.fileExists(atPath: sharedModulesDir.path) {
- try FileManager.default.removeItem(at: sharedModulesDir)
- }
-
- try FileManager.default.copyItem(at: DocumentBrowserViewController.localContainerURL.appendingPathComponent("site-packages"), to: sharedModulesDir)
} catch {
print(error.localizedDescription)
}
|
Try if optimizations get in our way | @@ -426,7 +426,8 @@ region_free_bound(S, Reg) :-
Reg = region(Id, block(RBase, _)),
CReg = region(Id, block(_, CLimit)),
state_has_in_use(S, CReg),
- RBase #>= CLimit ;
+ %RBase #>= CLimit ;
+ RBase #>= 0 ;
% In case of no region with same id
Reg = region(Id, block(RBase, _)),
CReg = region(Id, _),
|
Makefile: Undo logo | @@ -30,12 +30,12 @@ snap_env_sh = $(SNAP_ROOT)/.snap_env.sh
clean_subdirs += $(config_subdirs) $(software_subdirs) $(hardware_subdirs) $(action_subdirs)
# Only build if the subdirectory is really existent
-.PHONY: $(software_subdirs) software $(action_subdirs) actions $(hardware_subdirs) hardware test install uninstall snap_env config model image cloud_base cloud_action cloud_merge snap_config menuconfig xconfig gconfig oldconfig clean clean_config LOGO
+.PHONY: $(software_subdirs) software $(action_subdirs) actions $(hardware_subdirs) hardware test install uninstall snap_env config model image cloud_base cloud_action cloud_merge snap_config menuconfig xconfig gconfig oldconfig clean clean_config
ifeq ($(PLATFORM),x86_64)
-all: LOGO $(software_subdirs) $(action_subdirs) $(hardware_subdirs)
+all: $(software_subdirs) $(action_subdirs) $(hardware_subdirs)
else
-all: LOGO $(software_subdirs) $(action_subdirs)
+all: $(software_subdirs) $(action_subdirs)
endif
# Disabling implicit rule for shell scripts
@@ -48,7 +48,7 @@ $(software_subdirs):
echo "Exit: $@"; \
fi
-software: $(LOGO) $(software_subdirs)
+software: $(software_subdirs)
$(action_subdirs):
@if [ -d $@ ]; then \
@@ -119,22 +119,7 @@ clean:
done
@find . -depth -name '*~' -exec rm -rf '{}' \; -print
@find . -depth -name '.#*' -exec rm -rf '{}' \; -print
- @rm $(SNAP_ROOT)/.logo
-clean_config: $(SNAP_ROOT)/.logo clean
+clean_config: clean
@$(RM) $(SNAP_ROOT)/.snap_env*
@$(RM) $(SNAP_ROOT)/.snap_config*
-
-
-$(SNAP_ROOT)/.logo:
- @echo Generate: $@
- @echo "-------------------------------------------" > $(SNAP_ROOT)/.logo
- @echo "---SSSSSS---NN----NN-------A-------PPPPP---" >> $(SNAP_ROOT)/.logo
- @echo "--SS--------NNN---NN------AAA------PP--PP--" >> $(SNAP_ROOT)/.logo
- @echo "---SSSSS----NN-N--NN-----AA-AA-----PPPPP---" >> $(SNAP_ROOT)/.logo
- @echo "-------SS---NN--N-NN----AAAAAAA----PP------" >> $(SNAP_ROOT)/.logo
- @echo "---SSSSS----NN---NNN---AA-----AA---PP------" >> $(SNAP_ROOT)/.logo
- @echo "-------------------------------------------" >> $(SNAP_ROOT)/.logo
- @date >> $(SNAP_ROOT)/.logo
-
-LOGO: $(SNAP_ROOT)/.logo
|
stm32/sdcard: Use maximum speed SDMMC clock on F7 MCUs.
This will get the SDMMC clock up to 48MHz. | @@ -198,6 +198,10 @@ bool sdcard_power_on(void) {
}
// configure the SD bus width for wide operation
+ #if defined(MCU_SERIES_F7)
+ // use maximum SDMMC clock speed on F7 MCUs
+ sd_handle.Init.ClockBypass = SDMMC_CLOCK_BYPASS_ENABLE;
+ #endif
if (HAL_SD_ConfigWideBusOperation(&sd_handle, SDIO_BUS_WIDE_4B) != HAL_OK) {
HAL_SD_DeInit(&sd_handle);
goto error;
|
add the ci build | @@ -108,6 +108,7 @@ jobs:
- {RTT_BSP: "stm32/stm32h747-st-discovery", RTT_TOOL_CHAIN: "sourcery-arm"}
- {RTT_BSP: "stm32/stm32h750-artpi-h750", RTT_TOOL_CHAIN: "sourcery-arm"}
- {RTT_BSP: "stm32/stm32l4r9-st-eval", RTT_TOOL_CHAIN: "sourcery-arm"}
+ - {RTT_BSP: "stm32/stm32l4r9-st-sensortile-box", RTT_TOOL_CHAIN: "sourcery-arm"}
- {RTT_BSP: "stm32/stm32l010-st-nucleo", RTT_TOOL_CHAIN: "sourcery-arm"}
- {RTT_BSP: "stm32/stm32l053-st-nucleo", RTT_TOOL_CHAIN: "sourcery-arm"}
- {RTT_BSP: "stm32/stm32l412-st-nucleo", RTT_TOOL_CHAIN: "sourcery-arm"}
|
doc CHANGE note about switching DS
Refs | @@ -329,7 +329,8 @@ int sr_session_notif_buffer(sr_session_ctx_t *session);
/**
* @brief Change datastore which the session operates on. All subsequent
- * calls will be issued on the chosen datastore.
+ * calls will be issued on the chosen datastore. Previous calls are not
+ * affected.
*
* @param[in] session Session to modify.
* @param[in] ds New datastore that will be operated on.
|
Test memory allocation functions | @@ -1275,6 +1275,41 @@ START_TEST(test_bad_cdata)
}
END_TEST
+/* Test memory allocation functions */
+START_TEST(test_memory_allocation)
+{
+ char *buffer = (char *)XML_MemMalloc(parser, 256);
+ char *p;
+
+ if (buffer == NULL) {
+ fail("Allocation failed");
+ } else {
+ /* Try writing to memory; some OSes try to cheat! */
+ buffer[0] = 'T';
+ buffer[1] = 'E';
+ buffer[2] = 'S';
+ buffer[3] = 'T';
+ buffer[4] = '\0';
+ if (strcmp(buffer, "TEST") != 0) {
+ fail("Memory not writable");
+ } else {
+ p = (char *)XML_MemRealloc(parser, buffer, 512);
+ if (p == NULL) {
+ fail("Reallocation failed");
+ } else {
+ /* Write again, just to be sure */
+ buffer = p;
+ buffer[0] = 'V';
+ if (strcmp(buffer, "VEST") != 0) {
+ fail("Reallocated memory not writable");
+ }
+ }
+ }
+ XML_MemFree(parser, buffer);
+ }
+}
+END_TEST
+
/*
* Namespaces tests.
@@ -2149,6 +2184,7 @@ make_suite(void)
tcase_add_test(tc_basic, test_good_cdata_ascii);
tcase_add_test(tc_basic, test_good_cdata_utf16);
tcase_add_test(tc_basic, test_bad_cdata);
+ tcase_add_test(tc_basic, test_memory_allocation);
suite_add_tcase(s, tc_namespace);
tcase_add_checked_fixture(tc_namespace,
|
Fix: Incorrect condition while getting SCC colours from stmt colours | @@ -1583,7 +1583,7 @@ int* get_scc_colours_from_vertex_colours (PlutoProg *prog, int *stmt_colour, int
for (i=0; i<num_sccs; i++) {
for (j=0; j<sccs[i].size; j++) {
stmt_id = sccs[i].vertices[j];
- if (sccs[i].max_dim == stmts[j]->dim)
+ if (sccs[i].max_dim == stmts[stmt_id]->dim)
break;
}
|
test: exclude yamlcpp from is_not_rw_storage | @@ -233,7 +233,9 @@ is_not_rw_storage() {
-o "x$PLUGIN" = "xsimpleini" \
-o "x$PLUGIN" = "xyambi" \
-o "x$PLUGIN" = "xtcl" \
- -o "x$PLUGIN" = "xmini"
+ -o "x$PLUGIN" = "xmini" \
+ -o "x$PLUGIN" = "xyaypeg" \
+ -o "x$PLUGIN" = "xyamlcpp"
}
is_plugin_available() {
|
VERSION bump to version 1.4.118 | @@ -46,7 +46,7 @@ endif()
# micro version is changed with a set of small changes or bugfixes anywhere in the project.
set(SYSREPO_MAJOR_VERSION 1)
set(SYSREPO_MINOR_VERSION 4)
-set(SYSREPO_MICRO_VERSION 117)
+set(SYSREPO_MICRO_VERSION 118)
set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_MICRO_VERSION})
# Version of the library
|
DM: virtio-gpio: close gpio line fd
When vm reset,the gpio line state is busy if we don't close the fd.
Acked-by: Yu Wang | @@ -291,6 +291,7 @@ static void print_intr_statistics(struct gpio_irq_chip *chip);
static void record_intr_statistics(struct gpio_irq_chip *chip, uint64_t mask);
static void gpio_pio_write(struct virtio_gpio *gpio, int n, uint64_t reg);
static uint32_t gpio_pio_read(struct virtio_gpio *gpio, int n);
+static void native_gpio_close_line(struct gpio_line *line);
static void
native_gpio_update_line_info(struct gpio_line *line)
@@ -324,10 +325,14 @@ native_gpio_update_line_info(struct gpio_line *line)
static void
native_gpio_close_chip(struct native_gpio_chip *chip)
{
+ int i;
if (chip) {
memset(chip->name, 0, sizeof(chip->name));
memset(chip->label, 0, sizeof(chip->label));
memset(chip->dev_name, 0, sizeof(chip->dev_name));
+ for (i = 0; i < chip->ngpio; i++) {
+ native_gpio_close_line(&chip->lines[i]);
+ }
if (chip->fd > 0) {
close(chip->fd);
chip->fd = -1;
|
hv: properly initialize MSI-X table
Though guests are not supposed to read Message Data/Addr, it's still better
off to initialize them to 0.
vector_control should be initialize to zero besides the mask bit. | @@ -350,7 +350,9 @@ static int vmsix_init(struct pci_vdev *vdev)
/* Mask all table entries */
for (i = 0U; i < msix->table_count; i++) {
- msix->tables[i].vector_control |= PCIM_MSIX_VCTRL_MASK;
+ msix->tables[i].vector_control = PCIM_MSIX_VCTRL_MASK;
+ msix->tables[i].addr = 0U;
+ msix->tables[i].data = 0U;
}
decode_msix_table_bar(vdev);
|
+on-init compiles | == ==
$: %j
$% [%memo =ship =message]
+ ::
[%pubs =ship]
[%turf ~]
[%vein ~]
$: %j
$% [%done error=(unit error)]
[%memo =message]
+ ::
[%pubs public:able:jael]
[%turf turfs=(list turf)]
[%vein =life vein=(map life ring)]
%crud !!
%hear (on-hear:event-core [lane blob]:task)
%hole !!
- %init !!
+ %init (on-init:event-core ship.task)
%sunk (on-sunk:event-core [ship rift]:task)
%vega on-vega:event-core
%wegh on-wegh:event-core
=/ =channel [[our her] now +>.ames-state -.peer-state]
::
abet:(on-wake:(make-peer-core peer-state channel) bone error)
+ :: +on-init: first boot; subscribe to our info from jael
+ ::
+ ++ on-init
+ |= =ship
+ ^+ event-core
+ ::
+ =. event-core (emit duct %pass /init/pubs %j %pubs ship)
+ =. event-core (emit duct %pass /init/vein %j %vein ~)
+ event-core
:: +on-sunk: handle continuity breach of .ship; wipe its state
::
:: Abandon all pretense of continuity and delete all state
|
neon/bsl: add AltiVec implementation | @@ -289,6 +289,8 @@ simde_vbslq_s16(simde_uint16x8_t a, simde_int16x8_t b, simde_int16x8_t c) {
return vbslq_s16(a, b, c);
#elif defined(SIMDE_WASM_SIMD128_NATIVE)
return wasm_v128_bitselect(b, c, a);
+ #elif defined(SIMDE_POWER_ALTIVEC_P6_NATIVE)
+ return vec_sel(c, b, a);
#else
simde_uint8x16_t
a_ = simde_vreinterpretq_u8_u16(a),
@@ -349,6 +351,8 @@ simde_vbslq_u8(simde_uint8x16_t a, simde_uint8x16_t b, simde_uint8x16_t c) {
return vbslq_u8(a, b, c);
#elif defined(SIMDE_WASM_SIMD128_NATIVE)
return wasm_v128_bitselect(b, c, a);
+ #elif defined(SIMDE_POWER_ALTIVEC_P6_NATIVE)
+ return vec_sel(c, b, a);
#else
return simde_veorq_u8(c, simde_vandq_u8(simde_veorq_u8(c, b), a));
#endif
|
add pdsh-mod-slurm to slurm-server metapackage | @@ -393,6 +393,7 @@ Requires: slurm-slurmdb-direct%{PROJ_DELIM}
Requires: munge%{PROJ_DELIM}
Requires: munge-libs%{PROJ_DELIM}
Requires: munge-devel%{PROJ_DELIM}
+Requires: pdsh-mod-slurm%{PROJ_DELIM}
%description slurm-server
OpenHPC server packages for SLURM
|
pedro: add M25P16 | //#define MAX7456_NSS PIN_A15
//SDCARD
-#define USE_SDCARD
-#define SDCARD_SPI_PORT SPI_PORT3
-#define SDCARD_NSS_PIN PIN_A15
+//#define USE_SDCARD
+//#define SDCARD_SPI_PORT SPI_PORT3
+//#define SDCARD_NSS_PIN PIN_A15
+
+#define USE_M25P16
+#define M25P16_SPI_PORT SPI_PORT3
+#define M25P16_NSS_PIN PIN_A15
//VOLTAGE DIVIDER
#define DISABLE_ADC
|
stm32/boards/NUCLEO_H743ZI: Enable ADC peripheral. | #define MICROPY_HW_ENABLE_RTC (1)
#define MICROPY_HW_ENABLE_RNG (1)
-#define MICROPY_HW_ENABLE_ADC (0)
+#define MICROPY_HW_ENABLE_ADC (1)
#define MICROPY_HW_ENABLE_DAC (1)
#define MICROPY_HW_ENABLE_USB (1)
#define MICROPY_HW_HAS_SWITCH (1)
|
Fix OIDC_CONFIG_DIR reference in the docu; fix | @@ -6,7 +6,7 @@ locations:
- `~/.oidc-agent`
Alternatively the location can also be set through an environment variable
-called `OIDC_CONF_DIR`. However, we note that this environment variable has
+called `OIDC_CONFIG_DIR`. However, we note that this environment variable has
to be present whenever you use one of the `oidc-` binaries. It is therefore
recommend to set it in the `.bash_profile` or similar.
See also [`oidc-keychain`](../oidc-keychain/oidc-keychain.md).
|
fix (hmac crypto externa): fix padding handling correctly | @@ -118,18 +118,27 @@ void process_hmac_result(crypto_task_type_e task_type, packet_descriptor_t *pd,
crypto_task_s *crypto_task) {
unsigned int lcore_id = rte_lcore_id();
+ uint8_t* wrapper_pointer = rte_pktmbuf_mtod(pd->wrapper, uint8_t*);
+ uint32_t target_relative = crypto_task->offset +
+ crypto_task->plain_length_to_encrypt;
+ uint8_t* target = wrapper_pointer + target_relative;
if (dequeued_rte_crypto_ops[lcore_id][0]->sym->m_dst) {
uint8_t *auth_tag = rte_pktmbuf_mtod_offset(dequeued_rte_crypto_ops[lcore_id][0]->sym->m_dst, uint8_t *,
crypto_task->padding_length);
- uint32_t target_position = crypto_task->offset +
+
+ memmove(target,auth_tag,MD5_DIGEST_LEN);
+ rte_pktmbuf_trim(pd->wrapper,crypto_task->padding_length);
+ }else {
+ uint8_t from_relative = crypto_task->offset +
crypto_task->plain_length_to_encrypt +
crypto_task->padding_length;
+ uint8_t* from_position = wrapper_pointer + from_relative;
- uint8_t* target = rte_pktmbuf_mtod(pd->wrapper, uint8_t*) + target_position;
- memcpy(target,auth_tag,MD5_DIGEST_LEN);
+ memmove(target,from_position,MD5_DIGEST_LEN);
+ rte_pktmbuf_trim(pd->wrapper,crypto_task->padding_length);
}
rte_pktmbuf_adj(pd->wrapper, sizeof(int));
- dbg_bytes(pd->wrapper, rte_pktmbuf_pkt_len(pd->wrapper),
+ dbg_bytes(rte_pktmbuf_mtod(pd->wrapper, uint8_t*), rte_pktmbuf_pkt_len(pd->wrapper),
" " T4LIT( >> >> , incoming) " Result of " T4LIT(%s, extern) " crypto operation (" T4LIT(%dB) "): ",
crypto_task_type_names[task_type], rte_pktmbuf_pkt_len(pd->wrapper));
}
|
fix(setup): Fix index to MakerDiary m.2 board | @@ -79,7 +79,7 @@ select opt in "${options[@]}" "Quit"; do
1 ) board="nice_nano"; break;;
2 ) board="proton_c"; break;;
3 ) board="bluemicro840_v1"; break;;
- 3 ) board="nrf52840_m2"; break;;
+ 4 ) board="nrf52840_m2"; break;;
$(( ${#options[@]}+1 )) ) echo "Goodbye!"; exit 1;;
*) echo "Invalid option. Try another one."; continue;;
|
skip latex2man check with --disable-documentation | @@ -446,7 +446,7 @@ AC_SUBST(DLLIB)
AC_SUBST(BACKTRACELIB)
AC_PATH_PROG([LATEX2MAN],[latex2man])
-if test "x$LATEX2MAN" = "x"; then
+if test "x$LATEX2MAN" = "x" && test "x$enable_documentation" = "xyes"; then
AC_MSG_WARN([latex2man not found. Install latex2man. Disabling docs.])
enable_documentation="no";
fi
|
[doc] update comments in doc/config/modules.conf | ## Modules to load
## -----------------
##
-## at least mod_access and mod_accesslog should be loaded
-## all other module should only be loaded if really neccesary
-##
-## - saves some time
-## - saves memory
-##
-## the default module set contains:
+## Load only the modules needed in order to keep things simple.
##
+## lighttpd automatically adds the following default modules
+## to server.modules, if not explicitly listed in server.modules:
## "mod_indexfile", "mod_dirlisting", "mod_staticfile"
##
-## you dont have to include those modules in your list
+## You may disable automatic loading of default modules by setting
+## server.compat-module-load = "disable"
##
## Modules, which are pulled in via conf.d/*.conf
##
## and which, in turn, should be listed before dynamic handlers
## (e.g. mod_cgi, mod_fastcgi, mod_proxy, mod_scgi, ...)
##
+## DO NOT alphabetize modules.
+## Alphabetizing may break expected functionality. See explanation above.
+##
server.modules = (
"mod_access",
@@ -52,7 +52,6 @@ server.modules = (
# "mod_authn_file",
# "mod_evasive",
# "mod_setenv",
-# "mod_usertrack",
# "mod_redirect",
# "mod_rewrite",
)
|
ames: add scry endpoint for forward lanes
Finds the lane for that peer, or their galaxy. Intended for use in the
runtime, to enable stateless forwarding. | =(%$ syd)
==
~
- :: /ax/peers (map ship ?(%alien known))
+ :: /ax/protocol/version @
+ :: /ax/peers (map ship ?(%alien %known))
:: /ax/peers/[ship] ship-state
+ :: /ax/peers/[ship]/forward-lane (list lane)
:: /ax/bones/[ship] [snd=(set bone) rcv=(set bone)]
:: /ax/snd-bones/[ship]/[bone] vase
::
?. ?=(%x ren) ~
- ?+ tyl [~ ~]
+ ?+ tyl ~
+ [%protocol %version ~]
+ ``noun+!>(protocol-version)
+ ::
[%peers ~]
:^ ~ ~ %noun
!> ^- (map ship ?(%alien %known))
(~(run by peers.ames-state) head)
::
- [%peers @ ~]
+ [%peers @ *]
=/ who (slaw %p i.t.tyl)
?~ who [~ ~]
?~ peer=(~(get by peers.ames-state) u.who)
[~ ~]
- ``noun+!>(u.peer)
+ ?+ t.t.tyl [~ ~]
+ ~ ``noun+!>(u.peer)
+ ::
+ [%forward-lane ~]
+ :: find lane for u.who, or their galaxy
+ ::
+ :^ ~ ~ %noun
+ !> ^- (list lane)
+ =/ ship-state (~(get by peers.ames-state) u.who)
+ ?. ?=([~ %known *] ship-state)
+ ~
+ =/ peer-state +.u.ship-state
+ ?. =(~ route.peer-state) ::NOTE avoid tmi
+ [lane:(need route.peer-state)]~
+ |- ^- (list lane)
+ ?: ?=(%czar (clan:title sponsor.peer-state))
+ [%& sponsor.peer-state]~
+ =/ next (~(get by peers.ames-state) sponsor.peer-state)
+ ?. ?=([~ %known *] next)
+ ~
+ $(peer-state +.u.next)
+ ==
::
[%bones @ ~]
=/ who (slaw %p i.t.tyl)
|
install step
Ensure dnf point to correct package name. | @@ -90,7 +90,7 @@ Nightly bcc binary packages for Fedora 25, 26, and 27 are hosted at
To install:
```bash
echo -e '[iovisor]\nbaseurl=https://repo.iovisor.org/yum/nightly/f27/$basearch\nenabled=1\ngpgcheck=0' | sudo tee /etc/yum.repos.d/iovisor.repo
-sudo dnf install bcc-tools kernel-devel-$(uname -r) kernel-headers-$(uname -r)
+sudo dnf install bcc-tools kernel-headers kernel-devel
```
**Stable and Signed Packages**
|
More escaping in ADD_PY_PROTO_OUT
([arc::pullid] bf526fb2-277cebb8-d32943ea-e0f2e160) | @@ -308,7 +308,7 @@ macro PROTO_PLUGIN_ARGS_BASE(Name, Tool) {
macro ADD_PY_PROTO_OUT(Suf) {
SET_APPEND(PY_PROTO_OUTS \${output;hide;noauto;norel;nopath;noext;suf=$Suf:File})
- SET_APPEND(PY_PROTO_OUTS_INTERNAL \${output;hide;noauto;norel;nopath;noext;suf=__int__$Suf:File} ${hide;kv:"ext_out_name_for_\${nopath;noext;suf=__int__$Suf:File} \${nopath;noext;suf=$Suf:File}"})
+ SET_APPEND(PY_PROTO_OUTS_INTERNAL \${output;hide;noauto;norel;nopath;noext;suf=__int__$Suf:File} \${hide;kv:"ext_out_name_for_\${nopath;noext;suf=__int__$Suf:File} \${nopath;noext;suf=$Suf:File}"})
# XXX fix variable expansion in plugins
SET(PY_PROTO_SUFFIXES $PY_PROTO_SUFFIXES $Suf)
}
|
sysdeps/linux: Add missing __syscall0 macro | @@ -9,6 +9,7 @@ typedef long __sc_word_t;
// These syscall macros were copied from musl.
#define __scc(x) ((__sc_word_t)(x))
+#define __syscall0(n) __do_syscall0(n)
#define __syscall1(n,a) __do_syscall1(n,__scc(a))
#define __syscall2(n,a,b) __do_syscall2(n,__scc(a),__scc(b))
#define __syscall3(n,a,b,c) __do_syscall3(n,__scc(a),__scc(b),__scc(c))
|
Update per initial review comments. | @@ -336,7 +336,7 @@ transportRegisterForExitNotification(void (*fn)(void))
atexit(fn);
}
-char *
+static char *
sslErrStr(int ssl_err)
{
char * retval = "UNKNOWN ERR";
@@ -368,6 +368,9 @@ sslErrStr(int ssl_err)
case SSL_ERROR_SSL:
retval = "SSL_ERROR_SSL";
break;
+ default:
+ DBG(NULL);
+ break;
}
return retval;
}
|
peview: Query name for 'unnamed' DLL exports from symbols | @@ -109,9 +109,46 @@ INT_PTR CALLBACK PvpPeExportsDlgProc(
PhDereferenceObject(exportName);
}
else
+ {
+ if (exportFunction.Function)
+ {
+ PPH_STRING exportName;
+
+ // Try find the export name using symbols.
+ exportName = PhGetSymbolFromAddress(
+ PvSymbolProvider,
+ (ULONG64)PTR_ADD_OFFSET(PvMappedImage.NtHeaders->OptionalHeader.ImageBase, exportFunction.Function),
+ NULL,
+ NULL,
+ NULL,
+ NULL
+ );
+
+ if (exportName)
+ {
+ static PH_STRINGREF unnamedText = PH_STRINGREF_INIT(L" (unnamed)");
+ PH_STRINGREF exportNameText;
+ PH_STRINGREF firstPart;
+ PH_STRINGREF secondPart;
+
+ if (PhSplitStringRefAtLastChar(&exportName->sr, L'!', &firstPart, &secondPart))
+ exportNameText = secondPart;
+ else
+ exportNameText = exportName->sr;
+
+ PhSetListViewSubItem(lvHandle, lvItemIndex, 2, PH_AUTO_T(PH_STRING, PhConcatStringRef2(&exportNameText, &unnamedText))->Buffer);
+ PhDereferenceObject(exportName);
+ }
+ else
{
PhSetListViewSubItem(lvHandle, lvItemIndex, 2, L"(unnamed)");
}
+ }
+ else
+ {
+ PhSetListViewSubItem(lvHandle, lvItemIndex, 2, L"(unnamed)");
+ }
+ }
PhPrintUInt32(number, exportEntry.Ordinal);
PhSetListViewSubItem(lvHandle, lvItemIndex, 3, number);
|
Update cmake note to be 3.15 which is the current minimum version. This is a re-implementation of GitHub PR 403 | @@ -70,8 +70,7 @@ sudo apt install -y \
```
:::note
-Ubuntu 18.04 LTS release packages a version of CMake that is too old. Please upgrade to Ubuntu 20.04 LTS
-or download and install CMake version 3.13.1 or newer manually.
+Recent LTS releases of Debian and Ubuntu may include outdated CMake versions. If the output of `cmake --version` is older than 3.15, upgrade your distribution (e.g., from Ubuntu 18.04 LTS to Ubuntu 20.04 LTS), or else install CMake version 3.15 or newer manually (e.g, from Debian backports or by building from source).
:::
</TabItem>
<TabItem value="raspberryos">
|
Homebridge script: use capital letters for bridge id check | @@ -75,7 +75,8 @@ function init {
fi
if [[ -n $value ]]; then
- if [[ ! "$value" == 00212e* ]]; then
+ if [[ ! "$value" == 00212E* ]]; then
+ [[ $LOG_DEBUG ]] && echo "${LOG_DEBUG}no valid bridge id"
return
fi
BRIDGEID=$value
|
only remove packet not handled by component. | @@ -142,7 +142,10 @@ void openqueue_removeAllCreatedBy(uint8_t creator) {
INTERRUPT_DECLARATION();
DISABLE_INTERRUPTS();
for (i=0;i<QUEUELENGTH;i++){
- if (openqueue_vars.queue[i].creator==creator) {
+ if (
+ openqueue_vars.queue[i].creator == creator &&
+ openqueue_vars.queue[i].owner != COMPONENT_IEEE802154E
+ ) {
openqueue_reset_entry(&(openqueue_vars.queue[i]));
}
}
|
TCPMv2: PD Timers - Add PE SrcTransition to framework
BRANCH=none
TEST=make runtests
Tested-by: Denis Brockus | @@ -652,14 +652,6 @@ static struct policy_engine {
*/
uint64_t swap_source_start_timer;
- /*
- * Used to wait for tSrcTransition between sending an Accept for a
- * Request or receiving a GoToMin and transitioning the power supply.
- * See PD 3.0, table 7-11 and table 7-22 This is not a named timer in
- * the spec.
- */
- uint64_t src_transition_timer;
-
/* Counters */
/*
@@ -2459,8 +2451,6 @@ static void pe_src_transition_supply_entry(int port)
{
print_current_state(port);
- pe[port].src_transition_timer = TIMER_DISABLED;
-
/* Send a GotoMin Message or otherwise an Accept Message */
if (PE_CHK_FLAG(port, PE_FLAGS_ACCEPT)) {
PE_CLR_FLAG(port, PE_FLAGS_ACCEPT);
@@ -2468,7 +2458,6 @@ static void pe_src_transition_supply_entry(int port)
} else {
send_ctrl_msg(port, TCPC_TX_SOP, PD_CTRL_GOTO_MIN);
}
-
}
static void pe_src_transition_supply_run(int port)
@@ -2522,15 +2511,15 @@ static void pe_src_transition_supply_run(int port)
} else {
/* NOTE: First pass through this code block */
/* Wait for tSrcTransition before changing supply. */
- pe[port].src_transition_timer =
- get_time().val + PD_T_SRC_TRANSITION;
+ pd_timer_enable(port, PE_TIMER_SRC_TRANSITION,
+ PD_T_SRC_TRANSITION);
}
return;
}
- if (get_time().val > pe[port].src_transition_timer) {
- pe[port].src_transition_timer = TIMER_DISABLED;
+ if (pd_timer_is_expired(port, PE_TIMER_SRC_TRANSITION)) {
+ pd_timer_disable(port, PE_TIMER_SRC_TRANSITION);
/* Transition power supply and send PS_RDY. */
pd_transition_voltage(pe[port].requested_idx);
send_ctrl_msg(port, TCPC_TX_SOP, PD_CTRL_PS_RDY);
@@ -2547,6 +2536,11 @@ static void pe_src_transition_supply_run(int port)
}
}
+static void pe_src_transition_supply_exit(int port)
+{
+ pd_timer_disable(port, PE_TIMER_SRC_TRANSITION);
+}
+
/*
* Transitions state after receiving a Not Supported extended message. Under
* appropriate conditions, transitions to a PE_{SRC,SNK}_Chunk_Received.
@@ -6854,6 +6848,7 @@ static __const_data const struct usb_state pe_states[] = {
[PE_SRC_TRANSITION_SUPPLY] = {
.entry = pe_src_transition_supply_entry,
.run = pe_src_transition_supply_run,
+ .exit = pe_src_transition_supply_exit,
},
[PE_SRC_READY] = {
.entry = pe_src_ready_entry,
|
fix to case of triple fault | @@ -236,7 +236,9 @@ cpu_stack_push_check(UINT16 s, descriptor_t *sdp, UINT32 sp, UINT len,
goto exc;
}
- start = sp - len;
+// start = sp - len;
+ sp = (sp - 1) & (SEG_IS_32BIT(sdp) ? 0xffffffff : 0x0000ffff);
+ start = (sp - len) & (SEG_IS_32BIT(sdp) ? 0xffffffff : 0x0000ffff);
limit = is32bit ? 0xffffffff : 0x0000ffff;
if (SEG_IS_EXPANDDOWN_DATA(sdp)) {
@@ -320,7 +322,8 @@ cpu_stack_push_check(UINT16 s, descriptor_t *sdp, UINT32 sp, UINT len,
*/
if ((len > sdp->u.seg.limit) /* len check */
|| (start > sp) /* wrap check */
- || (sp > sdp->u.seg.limit + 1)) { /* [1] */
+// || (sp > sdp->u.seg.limit + 1)) { /* [1] */
+ || (sp > sdp->u.seg.limit)) { /* [1] */
goto exc;
}
}
|
Make sure the console window is hidden when starting a child process on Windows (Fixes issue (#7)) | @@ -94,6 +94,8 @@ REPROC_ERROR process_create(wchar_t *command_line, wchar_t *working_directory,
LPSTARTUPINFOW startup_info_address = &startup_info;
#endif
+ startup_info_address->dwFlags |= STARTF_USESHOWWINDOW;
+ startup_info_address->wShowWindow = SW_HIDE;
PROCESS_INFORMATION info;
|
doc CHANGE add a warning regarding usage of SR_SUBSCR_UPDATE flag | @@ -1143,7 +1143,8 @@ typedef enum sr_subscr_flag_e {
/**
* @brief The subscriber will be called before any other subscribers for the particular module
- * and is allowed to modify the new module data.
+ * and is allowed to modify the new module data. Be careful, you cannot subscribe with this flag more times
+ * for the same (set of) data node, it will not work!
*/
SR_SUBSCR_UPDATE = 32,
|
[mod_openssl] move SSL_shutdown() to separate func
mod_openssl_close_notify() | @@ -1580,6 +1580,10 @@ CONNECTION_FUNC(mod_openssl_handle_con_accept)
}
+static void
+mod_openssl_close_notify(server *srv, handler_ctx *hctx);
+
+
CONNECTION_FUNC(mod_openssl_handle_con_shut_wr)
{
plugin_data *p = p_d;
@@ -1587,6 +1591,16 @@ CONNECTION_FUNC(mod_openssl_handle_con_shut_wr)
if (NULL == hctx) return HANDLER_GO_ON;
if (SSL_is_init_finished(hctx->ssl)) {
+ mod_openssl_close_notify(srv, hctx);
+ }
+
+ return HANDLER_GO_ON;
+}
+
+
+static void
+mod_openssl_close_notify(server *srv, handler_ctx *hctx)
+{
int ret, ssl_r;
unsigned long err;
ERR_clear_error();
@@ -1649,9 +1663,6 @@ CONNECTION_FUNC(mod_openssl_handle_con_shut_wr)
ERR_clear_error();
}
- return HANDLER_GO_ON;
-}
-
CONNECTION_FUNC(mod_openssl_handle_con_close)
{
|
Configure: use $list_separator_re only for defines and includes
This regexp was used a bit too uncontrolled, which had it split flag
values where it should not have.
Fixes | @@ -590,7 +590,7 @@ while ((my $first, my $second) = (shift @list, shift @list)) {
&usage if ($#ARGV < 0);
-# For the "make variables" CINCLUDES and CDEFINES, we support lists with
+# For the "make variables" CPPINCLUDES and CPPDEFINES, we support lists with
# platform specific list separators. Users from those platforms should
# recognise those separators from how you set up the PATH to find executables.
# The default is the Unix like separator, :, but as an exception, we also
@@ -1030,7 +1030,11 @@ foreach (keys %user) {
if (defined $value) {
if (ref $user{$_} eq 'ARRAY') {
+ if ($_ eq 'CPPDEFINES' || $_ eq 'CPPINCLUDES') {
$user{$_} = [ split /$list_separator_re/, $value ];
+ } else {
+ $user{$_} = [ $value ];
+ }
} elsif (!defined $user{$_}) {
$user{$_} = $value;
}
|
hwrecords: adding iommu and rootbridge records | "hw_id: _, " \
"type: _ }"
+/*
+ * ===========================================================================
+ * PCI Root Bridge Records
+ * ===========================================================================
+ */
+#define HW_PCI_ROOTBRIDGE_RECORD_FIELDS \
+"bus: %d, device: %d, function: %d, maxbus: %d, acpi_node: '%s'
+
+#define HW_PCI_ROOTBRIDGE_RECORD_FORMAT \
+"hw.pci.rootbridge. { " HW_PCI_ROOTBRIDGE_RECORD_FIELDS " }";
+
+#define HW_PCI_ROOTBRIDGE_RECORD_REGEX \
+"r'hw\\.pci\\.rootbridge\\.[0-9]+' { bus: _, device: _, function: _," \
+" maxbus: _, acpi_node: _ }"
+
+/*
+ * ===========================================================================
+ * IOMMU hardware records
+ * ===========================================================================
+ */
+
+enum {
+ HW_PCI_IOMMU_INTEL = 1,
+ HW_PCI_IOMMU_AMD = 2,
+ HW_PCI_IOMMU_ARM = 3
+};
+
+#define HW_PCI_IOMMU_RECORD_FIELDS \
+"type: %d, flags: %d, segment: %d, address=%" PRIu64
+
+#define HW_PCI_IOMMU_RECORD_FORMAT \
+"hw.pci.iommu. {" HW_PCI_IOMMU_RECORD_FIELDS " }"
+
+#define HW_PCI_IOMMU_RECORD_REGEX \
+"r'hw\\.pci\\.iommu\\.[0-9]+ {type: _, flags: _, segment: _, address=_ }'
#endif /* INCLUDE_HW_RECORDS_ARCH_H_ */
|
OcBootManagementLib: Fix APFS filesystem detection | @@ -145,6 +145,7 @@ InternalCheckScanPolicy (
// but currently it is not a priority.
//
if ((Policy & OC_SCAN_ALLOW_FS_APFS) != 0 && EFI_ERROR (Status)) {
+ BufferSize = 0;
Status = Root->GetInfo (Root, &gAppleApfsVolumeInfoGuid, &BufferSize, NULL);
if (Status == EFI_BUFFER_TOO_SMALL) {
Status = EFI_SUCCESS;
|
Re-word AHRS orientation dialog boxes. | <div class="col-sm-12">
<div class="panel-group col-sm-6">
-
<div class="panel panel-default">
<div class="panel-heading">Hardware</div>
<div class="panel-body">
<h4 class="modal-title">Set AHRS Sensor Orientation: Forward Direction</h4>
</div>
<div class="modal-body">
- <p>Point the Stratux so that the end that will be pointing toward the <strong>nose</strong> of the airplane is pointing toward the sky and press the <strong>Set Forward Direction</strong> button.</p>
+ <p>Point the Stratux so that the end that will be pointing toward the
+ <strong>nose</strong> of the airplane is pointing toward the sky and press the
+ <strong>Set Forward Direction</strong> button.</p>
</div>
<div class="modal-footer">
<a ui-turn-off="modalCalibrateForward" class="btn btn-default">Cancel</a>
- <a ng-click="setOrientation('forward')" ui-turn-off="modalCalibrateForward" ui-turn-on="modalCalibrateDone" class="btn btn-default btn-primary">Set Forward Direction</a>
+ <a ng-click="setOrientation('forward')" ui-turn-off="modalCalibrateForward"
+ ui-turn-on="modalCalibrateDone" class="btn btn-default btn-primary">Set Forward Direction</a>
</div>
</div>
</div>
<h4 class="modal-title">Set AHRS Sensor Orientation: Finished</h4>
</div>
<div class="modal-body">
- <p>The sensor orientation is set. These settings will be saved for future flights.</p>
- <p>Place the Stratux in its in-flight orientation and press the <strong>Done</strong> button.</p>
+ <p>The sensor orientation is set. These settings will be saved for future flights.
+ Place the Stratux in its in-flight orientation and keep it stationary for 5 seconds
+ after you press the <strong>Done</strong> button.</p>
</div>
<div class="modal-footer">
- <a ng-click="setOrientation('done')" ui-turn-off="modalCalibrateDone" class="btn btn-default btn-primary">Done</a>
+ <a ng-click="setOrientation('done')" ui-turn-off="modalCalibrateDone"
+ class="btn btn-default btn-primary">Done</a>
</div>
</div>
</div>
</div>
</div>
</div>
-
|
sysdeps/managarm: Add more error returns for sys_mkdirat | @@ -203,6 +203,12 @@ int sys_mkdirat(int dirfd, const char *path, mode_t mode) {
return EEXIST;
} else if(resp.error() == managarm::posix::Errors::ILLEGAL_ARGUMENTS) {
return EINVAL;
+ }else if(resp.error() == managarm::posix::Errors::BAD_FD) {
+ return EBADF;
+ }else if(resp.error() == managarm::posix::Errors::FILE_NOT_FOUND) {
+ return ENOENT;
+ }else if(resp.error() == managarm::posix::Errors::NOT_A_DIRECTORY) {
+ return ENOTDIR;
}else{
__ensure(resp.error() == managarm::posix::Errors::SUCCESS);
return 0;
|
docs - updated foreign data wrapper intro.
Removed references to foreign data wrappers install with GPDB
Modified note. Added information stating PostgrSQL FDWs only access master. | <p>You can access foreign data with help from a <i>foreign-data wrapper</i>.
A foreign-data wrapper is a library that communicates with a remote
data source. This library hides the source-specific connection and data
- access details. Foreign-data wrappers provided in the Greenplum Database
- distribution, including <codeph>file_fdw</codeph> and
- <codeph>postgres_fdw</codeph>, have been modified to take advantage
- of Greenplum's parallel processing.</p>
+ access details.</p>
<note>Most PostgreSQL foreign-data wrappers should work with Greenplum
- Database. However, any foreign-data wrapper that is not provided in the
- Greenplum distribution likely connects only through the master.</note>
+ Database. However, PostgreSQL foreign-data wrappers connect only through
+ the Greenplum Database master and do not access the Greenplum Database
+ segment instances directly.</note>
<p>If none of the existing foreign-data wrappers suit your needs, you can
write your own as described in <xref href="g-devel-fdw.xml#topic1"/>.</p>
<p>To access foreign data, you create a <i>foreign server</i> object,
|
mark as minor release | @@ -8,7 +8,7 @@ See the AppScope repo to view [all issues](https://github.com/criblio/appscope/i
## AppScope 1.1.0
-2022-06-28 - Maintenance Release
+2022-06-28 - Minor Release
Assets are available via Docker and the Cribl CDN at the links below.
|
docs: install geopm-intel-* with 3rd party psxe libs | @@ -57,6 +57,7 @@ for \texttt{/opt/intel} that is mounted on desired compute nodes.
\begin{lstlisting}[language=bash,keywords={},upquote=true,keepspaces]
# Install 3rd party libraries/tools meta-packages built with Intel toolchain
[sms](*\#*) (*\install*) ohpc-intel-serial-libs
+[sms](*\#*) (*\install*) ohpc-intel-geopm
[sms](*\#*) (*\install*) ohpc-intel-io-libs
[sms](*\#*) (*\install*) ohpc-intel-perf-tools
[sms](*\#*) (*\install*) ohpc-intel-python-libs
|
Modify util/mknum.pl to drop new symbols that don't exist any more
This makes use of the writer filters in OpenSSL::Ordinals.
Fixes | @@ -118,7 +118,15 @@ if ($checkexist) {
}
}
} else {
- $ordinals->rewrite();
+ my $dropped = 0;
+ my $unassigned;
+ my $filter = sub {
+ my $item = shift;
+ my $result = $item->number() ne '?' || $item->exists();
+ $dropped++ unless $result;
+ return $result;
+ };
+ $ordinals->rewrite(filter => $filter);
my %stats = $ordinals->stats();
print STDERR
"${ordinals_file}: $stats{modified} old symbols have updated info\n"
@@ -128,9 +136,13 @@ if ($checkexist) {
} else {
print STDERR "${ordinals_file}: No new symbols added\n";
}
- if ($stats{unassigned}) {
- my $symbol = $stats{unassigned} == 1 ? "symbol" : "symbols";
- my $is = $stats{unassigned} == 1 ? "is" : "are";
- print STDERR "${ordinals_file}: $stats{unassigned} $symbol $is without ordinal number\n";
+ if ($dropped) {
+ print STDERR "${ordinals_file}: Dropped $dropped new symbols\n";
+ }
+ $unassigned = $stats{unassigned} - $dropped;
+ if ($unassigned) {
+ my $symbol = $unassigned == 1 ? "symbol" : "symbols";
+ my $is = $unassigned == 1 ? "is" : "are";
+ print STDERR "${ordinals_file}: $unassigned $symbol $is without ordinal number\n";
}
}
|
s5j: add constant definitions of memory regions
This commit adds memory map constants that defines the base addresses
and sizes of each memory region in S5J. | #ifndef __ARCH_ARM_SRC_S5J_CHIP_S5J_MEMORYMAP_H
#define __ARCH_ARM_SRC_S5J_CHIP_S5J_MEMORYMAP_H
+/* S5J Physical Memory Map */
+#define S5J_IROM_PADDR 0x00000000 /* 0x00000000-0x0000FFFF iROM */
+#define S5J_IRAM_PADDR 0x02020000 /* 0x02020000-0x0215FFFF iRAM */
+#define S5J_IRAM_SHARED_PADDR 0x02300000 /* 0x02300000-0x0231FFFF iRAM shared */
+#define S5J_FLASH_PADDR 0x04000000 /* 0x04000000-0x04FFFFFF NOR flash */
+#define S5J_FLASH_MIRROR_PADDR 0x60000000 /* 0x60000000-0x60FFFFFF NOR flash (mirror of 0x04000000-0x04FFFFFF) */
+#define S5J_PERIPHERAL_PADDR 0x80000000 /* 0x80000000-0x8FFFFFFF SFR region */
+#define S5J_IRAM_MIRROR_PADDR 0xFFFF0000 /* 0xFFFF0000-0xFFFFFFFF iRAM (mirror of 0x02020000-0x0202FFFF) */
+
+/* Size of memory regions in bytes */
+#define S5J_IROM_SIZE (64 * 1024)
+#define S5J_IRAM_SIZE (1280 * 1024)
+#define S5J_IRAM_SHARED_SIZE (128 * 1024)
+#define S5J_FLASH_SIZE (16 * 1024 * 1024)
+#define S5J_FLASH_MIRROR_SIZE S5J_FLASH_SIZE
+#define S5J_PERIPHERAL_SIZE (256 * 1024 * 1024)
+#define S5J_IRAM_MIRROR_SIZE (64 * 1024)
+
#define VECTOR_BASE 0xFFFF0000
+/* S5J Internal Peripherals at 0x80000000 */
#define EFUSE_WRITER 0x80000000
#define CHIPID_BASE EFUSE_WRITER
#define MCT0_BASE 0x80010000
|
router_printconfig: suppress statistics bit on fake recursions
Groups are printed by creating a fake router, make sure we pick up that
hint to avoid printing the statistics thing multiple times. | @@ -1626,6 +1626,7 @@ router_printconfig(router *rtr, FILE *f, char pmode)
servers *s;
/* start with configuration wise standard components */
+ if (rtr->collector.interval > 0) {
fprintf(f, "statistics\n submit every %d seconds\n",
rtr->collector.interval);
if (rtr->collector.mode == SUB)
@@ -1650,6 +1651,7 @@ router_printconfig(router *rtr, FILE *f, char pmode)
fprintf(f, " ;\n");
fprintf(f, "\n");
+ }
#define PPROTO \
server_ctype(s->server) == CON_UDP ? " proto udp" : ""
|
Remove redundant assignment in felem_mul_ref in p521
ftmp4 is assigned immediately before receiving the reduced output of the
multiplication of ftmp and ftmp3, without being read inbetween these
assignments. Remove redundant assignment. | @@ -782,7 +782,6 @@ static void felem_inv(felem out, const felem in)
felem_reduce(ftmp3, tmp); /* 2^7 - 2^3 */
felem_square(tmp, ftmp3);
felem_reduce(ftmp3, tmp); /* 2^8 - 2^4 */
- felem_assign(ftmp4, ftmp3);
felem_mul(tmp, ftmp3, ftmp);
felem_reduce(ftmp4, tmp); /* 2^8 - 2^1 */
felem_square(tmp, ftmp4);
|
apps/Application.mk: Fix main redefine warning by using per file CFLAGS/CXXFLAGS. | @@ -155,13 +155,15 @@ MAINNAME := $(addsuffix _main,$(PROGNAME))
ifeq ($(suffix $(MAINSRC)),$(CXXEXT))
$(MAINOBJ): %$(OBJEXT): %$(CXXEXT)
- $(eval CXXFLAGS += ${shell $(DEFINE) "$(CXX)" main=$(firstword $(MAINNAME))})
+ $(eval $<_CXXFLAGS += ${shell $(DEFINE) "$(CXX)" main=$(firstword $(MAINNAME))})
+ $(eval $<_CXXELFFLAGS += ${shell $(DEFINE) "$(CXX)" main=$(firstword $(MAINNAME))})
$(eval MAINNAME=$(filter-out $(firstword $(MAINNAME)),$(MAINNAME)))
$(if $(and $(CONFIG_BUILD_LOADABLE),$(CXXELFFLAGS)), \
$(call ELFCOMPILEXX, $<, $@), $(call COMPILEXX, $<, $@))
else
$(MAINOBJ): %$(OBJEXT): %.c
- $(eval CFLAGS += ${shell $(DEFINE) "$(CC)" main=$(firstword $(MAINNAME))})
+ $(eval $<_CFLAGS += ${shell $(DEFINE) "$(CC)" main=$(firstword $(MAINNAME))})
+ $(eval $<_CELFFLAGS += ${shell $(DEFINE) "$(CC)" main=$(firstword $(MAINNAME))})
$(eval MAINNAME=$(filter-out $(firstword $(MAINNAME)),$(MAINNAME)))
$(if $(and $(CONFIG_BUILD_LOADABLE),$(CELFFLAGS)), \
$(call ELFCOMPILE, $<, $@), $(call COMPILE, $<, $@))
|
rune/libenclave/skeleton: Remove skeleton image from README
iberpal-skeleton is constantly being updated, it may not be compatible with the previous images. | @@ -36,8 +36,6 @@ EOF
docker build . -t skeleton-enclave
```
-[Skeleton container image](https://hub.docker.com/r/inclavarecontainers/skeleton-enclave/tags) is available for the demonstration purpose.
-
## Build and install rune
Please refer to [this guide](https://github.com/alibaba/inclavare-containers#rune) to build `rune` from scratch.
|
Fix blankerror | @@ -20,6 +20,7 @@ from osr2mp4 import log_stream
Audio2p = recordclass("Audio2p", "rate audio")
+SilentHitsound = AudioSegment.silent(duration=1)
def from_notwav(filename, settings):
@@ -27,9 +28,12 @@ def from_notwav(filename, settings):
raise FileNotFoundError
stream = log_stream()
+ try:
subprocess.check_call([settings.ffmpeg, '-i', filename, '-ar', '44100', os.path.join(settings.temp, 'converted.wav'), '-y'], stdout=stream, stderr=stream)
-
a = AudioSegment.from_file(settings.temp + 'converted.wav')
+ except:
+ a = SilentHitsound
+
return a
|
remove dump_cfl | @@ -88,10 +88,6 @@ static bool test_op_p_stack_moba_nonneg(void)
operator_p_apply(p, 0., N, dims, out, N, dims, in);
operator_p_free(p);
- dump_cfl("/scratch/ztan/out", N, dims, out);
- dump_cfl("/scratch/ztan/in", N, dims, in);
-
-
long dims1[N];
md_select_dims(N, ~MD_BIT(s_dim), dims1, dims);
|
tag for 1.7.1rc1 release. | - Fix for crash in daemon_cleanup with dnstap during reload,
from Saksham Manchanda.
- Also that for dnscrypt.
+ - tag for 1.7.1rc1 release.
25 April 2018: Ralph
- Fix memory leak when caching wildcard records for aggressive NSEC use
|
reduce iterations in testIDManifest to speed up | @@ -318,9 +318,9 @@ namespace
const string fn = tempDir + "id_manifest.exr";
random_reseed(1);
//
- // generate 100 random files, looking for trouble
+ // generate 20 random files, looking for trouble
- for(int pass=0;pass<100;++pass)
+ for(int pass=0;pass<20;++pass)
{
//
@@ -380,7 +380,7 @@ namespace
//
// insert entries - each will have the correct number of components
//
- int entriesInGroup = random_int(300*(pass+1));
+ int entriesInGroup = random_int(1200*(pass+1));
cerr << entriesInGroup << ' ';
cerr.flush();
|
hoon: fix sig rune whitespace to allow doccords
without this, e.g.
~& %foo
dox
1
wouldn't attach dox to 1 as a doccord | ::
:: hint syntax
::
- ++ hinb |.(;~(gunk bont loaf)) :: hint and hoon
+ ++ hinb |.(;~(goop bont loaf)) :: hint and hoon
++ hinc |. :: optional =en, hoon
- ;~(pose ;~(gunk bony loaf) (stag ~ loaf)) ::
- ++ hind |.(;~(gunk bonk loaf bonz loaf)) :: jet hoon "bon"s hoon
- ++ hine |.(;~(gunk bonk loaf)) :: jet-hint and hoon
+ ;~(pose ;~(goop bony loaf) (stag ~ loaf)) ::
+ ++ hind |.(;~(gunk bonk loaf ;~(goop bonz loaf))) :: jet hoon "bon"s hoon
+ ++ hine |.(;~(goop bonk loaf)) :: jet-hint and hoon
++ hinf |. :: 0-3 >s, two hoons
;~ pose
- ;~(gunk (cook lent (stun [1 3] gar)) loaf loaf)
- (stag 0 ;~(gunk loaf loaf))
+ ;~(goop (cook lent (stun [1 3] gar)) loaf loaf)
+ (stag 0 ;~(goop loaf loaf))
==
++ hing |. :: 0-3 >s, three hoons
;~ pose
- ;~(gunk (cook lent (stun [1 3] gar)) loaf loaf loaf)
- (stag 0 ;~(gunk loaf loaf loaf))
+ ;~(goop (cook lent (stun [1 3] gar)) loaf loaf loaf)
+ (stag 0 ;~(goop loaf loaf loaf))
==
++ bonk :: jet signature
;~ pfix cen
==
==
++ hinh |. :: 1/2 numbers, hoon
- ;~ gunk
+ ;~ goop
;~ pose
dem
(ifix [sel ser] ;~(plug dem ;~(pfix ace dem)))
|
avoid comparing an array to NULL pointer | @@ -438,7 +438,8 @@ h2o_socket_t *h2o_evloop_socket_accept(h2o_socket_t *_listener)
/* cache the remote address, if we know that we are going to use the value (in h2o_socket_ebpf_lookup_flags) */
#if H2O_USE_EBPF_MAP
- struct sockaddr_storage peeraddr[1];
+ struct sockaddr_storage _peeraddr;
+ struct sockaddr_storage *peeraddr = &_peeraddr;
socklen_t peeraddrlen[1] = {sizeof(peeraddr[0])};
#else
struct sockaddr_storage *peeraddr = NULL;
|
build: remove status | @@ -92,15 +92,14 @@ TEST_INSTALL = 'install'
// # Determine what needs to be build #
-env.STATUS = "Build target: FULL"
target = ".*"
matcher = /jenkins build jenkinsfile(?:\[(.*)\])? please/
new_target = (env.ghprbCommentBody =~ matcher)[0][1]
if(new_target) {
// if we specify a new target we degrade the build to unstable
+ // this will report the test as failed on github
currentBuild.result = 'UNSTABLE'
- env.STATUS = "Build target: ${target}"
target = new_target
}
|
highlevel: Init default KeySet with number of parameters | @@ -27,7 +27,7 @@ $support.enum_typedef($key, $info)
* Default KeySet
*/
-#define ELEKTRA_DEFAULTS ksNew (0, \
+#define ELEKTRA_DEFAULTS ksNew ($len($parameters), \
@for $key, $info in $parameters.iteritems()
keyNew ("$key", KEY_VALUE, "$support.default_value(key, info)", KEY_META, "type", "$support.type_of(info)", KEY_END), \
@end for
|
basic documentation on modules | @@ -54,3 +54,85 @@ You can access the fields with the dot operator:
local a = p.x
p.y = 2
+## Modules
+
+A Titan source file (with a `.titan` extension) is a *Titan module*. A Titan module
+is made-up of *import statements*, *module variable declarations*, and *module function
+declarations*. These can appear in any order, but the Titan compiler reorders
+them so all import statements come first (in the order they appear), followed by
+variable declarations (again in the order they appear), and finally by function
+declarations, so an imported module can be used anywhere in a module,
+an module variable can be used in any function as well as variable declarations
+that follow it, and module functions can be used in any other function.
+
+### `import` statements
+
+An `import` statement references another module and lets the current
+module use its exported module variables and functions. Its syntax
+is:
+
+ local <localname> = import "<modname>"
+
+The module name `<modname>` is a name like `foo`, `foo.bar`, or `foo.bar.baz`.
+The Titan compiler translates a module name into a file name by converting
+all dots to path separators, and then appending `.titan`, so the above three
+modules will correspond to `foo.titan`, `foo/bar.titan`, and `foo/bar/baz.titan`.
+All paths are relative the the path where you are running `titanc`.
+
+The `<localname>` can be any valid identifier, and will be the prefix for accessing
+module variables and functions.
+
+ -- in 'bar.titan'
+ x = 42
+ function bar(): integer
+ return x * x
+ end
+
+ -- in 'foo.titan'
+ local m = import "bar"
+ function foo(x: integer): integer
+ local y = m.bar()
+ bar.x = bar.x + x
+ return y
+ end
+
+In the above example, the module `foo.titan` imports `bar.titan` and
+gives it the local name `m`. Module `foo` can access the exported variable `x`, as well
+as call the exported function `bar`.
+
+### Module variables
+
+A variable declaration has the syntax:
+
+ [local] <name> [: <type>] = <value>
+
+A `local` variable is only visible inside the module it is defined. Variables that
+are not local are *exported*. An exported variable is visible in modules that import
+this module, and is also visible from Lua if you `require` the module.
+
+The `<name>` can be any valid identifier. You cannot have two module variables with
+the same name. The type is optional, and if not given will be inferred from the
+initial value. The initial value can be any valid Titan expression, as long as it
+only uses things that are visible (module variables declared prior to this one and
+members of imported modules).
+
+### Functions
+
+A function declaration has the syntax:
+
+ [local] function <name>([<params>])[: <rettype>]
+ <body>
+ end
+
+A `local` function is only visible inside the module it is defined. Functions that
+are not local are exported, and visible in modules that import this one, as well
+as callable from Lua if you `require` the module.
+
+As with variables, `<name>` can be any valid identifier, but it is an error to
+declare two functions with the same name, or a function with the same name as
+a module variable. The return type `<rettype>` is optional, and if not given it
+is assumed that the function does not return anything or just returns `nil`.
+
+Parameters are a comma-separated list of `<name>: <type>`. Two parameters cannot
+have the same name. The body is a sequence of statements.
+
|
config-tools: fix bug for saving files
The clean scripts function is a async function, it may run after saving
launch scripts and remove all the launch scripts by accident.
So, add '.then' to make it work as a sync function. | @@ -276,7 +276,7 @@ export default {
})
},
cleanLaunchScript() {
- configurator.readDir(this.WorkingFolder, false)
+ return configurator.readDir(this.WorkingFolder, false)
.then((files) => {
if (files.length > 0) {
for (let i = 0; i < files.length; i++) {
@@ -382,6 +382,7 @@ export default {
}
let errorFlag = false
errorFlag = this.confirmVmName()
+ if (errorFlag) {return}
this.assignVMID()
let msg = [
"scenario xml saved\n",
@@ -411,11 +412,10 @@ export default {
totalMsg = totalMsg - 1 // remove the 'launch script' related mssage.
}
// begin write down and verify
- try {
+
configurator.writeFile(this.WorkingFolder + 'scenario.xml', scenarioXMLData)
.then(() => {
stepDone = 1
- if (!errorFlag) {
console.log("validate settings...")
this.errors = configurator.pythonObject.validateScenario(this.board.content, scenarioXMLData)
// noinspection ExceptionCaughtLocallyJS
@@ -424,21 +424,26 @@ export default {
}
console.log("validation ok")
stepDone = 2
- this.cleanLaunchScript()
+ return this.cleanLaunchScript()
+ }).then(() => {
if (needSaveLaunchScript) {
let launchScripts = configurator.pythonObject.generateLaunchScript(this.board.content, scenarioXMLData)
+ let writeDone = []
for (let filename in launchScripts) {
- configurator.writeFile(this.WorkingFolder + filename, launchScripts[filename])
- }
- stepDone = 3
+ writeDone.push(configurator.writeFile(this.WorkingFolder + filename, launchScripts[filename]))
}
+ return Promise.all(writeDone)
+ } else {
+ return
}
-
})
- .then(() => {
+ .then((result) => {
+ if (!_.isEmpty(result)) {
+ stepDone = 3
+ }
alert(`${msg.slice(0, stepDone).join('')} \nAll files successfully saved to your working folder ${this.WorkingFolder}`)
})
- } catch (err) {
+ .catch((err)=>{
console.log("error" + err)
let outmsg = ''
for (var i = 0; i < stepDone; i++)
@@ -446,11 +451,10 @@ export default {
for (i = stepDone; i < totalMsg; i++)
outmsg += errmsg[i]
alert(`${outmsg} \n Please check your configuration`)
+ })
}
}
}
-
-}
</script>
<style scoped>
|
lwip-2.0.2: enabling the raw interface | */
#define LWIP_SUPPORT_CUSTOM_PBUF 1
-#define MEM_USE_POOLS 1
-#define MEMP_USE_CUSTOM_POOLS 1
+#define MEM_USE_POOLS 0
+#define MEMP_USE_CUSTOM_POOLS 0
/**
/**
* LWIP_RAW==1: Enable application layer to hook into the IP layer itself.
*/
-#define LWIP_RAW 0
+#define LWIP_RAW 1
/*
----------------------------------
|
integration: Upgrade SPO to v0.6.0
We have seen errors related to SPO webhook not available in CI, resulting
in failing tests. It seems they have made SPO webhook opt-in upstream to avoid
such situation. Upgrading so we don't hit such issues in the CI. | @@ -113,9 +113,9 @@ func DeployInspektorGadget(image, imagePullPolicy string) *Command {
func DeploySPO(limitReplicas, patchWebhookConfig, bestEffortResourceMgmt bool) *Command {
cmdStr := fmt.Sprintf(`
-kubectl apply -f https://github.com/jetstack/cert-manager/releases/download/v1.8.0/cert-manager.yaml
+kubectl apply -f https://github.com/jetstack/cert-manager/releases/download/v1.10.0/cert-manager.yaml
kubectl --namespace cert-manager wait --for condition=ready pod -l app.kubernetes.io/instance=cert-manager
-curl https://raw.githubusercontent.com/kubernetes-sigs/security-profiles-operator/v0.4.3/deploy/operator.yaml | \
+curl https://raw.githubusercontent.com/kubernetes-sigs/security-profiles-operator/v0.6.0/deploy/operator.yaml | \
if [ %v = true ] ; then
sed 's/replicas: 3/replicas: 1/' | grep -v cpu:
else
@@ -196,8 +196,8 @@ var CleanupSPO = []*Command{
Name: "RemoveSecurityProfilesOperator",
Cmd: `
kubectl delete seccompprofile --all --all-namespaces
- kubectl delete -f https://raw.githubusercontent.com/kubernetes-sigs/security-profiles-operator/v0.4.3/deploy/operator.yaml --ignore-not-found
- kubectl delete -f https://github.com/jetstack/cert-manager/releases/download/v1.8.0/cert-manager.yaml --ignore-not-found
+ kubectl delete -f https://raw.githubusercontent.com/kubernetes-sigs/security-profiles-operator/v0.6.0/deploy/operator.yaml --ignore-not-found
+ kubectl delete -f https://github.com/jetstack/cert-manager/releases/download/v1.10.0/cert-manager.yaml --ignore-not-found
`,
Cleanup: true,
},
|
.travis(.yml): disable hack to disable_ipv6 when build with macOS/OSX | @@ -49,7 +49,7 @@ before_script:
# First build external lib
- ./ci/build_picotls.sh
- if [ "$CHECK" == "cppcheck" ]; then ./ci/build_cppcheck.sh; fi
- - sudo sh -c 'echo 0 > /proc/sys/net/ipv6/conf/all/disable_ipv6'
+ - if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo sh -c 'echo 0 > /proc/sys/net/ipv6/conf/all/disable_ipv6'; fi
script:
# Now build picotls examples and test
- echo $CC
|
rpz-triggers, use zone for local data zone based answer if available. | @@ -2156,7 +2156,7 @@ rpz_apply_maybe_clientip_trigger(struct auth_zones* az, struct module_env* env,
log_rpz_apply(((*z_out)?(*z_out)->name:NULL),
client_action, qinfo, repinfo,
(*r_out)->log_name);
- local_zones_zone_answer(NULL /*no zone*/, env, qinfo, edns,
+ local_zones_zone_answer(*z_out /*likely NULL, no zone*/, env, qinfo, edns,
repinfo, buf, temp, 0 /* no local data used */,
rpz_action_to_localzone_type(client_action));
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.