message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
[system] Comment on hart-ordering restriction | @@ -46,6 +46,8 @@ trait HasBoomAndRocketTiles extends HasTiles
// Note that we also inject new nodes into the tile itself,
// also based on the crossing type.
// This MUST be performed in order of hartid
+ // There is something weird with registering tile-local interrupt controllers to the CLINT.
+ // TODO: investigate... |
Also making \r break lines in labels | @@ -303,9 +303,9 @@ uint16_t lv_txt_get_next_line(const char * txt, const lv_font_t * font,
i += advance;
- if(txt[0] == '\n') break;
+ if(txt[0] == '\n' || txt[0] == '\r') break;
- if(txt[i] == '\n'){
+ if(txt[i] == '\n' || txt[i] == '\r'){
i++; /* Include the following newline in the current line */
break;
}
|
data-flash: check bounds on flush | @@ -251,13 +251,13 @@ flash_do_more:
state = STATE_START_WRITE;
goto flash_do_more;
}
- if (should_flush == 1 && to_write > 0) {
- state = STATE_START_WRITE;
- goto flash_do_more;
- }
if (should_flush == 1) {
+ if (to_write > 0 && offset < bounds.total_size) {
+ state = STATE_START_WRITE;
+ } else {
state = STATE_ERASE... |
Remove leftover mmio setting for READY IRQ handling. | @@ -596,7 +596,6 @@ int snap_action_start(struct snap_action *action)
/* Enable Ready IRQ if set by application */
if (SNAP_ACTION_DONE_IRQ & card->flags) {
snap_mmio_write32(card, ACTION_IRQ_APP, ACTION_IRQ_APP_DONE);
- snap_mmio_write32(card, ACTION_IRQ_APP, ACTION_IRQ_APP_READY);
snap_mmio_write32(card, ACTION_IRQ_C... |
update bsp/stm32f429-apollo/KConfig | @@ -18,12 +18,6 @@ config $PKGS_DIR
source "$RTT_DIR/KConfig"
source "$PKGS_DIR/KConfig"
-menu "BSP_SPECIAL CONFIG"
-
-config RT_RTC_NAME
- string "RT_RTC_NAME"
- default rtc
-
config RT_USING_EXT_SDRAM
bool "Using RT_USING_EXT_SDRAM"
default y
@@ -44,9 +38,9 @@ config RT_USING_SPI5
bool "Using RT_USING_SPI5"
default y... |
[doc] SELinux: setsebool -P httpd_setrlimit on
document setrlimit() under SELinux may need one-time setup
setsebool -P httpd_setrlimit on | @@ -208,6 +208,9 @@ include conf_dir + "/conf.d/debug.conf"
## By default lighttpd would not change the operation system default.
## But setting it to 16384 is a better default for busy servers.
##
+## With SELinux enabled, this is denied by default and needs to be allowed
+## by running the following once: setsebool -... |
update hpc2021 cfg for small | @@ -106,11 +106,11 @@ PORTABILITY_LIBS = -lm
OPTIMIZE += -fopenmp -fopenmp-targets=amdgcn-amd-amdhsa -Xopenmp-target=amdgcn-amd-amdhsa -march=%{gputype}
OPTIMIZE += -fopenmp-target-xteam-reduction-blocksize=128
- 505.lbm_t:
+ 505.lbm_t,605.lbm_s:
OPTIMIZE += -fno-openmp-target-ignore-env-vars
513.soma_t,613.soma_s:
POR... |
added plot and text output to random distributions in vspace | @@ -7,6 +7,7 @@ import re
from IPython.core.debugger import Tracer
import vspace_hyak
import itertools as it
+import matplotlib.pyplot as plt
def SearchAngleUnit(src,flist):
for fcurr in flist:
@@ -313,10 +314,21 @@ elif numvars >= 1:
else:
#random draw, iterate linearly
n = len(str(randsize-1)) #number of digits to pa... |
[DeviceDrivers]Improve SFUD driver's compatibility. | @@ -165,11 +165,6 @@ static void spi_unlock(const sfud_spi *spi) {
rt_mutex_release(&(rtt_dev->lock));
}
-static void retry_delay_ms(void) {
- /* millisecond delay */
- rt_tick_from_millisecond(1);
-}
-
static void retry_delay_100us(void) {
/* 100 microsecond delay */
rt_thread_delay((RT_TICK_PER_SECOND * 1 + 9999) / 1... |
Add libraries ldflags | @@ -37,6 +37,7 @@ compiler.elf2hex.cmd=arm-none-eabi-objcopy
compiler.ldflags=
compiler.size.cmd=arm-none-eabi-size
compiler.define=-DARDUINO=
+compiler.libraries.ldflags=
build.cpu_flags=
@@ -80,7 +81,7 @@ recipe.s.o.pattern="{compiler.path}{compiler.c.cmd}" {compiler.S.flags} -mcpu={b
## Create archives
recipe.ar.pat... |
Remove broken doxygen link to internal macro
Removes a broken doxygen link to a macro that is now internal and
cannot be seen from the public API anymore. | @@ -297,7 +297,7 @@ void mbedtls_psa_get_stats( mbedtls_psa_stats_t *stats );
* \param[in] seed Buffer containing the seed value to inject.
* \param[in] seed_size Size of the \p seed buffer.
* The size of the seed in bytes must be greater
- * or equal to both #MBEDTLS_ENTROPY_MIN_PLATFORM
+ * or equal to both MBEDTLS_E... |
rune/libenclave: Supply the missing return value description information for PAL API v2 | @@ -18,7 +18,7 @@ N/A
### Return value
```
-N/A
+@int: the PAL API version of the current enclave runtime.
```
## 2.pal_init()
@@ -107,6 +107,13 @@ int pal_exec(struct pal_exec_args *attr);
@exit_value: The exit value of the process.
```
+### Return value
+```
+0: Success
+-EINVAL: Invalid argument
+-ENOSYS: The functi... |
[ML302v003][#821]modify native name | @@ -273,7 +273,7 @@ __BOATSTATIC BOAT_RESULT platone_createOnetimeWallet()
wallet_config.chain_id = 1;
wallet_config.eip155_compatibility = BOAT_FALSE;
- char *nativedemoKey = "0xfcf6d76706e66250dbacc9827bc427321edb9542d58a74a67624b253960465ca";
+ char *native_demoKey = "0xfcf6d76706e66250dbacc9827bc427321edb9542d58a74... |
admin/losf: revert hard-coded rrdtool version specification | @@ -41,7 +41,6 @@ provides: perl(LosF_history_utils)
%if 0%{?sles_version} || 0%{?suse_version}
Requires: perl-Config-IniFiles >= 2.43
Requires: perl-Log-Log4perl
-Requires: rrdtool < 1.7.0
%else
requires: yum-plugin-downloadonly
%endif
|
Simplify and add documentation | @@ -186,9 +186,10 @@ static clap_process_status my_plug_process(const struct clap_plugin *plugin,
const uint32_t nframes = process->frames_count;
const uint32_t nev = process->in_events->size(process->in_events);
uint32_t ev_index = 0;
- uint32_t next_ev_frame = (nev == 0 ? nframes : 0);
+ uint32_t next_ev_frame = 0;
f... |
core: utils: cast type to format pid_t | @@ -319,7 +319,7 @@ int mk_utils_register_pid(char *path)
exit(EXIT_FAILURE);
}
- sprintf(pidstr, "%i", getpid());
+ sprintf(pidstr, "%ld", (long) getpid());
ssize_t write_len = strlen(pidstr);
if (write(fd, pidstr, write_len) != write_len) {
close(fd);
|
Fix to raise error when channel shift is called multiple time | @@ -103,6 +103,10 @@ static mrb_value wait_callback(h2o_mruby_context_t *mctx, mrb_value input, mrb_v
if ((ctx = mrb_data_check_get_ptr(mrb, mrb_ary_entry(args, 0), &channel_type)) == NULL)
return mrb_exc_new_str_lit(mrb, E_ARGUMENT_ERROR, "Channel#shift wrong self");
+ if (!mrb_nil_p(ctx->receiver)) {
+ return mrb_exc... |
Fixes a few nits in diagnostics docs | @@ -4,7 +4,7 @@ This document describes various ways to debug and diagnose issues when using MsQ
# Trace Collection
-For functional problems, generally logging is the best way to diagnose problems. MsQuic has extensive logs in the code to facilitate debugging.
+For debugging issues, generally logging is the best way to... |
Prevent optimization | @@ -246,7 +246,7 @@ struct fio_hash_s {
#define FIO_HASH_FOR_FREE(hash, container) \
for (fio_hash_data_ordered_s *container = (hash)->ordered; \
(container && (container < (hash)->ordered + (hash)->pos)) || \
- ((fio_hash_free(hash), 0) != 0); \
+ ((fio_hash_free(hash), (hash)->ordered) != NULL); \
FIO_HASH_KEY_DESTRO... |
x509_vfy: fix mem leaks in chain_build() on malloc error Coverify CID
Fixes: Variable "sk_untrusted" going out of scope leaks the storage it points to. | @@ -3035,12 +3035,9 @@ static int build_chain(X509_STORE_CTX *ctx)
* If we got any "DANE-TA(2) Cert(0) Full(0)" trust anchors from DNS, add
* them to our working copy of the untrusted certificate stack.
*/
- if (DANETLS_ENABLED(dane) && dane->certs != NULL) {
- if (!X509_add_certs(sk_untrusted, dane->certs, X509_ADD_FL... |
Nickolay Ilyushin added to AUTHORS | @@ -12,6 +12,7 @@ Martin Sustrik <sustrik@250bpm.com>*
Maximilian Pudelko <maximilian.pudelko@gmail.com>
Michael Gehring <mg@ebfe.org>
Nick Desaulniers <nick@mozilla.com>
+Nickolay Ilyushin <nickolay02@inbox.ru>
Nir Soffer <nsoffer@redhat.com>
Paul Banks <banks@banksdesigns.co.uk>
Petr Skocik <pskocik@gmail.com>
|
docs - fixes/edits to gpbackup/restore email example | @@ -468,7 +468,7 @@ public.sales_1_prt_dec17 </codeblock></p><p>Then
a back up or restore operation completes. </p>
<p>To have <codeph>gpbackup</codeph> or <codeph>gprestore</codeph> send out status email
notifications, you must place a file named <codeph>gp_email_contacts.yaml</codeph> in the
- home directory of the u... |
Add sbp2nmea to haskell tools bundle | @@ -31,7 +31,8 @@ tar -C "$haskell_bins" -czf sbp_linux_tools.tar.gz \
sbp2prettyjson \
sbp2yaml \
json2sbp \
- json2json
+ json2json \
+ sbp2nmea
VERSION=$(git describe --always --tags --dirty)
BUILD_TRIPLET=$(cc -dumpmachine)
|
When using collisions during movement don't stop on first collision | @@ -624,8 +624,6 @@ void ScriptHelper_CalcDest() {
new_dest = CheckCollisionInDirection(DIV_8(actors[script_actor].pos.x), DIV_8(actors[script_actor].pos.y), DIV_8(actor_move_dest_y), check_dir) * 8u;
if(new_dest != actor_move_dest_y) {
actor_move_dest_y = new_dest;
- actor_move_dest_x = actors[script_actor].pos.x;
- r... |
out_stackdriver: abort initialization if 'project_id' is not set | @@ -682,6 +682,12 @@ static int cb_stackdriver_init(struct flb_output_instance *ins,
}
}
+ /* Validate project_id */
+ if (!ctx->project_id) {
+ flb_plg_error(ctx->ins, "property 'project_id' is not set");
+ return -1;
+ }
+
return 0;
}
|
Removing a meaningless warning message.
Data in the queue and the socket are transmitted independently; special
READ_QUEUE and READ_SOCKET message types are used for synchronization.
The warning was accidentally committed with changeset | @@ -5764,10 +5764,6 @@ nxt_unit_ctx_port_recv(nxt_unit_ctx_t *ctx, nxt_unit_port_t *port,
nxt_unit_debug(ctx, "port{%d,%d} recv %d read_queue",
(int) port->id.pid, (int) port->id.id, (int) rbuf->size);
- if (port_impl->from_socket) {
- nxt_unit_warn(ctx, "port protocol warning: READ_QUEUE after READ_SOCKET");
- }
-
got... |
cmdline: accept hex values for -n | @@ -612,7 +612,7 @@ bool cmdlineParse(int argc, char* argv[], honggfuzz_t* hfuzz) {
LOG_E("'-n %s' is not a number", optarg);
return false;
}
- hfuzz->threads.threadsMax = atol(optarg);
+ hfuzz->threads.threadsMax = strtoul(optarg, NULL, 0);
}
break;
case 0x109: {
|
Configurations/00-base-templates.conf: engage {chacha|poly1305}-ia64. | @@ -241,6 +241,8 @@ my %targets=(
aes_asm_src => "aes_core.c aes_cbc.c aes-ia64.s",
sha1_asm_src => "sha1-ia64.s sha256-ia64.s sha512-ia64.s",
modes_asm_src => "ghash-ia64.s",
+ chacha_asm_src => "chacha-ia64.S",
+ poly1305_asm_src=> "asm/poly1305-ia64.S",
perlasm_scheme => "void"
},
sparcv9_asm => {
|
fix string not freed in keyCopy | @@ -433,7 +433,9 @@ Key * keyCopy (Key * dest, const Key * source, elektraCopyFlags flags)
// free old resources of destination
if (test_bit (flags, KEY_CP_NAME) && !test_bit (orig.flags, KEY_FLAG_MMAP_KEY)) elektraFree (orig.key);
if (test_bit (flags, KEY_CP_NAME) && !test_bit (orig.flags, KEY_FLAG_MMAP_KEY)) elektraF... |
Prevent unaligned access under ASan builds | @@ -73,11 +73,12 @@ extern void (*mbedtls_test_hook_test_fail)( const char * test, int line, const c
*
* This list is incomplete.
*/
-#if defined(__i386__) || defined(__amd64__) || defined( __x86_64__) \
+#if (defined(__i386__) || defined(__amd64__) || defined( __x86_64__) \
|| defined(__ARM_FEATURE_UNALIGNED) \
|| def... |
extstore: fix crash on 'stats extstore'
if extstore wasn't enabled, crashes. Reported by on github. | @@ -69,6 +69,9 @@ void process_extstore_stats(ADD_STAT add_stats, conn *c) {
assert(add_stats);
void *storage = c->thread->storage;
+ if (storage == NULL) {
+ return;
+ }
extstore_get_stats(storage, &st);
st.page_data = calloc(st.page_count, sizeof(struct extstore_page_data));
extstore_get_page_data(storage, &st);
|
misc: leverage vlib_buffer_get_current in srp
Type: style | @@ -402,7 +402,7 @@ srp_control_input (vlib_main_t * vm,
b0 = vlib_get_buffer (vm, bi0);
- s0 = (void *) (b0->data + b0->current_data);
+ s0 = vlib_buffer_get_current(b0);
l2_len0 = vlib_buffer_length_in_chain (vm, b0);
l3_len0 = l2_len0 - STRUCT_OFFSET_OF (srp_generic_control_header_t, control);
|
script: allow setting path to java for reformat-java | @@ -41,4 +41,9 @@ if [ $# -gt 0 ]; then
else
source_files=$(git ls-files '*.java')
fi
-printf "%s\n" "$source_files" | sed -nE 's/(.*)/'"'"'\1'"'"'/p' | xargs java --illegal-access=permit -jar $FORMATTER_JAR --replace
+
+if [ -z "$JAVA" ]; then
+ JAVA=$(command -v java)
+fi
+
+printf "%s\n" "$source_files" | sed -nE 's... |
uorb/listener: ignore first get_state failed. | @@ -183,16 +183,10 @@ static int listener_add_object(FAR struct list_node *objlist,
}
ret = listener_get_state(object, &state);
- if (ret < 0)
- {
- free(tmp);
- return ret;
- }
-
tmp->object.meta = object->meta;
tmp->object.instance = object->instance;
tmp->timestamp = orb_absolute_time();
- tmp->generation = state.ge... |
Avoid two peek(1) calls when lexing """multi-line strings""" | @@ -1457,9 +1457,14 @@ static void readString(void)
case '"':
if (multiline) {
// Only """ ends a multi-line string
- if (peek(0) != '"' || peek(1) != '"')
+ if (peek(0) != '"')
break;
- shiftChars(2);
+ shiftChars(1);
+ if (peek(0) != '"') {
+ append_yylval_tzString('"');
+ break;
+ }
+ shiftChars(1);
}
goto finish;
@... |
add missing initialization of newly added flag | @@ -146,6 +146,7 @@ static void on_context_init(h2o_handler_t *_self, h2o_context_t *ctx)
client_ctx->first_byte_timeout = self->config.first_byte_timeout;
client_ctx->keepalive_timeout = self->config.keepalive_timeout;
client_ctx->tunnel_enabled = self->config.tunnel_enabled;
+ client_ctx->force_cleartext_http2 = 1;
c... |
Move NoSleep instance into . | @@ -6,6 +6,7 @@ function GPSCtrl($rootScope, $scope, $state, $http, $interval) {
$scope.$parent.helppage = 'plates/gps-help.html';
$scope.data_list = [];
$scope.isHidden = false;
+ $scope.noSleep = new NoSleep();
function connect($scope) {
if (($scope === undefined) || ($scope === null))
@@ -306,6 +307,9 @@ function GP... |
Add SceGxm nids | @@ -2287,11 +2287,43 @@ modules:
sceGxmVertexFence: 0xE05277D6
sceGxmVertexProgramGetProgram: 0xBC52320E
sceGxmWaitEvent: 0x8BD94593
+ SceGxmInternal:
+ kernel: false
+ nid: 0x3FE654E6
+ functions:
+ sceGxmCheckMemoryInternal: 0x88B424FB
+ sceGxmCreateRenderTargetInternal: 0xC8A0F04E
+ sceGxmGetDisplayQueueThreadIdInte... |
vere: retries read/write errors when copying binaries | @@ -1163,31 +1163,56 @@ _king_get_vere(c3_c* pac_c, c3_c* ver_c, c3_c* arc_c, c3_t lin_t)
return 0;
}
+static ssize_t
+_king_read_raw(c3_i fid_i, c3_y* buf_y, size_t len_i)
+{
+ ssize_t ret_i;
+
+ do {
+ ret_i = read(fid_i, buf_y, len_i);
+ }
+ while ( (ret_i < 0) && (errno == EINTR) );
+
+ return ret_i;
+}
+
static c3... |
Fix problems with anlog DC calibration value loading/saving
Force value readback from DACs when saving to INI file
Do not save auto-calibration start triggers as they can start calibration when loading INI | @@ -718,7 +718,17 @@ int LMS7002M::SaveConfig(const char* filename)
this->SetActiveChannel(ChA);
for (uint16_t i = 0; i < addrToRead.size(); ++i)
{
+ if (addrToRead[i] >= 0x5C3 && addrToRead[i] <= 0x5CA)
+ SPI_write(addrToRead[i], 0x4000); //perform read-back from DAC
dataReceived[i] = Get_SPI_Reg_bits(addrToRead[i], 1... |
trace: document the reference handling API for tracing. | @@ -19,6 +19,18 @@ int in_emitter_add_record(const char *tag, int tag_len,
const char *buf_data, size_t buf_size,
struct flb_input_instance *in);
+// To avoid double frees when enabling and disabling tracing as well
+// as avoiding race conditions when stopping fluent-bit while someone is
+// toggling tracing via the H... |
[ymake] add NO_NEED_CHECK macro | @@ -2743,6 +2743,11 @@ macro NEED_CHECK(Flags...) {
ENABLE(UNUSED_MACRO)
}
+### Commits to the project marked with this macro will not be affected by higher-level NEED_CHECK macro.
+macro NO_NEED_CHECK(Flags...) {
+ ENABLE(UNUSED_MACRO)
+}
+
### Mark the project as needing review.
### Reviewers are listed in the macro ... |
Makefile: revert to c11 from c17, as not-so-old MacOS systems (via clang) don't know c17 | @@ -26,7 +26,7 @@ LD = $(CC)
BIN := honggfuzz
HFUZZ_CC_BIN := hfuzz_cc/hfuzz-cc
HFUZZ_CC_SRCS := hfuzz_cc/hfuzz-cc.c
-COMMON_CFLAGS := -std=c17 -I/usr/local/include -D_GNU_SOURCE -Wall -Wextra -Werror -Wno-format-truncation -Wno-override-init -I.
+COMMON_CFLAGS := -std=c11 -I/usr/local/include -D_GNU_SOURCE -Wall -Wext... |
Launch more programs at startup | @@ -107,6 +107,23 @@ static void rainbow() {
panic("noreturn");
}
+static void paintbrush() {
+ const char* program_name = "paintbrush";
+ FILE* fp = initrd_fopen(program_name, "rb");
+ char* argv[] = {program_name, NULL};
+ elf_load_file(program_name, fp, argv);
+ panic("noreturn");
+}
+
+static void textpad() {
+ con... |
s390x assembly pack: remove poly1305 dependency on non-base memnonics | use strict;
use FindBin qw($Bin);
use lib "$Bin/../..";
-use perlasm::s390x qw(:DEFAULT :VX AUTOLOAD LABEL INCLUDE);
+use perlasm::s390x qw(:DEFAULT :LD :GE :EI :MI1 :VX AUTOLOAD LABEL INCLUDE);
my $flavour = shift;
|
common/onewire.c: Format with clang-format
BRANCH=none
TEST=none
Tricium: disable | */
#define T_RSTL 602 /* Reset low pulse; 600-960 us */
#define T_MSP 72 /* Presence detect sample time; 70-75 us */
-#define T_RSTH (68 + 260 + 5 + 2) /* Reset high; tPDHmax + tPDLmax + tRECmin \
+#define T_RSTH \
+ (68 + 260 + 5 + 2) /* Reset high; tPDHmax + tPDLmax + tRECmin \
*/
#define T_SLOT 70 /* Timeslot; >67 u... |
metadata: Allocate memory with ENV_MEM_NOIO flag | @@ -375,7 +375,7 @@ static int metadata_io_i_asynch(ocf_cache_t cache, ocf_queue_t queue, int dir,
if (count == 0)
return 0;
- a_req = env_vzalloc(sizeof(*a_req));
+ a_req = env_vzalloc_flags(sizeof(*a_req), ENV_MEM_NOIO);
if (!a_req)
return -OCF_ERR_NO_MEM;
|
Fix console widget ctor | #include <Utils.h>
Console::Console(Options& aOptions, PersistentState& aPersistentState, LuaVM& aVm)
- : Widget("Console", "scripting")
+ : Widget("Console")
, m_options(aOptions)
, m_persistentState(aPersistentState)
, m_vm(aVm)
|
Fix jsonptr's JSON output for CBOR simple values | @@ -1122,7 +1122,7 @@ write_cbor_simple_value(uint64_t tag, wuffs_base__slice_u8 s) {
}
if (!g_flags.output_cbor_metadata_as_json_comments) {
- return nullptr;
+ return write_dst("null", 4);
}
uint8_t buf[WUFFS_BASE__U64__BYTE_LENGTH__MAX_INCL];
size_t n = wuffs_base__render_number_u64(
|
doc UPDATE remove obsolete info | @@ -38,7 +38,6 @@ intermediary process (daemon). If there are several such daemons, they can be wr
- Sysrepo is __only a library__ so there is no stand-alone process
- all data are always __separated by YANG schemas__ which has many consequences such as allowing concurrent work
with different schemas
-- __fixed YANG sc... |
interface: static height for embedded images | @@ -84,7 +84,8 @@ export function RemoteContentImageEmbed(
referrerPolicy="no-referrer"
flexShrink={0}
src={url}
- height="100%"
+ height="192px"
+ maxWidth="192px"
width="100%"
objectFit="contain"
borderRadius={2}
|
dgram_pair_read_inner(): Do not move buf pointer if it is NULL | @@ -745,6 +745,7 @@ static size_t dgram_pair_read_inner(struct bio_dgram_pair_st *b, uint8_t *buf, s
ring_buf_pop(&b->rbuf, src_len);
+ if (buf != NULL)
buf += src_len;
total_read += src_len;
sz -= src_len;
|
updates ASN.1 %oct to explicitly track byte-length | [%bit bit=@ux]
:: %oct: octets in little-endian byte order
::
- [%oct oct=@ux]
+ [%oct len=@ud oct=@ux]
:: %nul: fully supported!
::
[%nul ~]
:: presumed to be already padded to a byte boundary
::
[%bit *] [0 (rip 3 bit.pec)]
- [%oct *] (rip 3 oct.pec)
+ :: padded to byte-width
+ ::
+ [%oct *] =/ a (rip 3 oct.pec)
+ =/... |
Clarify KEEPALIVE EDNS0 option operation | @@ -961,6 +961,10 @@ parse_edns_options_from_query(uint8_t* rdata_ptr, size_t rdata_len,
* received one message with a TCP Keepalive EDNS option, and that
* option must have 0 length data. Subsequent messages sent on that
* connection will have a TCP Keepalive option.
+ *
+ * In the if-statement below, the option is ad... |
Added .visit details | @@ -28,13 +28,55 @@ conventions. While this may appear to be inconvenient, it removes the
possibility that VisIt will include a file that is not in the database. It
also frees VisIt from having to know about dozens of ad hoc file naming
conventions. Having a ``.visit`` file also allows VisIt to make certain
-optimizati... |
odyssey: change verbosity for incoming cancel request log msg | @@ -958,7 +958,7 @@ void od_frontend(void *arg)
/* handle cancel request */
if (client->startup.is_cancel) {
- od_debug(&instance->logger, "startup", client, NULL,
+ od_log(&instance->logger, "startup", client, NULL,
"cancel request");
od_routercancel_t cancel;
od_routercancel_init(&cancel);
|
Make ASE memory management more like real FPGA pinned buffers.
This can be valuable when managing pinning automatically, such as in MPF. For
normal simulation there is no visible difference. | @@ -398,7 +398,8 @@ static int ase_pt_pin_page(uint64_t va, uint64_t *iova, int pt_level)
assert((pt_level >= 0) && (pt_level < 3));
// Virtual to physical mapping is just an XOR
- *iova = ase_host_memory_va_to_pa(va, 4096 * (1UL << (9 * pt_level)));
+ uint64_t length = 4096 * (1UL << (9 * pt_level));
+ *iova = ase_hos... |
Move parallel hyperplanes after skewing on a per cc basis | @@ -3377,19 +3377,29 @@ PlutoConstraints *get_skewing_constraints(bool *src_dims, bool *skew_dims,
return skewCst;
}
-int get_outermost_sat_dim(int scc_id, bool *src_dims, PlutoProg *prog) {
+int get_outermost_sat_level(int scc_id, bool *src_dims, PlutoProg *prog) {
int max_dim = prog->ddg->sccs[scc_id].max_dim;
- for ... |
Add test CI. | @@ -292,3 +292,27 @@ void test_full(void)
// write info
}
+
+void test_rd_idx_wrap()
+{
+ tu_fifo_t ff10;
+ uint8_t buf[10];
+ uint8_t dst[10];
+
+ tu_fifo_config(&ff10, buf, 10, 1, 1);
+
+ uint16_t n;
+
+ ff10.wr_idx = 6;
+ ff10.rd_idx = 15;
+
+ n = tu_fifo_read_n(&ff10, dst, 4);
+ TEST_ASSERT_EQUAL(n, 4);
+ TEST_ASSE... |
Add jsonapi.c to Mkvcbuild.pm's
My recent commit caused
some buildfarm breakage, as reported by Tom Lane. Try to repair.
This fix is extracted from a larger patch by Andrew Dunstan.
Discussion:
Discussion: | @@ -121,7 +121,7 @@ sub mkvcbuild
our @pgcommonallfiles = qw(
base64.c config_info.c controldata_utils.c d2s.c encnames.c exec.c
- f2s.c file_perm.c ip.c
+ f2s.c file_perm.c ip.c jsonapi.c
keywords.c kwlookup.c link-canary.c md5.c
pg_lzcompress.c pgfnames.c psprintf.c relpath.c rmtree.c
saslprep.c scram-common.c string... |
tools: fix resuming vm issue in acrnctl
This patch changes vm resuming condition from VM_STARTED to VM_PAUSED | @@ -475,12 +475,8 @@ static int acrnctl_do_resume(int argc, char *argv[])
continue;
}
- /* Per current implemention, we can't know if vm is in suspended
- state. Send reume cmd to acrn-dm when VM_STARTED and will
- correct it later when we have a way to check if vm has been
- suspended */
switch (s->state) {
- case VM_... |
maps/libs/mongo -> maps/libs/deprecated/mongo | +ALLOW maps/masstransit/info -> maps/libs/deprecated/mongo
+ALLOW taxi/tools/dorblu -> maps/libs/deprecated/mongo
+
ALLOW maps/libs/deprecated -> maps/libs/deprecated
DENY .* -> maps/libs/deprecated
|
Minor tweaks, fixes to routing instruction generation | @@ -144,17 +144,23 @@ namespace carto {
std::string RoutingResultBuilder::calculateDistance(double distance) const {
std::stringstream ss;
if (distance < 1000) {
- ss << std::setprecision(distance >= 10 ? 0 : 1) << distance << "m";
+ ss << std::fixed << std::setprecision(distance >= 10 ? 0 : 1) << distance << "m";
} el... |
Move uuid and label push inside log_extension_init | @@ -306,6 +306,11 @@ static void log_extension_init(log_ext ext)
assert(push_buffer(ext->staging, alloca_wrap_buffer(tfs_magic, TFS_MAGIC_BYTES)));
push_varint(ext->staging, TFS_VERSION);
push_varint(ext->staging, range_span(ext->sectors));
+ if (ext->sectors.start == 0) {
+ assert(buffer_write(ext->staging, ext->tl->f... |
Directory Value: Remove outdated limitation | @@ -191,5 +191,3 @@ sudo kdb umount user/tests/directoryvalue
- use `___dirdata:` at the beginning of a normal value in the first array element
!
-
-- The plugin is [quite slow](https://issues.libelektra.org/2281).
|
Fix use of temporary after destruction in sol_ImGui | @@ -200,11 +200,14 @@ namespace sol_ImGui
inline void EndCombo() { ImGui::EndCombo(); }
inline std::tuple<int, bool> Combo(const std::string& label, int currentItem, const sol::table& items, int itemsCount)
{
+ TiltedPhoques::Vector<std::string> strings;
+ strings.reserve(itemsCount);
TiltedPhoques::Vector<const char*>... |
Avoid memory leak of parent on allocation failure for child structure | @@ -647,9 +647,11 @@ int cms_main(int argc, char **argv)
if (key_param == NULL || key_param->idx != keyidx) {
cms_key_param *nparam;
nparam = app_malloc(sizeof(*nparam), "key param buffer");
- nparam->idx = keyidx;
- if ((nparam->param = sk_OPENSSL_STRING_new_null()) == NULL)
+ if ((nparam->param = sk_OPENSSL_STRING_ne... |
board/imxrt1050-evk/imxrt_boot.c : Add watchdog initialization
Add imxrt 1050 watchdog initialization in boot code.
There are two watchdogs in imxrt1050, but now we use only one temporarily.(WDOG1) | #include "imxrt_semc_sdram.h"
#endif
+#ifdef CONFIG_WATCHDOG
+#include <tinyara/watchdog.h>
+#include "imxrt_wdog.h"
+#endif
+
#ifdef CONFIG_ANALOG
#include "imxrt_adc.h"
#endif
@@ -260,6 +265,10 @@ void board_initialize(void)
imxrt_spi_initialize();
+#ifdef CONFIG_WATCHDOG
+ imxrt_wdog_initialize(CONFIG_WATCHDOG_DEVPA... |
line 248 in bugathon table | @@ -18,14 +18,14 @@ scope dash
Send metrics from nginx to Datadog at `ddoghost`, using an environment variable and all other defaults:
```
-SCOPE_METRIC_DEST=udp://ddoghost:5000 ldscope nginx
+LD_PRELOAD=/opt/scope/libscope.so SCOPE_METRIC_DEST=udp://ddoghost:8125 nginx
```
#### Example 3:
Send configured events from c... |
Release preparation: Fixed gen_pack.bat.
Relocated CMSIS/DSP/Lib was not copied. | @@ -63,6 +63,7 @@ XCOPY /Q /S /Y ..\..\CMSIS\DSP\Include\*.* %RELEASE_PATH%\CMSIS\DSP\Include\*.*
XCOPY /Q /S /Y ..\..\CMSIS\DSP\Source\*.* %RELEASE_PATH%\CMSIS\DSP\Source\*.*
XCOPY /Q /S /Y ..\..\CMSIS\DSP\Projects\*.* %RELEASE_PATH%\CMSIS\DSP\Projects\*.*
XCOPY /Q /S /Y ..\..\CMSIS\DSP\Examples\*.* %RELEASE_PATH%\CMS... |
[BSP] Disable failing HAL modules for F7-Discovery | #define HAL_ADC_MODULE_ENABLED
#define HAL_CAN_MODULE_ENABLED
#define HAL_CEC_MODULE_ENABLED
-#define HAL_CRC_MODULE_ENABLED
+/* #define HAL_CRC_MODULE_ENABLED */
/* #define HAL_CRYP_MODULE_ENABLED */
#define HAL_DAC_MODULE_ENABLED
#define HAL_DCMI_MODULE_ENABLED
#define HAL_SMARTCARD_MODULE_ENABLED
#define HAL_WWDG_MO... |
Add navigation to the Readme | @@ -5,6 +5,27 @@ A Vulkan and OpenGL overlay for monitoring FPS, temperatures, CPU/GPU load and m
#### Example:

+# Navigation
+- [Installation](#installation)
+ - [Build](#build)
+ - [Dependencies](#dependencies)
+ - [Building with build script](#building-with-build-script)
+ - [Pre-pack... |
Reverse output order | @@ -322,6 +322,11 @@ int main(int argc, char *argv[])
gettimeofday(&etime, NULL);
+ if (jout.rc == 0) {
+ ht_dump(&hashtable);
+ table3_dump(t3, jout.t3_produced);
+ }
+
fprintf(stdout, "Action version: %llx\n"
"Checkpoint: %016llx\n"
"ReturnCode: %lld\n"
@@ -331,11 +336,6 @@ int main(int argc, char *argv[])
(long long... |
system/nxplayer/nxplayer.c: Fix build error when only enable CONFIG_AUDIO_EXCLUDE_VOLUME is enabled. | @@ -969,11 +969,10 @@ static void *nxplayer_playthread(pthread_addr_t pvarg)
#ifndef CONFIG_AUDIO_EXCLUDE_VOLUME
(void)nxplayer_setvolume(pPlayer, pPlayer->volume);
-#endif
-
#ifndef CONFIG_AUDIO_EXCLUDE_BALANCE
nxplayer_setbalance(pPlayer, pPlayer->balance);
#endif
+#endif
#ifndef CONFIG_AUDIO_EXCLUDE_TONE
nxplayer_se... |
matekf411rx: add serial variant | "BRUSHLESS_TARGET": "",
"RX_REDPINE": ""
}
+ },
+ {
+ "name": "brushless.serial",
+ "defines": {
+ "BRUSHLESS_TARGET": "",
+ "RX_UNIFIED_SERIAL": ""
+ }
}
]
},
|
Handle PQPING_MIRROR_READY in pg_ctl start do_wait switch
The pg_ctl response output for PQPING_MIRROR_READY was missing in
We
just need it to say the mirror has started.
Reported by Daniel Gustafsson in gpdb-dev mailing list:
https://groups.google.com/a/greenplum.org/forum/#!topic/gpdb-dev/oNrxvVEG-UY | @@ -799,6 +799,10 @@ do_start(void)
print_msg(_(" stopped waiting\n"));
print_msg(_("server is still starting up\n"));
break;
+ case PQPING_MIRROR_READY:
+ print_msg(_(" done\n"));
+ print_msg(_("server started in mirror mode\n"));
+ break;
case PQPING_MIRROR_OR_QUIESCENT:
print_msg(_(" done\n"));
print_msg(_("server s... |
Set dispmanx window opacity to 255 | @@ -19,6 +19,7 @@ typedef uint32_t DISPMANX_UPDATE_HANDLE_T;
typedef uint32_t DISPMANX_ELEMENT_HANDLE_T;
typedef uint32_t DISPMANX_RESOURCE_HANDLE_T;
typedef uint32_t DISPMANX_PROTECTION_T;
+typedef uint32_t DISPMANX_FLAGS_ALPHA_T;
typedef struct tag_VC_RECT_T {
int32_t x;
int32_t y;
@@ -30,6 +31,11 @@ typedef struct {... |
[numerics] remove C-style init for when BUILD_AS_CPP=YES. | int main(void)
{
double x[2];
- unsigned short xsubi1[] = {0., 0., 0.};
- unsigned short xsubi2[] = {0., 0., 0.};
+ unsigned short xsubi1[] = {0, 0, 0};
+ unsigned short xsubi2[] = {0, 0, 0};
x[0] = 50*erand48(xsubi1);
x[1] = 50*erand48(xsubi2);
/* column major */
@@ -66,13 +66,12 @@ int main(void)
double q[2] = { x[0]... |
Fix incorrect password response forwarding | @@ -964,7 +964,7 @@ od_auth_backend(od_server_t *server, machine_msg_t *msg)
case KIWI_BE_ERROR_RESPONSE:
od_backend_error(server, "auth", machine_msg_data(msg),
machine_msg_size(msg));
- machine_msg_free(msg);
+ server->error_connect = msg;
return -1;
default:
machine_msg_free(msg);
|
ci: disable linux option on ansi only | @@ -124,6 +124,7 @@ packages:
- '--buildtype=debugoptimized'
- "-Dbuild_tests=true"
- "-Ddisable_posix_option=true"
+ - "-Ddisable_linux_option=true"
- '@THIS_SOURCE_DIR@'
environ:
C: 'gcc-10'
|
Testing: Add test for second order packing | @@ -106,17 +106,42 @@ res=`${tools_dir}/grib_get -w count=1 -l 0,0 lfpw.grib1`
g1files="lfpw.grib1
gen_ext_spd_2.grib
gen_ext_spd_3.grib"
-temp_grib1=temp.grib_second_order.grib
+temp1=temp1.grib_second_order.grib
temp_stat1=temp.grib_second_order.stat1
temp_stat2=temp.grib_second_order.stat2
for f1 in $g1files; do
# T... |
s390x: Optimize kmac
Use hardware acceleration for kmac on s390x. Since klmd does not support
kmac, perform padding of the last block by hand and use kimd. Yields a
performance improvement of between 2x and 3x. | @@ -177,7 +177,8 @@ static int s390x_shake_final(unsigned char *md, void *vctx)
return 1;
}
-static int s390x_keccak_final(unsigned char *md, void *vctx) {
+static int s390x_keccakc_final(unsigned char *md, void *vctx, int padding)
+{
KECCAK1600_CTX *ctx = vctx;
size_t bsz = ctx->block_size;
size_t num = ctx->bufsz;
@@... |
os/fs/smartfs: Remove redundant check for end of file sectors
The check for the end of file sectors is done at the beginning of the
while loop, don't need to check again at the end. | @@ -576,14 +576,6 @@ static ssize_t smartfs_read(FAR struct file *filep, char *buffer, size_t buflen)
sf->currsector = SMARTFS_NEXTSECTOR(header);
sf->curroffset = sizeof(struct smartfs_chain_header_s);
-
- /* Test if at end of data */
-
- if (sf->currsector == SMARTFS_ERASEDSTATE_16BIT) {
- /* No more data! Return wha... |
Clarify log message if server sends back unknown status for HELLO
Tested-by: Build Bot | @@ -522,6 +522,7 @@ SessionRequestImpl::handle_read(lcbio_CTX *ioctx)
} else if (isUnsupported(status)) {
lcb_log(LOGARGS(this, DEBUG), SESSREQ_LOGFMT "Server does not support HELLO", SESSREQ_LOGID(this));
} else {
+ lcb_log(LOGARGS(this, ERROR), SESSREQ_LOGFMT "Unexpected status 0x%x received for HELLO", SESSREQ_LOGID... |
hal/i2s: remove duplicated code in i2s_hal_rx_set_pdm_mode_default | @@ -141,9 +141,6 @@ void i2s_hal_rx_set_pdm_mode_default(i2s_hal_context_t *hal)
i2s_ll_rx_enable_pdm(hal->dev, true);
/* set pdm rx downsample number */
i2s_ll_rx_set_pdm_dsr(hal->dev, I2S_PDM_DSR_8S);
-#if !SOC_I2S_SUPPORTS_TDM
- i2s_ll_rx_force_enable_fifo_mod(hal->dev, true);
-#endif
#if SOC_I2S_SUPPORTS_TDM
i2s_ll... |
ds json BUGFIX missing plugin name in wrn messages | @@ -277,7 +277,7 @@ srpds_json_destroy(const struct lys_module *mod, sr_datastore_t ds)
}
if ((unlink(path) == -1) && ((errno != ENOENT) || (ds == SR_DS_STARTUP))) {
/* only startup is persistent and must always exist */
- SRPLG_LOG_WRN("Failed to unlink \"%s\" (%s).", path, strerror(errno));
+ SRPLG_LOG_WRN(srpds_name... |
internalnotification: redo cmake formatting | include (LibAddMacros)
-add_plugin (internalnotification
- SOURCES
- internalnotification.h
- internalnotification.c
- ADD_TEST
- LINK_ELEKTRA
- elektra-kdb
- )
+add_plugin (internalnotification SOURCES internalnotification.h internalnotification.c ADD_TEST LINK_ELEKTRA elektra-kdb)
|
suppress most rocr-runtime warnings | diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
-index 37a9b09..5b223b2 100644
+index 65a039c..9884fc8 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
+@@ -110,7 +110,7 @@ else ()
+ endif ()
+
+ ## ------------------------- Linux Compiler and Linker options -------------------------
+-set ( CMAKE_CXX_FLAG... |
Work CI-CD
Fix compile definitions adding wrong option.
***NO_CI*** | @@ -548,7 +548,7 @@ macro(nf_setup_target_build_common)
nf_add_platform_include_directories(${NANOCLR_PROJECT_NAME})
# set compile options
- nf_set_compile_options(TARGET ${NANOCLR_PROJECT_NAME}.elf EXTRA_COMPILE_OPTIONS ${NFSTBC_BOOTER_EXTRA_COMPILE_OPTIONS})
+ nf_set_compile_options(TARGET ${NANOCLR_PROJECT_NAME}.elf... |
Make sure FB pixels is always aligned. | #include <stdint.h>
#include "imlib.h"
#include "mutex.h"
+#include "common.h"
typedef struct framebuffer {
int32_t x,y;
@@ -21,7 +22,7 @@ typedef struct framebuffer {
int32_t bpp;
int32_t streaming_enabled;
// NOTE: This buffer must be aligned on a 16 byte boundary
- uint8_t pixels[];
+ OMV_ATTR_ALIGNED(uint8_t pixels... |
linenoise UPDATE support hints longer than line | @@ -414,7 +414,10 @@ static char completeLine(struct linenoiseState *ls) {
/* Learn the number of hints that fit a line */
hint_line_count = 0;
- while (1) {
+ do {
+ /* Still fits, always at least one hint */
+ ++hint_line_count;
+
char_count = 0;
if (hint_line_count) {
char_count += hint_line_count * (hint_len + 2);
... |
hark-graph-hook: fix muting on %remove-graph
*_watching was bunting to watching (i.e. a no-op), causing watching to
be wiped everytimne a graph was removed | ++ remove-graph
|= rid=resource
=/ unwatched
- %- ~(gas in *_watching)
+ %- ~(gas in *(set [resource index:graph-store]))
%+ skim ~(tap in watching)
|= [r=resource idx=index:graph-store]
=(r rid)
|
makefile: define HAVE_TM_TM_ZONE and HAVE_TM_TM_GMTOFF to 1 | @@ -343,12 +343,12 @@ int main(void) {\\n\
ifeq ($(call TRY_COMPILE, $(FIO_TEST_STRUCT_TM_TM_ZONE), $(EMPTY)), 0)
$(info * Detected 'tm_zone' field in 'struct tm')
- FLAGS:=$(FLAGS) HAVE_TM_TM_ZONE
+ FLAGS:=$(FLAGS) HAVE_TM_TM_ZONE=1
endif
ifeq ($(call TRY_COMPILE, $(FIO_TEST_STRUCT_TM_TM_GMTOFF), $(EMPTY)), 0)
$(info ... |
use svn info by default | @@ -329,11 +329,14 @@ def main(header, footer, line):
else:
scm_data = "Svn info:\n" + indent + "no hg info\n"
else:
- rev_dict = {}
+ rev_dict = get_svn_dict(arc_root, arc_root, python_cmd=python_cmd) or {}
+ if rev_dict:
+ rev_dict['vcs'] = 'svn'
+ scm_data = get_svn_scm_data(rev_dict)
+ else:
scm_data = "Svn info:\n... |
[mqtt] Allow the use of non-/ start topics | @@ -232,7 +232,7 @@ static int iotx_mc_check_rule(char *iterm, iotx_mc_topic_type_t type)
// 0, topic name is valid; NOT 0, topic name is invalid
static int iotx_mc_check_topic(const char *topicName, iotx_mc_topic_type_t type)
{
- if (NULL == topicName || '/' != topicName[0]) {
+ if (NULL == topicName) {
return FAIL_RE... |
mv OpenHPC.local.repo up to top-level | @@ -133,15 +133,16 @@ foreach my $distro (@distros) {
}
}
- # exclude OBS created .repo file
- $tar_args .= "--exclude $distro/OpenHPC:$release.repo"
+ # exclude any OBS created .repo files
+ $tar_args .= "--exclude $distro/OpenHPC*.repo"
+ $tar_args .= "--exclude $distro/updates/OpenHPC*.repo"
# cd to $tmp_dir
$tar_ar... |
e_os.h: add prandom and hwrng to the list of random devices on s390x. | @@ -58,8 +58,12 @@ extern "C" {
* set this to a comma-separated list of 'random' device files to try out. By
* default, we will try to read at least one of these files
*/
+# if defined(__s390__)
+# define DEVRANDOM "/dev/prandom","/dev/urandom","/dev/hwrng","/dev/random"
+# else
# define DEVRANDOM "/dev/urandom","/dev/... |
Refactoring: Re-intro automatic action_base offset addition even though I think it is confusing | @@ -209,6 +209,8 @@ static int hw_snap_mmio_write32(struct snap_card *card,
int rc = -1;
if ((card) && (card->afu_h)) {
+ offset += card->action_base; /* FIXME use action_*32 instead */
+
reg_trace(" %s(%p, %llx, %lx)\n", __func__, card,
(long long)offset, (long)data);
rc = cxl_mmio_write32(card->afu_h, offset, data);
... |
Add HasHeader to library/http/io/headers | @@ -64,6 +64,15 @@ THttpHeaders::THttpHeaders(IInputStream* stream) {
}
}
+bool THttpHeaders::HasHeader(const TString& header) const {
+ for (THeaders::const_iterator h = Headers_.begin(); h != Headers_.end(); ++h) {
+ if (stricmp(~h->Name(), ~header) == 0) {
+ return true;
+ }
+ }
+ return false;
+}
+
void THttpHeader... |
[kernel] slightly modify DEBUG message | @@ -1879,9 +1879,9 @@ bool MoreauJeanOSI::addInteractionInIndexSet(SP::Interaction inter, unsigned int
DEBUG_PRINTF("MoreauJeanOSI::addInteractionInIndexSet of level = %i yref=%e, yDot=%e, y_estimated=%e., _constraintActivationThreshold=%e\n", i, y, yDot, y + gamma * h * yDot, _constraintActivationThreshold);
y += gamm... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.