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 why
val tiles = allTilesInfo.sortWith(_._1.hartId < _._1.hartId).map {
case (param, crossing) => {
val (tile, rocketLogicalTree) = param match {
|
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_HEADER;
should_flush = 0;
+ }
goto flash_do_more;
}
break;
|
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_CONTROL, ACTION_IRQ_CONTROL_ON);
}
return snap_mmio_write32(card, ACTION_CONTROL, ACTION_CONTROL_START);
|
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
-endmenu
-
-
+config RT_RTC_NAME
+ string "RT_RTC_NAME"
+ default rtc
\ No newline at end of file
|
[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 -P httpd_setrlimit on
+##
server.max-fds = 16384
##
|
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:
PORTABILITY += -DSPEC_NO_VAR_ARRAY_REDUCE
- 519.clvleaf_t:
+ 519.clvleaf_t,619.clvleaf_s:
FOPTIMIZE += -Mx,201,2 # workaround for map copy issue
%endif
|
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 pad directory index
+ histf = open(dest+'/rand_list.dat','w')
for count in np.arange(randsize):
tup = []
+ if count == 0:
+ header = 'trial '
+ current_line = 'rand_'+np.str(count).zfill(n)+' '
for ii in np.arange(len(iterables0)):
tup.append(iterables0[ii][count])
+ if count == 0:
+ header += flist[iter_file[ii]][:-3]+'/'+iter_name[ii]+' '
+ current_line += '%f'%iterables0[ii][count]+' '
+
+ if count == 0:
+ histf.write(header+'\n')
+ histf.write(current_line+'\n')
destfull = os.path.join(dest,trial) #create directory for this combination
destfull += 'rand_'+np.str(count).zfill(n)
@@ -370,6 +382,16 @@ elif numvars >= 1:
fOut.close()
+ histf.close()
+
+ for ii in np.arange(len(iterables0)):
+ plt.figure(figsize=(8,8))
+ plt.hist(iterables0[ii],histtype='stepfilled',color='0.5',edgecolor='None')
+ plt.xlabel(iter_name[ii])
+ plt.ylabel('Number of trials')
+ plt.savefig(dest+'/hist_'+flist[iter_file[ii]][:-3]+'_'+iter_name[ii]+'.pdf')
+ plt.close()
+
# Just do this block if you want to
if(False):
# Now that all the simulation directories have been populated,
|
[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) / 10000);
@@ -242,6 +237,9 @@ rt_spi_flash_device_t rt_sfud_flash_probe(const char *spi_flash_dev_name, const
rt_spi_flash_device_t rtt_dev = RT_NULL;
sfud_flash *sfud_dev = RT_NULL;
char *spi_flash_dev_name_bak = RT_NULL, *spi_dev_name_bak = RT_NULL;
+ /* using default flash SPI configuration for initialize SPI Flash
+ * @note you also can change the SPI to other configuration after initialized finish */
+ struct rt_spi_configuration cfg = RT_SFUD_DEFAULT_SPI_CFG;
extern sfud_err sfud_device_init(sfud_flash *flash);
RT_ASSERT(spi_flash_dev_name);
@@ -269,9 +267,6 @@ rt_spi_flash_device_t rt_sfud_flash_probe(const char *spi_flash_dev_name, const
goto error;
}
sfud_dev->spi.name = spi_dev_name_bak;
- /* using default flash SPI configuration for initialize SPI Flash
- * @note you also can change the SPI to other configuration after initialized finish */
- struct rt_spi_configuration cfg = RT_SFUD_DEFAULT_SPI_CFG;
rt_spi_configure(rtt_dev->rt_spi_device, &cfg);
/* initialize lock */
rt_mutex_init(&(rtt_dev->lock), spi_flash_dev_name, RT_IPC_FLAG_FIFO);
|
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.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{archive_file_path}" "{object_file}"
-recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" {compiler.c.elf.flags} -mcpu={build.mcu} "-T{build.variant.path}/{build.ldscript}" "-Wl,-Map,{build.path}/{build.project_name}.map" {compiler.c.elf.extra_flags} -o "{build.path}/{build.project_name}.elf" "-L{build.path}" -lm -lgcc -mthumb -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-unresolved-symbols -Wl,--start-group {object_files} -Wl,--whole-archive "{build.path}/{archive_file}" -Wl,--no-whole-archive -Wl,--end-group
+recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" {compiler.c.elf.flags} -mcpu={build.mcu} "-T{build.variant.path}/{build.ldscript}" "-Wl,-Map,{build.path}/{build.project_name}.map" {compiler.c.elf.extra_flags} -o "{build.path}/{build.project_name}.elf" "-L{build.path}" -lm -lgcc -mthumb -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-unresolved-symbols -Wl,--start-group {object_files} -Wl,--whole-archive {compiler.libraries.ldflags} "{build.path}/{archive_file}" -Wl,--no-whole-archive -Wl,--end-group
## Create eeprom
recipe.objcopy.eep.pattern=
|
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_ENTROPY_MIN_PLATFORM
* and #MBEDTLS_ENTROPY_BLOCK_SIZE.
* It must be less or equal to
* #MBEDTLS_ENTROPY_MAX_SEED_SIZE.
|
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 function is not supported
+```
+
## 5.pal_kill()
### Description
|
[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 = "0xfcf6d76706e66250dbacc9827bc427321edb9542d58a74a67624b253960465ca";
wallet_config.prikeyCtx_config.prikey_genMode = BOAT_WALLET_PRIKEY_GENMODE_EXTERNAL_INJECTION;
wallet_config.prikeyCtx_config.prikey_format = BOAT_WALLET_PRIKEY_FORMAT_NATIVE;
wallet_config.prikeyCtx_config.prikey_type = BOAT_WALLET_PRIKEY_TYPE_SECP256K1;
|
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;
for (uint32_t i = 0; i < nframes;) {
+ /* handle every events that happrens at the frame "i" */
while (ev_index < nev && next_ev_frame == i) {
const clap_event_header_t *hdr = process->in_events->get(process->in_events, ev_index);
if (hdr->time != i) {
@@ -198,13 +199,17 @@ static clap_process_status my_plug_process(const struct clap_plugin *plugin,
my_plug_process_event(plug, hdr);
++ev_index;
+
if (ev_index == nev) {
+ // we reached the end of the event list
next_ev_frame = nframes;
+ break;
}
}
- const uint32_t until_frame = next_ev_frame < nframes ? next_ev_frame : nframes;
- for (; i < until_frame; ++i) {
+ /* process every samples until the next event */
+ for (; i < next_ev_frame; ++i) {
+ // fetch input samples
const float in_l = process->audio_inputs[0].data32[0][i];
const float in_r = process->audio_inputs[0].data32[1][i];
@@ -212,6 +217,7 @@ static clap_process_status my_plug_process(const struct clap_plugin *plugin,
const float out_l = in_r;
const float out_r = in_l;
+ // store output samples
process->audio_outputs[0].data32[0][i] = out_l;
process->audio_outputs[0].data32[1][i] = out_r;
}
|
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_new_str_lit(mrb, E_RUNTIME_ERROR, "This channel has already been waiting. It can't be called multiple times for same channel object concurrently");
+ }
+
attach_receiver(ctx, *receiver);
return mrb_nil_value();
|
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 diagnose problems. MsQuic has extensive logs in the code to facilitate debugging.
## Windows
@@ -117,8 +117,12 @@ QUIC_PERF_COUNTER_WORK_OPER_COMPLETED | Total worker operations processed ever
## Windows Performance Monitor
-On the latest version of Windows, these counters are also exposed via PerfMon.exe under the `QUIC Performance Counters` category. The values exposed via PerfMon **only represent kernel mode usages** of MsQuic, and do not include user mode counters. Counters are also captured at the beginning of MsQuic ETW traces, and unlike PerfMon, include all MsQuic instances running on the system, both user and kernel mode.
+On the latest version of Windows, these counters are also exposed via PerfMon.exe under the `QUIC Performance Diagnostics` category. The values exposed via PerfMon **only represent kernel mode usages** of MsQuic, and do not include user mode counters.
![](images/perfmon.png)
+## ETW
+
+Counters are also captured at the beginning of MsQuic ETW traces, and unlike PerfMon, includes all MsQuic instances running on the system, both user and kernel mode.
+
# FAQ
|
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_DESTROY(container->key), (++container))
#undef FIO_HASH_FOR_EMPTY
|
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_FLAG_DEFAULT)) {
- sk_X509_free(sk_untrusted);
+ if (DANETLS_ENABLED(dane) && dane->certs != NULL
+ && !X509_add_certs(sk_untrusted, dane->certs, X509_ADD_FLAG_DEFAULT))
goto memerr;
- }
- }
/*
* Still absurdly large, but arithmetically safe, a lower hard upper bound
@@ -3306,14 +3303,15 @@ static int build_chain(X509_STORE_CTX *ctx)
}
int_err:
- sk_X509_free(sk_untrusted);
ERR_raise(ERR_LIB_X509, ERR_R_INTERNAL_ERROR);
ctx->error = X509_V_ERR_UNSPECIFIED;
+ sk_X509_free(sk_untrusted);
return -1;
memerr:
ERR_raise(ERR_LIB_X509, ERR_R_MALLOC_FAILURE);
ctx->error = X509_V_ERR_OUT_OF_MEM;
+ sk_X509_free(sk_untrusted);
return -1;
}
|
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 user running <codeph>gpbackup</codeph> or <codeph>gpbackup</codeph> in
+ home directory of the user running <codeph>gpbackup</codeph> or <codeph>gprestore</codeph> in
the same directory as the utilities (<codeph>$GPHOME/bin</codeph>). A utility issues a
message if it cannot locate a <codeph>gp_email_contacts.yaml</codeph> file in either
location. If both locations contain a <codeph>.yaml</codeph> file, the utility uses the file
@@ -483,7 +483,9 @@ public.sales_1_prt_dec17 </codeblock></p><p>Then
number of objects backed up or restored. For information about the contents of a
notification email, see <xref href="#topic_qgj_b3d_tbb/report_files" format="dita"/>.</p>
<note>The UNIX mail utility must be running on the Greenplum Database host and must be
- configured to allow the Greenplum superuser (<codeph>gpadmin</codeph>) to send email.</note>
+ configured to allow the Greenplum superuser (<codeph>gpadmin</codeph>) to send email.
+ Also ensure that the mail program executable is locatable via the
+ <codeph>gpadmin</codeph> user's <codeph>$PATH</codeph>.</note>
</body>
<topic id="topic_uq5_v5v_scb">
<title>gpbackup and gprestore Email File Format </title>
@@ -585,8 +587,8 @@ public.sales_1_prt_dec17 </codeblock></p><p>Then
different address depending on the success or failure of the backup operation. For a
restore operation, an email is sent to <codeph>gpadmin@example.com</codeph> only when
the operation succeeds or completes with
- errors.<codeblock>contacts
- backup:
+ errors.<codeblock>contacts:
+ gpbackup:
- address: gpadmin@example.com
status:
success:true
@@ -594,7 +596,7 @@ public.sales_1_prt_dec17 </codeblock></p><p>Then
status:
success_with_errors: true
failure: true
- restore:
+ gprestore:
- address: gpadmin@example.com
status:
success: true
|
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;
- return;
}
}
// Check horizontal collisions in path
@@ -650,8 +648,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_x), check_dir) * 8u;
if(new_dest != actor_move_dest_x) {
actor_move_dest_x = new_dest;
- actor_move_dest_y = actors[script_actor].pos.y;
- return;
}
}
// Check vertical collisions in path
|
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");
- }
-
goto retry;
}
|
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)) elektraFree (orig.ukey);
- if (test_bit (flags, KEY_CP_VALUE) && !test_bit (orig.flags, KEY_FLAG_MMAP_DATA)) elektraFree (orig.data.c);
+ if (test_bit (flags, KEY_CP_VALUE) && !test_bit (orig.flags, KEY_FLAG_MMAP_DATA)) elektraFree (orig.data.v);
+ if (test_bit (flags, KEY_CP_STRING) && !test_bit (orig.flags, KEY_FLAG_MMAP_DATA)) elektraFree (orig.data.c);
+
if (test_bit (flags, KEY_CP_META)) ksDel (orig.meta);
return dest;
|
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) \
|| defined(__aarch64__) \
|| defined(__ARM_ARCH_8__) || defined(__ARM_ARCH_8A__) || defined(__ARM_ARCH_8M__) \
- || defined(__ARM_ARCH_7A__)
+ || defined(__ARM_ARCH_7A__)) \
+ && (!(defined(__has_feature) && __has_feature(undefined_behavior_sanitizer)))
#define MBEDTLS_ALLOW_UNALIGNED_ACCESS
#endif
|
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/(.*)/'"'"'\1'"'"'/p' | xargs "$JAVA" --illegal-access=permit -jar $FORMATTER_JAR --replace
|
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.generation;
+ tmp->generation = ret < 0 ? 0 : state.generation;
list_add_tail(objlist, &tmp->node);
return 0;
}
@@ -252,7 +246,8 @@ static int listener_update(FAR struct list_node *objlist,
{
unsigned long frequency;
- frequency = delta_generation * 1000000 / delta_time;
+ frequency = (state.max_frequency ? state.max_frequency : 1000000)
+ * delta_generation / delta_time;
uorbinfo_raw("\033[K" "%-*s %2u %4" PRIu32 " %4lu "
"%2" PRIu32 " %4u",
ORB_MAX_PRINT_NAME,
|
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;
@@ -1604,11 +1609,14 @@ static size_t appendStringLiteral(size_t i)
case '"':
if (multiline) {
// Only """ ends a multi-line string
- if (peek(0) != '"' || peek(1) != '"')
+ if (peek(0) != '"')
break;
append_yylval_tzString('"');
+ shiftChars(1);
+ if (peek(0) != '"')
+ break;
append_yylval_tzString('"');
- shiftChars(2);
+ shiftChars(1);
}
append_yylval_tzString('"');
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;
client_ctx->max_buffer_size = self->config.max_buffer_size;
client_ctx->protocol_selector = (struct st_h2o_httpclient_protocol_selector_t){.ratio = self->config.protocol_ratio};
|
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 GPSCtrl($rootScope, $scope, $state, $http, $interval) {
};
$state.get('gps').onExit = function () {
+ $scope.noSleep.disable();
+ delete $scope.noSleep;
+
if (($scope.socket !== undefined) && ($scope.socket !== null)) {
$scope.socket.close();
$scope.socket = null;
@@ -316,16 +320,15 @@ function GPSCtrl($rootScope, $scope, $state, $http, $interval) {
// GPS/AHRS Controller tasks go here
var ahrs = new AHRSRenderer("ahrs_display");
- var noSleep = new NoSleep();
$scope.hideClick = function() {
$scope.isHidden = !$scope.isHidden;
var disp = "block";
if ($scope.isHidden) {
disp = "none";
- noSleep.enable();
+ $scope.noSleep.enable();
} else {
- noSleep.disable();
+ $scope.noSleep.disable();
}
var hiders = document.querySelectorAll(".hider");
|
Add SceGxm nids | @@ -2287,11 +2287,43 @@ modules:
sceGxmVertexFence: 0xE05277D6
sceGxmVertexProgramGetProgram: 0xBC52320E
sceGxmWaitEvent: 0x8BD94593
+ SceGxmInternal:
+ kernel: false
+ nid: 0x3FE654E6
+ functions:
+ sceGxmCheckMemoryInternal: 0x88B424FB
+ sceGxmCreateRenderTargetInternal: 0xC8A0F04E
+ sceGxmGetDisplayQueueThreadIdInternal: 0xAB1D9466
+ sceGxmGetRenderTargetMemSizeInternal: 0x4DD98588
+ sceGxmGetTopContextInternal: 0x90EE6A28
+ sceGxmInitializedInternal: 0xC8E9F108
+ sceGxmIsInitializationInternal: 0xEC82DB20
+ sceGxmMapFragmentUsseMemoryInternal: 0xB9391D22
+ sceGxmMapVertexUsseMemoryInternal: 0x5694B569
+ sceGxmRenderingContextIsWithinSceneInternal: 0xB56413BB
+ sceGxmSetCallbackInternal: 0x56CDD9AD
+ sceGxmSetInitializeParamInternal: 0x3FC5E110
+ sceGxmUnmapFragmentUsseMemoryInternal: 0xC29B9B82
+ sceGxmUnmapVertexUsseMemoryInternal: 0xD7506735
+ SceGxmInternalForGles:
+ kernel: false
+ nid: 0x83149CAD
+ functions:
+ sceGxmShaderPatcherCreateFragmentProgramForGles: 0x83149CAD
+ SceGxmInternalForReplay:
+ kernel: false
+ nid: 0xA64BEF47
+ functions:
+ sceGxmGetReplayRenderTargetMemSize: 0xEFA222AF
SceGxmInternalForVsh:
kernel: false
nid: 0xC98AEB79
functions:
sceGxmVshInitialize: 0xA04F5FAC
+ sceGxmVshSyncObjectClose: 0xBEB4F93D
+ sceGxmVshSyncObjectCreate: 0x2A956594
+ sceGxmVshSyncObjectDestroy: 0x9B8FC52F
+ sceGxmVshSyncObjectOpen: 0xAD3FE572
SceHandwriting:
nid: 0x18983E63
libraries:
|
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_i
-_king_copy_raw(c3_i src_i, c3_i dst_i, c3_y* buf_y, size_t pag_i)
+_king_write_raw(c3_i fid_i, c3_y* buf_y, size_t len_i)
{
- ssize_t red_i, ryt_i;
- size_t len_i;
- c3_y* fub_y = buf_y;
+ ssize_t ret_i;
+
+ while ( len_i ) {
do {
- if ( 0 > (red_i = read(src_i, buf_y, pag_i)) ) {
+ ret_i = write(fid_i, buf_y, len_i);
+ }
+ while ( (ret_i < 0) && (errno == EINTR) );
+
+ if ( ret_i < 0 ) {
return -1;
}
+ else {
+ len_i -= ret_i;
+ buf_y += ret_i;
+ }
+ }
+
+ return 0;
+}
- len_i = red_i;
+static c3_i
+_king_copy_raw(c3_i src_i, c3_i dst_i, c3_y* buf_y, size_t pag_i)
+{
+ ssize_t red_i;
do {
- if ( 0 > (ryt_i = write(dst_i, buf_y, len_i)) ) {
+ if ( 0 > (red_i = _king_read_raw(src_i, buf_y, pag_i)) ) {
return -1;
}
- buf_y += ryt_i;
- len_i -= ryt_i;
+ if ( _king_write_raw(dst_i, buf_y, (size_t)red_i) ) {
+ return -1;
}
- while ( len_i );
-
- buf_y = fub_y;
}
while ( red_i );
|
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], 15, 0, false);
+
+ //registers 0x5C3 - 0x53A return inverted value field when DAC value read-back is performed
+ if (addrToRead[i] >= 0x5C3 && addrToRead[i] <= 0x5C6 && (dataReceived[i]&0x400)) //sign bit 10
+ dataReceived[i] = 0x400 | (~dataReceived[i]&0x3FF); //magnitude bits 9:0
+ else if (addrToRead[i] >= 0x5C7 && addrToRead[i] <= 0x5CA && (dataReceived[i]&0x40)) //sign bit 6
+ dataReceived[i] = 0x40 | (~dataReceived[i]&0x3F); //magnitude bits 5:0
+ else if (addrToRead[i] >= 0x5C7)
+ dataReceived[i] &= 0xFF00; //do not save calibration start triggers
sprintf(addr, "0x%04X", addrToRead[i]);
sprintf(value, "0x%04X", dataReceived[i]);
fout << addr << "=" << value << endl;
|
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 HTTP API this set of APIS with a mutex lock
+// is used:
+// * flb_trace_chunk_to_be_destroyed - query to see if the trace context
+// is slated to be freed
+// * flb_trace_chunk_set_destroy - set the trace context to be destroyed
+// once all chunks are freed (executed in flb_trace_chunk_destroy).
+// * flb_trace_chunk_has_chunks - see if there are still chunks using
+// using the tracing context
+// * flb_trace_chunk_add - increment the traces chunk count
+// * flb_trace_chunk_sub - decrement the traces chunk count
static inline int flb_trace_chunk_to_be_destroyed(struct flb_trace_chunk_context *ctxt)
{
int ret = FLB_FALSE;
|
[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 OWNER. The use of this macro is disabled by default.
### Details can be found here: https://clubs.at.yandex-team.ru/arcadia/6104
|
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 -Wextra -Werror -Wno-format-truncation -Wno-override-init -I.
COMMON_LDFLAGS := -pthread -lm
COMMON_SRCS := $(sort $(wildcard *.c))
CFLAGS ?= -O3 -mtune=native -funroll-loops
|
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() {
+ const char* program_name = "textpad";
+ FILE* fp = initrd_fopen(program_name, "rb");
+ char* argv[] = {program_name, NULL};
+ elf_load_file(program_name, fp, argv);
+ panic("noreturn");
+}
+
+
static void tty_init() {
const char* program_name = "tty";
FILE* fp = initrd_fopen(program_name, "rb");
@@ -163,7 +180,10 @@ void kernel_main(struct multiboot_info* mboot_ptr, uint32_t initial_stack) {
task_spawn(ps2_keyboard_driver_launch, PRIORITY_DRIVER, "");
task_spawn(ps2_mouse_driver_launch, PRIORITY_DRIVER, "");
task_spawn(awm_init, PRIORITY_GUI, "");
- task_spawn(tty_init, PRIORITY_NONE, "");
+ task_spawn(tty_init, PRIORITY_TTY, "");
+ task_spawn(rainbow, PRIORITY_NONE, "");
+ task_spawn(paintbrush, 2, "");
+ task_spawn(textpad, 3, "");
//task_spawn(cat);
//task_spawn(rainbow);
|
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 us */
#define T_W0L 63 /* Write 0 low; 62-120 us */
|
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 schema set__ that cannot be modified during Sysrepo operation (more in [schemas](@ref schema))
- __shared memory__ is used for almost all IPC
- almost __no CPU time wasted__ in the library (no active waiting or periodic checks)
- fully customizable __event handling__ from periodic checks or using `poll(2)`/`select(2)` to automatic thread
|
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)
+ =/ b ~| %der-invalid-oct
+ (sub len.pec (lent a))
+ (weld a (reap b 0))
+ ::
[%nul *] ~
[%obj *] (rip 3 obj.pec)
::
;~ pose
(stag %int (bass 256 (sear int ;~(pfix (tag 2) till))))
(stag %bit (boss 256 (cook tail ;~(pfix (tag 3) till)))) :: XX test
- (stag %oct (boss 256 ;~(pfix (tag 4) till)))
+ (stag %oct (cook oct ;~(pfix (tag 4) till)))
(stag %nul (cold ~ ;~(plug (tag 5) (tag 0))))
(stag %obj (boss 256 ;~(pfix (tag 6) till)))
(stag %seq (sear recur ;~(pfix (tag 48) till)))
?: ?=([@ ~] a) `a
?. =(0 i.a) `a
?.((gth i.t.a 127) ~ `t.a)
+ :: +oct:de:der: cook bytes to capture length
+ ::
+ ++ oct
+ |= a=(list @D)
+ ^- [len=@ud oct=@ux]
+ :: XX do this in a parser combinator instead
+ [(lent a) (scan a (boss 256 (star next)))]
:: +recur:de:der: parse bytes for a list of +spec:asn1
::
++ recur
=/ pec=spec:asn1
:~ %seq
[%seq [%obj sha-256:obj:asn1] [%nul ~] ~]
- [%oct (shax m)]
+ [%oct 32 (shax m)]
==
=/ t=(list @) ~(ren raw:en:der pec)
=/ tlen (lent t)
:~ %seq
:~ %seq
[%obj sub-alt:obj:asn1]
- [%oct (en:^der (san hot))]
+ :: XX revisit, make +der output +octs
+ :: [%oct (en:^der (san hot))]
+ =/ nas=(list @D) ~(ren raw:en:^der (san hot))
+ [%oct (lent nas) (rep 3 nas)]
== == == == ==
:: +san:en:spec:pkcs10: subject-alternate-names
::
=/ nul=spec:asn1 [%nul ~]
=/ int=spec:asn1 [%int 187]
=/ obj=spec:asn1 [%obj sha-256:obj:asn1]
- =/ oct=spec:asn1 [%oct (shax 'hello\0a')]
+ =/ oct=spec:asn1 [%oct 32 (shax 'hello\0a')]
=/ seq=spec:asn1 [%seq [%seq obj nul ~] oct ~]
;: weld
%- expect-eq !>
|
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 added unsolicited. This
+ * means that the client has sent an KEEPALIVE option earlier. We know
+ * here this is true, because c->tcp_keepalive is set.
*/
if (cfg && cfg->do_tcp_keepalive && c && c->type != comm_udp && c->tcp_keepalive) {
if(!edns_opt_list_append_keepalive(&edns->opt_list_out,
@@ -999,6 +1003,14 @@ parse_edns_options_from_query(uint8_t* rdata_ptr, size_t rdata_len,
* Keepalive EDNS option, and that option must have 0
* length data. Subsequent messages sent on that
* connection will have a TCP Keepalive option.
+ *
+ * This should be the first time the client sends this
+ * option, so c->tcp_keepalive is not set.
+ * Besides adding the reply KEEPALIVE option,
+ * c->tcp_keepalive will be set so that the
+ * option will be added unsolicited in subsequent
+ * responses (see the comment above the if-statement
+ * at the start of this function).
*/
if (!cfg || !cfg->do_tcp_keepalive || !c ||
c->type == comm_udp || c->tcp_keepalive)
|
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
-optimizations when generating a visualization. VisIt provides a **File grouping**
-combo box in the **File open** window (see :numref:`Figure %s<file_open_fig>`) to assist in the creation of a
-``.visit`` file for databases that have no ``.visit`` file. Selecting *On* or *Smart*
-will create a .visit file. Selecting *Off* will not group the files.
-
-Flipbook animation
-~~~~~~~~~~~~~~~~~~
+optimizations when generating a visualization.
+
+To create a ``.visit`` file, simply make a new text file that contains the names
+of the files that you want to visualize and save the file with a ``.visit`` extension.
+
+* Visit will take the first entry in the ``.visit`` file and attempt to determine the
+ appropriate plugin to read the file.
+* Not all plugins can be used with ``.visit`` files. In general, **MD** or **MT** formats
+ sometimes do not work.
+
+ * An **MT** file is a file format that provides multiple time steps in a single file. Thus,
+ grouping multiple **MT** files to produce a time series may not be supported.
+ * An **MD** file is one that provides multiple domains in a single file. Thus, grouping
+ multiple **MD** files to produce a view of the whole may not be supported.
+
+Here is an example ``.visit`` file that groups time steps together. These files should contain
+1 time step per file.
+
+.. code-block:: none
+
+ timestep0.silo
+ timestep1.silo
+ timestep2.silo
+ timestep3.silo
+ ...
+
+Here is an example ``.visit`` file that groups various smaller domain files into a whole dataset
+that VisIt can visualize. Note the use of the ``!NBLOCKS`` directive and how it designates the
+number of files in a time step that constitute the whole domain. The ``!NBLOCKS`` directive must
+be on the first line of the file. In this example, we have 2 time steps each composed of 4 domain
+files.
+
+.. code-block:: none
+ :emphasize-lines: 1
+
+ !NBLOCKS 4
+ timestep0_domain0.silo
+ timestep0_domain1.silo
+ timestep0_domain2.silo
+ timestep0_domain3.silo
+ timestep1_domain0.silo
+ timestep1_domain1.silo
+ timestep1_domain2.silo
+ timestep1_domain3.silo
+ ...
+
+VisIt provides a **File grouping** combo box in the **File open** window (see :numref:`Figure %s<file_open_fig>`) to assist in the creation of a ``.visit`` file for databases that
+have no ``.visit`` file. Selecting *On* or *Smart* will create a .visit file. Selecting *Off*
+will not group the files.
.. _file_open_fig:
@@ -42,6 +84,9 @@ Flipbook animation
File open window
+Flipbook animation
+~~~~~~~~~~~~~~~~~~
+
.. _animation_buttons:
.. figure:: images/animationtoolbar.png
|
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_host_memory_va_to_pa(va, length);
ASE_MSG("Add pinned page VA 0x%" PRIx64 ", IOVA 0x%" PRIx64 ", level %d\n", va, *iova, pt_level);
@@ -459,6 +460,14 @@ static int ase_pt_pin_page(uint64_t va, uint64_t *iova, int pt_level)
pt[idx / 64] = (uint64_t *)((uint64_t)pt[idx / 64] | (1UL << (idx & 63)));
}
+ // Lock the "pinned" page so it more closely resembles the behavior of
+ // pages pinned by the FPGA driver. This is valuable for code that is
+ // tracking address map changes, such as the MPF building block.
+ //
+ // The result can be ignored since ASE will continue to work whether
+ // or not the lock succeeds.
+ mlock((void *)va, length);
+
if (ase_pt_enable_debug) {
printf("\nASE simulated page table (pinned VA 0x%" PRIx64 ", IOVA 0x%" PRIx64 "):\n",
va, *iova);
@@ -478,6 +487,12 @@ static int ase_pt_unpin_page(uint64_t iova, int pt_level)
int idx;
int level = 3;
uint64_t **pt = ase_pt_root;
+ uint64_t length = 4096 * (1UL << (9 * pt_level));
+
+ uint64_t va = iova ^ ase_host_memory_gen_xor_mask(pt_level);
+ if (va) {
+ munlock((void *)va, length);
+ }
while (level != pt_level) {
idx = ase_pt_idx(iova, level);
|
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 (int i = 0; i < max_dim; i++) {
- if (src_dims[i])
+ for (int i = 0, j = 0; i < prog->num_hyperplanes && j < max_dim; i++) {
+ if (prog->hProps[i].type == H_LOOP) {
+ if (src_dims[j])
return i;
+ j++;
+ }
}
return -1;
}
-void swap_ilp_sol_with_level(int par_level, int level, int cc_id, int64_t *sol,
- PlutoProg *prog) {
- /* Does nothing as of now. Needs to be filled in once per CC skewinng
- * constraints are set up properly in introduce_skew */
+void swap_trans_for_cc(int par_level, int level, int cc_id, PlutoProg *prog) {
+ assert(par_level < level);
+ assert(prog->hProps[par_level].type == H_LOOP);
+ assert(prog->hProps[level].type == H_LOOP);
+ int nstmts = prog->nstmts;
+ Stmt **stmts = prog->stmts;
+ for (int i = 0; i < nstmts; i++) {
+ if (stmts[i]->cc_id != cc_id)
+ continue;
+ pluto_matrix_interchange_rows(stmts[i]->trans, par_level, level);
+ }
return;
}
@@ -3533,10 +3543,6 @@ bool introduce_skew(PlutoProg *prog) {
break;
}
- if (is_ilp_solution_parallel(sol, npar)) {
- int par_level = get_outermost_sat_dim(i, src_dims, prog);
- swap_ilp_sol_with_level(par_level, level, cc_id, sol, prog);
- } else {
/* Set the Appropriate coeffs in the transformation matrix */
for (int j = 0; j < nstmts; j++) {
int stmt_offset = npar + 1 + j * (nvar + 1);
@@ -3550,6 +3556,9 @@ bool introduce_skew(PlutoProg *prog) {
/* The constant Shift */
stmts[j]->trans->val[level][nvar + npar] = sol[stmt_offset + nvar];
}
+ if (is_ilp_solution_parallel(sol, npar)) {
+ int par_level = get_outermost_sat_level(i, src_dims, prog);
+ swap_trans_for_cc(par_level, level, cc_id, prog);
}
free(sol);
is_skew_introduced = true;
|
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_ASSERT_EQUAL(ff10.rd_idx, 0);
+ n = tu_fifo_read_n(&ff10, dst, 4);
+ TEST_ASSERT_EQUAL(n, 4);
+ TEST_ASSERT_EQUAL(ff10.rd_idx, 4);
+ n = tu_fifo_read_n(&ff10, dst, 4);
+ TEST_ASSERT_EQUAL(n, 2);
+ TEST_ASSERT_EQUAL(ff10.rd_idx, 6);
+}
\ No newline at end of file
|
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.c stringinfo.c unicode_norm.c username.c
|
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_STARTED:
+ case VM_PAUSED:
resume_vm(argv[i]);
break;
default:
|
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";
} else {
- ss << std::setprecision(distance >= 10000 ? 0 : 1) << distance / 1000.0 << "km";
+ ss << std::fixed << std::setprecision(distance >= 10000 ? 0 : 1) << (distance / 1000.0) << "km";
}
return ss.str();
}
std::string RoutingResultBuilder::calculateInstruction(const RoutingInstructionBuilder& instr) const {
std::string instruction;
- std::string streetName = instr.getStreetName();
std::string direction = calculateDirection(instr.getAzimuth());
+ std::string streetName = instr.getStreetName();
+ if (!streetName.empty()) {
+ if (streetName.front() == '{' && streetName.back() == '}') {
+ streetName.clear();
+ }
+ }
+
switch (instr.getAction()) {
case RoutingAction::ROUTING_ACTION_HEAD_ON:
instruction = "Head on " + direction + (streetName.empty() ? std::string() : " on " + streetName);
@@ -167,13 +173,13 @@ namespace carto {
instruction = "Go straight " + direction + (streetName.empty() ? std::string() : " on " + streetName);
break;
case RoutingAction::ROUTING_ACTION_TURN_RIGHT:
- instruction = "Turn right" + (streetName.empty() ? std::string() : " onto " + streetName);
+ instruction = (instr.getTurnAngle() < 30.0f ? "Bear right" : "Turn right") + (streetName.empty() ? std::string() : " onto " + streetName);
break;
case RoutingAction::ROUTING_ACTION_UTURN:
instruction = "Make U turn" + (streetName.empty() ? std::string() : " onto " + streetName);
break;
case RoutingAction::ROUTING_ACTION_TURN_LEFT:
- instruction = "Turn left" + (streetName.empty() ? std::string() : " onto " + streetName);
+ instruction = (instr.getTurnAngle() < 30.0f ? "Bear left" : "Turn left") + (streetName.empty() ? std::string() : " onto " + streetName);
break;
case RoutingAction::ROUTING_ACTION_REACH_VIA_LOCATION:
instruction = "You have reached your non-final destination";
|
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->fs->uuid, UUID_LEN));
+ assert(buffer_write_cstring(ext->staging, ext->tl->fs->label));
+ push_u8(ext->staging, '\0'); /* label string terminator */
+ }
}
/* complete linkage in (now disembodied - thus long arg list) previous extension */
@@ -324,11 +329,6 @@ closure_function(3, 1, void, log_extend_link,
/* add link to close out old extension and commit */
log_ext old_ext = bound(old_ext);
buffer b = old_ext->staging;
- if (old_ext->sectors.start == 0) {
- assert(buffer_write(b, old_ext->tl->fs->uuid, UUID_LEN));
- assert(buffer_write_cstring(b, old_ext->tl->fs->label));
- push_u8(b, '\0'); /* label string terminator */
- }
push_u8(b, LOG_EXTENSION_LINK);
push_varint(b, bound(sectors).start);
push_varint(b, range_span(bound(sectors)));
@@ -872,10 +872,10 @@ log log_create(heap h, filesystem fs, boolean initialize, status_handler sh)
halt("no tlog write support\n");
#else
fs->root = allocate_tuple();
- log_ext init_ext = tl->current;
- log_extension_init(init_ext);
buffer uuid = alloca_wrap_buffer(fs->uuid, UUID_LEN);
random_buffer(uuid);
+ log_ext init_ext = tl->current;
+ log_extension_init(init_ext);
log_ext new_ext = log_ext_new(tl);
assert(new_ext != INVALID_ADDRESS);
log_extension_init(new_ext);
|
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*> cstrings;
+ cstrings.reserve(itemsCount);
for (int i{1}; i <= itemsCount; i++)
{
const auto& stringItem = items.get<sol::optional<std::string>>(i);
- cstrings.push_back(stringItem.value_or("Missing").c_str());
+ cstrings.emplace_back(strings.emplace_back(std::move(stringItem.value_or("Missing"))).c_str());
}
bool clicked = ImGui::Combo(label.c_str(), ¤tItem, cstrings.data(), itemsCount);
@@ -212,11 +215,14 @@ namespace sol_ImGui
}
inline std::tuple<int, bool> Combo(const std::string& label, int currentItem, const sol::table& items, int itemsCount, int popupMaxHeightInItems)
{
+ TiltedPhoques::Vector<std::string> strings;
+ strings.reserve(itemsCount);
TiltedPhoques::Vector<const char*> cstrings;
+ cstrings.reserve(itemsCount);
for (int i{1}; i <= itemsCount; i++)
{
const auto& stringItem = items.get<sol::optional<std::string>>(i);
- cstrings.push_back(stringItem.value_or("Missing").c_str());
+ cstrings.emplace_back(strings.emplace_back(std::move(stringItem.value_or("Missing"))).c_str());
}
bool clicked = ImGui::Combo(label.c_str(), ¤tItem, cstrings.data(), itemsCount, popupMaxHeightInItems);
|
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_new_null()) == NULL) {
+ OPENSSL_free(nparam);
goto end;
+ }
+ nparam->idx = keyidx;
nparam->next = NULL;
if (key_first == NULL)
key_first = nparam;
|
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_DEVPATH, IMXRT_WDOG1);
+#endif
+
#ifdef CONFIG_IMXRT_TIMER_INTERFACE
{
int timer_idx;
|
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 curl to the server `myHost.example.com` on port 9000, using the config file at `/opt/scope/assets/scope.yml`:
```
-SCOPE_HOME=/opt/scope/assets ldscope curl https://cribl.io
+scope run -u /opt/scope/assets/scope.yml -- curl https://cribl.io
```
Configuration file example:
@@ -43,7 +43,7 @@ event:
Send HTTP events from Slack to a Splunk server at `myHost.example.com`:
```
-ldscope slack
+scope run --passthrough -- slack
```
Configuration file example, located at `/etc/scope` or `~/scope.yml`:
@@ -64,7 +64,7 @@ event:
```
#### Example 5:
-Send DNS events from curl to the default host. This example uses the library in the current directory, independently of the CLI or loader:
+Send DNS events from curl to the default host. This example uses the library in the current directory, independently of the CLI:
```
SCOPE_EVENT_DNS=true LD_PRELOAD=./libscope.so curl https://cribl.io
@@ -74,7 +74,7 @@ SCOPE_EVENT_DNS=true LD_PRELOAD=./libscope.so curl https://cribl.io
Send default metrics from the Go static application `hello` to the Datadog server at `ddog`:
```
-ldscope ./hello
+scope run -m udp://ddog:8125
```
Configuration file example:
|
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%\CMSIS\DSP\Examples\*.*
+XCOPY /Q /S /Y ..\..\CMSIS\DSP\Lib\*.* %RELEASE_PATH%\CMSIS\DSP\Lib\*.*
:: -- NN files
XCOPY /Q /S /Y ..\..\CMSIS\NN\*.* %RELEASE_PATH%\CMSIS\NN\*.*
|
[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_MODULE_ENABLED
#define HAL_CORTEX_MODULE_ENABLED
-#define HAL_PCD_MODULE_ENABLED
-#define HAL_HCD_MODULE_ENABLED
+/* #define HAL_PCD_MODULE_ENABLED */
+/* #define HAL_HCD_MODULE_ENABLED */
/* #define HAL_DFSDM_MODULE_ENABLED */
/* #define HAL_DSI_MODULE_ENABLED */
/* #define HAL_JPEG_MODULE_ENABLED */
|
Add navigation to the Readme | @@ -5,6 +5,27 @@ A Vulkan and OpenGL overlay for monitoring FPS, temperatures, CPU/GPU load and m
#### Example:
![](assets/overlay_example.gif)
+# Navigation
+- [Installation](#installation)
+ - [Build](#build)
+ - [Dependencies](#dependencies)
+ - [Building with build script](#building-with-build-script)
+ - [Pre-packaged binaries](#pre-packaged-binaries)
+ - [GitHub releases](#github-releases)
+ - [Arch-based distributions](#arch-based-distributions)
+ - [Debian 11 (Bullseye)](#debian-11-bullseye)
+ - [Fedora](#fedora)
+ - [Solus](#solus)
+ - [openSUSE](#opensuse)
+ - [Flatpak](#flatpak)
+- [Normal usage](#normal-usage)
+ - [OpenGL](#opengl)
+ - [Hud configuration](#hud-configuration)
+ - [Vsync](#vsync)
+ - [Keybindings](#keybindings)
+ - [Workarounds](#workarounds)
+ - [MangoHud FPS logging](#mangohud-fps-logging)
+
# Installation
## Build
|
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)jout.rc,
(long long)timediff_usec(&etime, &stime));
- if (jout.rc == 0) {
- ht_dump(&hashtable);
- table3_dump(t3, jout.t3_produced);
- }
-
dnut_kernel_free(kernel);
exit(exit_code);
|
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_setbass(pPlayer, pPlayer->bass);
@@ -1411,6 +1410,7 @@ int nxplayer_settreble(FAR struct nxplayer_s *pPlayer, uint8_t level)
*
****************************************************************************/
+#ifndef CONFIG_AUDIO_EXCLUDE_VOLUME
#ifndef CONFIG_AUDIO_EXCLUDE_BALANCE
int nxplayer_setbalance(FAR struct nxplayer_s *pPlayer, uint16_t balance)
{
@@ -1450,6 +1450,7 @@ int nxplayer_setbalance(FAR struct nxplayer_s *pPlayer, uint16_t balance)
return -ENOENT;
}
#endif
+#endif
/****************************************************************************
* Name: nxplayer_pause
@@ -2155,12 +2156,11 @@ FAR struct nxplayer_s *nxplayer_create(void)
pPlayer->treble = 50;
#endif
+#ifndef CONFIG_AUDIO_EXCLUDE_VOLUME
+ pPlayer->volume = 400;
#ifndef CONFIG_AUDIO_EXCLUDE_BALANCE
pPlayer->balance = 500;
#endif
-
-#ifndef CONFIG_AUDIO_EXCLUDE_VOLUME
- pPlayer->volume = 400;
#endif
#ifdef CONFIG_AUDIO_MULTI_SESSION
|
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 started in mirror or quiescent mode\n"));
|
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 {
int width;
int height;
} EGL_DISPMANX_WINDOW_T;
+typedef struct {
+ DISPMANX_FLAGS_ALPHA_T flags;
+ uint32_t opacity;
+ DISPMANX_RESOURCE_HANDLE_T mask;
+} VC_DISPMANX_ALPHA_T;
int32_t (*graphics_get_display_size)(const uint16_t, uint32_t *, uint32_t*);
DISPMANX_DISPLAY_HANDLE_T (*vc_dispmanx_display_open)(uint32_t);
DISPMANX_UPDATE_HANDLE_T (*vc_dispmanx_update_start)(int32_t);
@@ -97,9 +103,10 @@ void* create_rpi_window(int w, int h) {
src_rect.height = h << 16;
dispman_display = vc_dispmanx_display_open(/*LCD*/ 0);
dispman_update = vc_dispmanx_update_start(0);
+ VC_DISPMANX_ALPHA_T alpha = { /*DISPMANX_FLAGS_ALPHA_FIXED_ALL_PIXELS*/ 1, 255, 0 };
dispman_element = vc_dispmanx_element_add(
dispman_update,dispman_display, 0, &dst_rect,
- 0, &src_rect, /*DISPMANX_PROTECTION_NONE*/ 0, 0, 0,
+ 0, &src_rect, /*DISPMANX_PROTECTION_NONE*/ 0, &alpha, 0,
/*DISPMAN_NO_ROTATE*/ 0);
nativewindow->element = dispman_element;
nativewindow->width = w;
|
[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] + TS*x[1], x[1] };
- AffineVariationalInequalities avi = {
- .size = 2,
- .M = &num_mat,
- .q = q,
- .d = NULL,
- .poly.split = &poly
- };
+ AffineVariationalInequalities avi;
+ avi.size = 2;
+ avi.M = &num_mat;
+ avi.q = q;
+ avi.d = NULL;
+ avi.poly.split = &poly;
SolverOptions options;
solver_options_set(&options, SICONOS_AVI_CAOFERRIS);
|
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
# This does unpack and repack
- ${tools_dir}/grib_copy -r $f1 $temp_grib1
+ ${tools_dir}/grib_copy -r $f1 $temp1
${tools_dir}/grib_get -n statistics $f1 > $temp_stat1
- ${tools_dir}/grib_get -n statistics $temp_grib1 > $temp_stat2
+ ${tools_dir}/grib_get -n statistics $temp1 > $temp_stat2
perl ${test_dir}/number_compare.pl $temp_stat1 $temp_stat2
done
+
+# GRIB-883
+# ------------
+# Two coded values: Should stay as grid_simple
+temp2=temp2.grib_second_order.grib
+temp3=temp3.grib_second_order.grib
+cat > $test_filter<<EOF
+ set values={ 2.1, 3.4 };
+ write;
+EOF
+${tools_dir}/grib_filter -o $temp2 $test_filter $ECCODES_SAMPLES_PATH/GRIB2.tmpl
+${tools_dir}/grib_set -r -s packingType=grid_second_order $temp2 $temp3
+grib_check_key_equals $temp3 packingType grid_simple
+
+# Three coded values: Now we can change to 2nd order
+cat > $test_filter<<EOF
+ set values={ 2.1, 3.4, 8.9 };
+ write;
+EOF
+${tools_dir}/grib_filter -o $temp2 $test_filter $ECCODES_SAMPLES_PATH/GRIB2.tmpl
+${tools_dir}/grib_set -r -s packingType=grid_second_order $temp2 $temp3
+grib_check_key_equals $temp3 packingType grid_second_order
+
+
+# Clean up
rm -f $temp_stat1 $temp_stat2
-rm -f $temp_grib1 $sec_ord_bmp
+rm -f $temp1 $temp2 $temp3 $sec_ord_bmp
rm -f $test_filter
|
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;
@@ -187,13 +188,23 @@ static int s390x_keccak_final(unsigned char *md, void *vctx) {
if (ctx->md_size == 0)
return 1;
memset(ctx->buf + num, 0, bsz - num);
- ctx->buf[num] = 0x01;
+ ctx->buf[num] = padding;
ctx->buf[bsz - 1] |= 0x80;
s390x_kimd(ctx->buf, bsz, ctx->pad, ctx->A);
memcpy(md, ctx->A, ctx->md_size);
return 1;
}
+static int s390x_keccak_final(unsigned char *md, void *vctx)
+{
+ return s390x_keccakc_final(md, vctx, 0x01);
+}
+
+static int s390x_kmac_final(unsigned char *md, void *vctx)
+{
+ return s390x_keccakc_final(md, vctx, 0x04);
+}
+
static PROV_SHA3_METHOD sha3_s390x_md =
{
s390x_sha3_absorb,
@@ -212,6 +223,12 @@ static PROV_SHA3_METHOD shake_s390x_md =
s390x_shake_final
};
+static PROV_SHA3_METHOD kmac_s390x_md =
+{
+ s390x_sha3_absorb,
+ s390x_kmac_final
+};
+
# define SHA3_SET_MD(uname, typ) \
if (S390_SHA3_CAPABLE(uname)) { \
ctx->pad = S390X_##uname; \
@@ -219,8 +236,16 @@ static PROV_SHA3_METHOD shake_s390x_md =
} else { \
ctx->meth = sha3_generic_md; \
}
+# define KMAC_SET_MD(bitlen) \
+ if (S390_SHA3_CAPABLE(SHAKE_##bitlen)) { \
+ ctx->pad = S390X_SHAKE_##bitlen; \
+ ctx->meth = kmac_s390x_md; \
+ } else { \
+ ctx->meth = sha3_generic_md; \
+ }
#else
# define SHA3_SET_MD(uname, typ) ctx->meth = sha3_generic_md;
+# define KMAC_SET_MD(bitlen) ctx->meth = sha3_generic_md;
#endif /* S390_SHA3 */
#define SHA3_newctx(typ, uname, name, bitlen, pad) \
@@ -247,7 +272,7 @@ static void *uname##_newctx(void *provctx) \
if (ctx == NULL) \
return NULL; \
ossl_keccak_kmac_init(ctx, pad, bitlen); \
- ctx->meth = sha3_generic_md; \
+ KMAC_SET_MD(bitlen) \
return ctx; \
}
|
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 what we have */
-
- break;
- }
}
}
|
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(this), status);
set_error(LCB_PROTOCOL_ERROR, "Hello response unexpected");
break;
}
|
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_rx_enable_clock(hal->dev);
i2s_ll_rx_clk_set_src(hal->dev, I2S_CLK_D2CLK); // Set I2S_CLK_D2CLK as default
|
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, "Failed to unlink \"%s\" (%s).", path, strerror(errno));
}
if (ds == SR_DS_STARTUP) {
@@ -291,7 +291,7 @@ srpds_json_destroy(const struct lys_module *mod, sr_datastore_t ds)
goto cleanup;
}
if (unlink(path) == -1) {
- SRPLG_LOG_WRN("Failed to unlink \"%s\" (%s).", path, strerror(errno));
+ SRPLG_LOG_WRN(srpds_name, "Failed to unlink \"%s\" (%s).", path, strerror(errno));
}
cleanup:
@@ -362,7 +362,7 @@ srpds_json_recover(const struct lys_module *mod, sr_datastore_t ds)
if (ds == SR_DS_STARTUP) {
/* there must be a backup file for startup data */
- SRPLG_LOG_WRN("Recovering \"%s\" startup data from a backup.", mod->name);
+ SRPLG_LOG_WRN(srpds_name, "Recovering \"%s\" startup data from a backup.", mod->name);
/* generate the backup path */
if (asprintf(&bck_path, "%s%s", path, SRPJSON_FILE_BACKUP_SUFFIX) == -1) {
@@ -382,7 +382,7 @@ srpds_json_recover(const struct lys_module *mod, sr_datastore_t ds)
}
} else if (ds == SR_DS_RUNNING) {
/* perform startup->running data file copy */
- SRPLG_LOG_WRN("Recovering \"%s\" running data from the startup data.", mod->name);
+ SRPLG_LOG_WRN(srpds_name, "Recovering \"%s\" running data from the startup data.", mod->name);
/* generate the startup data file path */
if (srpjson_get_path(srpds_name, mod->name, SR_DS_STARTUP, &bck_path)) {
@@ -395,7 +395,8 @@ srpds_json_recover(const struct lys_module *mod, sr_datastore_t ds)
}
} else {
/* there is not much to do but remove the corrupted file */
- SRPLG_LOG_WRN("Recovering \"%s\" %s data by removing the corrupted data file.", mod->name, srpjson_ds2str(ds));
+ SRPLG_LOG_WRN(srpds_name, "Recovering \"%s\" %s data by removing the corrupted data file.", mod->name,
+ srpjson_ds2str(ds));
if (unlink(path) == -1) {
SRPLG_LOG_ERR(srpds_name, "Unlinking \"%s\" failed (%s).", path, strerror(errno));
@@ -898,7 +899,7 @@ srpds_json_candidate_reset(const struct lys_module *mod)
}
if ((unlink(path) == -1) && (errno != ENOENT)) {
- SRPLG_LOG_WRN("Failed to unlink \"%s\" (%s).", path, strerror(errno));
+ SRPLG_LOG_WRN(srpds_name, "Failed to unlink \"%s\" (%s).", path, strerror(errno));
}
free(path);
|
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_FLAGS "${CMAKE_CXX_FLAGS} -Werror -fexceptions -fno-rtti -fvisibility=hidden -Wno-error=sign-compare -Wno-sign-compare -Wno-write-strings -Wno-conversion-null -fno-math-errno -fno-threadsafe-statics -fmerge-all-constants -fms-extensions -Wno-error=comment -Wno-comment -Wno-error=pointer-arith -Wno-pointer-arith -Wno-error=unused-variable -Wno-error=unused-but-set-variable -Wno-error=unused-function" )
++set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror -fexceptions -fno-rtti -fvisibility=hidden -Wno-error=sign-compare -Wno-sign-compare -Wno-write-strings -Wno-conversion-null -fno-math-errno -fno-threadsafe-statics -fmerge-all-constants -fms-extensions -Wno-error=comment -Wno-comment -Wno-error=pointer-arith -Wno-pointer-arith -Wno-error=unused-variable -Wno-error=unused-but-set-variable -Wno-error=unused-function -w" )
+
+ set ( DRVDEF "${CMAKE_CURRENT_SOURCE_DIR}/hsacore.so.def" )
+
@@ -168,6 +168,7 @@ set_property ( TARGET ${CORE_RUNTIME_TARGET} PROPERTY SOVERSION "${BUILD_VERSION
target_link_libraries ( ${CORE_RUNTIME_TARGET}
|
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 EXTRA_COMPILE_OPTIONS ${NFSTBC_CLR_EXTRA_COMPILE_OPTIONS})
# set compile definitions
nf_set_compile_definitions(TARGET ${NANOCLR_PROJECT_NAME}.elf EXTRA_COMPILE_DEFINITIONS ${NFSTBC_CLR_EXTRA_COMPILE_DEFINITIONS} BUILD_TARGET ${NANOCLR_PROJECT_NAME} )
|
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[], 16);
} framebuffer_t;
extern framebuffer_t *framebuffer;
|
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);
@@ -422,19 +425,7 @@ static char completeLine(struct linenoiseState *ls) {
char_count += hint_len;
/* Too much */
- if (char_count > w.ws_col) {
- break;
- }
-
- /* Still fits */
- ++hint_line_count;
- }
-
- /* No hint fits, too bad */
- if (!hint_line_count) {
- freeCompletions(&lc);
- return c;
- }
+ } while (char_count <= w.ws_col);
while (c == 9) {
/* Second tab */
|
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 * Detected 'tm_gmtoff' field in 'struct tm')
- FLAGS:=$(FLAGS) HAVE_TM_TM_GMTOFF
+ FLAGS:=$(FLAGS) HAVE_TM_TM_GMTOFF=1
endif
#############################################################################
|
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" + indent + "no svn info\n"
result = open(sys.argv[1], 'w')
-
header(result)
print >>result, line("PROGRAM_VERSION", scm_data + "\n" + get_other_data(arc_root, build_root, local_data_file))
print >>result, line("SCM_DATA", scm_data)
|
[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_RETURN;
}
|
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_args .= "-C $tmp_dir \\\n";
# add .repo file
- my $repoFile="$tmp_dir/$distro/OpenHPC.local.repo";
+ my $repoFile="$tmp_dir/OpenHPC.local.repo";
if($skipCopy) {
File::Path::make_path("$tmp_dir/$distro") || die("Unable to create $tmp_dir/$distro\n");
@@ -164,6 +165,7 @@ foreach my $distro (@distros) {
my $contents = $file_update->slurp_utf8;
$contents =~ s/\@VERSION_MINOR\@/$base_release/g;
$contents =~ s/\@VERSION_MICRO\@/$release/g;
+ $contents =~ s/\@DIST\@/$distro/g;
$file_update->spew_utf8( $contents );
# Copy mk_repo utility
@@ -172,7 +174,7 @@ foreach my $distro (@distros) {
chmod 0700, "/tmp_dir/mk_repo" || die "Unable to set perms for mk_repo\n";
# Assemble final tarball
- $tar_args .= "$distro mk_repo";
+ $tar_args .= "$distro mk_repo OpenHPC.local.repo";
print "\nCreating dist tarball for $distro:$arch -- \n";
print "\ntar command -> tar $tar_args\n\n";
system("tar $tar_args");
|
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/random","/dev/srandom"
# endif
+# endif
# if !defined(OPENSSL_NO_EGD) && !defined(DEVRANDOM_EGD)
/*
* set this to a comma-separated list of 'egd' sockets to try out. These
|
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);
@@ -223,6 +225,8 @@ static int hw_snap_mmio_read32(struct snap_card *card,
int rc = -1;
if ((card) && (card->afu_h)) {
+ offset += card->action_base; /* FIXME use action_*32 instead */
+
rc = cxl_mmio_read32(card->afu_h, offset, data);
reg_trace(" %s(%p, %llx, %lx) %d\n", __func__, card,
(long long)offset, (long)*data, rc);
@@ -430,6 +434,8 @@ static int hw_detach_action(struct snap_action *action)
__func__, (long long)data);
rc = 1; /* FIXME Use libdonut return codes */
}
+
+ card->action_base = 0; /* FIXME use action_*32 instead */
return rc;
}
|
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 THttpHeaders::RemoveHeader(const TString& header) {
for (THeaders::iterator h = Headers_.begin(); h != Headers_.end(); ++h) {
if (stricmp(~h->Name(), ~header) == 0) {
|
[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 += gamma * h * yDot;
assert(!std::isnan(y));
- DEBUG_EXPR(
+ DEBUG_EXPR_WE(
if(y <= _constraintActivationThreshold)
- DEBUG_PRINT("MoreauJeanOSI::addInteractionInIndexSet ACTIVATE.\n");
+ std::cout << "MoreauJeanOSI::addInteractionInIndexSet ACTIVATE." << y << "<= " << _constraintActivationThreshold << std::endl;;
);
return (y <= _constraintActivationThreshold);
}
|