message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
worker: Destroy log cache instances
These instances are tied up with each of workers.
We should destroy them on worker termination. | @@ -142,6 +142,10 @@ void flb_worker_destroy(struct flb_worker *worker)
return;
}
+ if (worker->log_cache) {
+ flb_log_cache_destroy(worker->log_cache);
+ }
+
mk_list_del(&worker->_head);
flb_free(worker);
}
|
[wrap] correct generation of command for ninja | @@ -134,7 +134,7 @@ if(WITH_PYTHON_WRAPPER)
COMMENT "Build ${SICONOS_PYTHON_PACKAGE} package")
if(UNIX AND NOT APPLE)
- list(APPEND python_install_options "--root=$(DESTDIR)/")
+ list(APPEND python_install_options "--root=$ENV{DESTDIR}/")
endif()
add_custom_target(python-install
COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CUR... |
Update docs/building-custom-SKU.md | @@ -61,7 +61,7 @@ That file is included from **mat/config.h** and propagates the necessary configu
In order to test your custom build configuration in Visual Studio IDE:
-1. set CUSTOM_PROPS_VS variable in cmd.exe . For example:
+1. Set `CUSTOM_PROPS_VS` environment variable in cmd.exe. For example:
```
set "CUSTOM_PRO... |
Changed release tagging script to use semver compliant build numbers. | @@ -8,7 +8,7 @@ echo "Latest tag: $latest_tag"
#Stable releases follow major.minor.patch version format
major_regex='^[0-9]+\.[0-9]+\.[0-9]$'
#Unstable (CD) releases follow major.minor.patch.build version format
-build_regex='^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$'
+build_regex='^[0-9]+\.[0-9]+\.[0-9]+\+[0-9]+$'
if [[ $lates... |
hv: pci: use mmio_read/write directly
Use mmio_read/write directly. | @@ -179,24 +179,10 @@ static uint32_t pci_mmcfg_read_cfg(union pci_bdf bdf, uint32_t offset, uint32_t
{
uint32_t addr = mmcfg_off_to_address(bdf, offset);
void *hva = hpa2hva(addr);
- uint32_t val;
-
ASSERT(pci_is_valid_access(offset, bytes), "the offset should be aligned with 2/4 byte\n");
- switch (bytes) {
- case 1U... |
parser: regex: reset time lookup, do not use current time | @@ -149,7 +149,7 @@ int flb_parser_regex_do(struct flb_parser *parser,
pcb.num_skipped = 0;
pcb.time_lookup = 0;
pcb.time_frac = 0;
- pcb.time_now = time(NULL);
+ pcb.time_now = 0;
/* Iterate results and compose new buffer */
last_byte = flb_regex_parse(parser->regex, &result, cb_results, &pcb);
|
sha/keccak1600.c: add #ifdef KECCAK1600_ASM. | #include <string.h>
#include <assert.h>
+#ifndef KECCAK1600_ASM
+
#define ROL32(a, offset) (((a) << (offset)) | ((a) >> ((32 - (offset)) & 31)))
static uint64_t ROL64(uint64_t val, int offset)
@@ -1066,6 +1068,11 @@ void SHA3_squeeze(uint64_t A[5][5], unsigned char *out, size_t len, size_t r)
}
}
}
+#else
+size_t SHA3_... |
Fix typo in flags | - `tensor_rank=1`
- `with_time_reversal=true`: {math}`1' \circ \mathbf{m} = -\mathbf{m}`
- `is_axial=true`: {math}`(\mathbf{R}, \mathbf{v}) \circ \mathbf{m} = (\mathrm{det} \mathbf{R}) \mathbf{R} \mathbf{m}`
- - `is_axial=true`: {math}`(\mathbf{R}, \mathbf{v}) \circ \mathbf{m} = \mathbf{R} \mathbf{m}`
+ - `is_axial=fal... |
update: number example adjusted | //introducing numbers as a transitive chain of smaller relations:
<(<($1 * #1) --> smaller> && <(#1 * $2) --> smaller>) ==> <($1 * $2) --> smaller>>.
<(1 * 2) --> smaller>.
+10
<(2 * 3) --> smaller>.
+10
<(3 * 4) --> smaller>.
-<(4 * 5) --> smaller>.
-12
+10
<(1 * 3) --> smaller>?
//expected: Answer: <(1 * 3) --> small... |
kernel/binary_manager: Link blink of old head to new head when adding tcb to binary list
When adding tcb to binary list, it is added to a head of list.
So a blink of old head should pointed to new head. | @@ -198,18 +198,25 @@ void binary_manager_add_binlist(FAR struct tcb_s *tcb)
{
int bin_idx;
- if (tcb->group) {
bin_idx = tcb->group->tg_binidx;
+
+ /* A binary index, bin_idx is greater than 0 only if tcb is a thread of user binary.
+ * Add tcb to the binary list for fault recovery in case of threads of user binary.
+... |
slw: Print enabled stop states
On boot, print the enabled stop states. Output looks like:
[ 25.045201661,5] SLW: Enabling: stop0_lite
[ 25.045205017,5] SLW: Enabling: stop0
[ 25.045206549,5] SLW: Enabling: stop1_lite
[ 25.045208320,5] SLW: Enabling: stop1
[ 25.045209738,5] SLW: Enabling: stop2_lite
[ 25.04... | @@ -770,6 +770,8 @@ void add_cpu_idle_state_properties(void)
continue;
}
+ prlog(PR_NOTICE, "SLW: Enabling: %s\n", states[i].name);
+
/*
* If a state is supported add each of its property
* to its corresponding property buffer.
|
Fix flaky send buffer test | import pytest
-from configuration import available_ports, PROTOCOLS, ALL_TEST_CIPHERS, MINIMAL_TEST_CERTS, Certificates
+from configuration import available_ports, PROTOCOLS, ALL_TEST_CIPHERS, MINIMAL_TEST_CERTS
from common import ProviderOptions, data_bytes
from fixtures import managed_process # lgtm [py/unused-import... |
vcl: Don't use app_socket_api to notify VPP in parent when child exited
Type: fix | @@ -1530,7 +1530,11 @@ vls_cleanup_vcl_worker (vcl_worker_t * wrk)
/* Unshare sessions and also cleanup worker since child may have
* called _exit () and therefore vcl may not catch the event */
vls_unshare_vcl_worker_sessions (wrk);
- vcl_worker_cleanup (wrk, 1 /* notify vpp */ );
+
+ /* Since child may have exited an... |
docs:update a command in partition-tables | @@ -289,7 +289,7 @@ The command-line interface of `parttool.py` has the following structure:
parttool.py --port "/dev/ttyUSB1" read_partition --partition-type=data --partition-subtype=spiffs --output "spiffs.bin"
# Write to partition 'factory' the contents of a file named 'factory.bin'
- parttool.py --port "/dev/ttyUSB... |
Python 2: Require `pluginprocess` lib for binding | @@ -64,6 +64,7 @@ if (DEPENDENCY_PHASE)
remove_plugin (python2 "swig_python2 binding is required")
elseif (NOT PLUGINPROCESS_FOUND)
remove_plugin (python "Elektra's pluginprocess library is required")
+ remove_plugin (python2 "Elektra's pluginprocess library is required")
else ()
remove_plugin (python2 "swig not found"... |
Fix name of Ubuntu/Debian package "libexpat1-dev".
The "libxpat1-dev" package doesn't exist on Ubuntu/Debian, and results
in an error when installing Ubuntu/Debian dependencies.
The desired package: | @@ -10,7 +10,7 @@ curl -sL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x2EE0EA64E40A89
sudo apt-get update
sudo apt-get install -y sbt
sudo apt-get install -y texinfo gengetopt
-sudo apt-get install -y libxpat1-dev libusb-dev libncurses5-dev cmake
+sudo apt-get install -y libexpat1-dev libusb-dev libncurses... |
api: VPD 0xB0 add OPTIMAL UNMAP GRANULARITY support
For windows when Retrieving the Slab Mapping State:
In a thin provisioning LUN, all logical blocks are grouped in slabs
(clusters). The slab size is set by the OPTIMAL UNMAP GRANULARITY
parameter that the storage device reports. | @@ -629,6 +629,10 @@ finish_page83:
val32 = htobe32(VPD_MAX_UNMAP_BLOCK_DESC_COUNT);
memcpy(&data[24], &val32, 4);
+ /* OPTIMAL UNMAP GRANULARITY */
+ val32 = htobe32(max_xfer_length);
+ memcpy(&data[28], &val32, 4);
+
/* MAXIMUM WRITE SAME LENGTH */
val64 = htobe64(VPD_MAX_WRITE_SAME_LENGTH);
memcpy(&data[36], &val64,... |
aes/aes_x86core.c: clarify reference implementation status. | * https://www.openssl.org/source/license.html
*/
+/*
+ * This is experimental x86[_64] derivative. It assumes little-endian
+ * byte order and expects CPU to sustain unaligned memory references.
+ * It is used as playground for cache-time attack mitigations and
+ * serves as reference C implementation for x86[_64] as w... |
add targets for all_deb and all_rpm packages | @@ -57,6 +57,22 @@ dockerised_latest_packages: dockerised_deb_debian_bullseye\
dockerised_rpm_opensuse_tumbleweed\
dockerised_rpm_fedora35
+.PHONY: dockerised_all_deb_packages
+dockerised_all_deb_packages: dockerised_deb_debian_buster\
+ dockerised_deb_debian_bullseye\
+ dockerised_deb_debian_bookworm\
+ dockerised_deb... |
bugID:16905217: [Breeze]Modify breeze api for application. | @@ -55,8 +55,10 @@ static void set_dev_status_handler(uint8_t *buffer, uint32_t length)
static void get_dev_status_handler(uint8_t *buffer, uint32_t length)
{
/* Flip one of the bits and then echo. */
+ uint8_t cmd;
buffer[length - 1] ^= 2;
- breeze_post(buffer, length);
+ cmd = 0x03;
+ breeze_post(cmd, buffer, length)... |
fix: actor-gen.exe not found error | @@ -149,12 +149,9 @@ all_headers: $(SPECS)
$(foreach var, $(SPECS),./bin/actor-gen.exe -E -a -o specs-code/all_enums.h $(var);)
$(foreach var, $(SPECS),./bin/actor-gen.exe -F -a -o specs-code/all_fun.h $(var);)
$(foreach var, $(SPECS),./bin/actor-gen.exe -O -a -o specs-code/all_opaque_struct.h $(var);)
+ $(foreach var,... |
Suppress uninitialized-variable warning.
Several buildfarm critters that don't usually produce such
warnings are complaining about I think it's
actually safe, but move initialization to silence the warning. | @@ -916,6 +916,7 @@ fmgr_sql_validator(PG_FUNCTION_ARGS)
* least catch silly syntactic errors.
*/
raw_parsetree_list = pg_parse_query(prosrc);
+ querytree_list = NIL;
if (!haspolyarg)
{
@@ -928,7 +929,6 @@ fmgr_sql_validator(PG_FUNCTION_ARGS)
/* But first, set up parameter information */
pinfo = prepare_sql_fn_parse_in... |
arm: Removed dead code | @@ -88,40 +88,6 @@ int hal_cpuCreateContext(cpu_context_t **nctx, void *start, void *kstack, size_t
}
-#if 0
-int hal_cpuGetFault(const hal_cpuFault_t type, void **fault_addr)
-{
- int fault_src;
-
- switch (type) {
- case FAULT_INST:
- /* Read IFAR */
- __asm__ volatile ("MRC p15, 0, %0, c6, c0, 2" : "=r" (*fault_addr... |
packaging: fix syntax error in AL2 test | @@ -25,7 +25,7 @@ ENV STAGING_VERSION=${STAGING_VERSION}
RUN rpm --import "$AWS_URL/fluentbit.key" && \
wget -q "$AWS_URL/amazonlinux-2.repo" -O /etc/yum.repos.d/staging.repo && \
yum update -y && yum install -y fluent-bit && \
- systemctl fluent-bit
+ systemctl enable fluent-bit
COPY ./test.sh /test.sh
RUN chmod a+x /... |
packaging: fix test script usage of AL2022 override | @@ -53,10 +53,10 @@ do
echo "Testing $IMAGE"
LOG_FILE=$(mktemp)
- FLUENT_BIT_INSTALL_COMMAND_PREFIX=${FLUENT_BIT_INSTALL_COMMAND_PREFIX:-}
+ UPDATED_FLUENT_BIT_INSTALL_COMMAND_PREFIX=${FLUENT_BIT_INSTALL_COMMAND_PREFIX:-}
# For AL2022 we currently want a fixed 2022 version instead of build timestamps
if [[ "$IMAGE" == ... |
Clear console when opening the REPL | @@ -41,6 +41,8 @@ class REPLViewController: ConsoleViewController {
if Python.shared.isREPLRunning {
func sendInput() {
+ prompt = ""
+ console = ""
PyInputHelper.userInput = [
"import os",
"import PytoClasses",
|
PEM: Have pem_read_bio_key() set the OSSL_STORE expected type | @@ -67,6 +67,9 @@ static EVP_PKEY *pem_read_bio_key(BIO *bp, EVP_PKEY **x,
# endif
#endif
+ if (!OSSL_STORE_expect(ctx, expected_store_info_type))
+ goto err;
+
while (!OSSL_STORE_eof(ctx)
&& (info = OSSL_STORE_load(ctx)) != NULL) {
if (OSSL_STORE_INFO_get_type(info) == expected_store_info_type) {
|
Avoid duplicate ports in TPortManager | @@ -124,11 +124,11 @@ public:
}
THolder<TSocketType> sock = new TSocketType();
- SetReuseAddressAndPort(*sock);
TSockAddrInet6 addr("::", port);
if (sock->Bind(&addr) < 0)
continue;
+ SetReuseAddressAndPort(*sock);
if (IsSyncDirSet() && !LockPort(port))
continue;
|
Fix OHPC delims | @@ -117,6 +117,14 @@ sed -i "s/@WWNAME@/$WWMOD/g" $SPECFILE
# Update the package name
sed -i "s#^Name:.*#Name: %\{pname\}%\{PROJ_DELIM\}#" $SPECFILE
+# Provide the original package, since non-OHPC parallel install is impossible
+VERSION=$(awk -F '[[:space:]]+' '/^Version:/{print $2}' $MODDIR/warewulf-$WWMOD.spec)
+sed ... |
Fix: Incorrect constraints in FCG construction | @@ -191,7 +191,7 @@ void fcg_add_pairwise_edges(Graph *fcg, int v1, int v2, PlutoProg *prog, int *co
conflictcst = *conflicts;
prog->fcg_cst_alloc_time += rtclock() - tstart;
- row_offset = conflictcst->nrows-CST_WIDTH-1;
+ row_offset = conflictcst->nrows-CST_WIDTH+1;
/* conflictcst->ncols = CST_WIDTH; */
/* conflictcs... |
Enable unit tests on nightly tests | @@ -40,7 +40,11 @@ pipeline {
stages {
stage('Clean') {
steps {
- sh 'git clean -fdx'
+ sh '''
+ git clean -fdx
+ git submodule init
+ git submodule update
+ '''
}
}
stage('Build R') {
@@ -48,7 +52,7 @@ pipeline {
sh '''
mkdir build_rel
cd build_rel
- cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL... |
simplification of cadillac_get_torque_idx | @@ -17,10 +17,7 @@ int cadillac_supercruise_on = 0;
struct sample_t cadillac_torque_driver; // last few driver torques measured
int cadillac_get_torque_idx(uint32_t addr) {
- if (addr==0x151) return 0;
- else if (addr==0x152) return 1;
- else if (addr==0x153) return 2;
- else return 3;
+ return addr - 0x151; // 0x151 i... |
Fix users mainmenu regression | @@ -3518,7 +3518,7 @@ VOID PhMwpUpdateUsersMenu(
PhInsertEMenuItem(UsersMenu, userMenu = PhCreateEMenuItem(0, IDR_USER, escapedMenuText->Buffer, NULL, UlongToPtr(sessions[i].SessionId)), -1);
PhLoadResourceEMenuItem(userMenu, PhInstanceHandle, MAKEINTRESOURCE(IDR_USER), 0);
- PhDereferenceObject(escapedMenuText);
+ PhA... |
Attempt to fix command line parameters and reduce disk usage by not installing a bunch of random Win 10 SDKs | @@ -35,13 +35,12 @@ if NOT exist "%VSINSTALLER%" (
set VSINSTALLER=vs_buildtools.exe
)
echo Visual Studio installer:
-echo "%VSINSTALLER%"
+echo %VSINSTALLER%
REM Install optional components required for ARM build - vs2017-BuildTools
if exist "%VSINSTALLDIR%" (
echo Running Visual Studio installer..
- "%VSINSTALLER%" ^... |
Travis: Fix installation of package wheel. | @@ -61,12 +61,12 @@ jobs:
- choco install cmake
- choco install swig
- choco install python3
- - pip3 install wheel
+ - C:\\Python37\\Scripts\\pip3 install wheel
script:
- mkdir python3
- pushd python3
- cmake -G "Visual Studio 15 2017" -A x64 -DTINYSPLINE_ENABLE_PYTHON=True ..
- - C:\\Python37\\Scripts\\pip3 install w... |
Small Matrix: skip compile in unimplemented data type | @@ -105,8 +105,13 @@ static int (*gemm[])(blas_arg_t *, BLASLONG *, BLASLONG *, IFLOAT *, IFLOAT *, B
#endif
};
-#ifndef GEMM3M
-#ifdef SMALL_MATRIX_OPT
+#if defined(SMALL_MATRIX_OPT) && !defined(GEMM3M) && !defined(XDOUBLE) && !defined(BFLOAT16)
+#define USE_SMALL_MATRIX_OPT 1
+#else
+#define USE_SMALL_MATRIX_OPT 0
+#... |
nshlib/nsh_timcmds.c: Initialized struct tm cause 'date -s' to fail. | /****************************************************************************
* apps/nshlib/dbg_timcmds.c
*
- * Copyright (C) 2011-2012, 2014 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2011-2012, 2014, 2019 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use ... |
Configure: make it possible to have generated generators
This makes it possible to chain GENERATOR statements, which allows
constructs like this:
GENERATE[something.html]=something.pod
GENERATE[something.pod]=something.pod.in | @@ -2127,7 +2127,15 @@ EOF
,join(" ", @{$generate{$_}}),"\n"
if scalar @{$generate{$_}} > 1;
my @generator = split /\s+/, $generate{$dest}->[0];
- $generator[0] = cleanfile($sourced, $generator[0], $blddir),
+ my $gen = $generator[0];
+ $generator[0] = cleanfile($sourced, $gen, $blddir);
+
+ # If the generator isn't in... |
ipsec: initialize algs to none in 'create ipsec tunnel' cli
Type: fix | @@ -729,8 +729,8 @@ create_ipsec_tunnel_command_fn (vlib_main_t * vm,
ip46_address_t local_ip = ip46_address_initializer;
ip46_address_t remote_ip = ip46_address_initializer;
ip_address_t nh = IP_ADDRESS_V4_ALL_0S;
- ipsec_crypto_alg_t crypto_alg;
- ipsec_integ_alg_t integ_alg;
+ ipsec_crypto_alg_t crypto_alg = IPSEC_C... |
session server UPDATE variable size | @@ -3538,8 +3538,7 @@ nc_ch_client_thread(void *arg)
struct nc_ch_endpt *cur_endpt;
struct nc_session *session;
struct nc_ch_client *client;
- uint32_t client_id;
- time_t reconnect_in;
+ uint32_t client_id, reconnect_in;
/* LOCK */
client = nc_server_ch_client_with_endpt_lock(data->client_name);
@@ -3590,7 +3589,7 @@ ... |
Run interior graph nodes before process nodes
Reduces the chance of tripping over vectors in flight, especially in
single-core cases. | @@ -1547,6 +1547,13 @@ vlib_main_or_worker_loop (vlib_main_t * vm, int is_main)
}
}
}
+ /* Input nodes may have added work to the pending vector.
+ Process pending vector until there is nothing left.
+ All pending vectors will be processed from input -> output. */
+ for (i = 0; i < _vec_len (nm->pending_frames); i++)
+... |
map: Fix indexing for 3+ data structures | (while true
(if (= nil (set k1 (next i1 k1))) (break))
(if (= nil (set k2 (next i2 k2))) (break))
- (if (= nil (set k3 (next i2 k3))) (break))
+ (if (= nil (set k3 (next i3 k3))) (break))
(array/push res (f (in i1 k1) (in i2 k2) (in i3 k3)))))
4 (do
(var k1 nil)
(while true
(if (= nil (set k1 (next i1 k1))) (break))
(i... |
Update game of life example. | (seq [x :range [-1 2]
y :range [-1 2]
:when (not (and (zero? x) (zero? y)))]
- (tuple x y)))
+ [x y]))
(defn- neighbors
[[x y]]
- (map (fn [[x1 y1]] (tuple (+ x x1) (+ y y1))) window))
+ (map (fn [[x1 y1]] [(+ x x1) (+ y y1)]) window))
(defn tick
"Get the next state in the Game Of Life."
(loop [x :range [x1 (+ 1 x2)]
:... |
h2olog: fix a regression on conflict resolutions for | @@ -244,7 +244,7 @@ int main(int argc, char **argv)
std::vector<std::string> response_header_filters;
int c;
pid_t h2o_pid = -1;
- while ((c = getopt(argc, argv, "hdrpl:t:s:w:")) != -1) {
+ while ((c = getopt(argc, argv, "hdrlp:t:s:w:")) != -1) {
switch (c) {
case 'p':
h2o_pid = atoi(optarg);
|
unix/main: Update stdlib path envvar (now PYCOPYPATH) and its default value.
To avoid possible confusion and mix-up between Pycopy and MicroPython
installs. The environment variable is now PYCOPYPATH, and default value
of the search path is "~/.pycopy/lib:/usr/lib/pycopy". | @@ -524,12 +524,12 @@ MP_NOINLINE int main_(int argc, char **argv) {
#endif
char *home = getenv("HOME");
- char *path = getenv("MICROPYPATH");
+ char *path = getenv("PYCOPYPATH");
if (path == NULL) {
#ifdef MICROPY_PY_SYS_PATH_DEFAULT
path = MICROPY_PY_SYS_PATH_DEFAULT;
#else
- path = "~/.micropython/lib:/usr/lib/micro... |
Fix typo and (hopefully) slightly improve comment readability | @@ -2175,8 +2175,8 @@ int RM_GetContextFlags(RedisModuleCtx *ctx) {
return flags;
}
-/* Returns true if some client sent the CLIENT PAUSE command to the server or
- * if Redis Cluster is doing a manual failover, and paused tue clients.
+/* Returns true if a client sent the CLIENT PAUSE command to the server or
+ * if R... |
Fix debug print to handle URL in internal testing scenarios as well | @@ -72,7 +72,7 @@ esp_err_t _http_event_handler(esp_http_client_event_t *evt)
void simple_ota_example_task(void *pvParameter)
{
- ESP_LOGI(TAG, "Starting OTA example. Attempting to download update from %s", CONFIG_EXAMPLE_FIRMWARE_UPGRADE_URL);
+ ESP_LOGI(TAG, "Starting OTA example");
#ifdef CONFIG_EXAMPLE_FIRMWARE_UPG... |
HV: stop retrieving seed from multiboot modules
In future, SBL will no longer provide seed_list address through
multiboot modules. The seed_list address will passed by cmdline instead.
So stop retrieveing seed from multiboot modules.
Acked-by: Zhu Bing | @@ -90,8 +90,6 @@ static void parse_other_modules(struct vm *vm,
vm->sw.linux_info.ramdisk_load_addr =
(void *)(uint64_t)mods[i].mm_mod_start;
vm->sw.linux_info.ramdisk_size = mod_size;
- } else if (strncmp("SeedList", start, type_len) == 0) {
- parse_seed_list((struct seed_list_hob *)mod_addr);
} else {
pr_warn("not s... |
Optional texture path in lovr.graphics.newModel; | @@ -41,6 +41,19 @@ static void luax_readvertices(lua_State* L, int index, vec_float_t* points) {
}
}
+static Texture* luax_readtexture(lua_State* L, int index) {
+ const char* path = luaL_checkstring(L, index);
+ int size;
+ void* data = lovrFilesystemRead(path, &size);
+ if (!data) {
+ luaL_error(L, "Could not load te... |
opae.io: return pci_address in lower case
Change pci_address parser function to always return pci address in lower
case becasue sysfs operates in lower case hex. | @@ -82,7 +82,7 @@ def pci_address(inp):
raise ValueError('wrong pci address format: {}'.format(inp))
d = m.groupdict()
- return '{}:{}'.format(d.get('segment') or '0000', d['bdf'])
+ return '{}:{}'.format(d.get('segment') or '0000', d['bdf']).lower()
def vid_did_for_address(pci_addr):
|
base64: fix plugin exports | @@ -293,6 +293,5 @@ int PLUGIN_FUNCTION (set) (Plugin * handle, KeySet * keySet, Key * parentKey)
Plugin * ELEKTRA_PLUGIN_EXPORT (base64)
{
return elektraPluginExport (ELEKTRA_PLUGIN_NAME, ELEKTRA_PLUGIN_GET, &PLUGIN_FUNCTION (get), ELEKTRA_PLUGIN_SET,
- &PLUGIN_FUNCTION (set), "base64Encode", &base64Encode, "base64Dec... |
CHANGES.md: Mention RSA key generation slowdown related changes
Fixes | @@ -233,6 +233,9 @@ L<RAND(7)>
=head1 HISTORY
+The BN_is_prime_ex() and BN_is_prime_fasttest_ex() functions were
+deprecated in OpenSSL 3.0.
+
The BN_GENCB_new(), BN_GENCB_free(),
and BN_GENCB_get_arg() functions were added in OpenSSL 1.1.0.
|
perform gesture over layout indicator to bring up switcher | @@ -340,6 +340,7 @@ static int tagwidth = 0;
static int doubledraw = 0;
static int statuswidth = 0;
+static int topdrag = 0;
static int isdesktop = 0;
@@ -1854,6 +1855,19 @@ motionnotify(XEvent *e)
}
}
+ // perform gesture over layout indicator to bring up switcher
+ if (ev->y_root == 0) {
+ if (!tagwidth)
+ tagwidth =... |
cleanup: The struct name is wrong and that function is gone. | @@ -154,9 +154,6 @@ typedef struct lily_proto_stack_ {
uint32_t size;
} lily_proto_stack;
-/* This is used by the emitter to do dynamic loads (ex: "abc".concat(...)). */
-struct lily_parse_state_t;
-
typedef struct {
/* Patches are spots that the block needs to remember for when the block is
done. They're shared by all... |
Note that numpy is required to build PyIlmBase | @@ -18,6 +18,13 @@ named COPYING (included in this distribution) for details.
BUILDING ILMBASE
----------------
+PyIlmBase requires numpy to be available to the builder. Install with
+your favorite package manager or use a Python virtualenv:
+
+virtualenv numpy
+soure numpy/bin/activate
+pip install numpy
+
To build Il... |
add floating window snapping by holding shift | @@ -2132,17 +2132,28 @@ movemouse(const Arg *arg)
}
} else {
if (ev.xmotion.x_root > selmon->mx + selmon->mw - 50 && ev.xmotion.x_root < selmon->mx + selmon->mw + 1) {
+
+ if (ev.xmotion.state & ShiftMask) {
+ resize(c, selmon->mx + (selmon->mw / 2) + 2, selmon->my + bh + 2, (selmon->mw / 2) - 8, selmon->mh - bh - 8, 0... |
travis: Split esp32 ESP-IDF v3 and v4 builds to separate jobs.
To make it easier to see what is happening when there is a failure. This
commit also fixes the ESP-IDF v4 build to use the correct GCC 8.2.0. | @@ -313,28 +313,35 @@ jobs:
- make ${MAKEOPTS} -C mpy-cross
- make ${MAKEOPTS} -C ports/windows CROSS_COMPILE=i686-w64-mingw32-
- # esp32 port
+ # esp32 w/ESP-IDFv3 port
- stage: test
- env: NAME="esp32 port build"
+ env: NAME="esp32 ESP-IDFv3 port build"
install:
- sudo apt-get install python3-pip
- sudo pip3 install ... |
Fix typo in getting_started guide
Fixes: ("add get-deps target") | @@ -61,7 +61,7 @@ To build example, first change directory to an example folder.
$ cd examples/device/cdc_msc
-Before building, we need to download MCU driver submodule to provide low-level MCU peripheral's driver first. Run the ``get-dpes`` target in one of the example folder as follow. You only need to do this once p... |
dev-tools/cmake: update to v3.13.3 | %define pname cmake
%define major_version 3.12
-%define minor_version 2
+%define minor_version 3
Summary: CMake is an open-source, cross-platform family of tools designed to build, test and package software.
Name: %{pname}%{PROJ_DELIM}
|
bin: prepare thread and output environment | @@ -853,6 +853,10 @@ int main(int argc, char **argv)
}
#endif
+ /* Prepare pthread keys */
+ flb_thread_prepare();
+ flb_output_prepare();
+
ret = flb_engine_start(config);
if (ret == -1) {
flb_engine_shutdown(config);
|
openwsman: set right type of NULL parameter
Convert the NULL pointer to HCRYPTPROV_LEGACY to eliminate warning:
warning C4047: 'function': 'HCRYPTPROV_LEGACY' differs in levels of indirection from 'void *' | @@ -752,7 +752,7 @@ BOOL find_cert(const _TCHAR * oid,
if ( !(hStoreHandle = CertOpenStore(
CERT_STORE_PROV_SYSTEM, // The store provider type
0, // The encoding type is not needed
- NULL, // Use the default HCRYPTPROV
+ (HCRYPTPROV_LEGACY)NULL, // Use the default HCRYPTPROV
flags, // Set the store location in a regist... |
options/posix: rework struct ifreq to match linux with support macros | @@ -26,24 +26,43 @@ struct ifmap {
};
struct ifreq {
- char ifr_name[IFNAMSIZ];
union {
- struct sockaddr ifr_addr;
- struct sockaddr ifr_dstaddr;
- struct sockaddr ifr_broadaddr;
- struct sockaddr ifr_netmask;
- struct sockaddr ifr_hwaddr;
- short ifr_flags;
- int ifr_ifindex;
- int ifr_metric;
- int ifr_mtu;
- struct... |
tests: in_http: fixed a remainder of the old flb_upstream_conn related code | @@ -140,7 +140,7 @@ struct http_client_ctx* http_client_ctx_create()
ret_ctx->u_conn = flb_upstream_conn_get(ret_ctx->u);
TEST_CHECK(ret_ctx->u_conn != NULL);
- ret_ctx->u_conn->u = ret_ctx->u;
+ ret_ctx->u_conn->upstream = ret_ctx->u;
return ret_ctx;
}
|
Terminology change for new hosts outside current cluster -- segment recovery | @@ -170,14 +170,14 @@ newPort|newDataDirectory</codeblock>
</plentry>
<plentry>
<pt>-p <varname>new_recover_host</varname>[,...]</pt>
- <pd>Specifies a spare host outside of the currently configured Greenplum Database array on
+ <pd>Specifies a new host outside of the currently configured Greenplum Database array on
wh... |
Tests & Code Coverage Badge | @@ -6,7 +6,7 @@ protocol. It is cross platform, written in C and designed to be a general purpos
> **Important** The MsQuic library, as well as the protocol itself, is still a work in progress. Version 1 is not yet finalized and may continue to experience breaking changes until it is finalized.
-[ {
credits::prepare();
}
-void swoosh(uint32_t time, float t1, float t2, float s1, float s2, int t0, int offset_y=120, int size=60, int alpha=45) {
- for(auto x = 0u; x < screen.bounds.w; x++) {
- if((x + 1) & 0b10) continue; // This is an aesthetic choice, not an optimisation!
+void swoo... |
Added summary of changes to 2.5.0 release notes. | @@ -39,9 +39,17 @@ Minor release with miscellaneous bug fixes and small features
## Summary
-* This.
-* That.
-* The other thing.
+* No more build-time header generation: toFloat.h, eLut.h,
+ b44ExpLogTable.h, and dwaLookups.h are now ordinary header files, no
+ longer generated on the fly.
+* New StdISSTream class, an... |
Misc fixes & comments | @@ -148,7 +148,6 @@ FIRTOOL_TARGETS = \
$(TOP_SMEMS_CONF) \
$(HARNESS_SMEMS_CONF)
-SFC_MAIN = barstools.tapeout.transforms.GenerateTopAndHarness
REPL_SEQ_MEM = --infer-rw --repl-seq-mem -c:$(MODEL):-o:$(TOP_SMEMS_CONF)
HARNESS_CONF_FLAGS = -thconf $(HARNESS_SMEMS_CONF)
@@ -182,13 +181,14 @@ $(CIRCT_TARGETS): firrtl_tem... |
MEMFS: Reduce the size of generated memfs.c file by removing grib3 (still experimental) | @@ -31,6 +31,8 @@ for directory in dirs:
NAMES.append(dname)
for dirpath, dirnames, files in os.walk(directory):
+ # For now exclude GRIB3 as it is still experimental
+ dirnames[:] = [dirname for dirname in dirnames if dirname != 'grib3']
for name in files:
full = '%s/%s' % (dirpath, name)
_, ext = os.path.splitext(ful... |
cmd/kubectl-gadget: Fix compilation
It seems there was an issue with a merge.
("cmd/common: Move error wrappers to common package") moved
WrapInErrSetupK8sClient() to "cmd/common/utils" and
("cmd/kubectl-gadget: Use k8s API for deploy operation.")
didn't take it into account. | @@ -22,13 +22,14 @@ import (
"strings"
"time"
+ commonutils "github.com/kinvolk/inspektor-gadget/cmd/common/utils"
"github.com/kinvolk/inspektor-gadget/cmd/kubectl-gadget/utils"
"github.com/kinvolk/inspektor-gadget/pkg/k8sutil"
"github.com/kinvolk/inspektor-gadget/pkg/resources"
"github.com/spf13/cobra"
appsv1 "k8s.io/... |
esp_supplicant: Make esp_rrm_send_neighbor_rep_request return proper error
Current code always return 0 even though wpas_rrm_send_neighbor_rep_request()
fails. Return proper error so the caller can know what's wrong.
Merges | @@ -281,9 +281,7 @@ int esp_rrm_send_neighbor_rep_request(neighbor_rep_request_cb cb,
struct wifi_ssid *ssid = esp_wifi_sta_get_prof_ssid_internal();
os_memcpy(wpa_ssid.ssid, ssid->ssid, ssid->len);
wpa_ssid.ssid_len = ssid->len;
- wpas_rrm_send_neighbor_rep_request(wpa_s, &wpa_ssid, 0, 0, cb, cb_ctx);
-
- return 0;
+ ... |
Algorithm: Use fences for code blocks | @@ -109,7 +109,9 @@ during an initial request or when no update is available.
The synopsis of the function is:
+```c
int kdbGet(KDB *handle, KeySet *returned, Key * parentKey);
+```
The user passes a key set, called `returned`.
If the user invokes `kdbGet()` the first time, he or she will usually
@@ -144,10 +146,12 @@ ... |
Removes truncated HMAC code from ssl.h
Commit removes conditionally compiled code
relating to MBEDTLS_SSL_TRUNCATED_HMAC from
ssl.h. | @@ -956,10 +956,6 @@ struct mbedtls_ssl_session
unsigned char MBEDTLS_PRIVATE(mfl_code); /*!< MaxFragmentLength negotiated by peer */
#endif /* MBEDTLS_SSL_MAX_FRAGMENT_LENGTH */
-#if defined(MBEDTLS_SSL_TRUNCATED_HMAC)
- int MBEDTLS_PRIVATE(trunc_hmac); /*!< flag for truncated hmac activation */
-#endif /* MBEDTLS_SSL... |
Use the correct function name
CLA: trivial | @@ -175,7 +175,7 @@ and EC_GROUP_get_degree return the order, cofactor, curve name (NID), ASN1 flag,
specified curve respectively. If there is no curve name associated with a curve then EC_GROUP_get_curve_name will return 0.
EC_GROUP_get0_order() returns an internal pointer to the group order.
-EC_GROUP_get_order_bits(... |
Utilities: Clean up keys after done with signing vault | @@ -5,7 +5,12 @@ abort() {
exit 1
}
-if [ ! -x /usr/bin/dirname ] || [ ! -x /bin/chmod ] || [ ! -x /bin/mkdir ] || [ ! -x /usr/bin/openssl ] || [ ! -x /bin/rm ] || [ ! -x /usr/bin/strings ] || [ ! -x /usr/bin/grep ] || [ ! -x /usr/bin/cut ] || [ ! -x /bin/dd ] ; then
+cleanup() {
+ echo "Cleaning up keys"
+ rm -rf "${K... |
add include directory for compat/sys headers | @@ -96,6 +96,9 @@ endif()
if (NOT HAVE_SYS_TREE)
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/compat/sys/tree.h.in
${CMAKE_CURRENT_BINARY_DIR}/compat/sys/tree.h)
+
+ include_directories(${PROJECT_BINARY_DIR}/compat)
+
endif(NOT HAVE_SYS_TREE)
if (NOT HAVE_SYS_QUEUE)
@@ -303,7 +306,6 @@ if (EVHTP_BUILD_SHARED)
set_target_... |
typos in style.txt | 2.3. Statement groups.
Opening curly brace is on the next line for functions and on the
- same line for if, for, while, and switch statements. In the later
+ same line for if, for, while, and switch statements. In the latter
case there should be an empty line afterwards. In case only a
single statement follows an if, f... |
Update: Config.h: removal of FIFO space parameter | #define OPERATIONS_BABBLE_ARGS_MAX 10
//Maximum size of the stamp in terms of evidental base id's
#define STAMP_SIZE 10
-//Maximum event FIFO size
-#define FIFO_SIZE 20
//Maximum Implication table size
#define TABLE_SIZE 20
//Maximum compound term size
|
Fix _andn_u32 to work on old Visual Studio | // GCC headers apparently won't have this at all.. sigh
#ifndef _andn_u32
+// VS2015 headers apparently won't have this at all.. sigh
+#ifdef __andn_u32
#define _andn_u32(x, y) (__andn_u32((x), (y)))
-#endif
+#else
+#define _andn_u32(x, y) ((~(x)) & (y))
+#endif // __andn_u32
+#endif // _andn_u32
/*
* NOTE: Returns 10,... |
Removed dead code in linebuffer_ctrl()
Fixes Coverity CID
Also add possible number truncation check. | @@ -232,12 +232,12 @@ static long linebuffer_ctrl(BIO *b, int cmd, long num, void *ptr)
}
break;
case BIO_C_SET_BUFF_SIZE:
+ if (num > INT_MAX)
+ return 0;
obs = (int)num;
p = ctx->obuf;
if ((obs > DEFAULT_LINEBUFFER_SIZE) && (obs != ctx->obuf_size)) {
- if (num <= 0)
- return 0;
- p = OPENSSL_malloc((size_t)num);
+ p ... |
be more explicit about what failed | %- mule |.
(rain hoon-path ;;(@t q.q.cage.u.hoon-scry-result))
?: ?=(%| -.hoon-hoon)
- (return-error leaf+"ford: %reef failed to compile" p.hoon-hoon)
+ (return-error leaf+"ford: %reef failed to compile hoon" p.hoon-hoon)
::
=/ arvo-path=path
/(scot %p ship.disc)/(scot %tas desk.disc)/hoon/arvo/sys
%- mule |.
(rain arv... |
Clear compile warnings | @@ -72,4 +72,6 @@ LCUI_API void Widget_SetPosition( LCUI_Widget w, LCUI_StyleValue position );
LCUI_API void Widget_SetBoxSizing( LCUI_Widget w, LCUI_StyleValue sizing );
+LCUI_END_HEADER
+
#endif
|
added support for outline and more keywords | @@ -870,6 +870,11 @@ static void callSchemeMenu(tic_mem* tic, s32 index, void* data)
static const char* const SchemeKeywords [] =
{
+ "define", "lambda", "begin", "set!", "=", "<", "<=", ">", ">=", "+", "*",
+ "/", "'", "`", "`@", "define-macro", "let", "let*", "letrec",
+ "if", "cond", "floor", "ceiling", "sin", "cos"... |
edited GSoC discussion | * Various pandemic stories.
-* Google Summer of Code project proposals, ranked in order of preference:
-
- 1. Owen Thompson, Motion Picture Science student at Rochester
- Institute of Technology. Proposal to split Imath into a separate
- repo. The proposal is well-written, communication skills appear
- good. Trial PR w... |
client session BUGFIX do not load imported modules as implemented | @@ -882,6 +882,11 @@ nc_ctx_fill(struct nc_session *session, struct schema_info *modules, ly_module_i
unsigned int u, v;
for (u = 0; modules[u].name; ++u) {
+ /* skip import-only modules */
+ if (!modules[u].implemented) {
+ continue;
+ }
+
/* we can continue even if it fails */
nc_ctx_load_module(session, modules[u].n... |
Remove reference to "very fast" preset | @@ -42,7 +42,7 @@ format output images. The encoder supports decompression of ASTC input images
into TGA or KTX format output images.
The encoder allows control over the compression time/quality tradeoff with
-`exhaustive`, `thorough`, `medium`, `fast`, and `very fast` encoding speeds.
+`exhaustive`, `thorough`, `mediu... |
gall: in +ap-doff, process oldest subs first
Start by killing subscription nonce 0, then work our way up instead of
down. We enhance the printf with a "total nonces" indicator so we can
still easily see the progress being made. | =+ [wyr dok]=i.subs
?: =(ship `ship.dok)
$(subs t.subs)
- =/ let (~(got by boar.yoke) wyr dok)
- |- ^+ ap-core
- ~> %slog.[0 leaf+"gall: +ap-doff {<[agent-name wyr dok let]>}"]
- =. ap-core (ap-pass [(scot %ud let) wyr] %agent dok %leave ~)
- ?. =(0 let)
- $(let (dec let))
:: kill old-style subscription wire with no no... |
Update basic pyOCF tests to use rio | @@ -13,6 +13,7 @@ from pyocf.types.data import Data
from pyocf.types.io import IoDir
from pyocf.utils import Size as S
from pyocf.types.shared import OcfError, OcfCompletion
+from pyocf.rio import Rio, ReadWrite
def test_ctx_fixture(pyocf_ctx):
@@ -31,18 +32,9 @@ def test_simple_wt_write(pyocf_ctx):
cache_device.reset_... |
Fix appToken not working properly with named maps, we now include the token when accessing layergroup tiles | @@ -305,6 +305,13 @@ namespace carto {
urlTemplateBase += (i == 0 ? "/" : ",") + boost::lexical_cast<std::string>(layerInfos[i].index);
}
std::string urlTemplateSuffix;
+ if (!_authTokens.empty()) {
+ std::multimap<std::string, std::string> urlParams;
+ for (const std::string& authToken : _authTokens) {
+ urlParams.ins... |
HV: move global variable into the scope of calling function
The static global variable apicv_apic_access_addr is used only by
vlapic_apicv_get_apic_access_addr(), to remove the warning by MISRA,
move it into function scope.
Acked-by: Eddie Dong | @@ -77,9 +77,6 @@ static inline void vlapic_dump_irr(__unused const struct acrn_vlapic *vlapic, __
static inline void vlapic_dump_isr(__unused const struct acrn_vlapic *vlapic, __unused const char *msg) {}
#endif
-/*APIC-v APIC-access address */
-static uint8_t apicv_apic_access_addr[PAGE_SIZE] __aligned(PAGE_SIZE);
-
... |
sh3 update
issue | @@ -361,6 +361,26 @@ DWORD WINAPI Init(LPVOID bDelay)
pattern = hook::pattern("E8 ? ? ? ? D9 9D 9C FE FF FF E8");
injector::MakeCALL(pattern.get_first(0), static_cast<float(*)()>(ret_088), true);
+
+ //Splash
+ static float fHudOffsetReal = (Screen.fWidth - Screen.fHeight * (4.0f / 3.0f)) / 2.0f;
+ static float w2 = Sc... |
NTPC Daemon : build error fix when CONFIG option was not set
A build error occurs when the CONFIG option is not set. | #define CONFIG_NETUTILS_NTPCLIENT_DEBUG 0
#endif
+#ifndef CONFIG_NETUTILS_NTPCLIENT_DEFAULT_SERVER
+#define CONFIG_NETUTILS_NTPCLIENT_DEFAULT_SERVER "0.ubuntu.pool.ntp.org"
+#endif
+
+#ifndef CONFIG_NETUTILS_NTPCLIENT_DEFAULT_SERVER_PORT
+#define CONFIG_NETUTILS_NTPCLIENT_DEFAULT_SERVER_PORT 123
+#endif
+
+#ifndef CONF... |
Add Windows file version information to libpq_pipeline.exe. | # src/test/modules/libpq_pipeline/Makefile
+PGFILEDESC = "libpq_pipeline - test program for pipeline execution"
+PGAPPICON = win32
+
PROGRAM = libpq_pipeline
-OBJS = libpq_pipeline.o
+OBJS = $(WIN32RES) libpq_pipeline.o
NO_INSTALL = 1
|
tools/dual-boot: change project body meta
Include script as "main" instead of "program", to be compatible
with updates in the official app. | @@ -357,10 +357,15 @@ def make_project_files(build_dir, project_name, script, slot):
# Convert the Python script to the expected JSON format.
blob = script.replace("\n", "\\n")
- projectbody = '{{"program":"{0}"}}'.format(blob)
# Combine all files in the project archive.
for ext in (".llsp", ".lms"):
+
+ if ext == ".ll... |
update libusb to 1.0.23 | @@ -67,7 +67,7 @@ if(NOT LIBUSB_FOUND)
if(WIN32 OR MSVC OR MINGW OR MSYS)
find_package(7Zip REQUIRED)
- set(LIBUSB_WIN_VERSION 1.0.22)
+ set(LIBUSB_WIN_VERSION 1.0.23)
set(LIBUSB_WIN_ARCHIVE libusb-${LIBUSB_WIN_VERSION}.7z)
set(LIBUSB_WIN_ARCHIVE_PATH ${CMAKE_BINARY_DIR}/${LIBUSB_WIN_ARCHIVE})
set(LIBUSB_WIN_OUTPUT_FOL... |
Initial music events | @@ -40,6 +40,10 @@ export const EVENT_OVERLAY_HIDE = "EVENT_OVERLAY_HIDE";
export const EVENT_OVERLAY_SET_POSITION = "EVENT_OVERLAY_SET_POSITION";
export const EVENT_OVERLAY_MOVE_TO = "EVENT_OVERLAY_MOVE_TO";
+// Music
+export const EVENT_MUSIC_PLAY = "EVENT_MUSIC_PLAY";
+export const EVENT_MUSIC_STOP = "EVENT_MUSIC_ST... |
Add documentation on Windows virtual environment workaround. | @@ -18,3 +18,22 @@ Bugs Fixed
The potential for this problem arising was extremely high on Alpine Linux,
but seem to be very rare on a full Linux of macOS distribution where glibc
was being used.
+
+* Include a potential workaround so that virtual environment work on Windows.
+
+ Use of virtual environments in embedded... |
docs: Update OPTS output for trace bind guide. | @@ -33,7 +33,7 @@ Go back to *the first terminal* and see:
```
NODE NAMESPACE POD CONTAINER PID COMM PROTO ADDR PORT OPTS IF
-minikube default test-pod test-pod 58208 nc IP :: 4242 ..... 0
+minikube default test-pod test-pod 58208 nc IP :: 4242 .R... 0
```
This line correspond to the socket binding operation initiated ... |
risc-v/mpfs: ihc: fix performance issue
nxsig_usleep() will wait for the next timer tick which is way
too much here. It's not sleeping 100 us, but rather, near 1/60 s.
This causes severe performance problems. Fix this by polling the
register for a while if the remote end is busy. | @@ -785,22 +785,18 @@ static int mpfs_ihc_tx_message(ihc_channel_t channel, uint32_t *message)
uint32_t mhartid = mpfs_ihc_context_to_local_hart_id(channel);
uint32_t rhartid = mpfs_ihc_context_to_remote_hart_id(channel);
uint32_t message_size = getreg32(MPFS_IHC_MSG_SIZE(mhartid, rhartid));
- uint32_t ctrl_reg = getre... |
cloud_server: use default resource href | @@ -330,14 +330,13 @@ typedef struct oc_switch_t
{
struct oc_switch_t *next;
oc_resource_t *resource;
- uint16_t id;
bool state;
} oc_switch_t;
#ifdef OC_COLLECTIONS_IF_CREATE
OC_MEMB(switch_s, oc_switch_t, 1);
-OC_LIST(switches); // list of switch instances ordered by id
+OC_LIST(switches);
static bool
set_switch_prop... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.