message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
mmapstorage: improve set operation | @@ -195,7 +195,6 @@ static void elektraMmapstorageWriteKeySet (char * mappedRegion, KeySet * keySet)
// move KeySet itself to the mapped region
keySet->flags |= KS_FLAG_MMAP;
memcpy (ksRegion, keySet, SIZEOF_KEYSET);
- //fwrite (keySet, SIZEOF_KEYSET, 1, fp);
return;
}
@@ -229,7 +228,7 @@ static void elektraMmapstorage... |
Bindhost/bindport should be freed | @@ -3056,6 +3056,8 @@ int s_client_main(int argc, char **argv)
#endif
OPENSSL_free(connectstr);
OPENSSL_free(bindstr);
+ OPENSSL_free(bindhost);
+ OPENSSL_free(bindport);
OPENSSL_free(host);
OPENSSL_free(port);
OPENSSL_free(thost);
|
landscape: prevent resource clobbering
Fixes | @@ -50,7 +50,9 @@ export function NewChannel(props: NewChannelProps & RouteComponentProps) {
const waiter = useWaitForProps(props, 5000);
const onSubmit = async (values: FormSchema, actions) => {
- const resId: string = stringToSymbol(values.name);
+ const resId: string = stringToSymbol(values.name)
+ + ((workspace?.ty... |
Removed useless VDP_waitDMACompletion() check | @@ -1370,9 +1370,6 @@ static void doFlip()
// better to disable ints here
SYS_disableInts();
- // wait for DMA completion if used otherwise VDP writes can be corrupted
- VDP_waitDMACompletion();
-
// copy tile buffer to VRAM
if (doBlit())
{
|
hwtest/pgraph: Fix NV10 state3d check. | @@ -1198,32 +1198,20 @@ bool pgraph_state3d_ok(struct pgraph_state *state) {
return true;
uint32_t cls = pgraph_class(state);
bool state3d_ok = false;
- if (state->chipset.chipset == 0x10) {
- if (cls == 0x48) {
- state3d_ok = extr(state->state3d, 28, 1) && !extr(state->debug[3], 13, 1);
- } else if (cls == 0x54 || cls... |
fix pu32bits function | @@ -198,7 +198,7 @@ static void put16bits(uint8_t** buffer, uint16_t value)
static void put32bits(uint8_t** buffer, uint32_t value)
{
- value = htons(value);
+ value = htonl(value);
memcpy(*buffer, &value, 4);
*buffer += 4;
}
|
FAQ: Update logo location | @@ -87,6 +87,6 @@ result is GPL.
## How can I advertise Elektra?
If questions about configuration come up, point users to https://www.libelektra.org
-Display the logos found at https://master.libelektra.org/doc/images (see logo.png or the circle*.svg).
+Display the logos found at https://master.libelektra.org/doc/image... |
lcd: Fix npixels parameter in calls to getrun/putrun
It was being passed in number of bytes, but the correct should be the
number of pixels. | @@ -145,7 +145,7 @@ static int lcddev_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
{
ret = priv->planeinfo.getrun(priv->lcd_ptr, row,
lcd_area->col_start, buf,
- row_size);
+ cols);
if (ret < 0)
{
break;
@@ -184,7 +184,7 @@ static int lcddev_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
{
ret =... |
trogdor: Fix macro value enclosure
The value should be enclosed in parentheses.
BRANCH=Trogdor
TEST=No PRESUBMIT error. | EC_HOST_EVENT_MASK(EC_HOST_EVENT_AC_DISCONNECTED) | \
EC_HOST_EVENT_MASK(EC_HOST_EVENT_HANG_DETECT) | \
EC_HOST_EVENT_MASK(EC_HOST_EVENT_RTC) | \
- EC_HOST_EVENT_MASK(EC_HOST_EVENT_MODE_CHANGE)) | \
- EC_HOST_EVENT_MASK(EC_HOST_EVENT_DEVICE)
+ EC_HOST_EVENT_MASK(EC_HOST_EVENT_MODE_CHANGE) | \
+ EC_HOST_EVENT_MASK(EC_HO... |
mesh: Remove unsigned typing to returns in heartbeat
Removes U-suffix from signed return codes in heartbeat.c.
this is port of | @@ -91,7 +91,7 @@ static int heartbeat_send(const struct bt_mesh_send_cb *cb, void *cb_data)
* removed.
*/
if (!tx.sub || pub.dst == BT_MESH_ADDR_UNASSIGNED) {
- return 0U;
+ return 0;
}
hb.init_ttl = pub.ttl;
|
Line: Use fences for code blocks | @@ -28,6 +28,7 @@ The value of each key hold the content of the actual file line-by-line.
For example, consider the following content of the file `~/.config/line` where the
numbers on the left represent the line numbers:
+```
1 setting1 true
2 setting2 false
3 setting3 1000
@@ -37,25 +38,29 @@ numbers on the left repre... |
warn about attack detection | @@ -2928,6 +2928,8 @@ ssize_t fio_flush(intptr_t uuid) {
/* Slowloris attack assumed */
fio_unlock(&uuid_data(uuid).sock_lock);
uuid_data(uuid).close = 1;
+ FIO_LOG_WARNING("(facil.io) possible Slowloris attack from uuid: %p",
+ (void *)uuid);
goto closed;
}
if (uuid_data(uuid).packet) {
|
mgmt/imgmgr: Clear upload state on erase
This fixes
When an `image erase` command is successfully processed, reset the
in-progress upload (if any). Prior to this commit, a subsequent upload
could resume an aborted upload, even if the partial image had since been
erased. | @@ -442,6 +442,10 @@ imgr_erase(struct mgmt_cbuf *cb)
if (g_err) {
return MGMT_ERR_ENOMEM;
}
+
+ /* Reset in-progress upload. */
+ imgr_state.area_id = -1;
+
return 0;
}
@@ -486,6 +490,9 @@ imgr_erase_state(struct mgmt_cbuf *cb)
return MGMT_ERR_ENOMEM;
}
+ /* Reset in-progress upload. */
+ imgr_state.area_id = -1;
+
re... |
TI lib: add ti_lib_rfc_hw_int_enable/disable/clear functions | #define ti_lib_rfc_rtrim(...) RFCRTrim(__VA_ARGS__)
#define ti_lib_rfc_adi3vco_ldo_voltage_mode(...) RFCAdi3VcoLdoVoltageMode(__VA_ARGS__)
+#define ti_lib_rfc_hw_int_enable(...) RFCHwIntEnable(__VA_ARGS__)
+#define ti_lib_rfc_hw_int_disable(...) RFCHwIntDisable(__VA_ARGS__)
+#define ti_lib_rfc_hw_int_clear(...) RFCHwIn... |
Save XDP bits too | @@ -193,6 +193,7 @@ function Install-Xdp-Sdk {
Expand-Archive -Path $ZipPath -DestinationPath $XdpPath -Force
New-Item -Path "$ArtifactsPath\bin\xdp" -ItemType Directory -Force
Copy-Item -Path "$XdpPath\symbols\*" -Destination "$ArtifactsPath\bin\xdp" -Force
+ Copy-Item -Path "$XdpPath\bin\*" -Destination "$ArtifactsPa... |
Disable the gfortran tree vectorizer for lapack-netlib | @@ -278,7 +278,11 @@ prof_lapack : lapack_prebuild
lapack_prebuild :
ifeq ($(NO_LAPACK), $(filter 0,$(NO_LAPACK)))
-@echo "FC = $(FC)" > $(NETLIB_LAPACK_DIR)/make.inc
+ifeq ($(F_COMPILER), GFORTRAN)
+ -@echo "override FFLAGS = $(LAPACK_FFLAGS) -fno-tree-vectorize" >> $(NETLIB_LAPACK_DIR)/make.inc
+else
-@echo "override... |
vhost: Fix mmap size calculation
I had a bug where a requested size of 1G was resulting in
an aligned size of '1G + 2M', resulting in an OOM error.
Previous code was adding one huge page size
when memory is already aligned. | @@ -303,7 +303,7 @@ unmap_all_mem_regions (vhost_user_intf_t * vui)
ssize_t map_sz = (vui->regions[i].memory_size +
vui->regions[i].mmap_offset +
- page_sz) & ~(page_sz - 1);
+ page_sz - 1) & ~(page_sz - 1);
r =
munmap (vui->region_mmap_addr[i] - vui->regions[i].mmap_offset,
@@ -917,7 +917,7 @@ vhost_user_socket_read (... |
Group remaining Pulse jobs and CCP adopted jobs | @@ -46,6 +46,30 @@ groups:
- name: Release
jobs:
- Release_Candidate
+
+- name: Remaining Pulse
+ jobs:
+ - DPM_netbackup77
+ - DPM_backup-restore-ddboost
+ - DPM_backup_43_restore_5
+ - MM_gpcheckcat
+ - MM_gpexpand
+ - DPM_gptransfer-43x-to-5x
+ - DPM_gptransfer-5x-to-5x
+ - cs-pg-two-phase
+ - cs-walrepl-multinode
+... |
Connect to server only when client have pending data
Currently we attach to server right after connection. This creates some
troubles especially in session pooling. With this commit we only attach
to server connection when at least one byte of client data arrived. | @@ -246,6 +246,14 @@ od_relay_process(od_relay_t *relay, int *progress, char *data, int size)
return OD_OK;
}
+static inline bool
+od_relay_data_pending(od_relay_t *relay)
+{
+ char *current = od_readahead_pos_read(&relay->src->readahead);
+ char *end = od_readahead_pos(&relay->src->readahead);
+ return current < end;
... |
VERSION bump to version 2.1.72 | @@ -64,7 +64,7 @@ endif()
# micro version is changed with a set of small changes or bugfixes anywhere in the project.
set(SYSREPO_MAJOR_VERSION 2)
set(SYSREPO_MINOR_VERSION 1)
-set(SYSREPO_MICRO_VERSION 71)
+set(SYSREPO_MICRO_VERSION 72)
set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_MI... |
libbpf-tools: update README add a blog link | @@ -3,6 +3,7 @@ Useful links
- [BPF Portability and CO-RE](https://facebookmicrosites.github.io/bpf/blog/2020/02/19/bpf-portability-and-co-re.html)
- [HOWTO: BCC to libbpf conversion](https://facebookmicrosites.github.io/bpf/blog/2020/02/20/bcc-to-libbpf-howto-guide.html)
+- [Tips & tricks for writing libbpf-tools](htt... |
sse: correct POWER versions in _mm_cmpunord_ps, add POWER6 version.
vec_nand needs POWER8. | @@ -1448,9 +1448,13 @@ simde_mm_cmpunord_ps (simde__m128 a, simde__m128 b) {
r_.neon_u32 = vmvnq_u32(vandq_u32(ceqaa, ceqbb));
#elif defined(SIMDE_WASM_SIMD128_NATIVE)
r_.wasm_v128 = wasm_v128_or(wasm_f32x4_ne(a_.wasm_v128, a_.wasm_v128), wasm_f32x4_ne(b_.wasm_v128, b_.wasm_v128));
- #elif defined(SIMDE_POWER_ALTIVEC_P... |
add pointer hover state | @@ -45,7 +45,7 @@ export class Comments extends Component {
</textarea>
</div>
- <button onClick={this.commentSubmit} className="f9 pa2 bg-white br1 ba b--gray2 gray2">
+ <button onClick={this.commentSubmit} className="f9 pa2 bg-white br1 ba b--gray2 gray2 pointer">
Add comment
</button>
</div>
|
extmod/vfs: Use existing qstr for forward-slash string object. | @@ -261,7 +261,7 @@ mp_obj_t mp_vfs_chdir(mp_obj_t path_in) {
// subsequent relative paths begin at the root of that VFS.
for (vfs = MP_STATE_VM(vfs_mount_table); vfs != NULL; vfs = vfs->next) {
if (vfs->len == 1) {
- mp_obj_t root = mp_obj_new_str("/", 1, false);
+ mp_obj_t root = MP_OBJ_NEW_QSTR(MP_QSTR__slash_);
mp_... |
kubectl-gadget: Rename process-collector specific variables/functions
This renaming is useful because this file will contain multiple
collectors in it. | @@ -32,12 +32,15 @@ import (
var processCollectorCmd = &cobra.Command{
Use: "process-collector",
Short: "Collect processes",
- Run: collectorCmdRun("process-collector"),
+ Run: processCollectorCmdRun("process-collector"),
}
var (
- collectorParams utils.CommonFlags
- collectorParamThreads bool
+ commonParams utils.Comm... |
[Bender] Add the traffic generator to the testbench file list | @@ -48,6 +48,7 @@ sources:
files:
# Level 1
- hardware/tb/axi_uart.sv
+ - hardware/tb/traffic_generator.sv
# Level 2
- hardware/tb/mempool_tb.sv
@@ -55,6 +56,7 @@ sources:
files:
# Level 1
- hardware/tb/axi_uart.sv
+ - hardware/tb/traffic_generator.sv
# Level 2
- hardware/tb/mempool_tb_verilator.sv
|
esp32/CMakeLists.txt: Require CMake version 3.12.
Because "find_package(Python3 ...)" requires at least this version of
CMake. And other features like GREATER_EQUAL and COMMAND_EXPAND_LISTS need
at least CMake 3.7 and 3.8 respectively. | # Top-level cmake file for building MicroPython on ESP32.
-cmake_minimum_required(VERSION 3.5)
+cmake_minimum_required(VERSION 3.12)
# Set the location of this port's directory.
set(MICROPY_PORT_DIR ${CMAKE_SOURCE_DIR})
|
CMSIS-Core: Fixed possible compiler/misra warnings on IAR CLZ workaround. | // various versions of the IAR compilers.
// __IAR_FEATURE_CLZ__ should be defined by
// the compiler that supports __CLZ internally.
- #if __ARM_ARCH_6M__ && !__IAR_FEATURE_CLZ__
+ #if (defined (__ARM_ARCH_6M__)) && (__ARM_ARCH_6M__ == 1) && (!defined (__IAR_FEATURE_CLZ__))
__STATIC_INLINE uint32_t __CLZ(uint32_t data... |
Fix coverity error in IP4 Mtrie. | @@ -284,8 +284,8 @@ set_leaf (ip4_fib_mtrie_t * m,
if (n_dst_bits_next_plies <= 0)
{
/* The mask length of the address to insert maps to this ply */
- uword i, old_leaf_is_terminal;
- u32 n_dst_bits_this_ply;
+ uword old_leaf_is_terminal;
+ u32 i, n_dst_bits_this_ply;
/* The number of bits, and hence slots/buckets, we ... |
build: bump to v1.3.0 | cmake_minimum_required(VERSION 2.8)
project(fluent-bit)
+# Fluent Bit Version
+set(FLB_VERSION_MAJOR 1)
+set(FLB_VERSION_MINOR 3)
+set(FLB_VERSION_PATCH 0)
+set(FLB_VERSION_STR "${FLB_VERSION_MAJOR}.${FLB_VERSION_MINOR}.${FLB_VERSION_PATCH}")
+
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
# Define macro to identify Windows ... |
better exits | # Run by just giving the test to run (run-bmark-tests | run-asm-tests)
# Runs in vsim and verisim
-set -xe
+set -ex
+set -euo pipefail
cd sims/vsim/
-make SUB_PROJECT=rocketchip CONFIG=DefaultConfig && make SUB_PROJECT=rocketchip CONFIG=DefaultConfig $1
-make SUB_PROJECT=boom CONFIG=BoomConfig && make SUB_PROJECT=boom ... |
Apply ta label size fix from dev-6.0 | @@ -1104,6 +1104,8 @@ static lv_res_t lv_ta_signal(lv_obj_t * ta, lv_signal_t sign, void * param)
static lv_res_t lv_ta_scrollable_signal(lv_obj_t * scrl, lv_signal_t sign, void * param)
{
lv_res_t res;
+ lv_obj_t * ta = lv_obj_get_parent(scrl);
+ lv_ta_ext_t * ext = lv_obj_get_ext_attr(ta);
/* Include the ancient sign... |
Disable constant blocking error; track it at runtime. | =+ jon=(apex:musk bus q.pro)
?~ jon
?: fab
- pro
+ [p.pro [%10 [%live %1 %blow-stop] q.pro]]
+ [p.pro [%10 [%live %1 %blow-stop] q.pro]]
~| %constant-folding-stopped
- !!
+ :: !!
?: ?=($| -.u.jon)
?: fab
- pro
- ~| %constant-folding-blocked
+ [p.pro [%10 [%live %1 %blow-block] q.pro]]
+ [p.pro [%10 [%live %1 %blow-bloc... |
fix bug with repeats | @@ -238,6 +238,7 @@ public class NotificationScheduler {
return;
}
+
props.put(NotificationSingleton.HK_TITLE, title);
props.put(NotificationSingleton.HK_MESSAGE, message);
@@ -252,6 +253,11 @@ public class NotificationScheduler {
}
singleton.showPopup(props, null);
+ if(repeats && interval == 0)
+ {
+ setReminder(cont... |
Missed that line in configure.ac | AC_PREREQ(2.60)
-AC_INIT([libupnp], [1.14.14], [mroberto@users.sourceforge.net])
+AC_INIT([libupnp], [1.14.15], [mroberto@users.sourceforge.net])
dnl ############################################################################
dnl # *Independently* of the above libupnp package version, the libtool version
dnl # of the ... |
sysrepo BUGFIX missing initializer | @@ -2540,7 +2540,7 @@ sr_rpc_send(sr_session_ctx_t *session, const char *path, const sr_val_t *input,
sr_val_t **output, size_t *output_cnt)
{
sr_error_info_t *err_info = NULL;
- struct lyd_node *input_tree = NULL, *output_tree, *next, *elem;
+ struct lyd_node *input_tree = NULL, *output_tree = NULL, *next, *elem;
char... |
Remove the Python2 interface | @@ -138,17 +138,7 @@ ecbuild_add_option( FEATURE AEC
ecbuild_find_python( VERSION 2.6 NO_LIBS )
find_package( NumPy )
-ecbuild_add_option( FEATURE PYTHON2
- DESCRIPTION "Build the ecCodes Python2 interface (deprecated)"
- DEFAULT OFF
- #CONDITION Python_FOUND AND NumPy_FOUND
- CONDITION PYTHON_FOUND AND NUMPY_FOUND
- )... |
Rework the surround extension | #include "../../plugin.h"
-static CLAP_CONSTEXPR const char CLAP_EXT_SURROUND[] = "clap.surround.draft/0";
+static CLAP_CONSTEXPR const char CLAP_EXT_SURROUND[] = "clap.surround.draft/1";
#ifdef __cplusplus
extern "C" {
@@ -32,11 +32,14 @@ enum {
};
typedef struct clap_plugin_surround {
+ // Stores into the channel_map... |
util/perl/OpenSSL/Test.pm: Disable stdout/stderr redirection on non-verbosity
... except on VMS, where output from executed programs doesn't seem to be
captured properly by Test::Harness or TAP::Harness. | @@ -446,17 +446,22 @@ sub run {
die "OpenSSL::Test::run(): statusvar value not a scalar reference"
if $opts{statusvar} && ref($opts{statusvar}) ne "SCALAR";
+ # For some reason, program output, or even output from this function
+ # somehow isn't caught by TAP::Harness (TAP::Parser?) on VMS, so we're
+ # silencing it sp... |
pbio/test/trajectory: Reduce runtime.
We don't have to check infinite maneuvers into infinity. | @@ -72,8 +72,23 @@ static void walk_trajectory(pbio_trajectory_t *trj) {
uint32_t time_start = ref_prev.time;
+ // Get duration of trajectory.
+ uint32_t duration = pbio_trajectory_get_duration(trj);
+
+ if (duration == DURATION_FOREVER_TICKS) {
+ // To save time on testing, check only twice the on-ramp for "forever"
+... |
Add TINC aoco_compression to Concourse pipeline.
This commit adds TINC aoco_compression to the GPDB 5.0_MASTER pipeline
as a nightly trigger job. | @@ -120,6 +120,14 @@ resources:
start: 4:00 AM
stop: 5:00 AM
+- name: nightly-trigger-pulse
+ type: time
+ source:
+ location: America/Los_Angeles
+ days: [Sunday, Monday, Tuesday, Wednesday, Thursday]
+ start: 6:00 AM
+ stop: 7:00 AM
+
## ======================================================================
## jobs
#... |
esp32/machine_uart: Implement UART.deinit() method. | @@ -286,6 +286,13 @@ STATIC mp_obj_t machine_uart_init(size_t n_args, const mp_obj_t *args, mp_map_t
}
MP_DEFINE_CONST_FUN_OBJ_KW(machine_uart_init_obj, 1, machine_uart_init);
+STATIC mp_obj_t machine_uart_deinit(mp_obj_t self_in) {
+ machine_uart_obj_t *self = MP_OBJ_TO_PTR(self_in);
+ uart_driver_delete(self->uart_nu... |
examples: Use printf rather than [f]put[w]s (pull request | #ifdef XML_UNICODE_WCHAR_T
# include <wchar.h>
# define XML_FMT_STR "ls"
-# define xcputs(s) do { fputws((s), stdout); putchar('\n'); } while (0)
#else
# define XML_FMT_STR "s"
-# define xcputs(s) puts(s)
#endif
static void XMLCALL
@@ -65,7 +63,7 @@ startElement(void *userData, const XML_Char *name, const XML_Char **at... |
misc: update classifiers in setup.py | @@ -34,7 +34,9 @@ setup(name = "pyuv",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
- "Programming Language :: Python :: 3.5"
+ "Programming Language :: Python :: 3.5",
+ "Programming Language :: Python :: Implementation :: CPython",
+ "Program... |
simplify use of realloc | @@ -59,11 +59,10 @@ void sstrcpy(char** dest, const char *src) {
uint32_t len = strlen(src)+1;
assert(dest!=NULL);
- if (*dest == NULL) {
- *dest = (char*)malloc(len);
- } else {
- *dest = (char*)realloc(*dest, len);
- }
+ char* ptr = (char*)realloc(*dest, len); //acts like mallos if dest==NULL
+ assert(ptr!=NULL);
+ *... |
Pack generator updated | @@ -50,6 +50,7 @@ XCOPY /Q /S /Y ..\..\Device\*.* %RELEASE_PATH%\Device\*.*
XCOPY /Q /S /Y ..\..\CMSIS\Core\Include\*.* %RELEASE_PATH%\CMSIS\Include\*.*
XCOPY /Q /S /Y ..\..\CMSIS\Core\Template\ARMv8-M\*.* %RELEASE_PATH%\CMSIS\Core\Template\ARMv8-M\*.*
XCOPY /Q /S /Y ..\..\CMSIS\Core_A\Include\*.* %RELEASE_PATH%\CMSIS\... |
Documentation change in GNSS only. | @@ -2084,7 +2084,15 @@ typedef enum {
/** Item IDs for #U_GNSS_CFG_VAL_KEY_GROUP_ID_UART1.
*/
typedef enum {
- U_GNSS_CFG_VAL_KEY_ITEM_UART1_BAUDRATE_U4 = 0x01, /**< the baud rate that should be configured on UART1. */
+ U_GNSS_CFG_VAL_KEY_ITEM_UART1_BAUDRATE_U4 = 0x01, /**< the baud rate that should be configured on
+... |
Don't add os/ to MODULES twice | @@ -69,7 +69,7 @@ ifneq ("$(wildcard project-conf.h)","")
CFLAGS += -DPROJECT_CONF_PATH=\"project-conf.h\"
endif
-MODULES += os os/net os/net/mac os/net/mac/framer os/net/routing os/storage
+MODULES += os/net os/net/mac os/net/mac/framer os/net/routing os/storage
define oname
${patsubst %.c,%.o, \
|
Mancomb: Remove pause in S5 config
This config is a no-op in AMD power sequencing.
BRANCH=None
TEST=make -j buildall | #define CONFIG_POWER_BUTTON_X86
#define CONFIG_POWER_COMMON
#define CONFIG_POWER_S0IX
-#define CONFIG_POWER_SHUTDOWN_PAUSE_IN_S5
#define CONFIG_POWER_SLEEP_FAILURE_DETECTION
#define CONFIG_POWER_TRACK_HOST_SLEEP_STATE
#define G3_TO_PWRBTN_DELAY_MS 80
|
Rename GAMMA to avoid conflict with common GAMMA | @@ -75,7 +75,7 @@ volatile bool flip = false;
// This gamma table is used to correct our 8-bit (0-255) colours up to 11-bit,
// allowing us to gamma correct without losing dynamic range.
-const uint16_t GAMMA[256] = {
+const uint16_t GAMMA_12BIT[256] = {
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
16, 17, 18,... |
vppinfra: add SSE4.2 version of u8x16_shuffle | @@ -607,6 +607,12 @@ u32x4_hadd (u32x4 v1, u32x4 v2)
return (u32x4) _mm_hadd_epi32 ((__m128i) v1, (__m128i) v2);
}
+static_always_inline u8x16
+u8x16_shuffle (u8x16 v, u8x16 m)
+{
+ return (u8x16) _mm_shuffle_epi8 ((__m128i) v, (__m128i) m);
+}
+
#endif /* included_vector_sse2_h */
/*
|
restart: remove unused restart_mmap_set function | @@ -23,7 +23,6 @@ enum restart_get_kv_ret restart_get_kv(void *ctx, char **key, char **val);
bool restart_mmap_open(const size_t limit, const char *file, void **mem_base);
void restart_mmap_close(void);
-void restart_mmap_set(void);
unsigned int restart_fixup(void *old_base);
#endif
|
external/websocket: change ndbg to printf
change ndbg to printf | #define WEBSOCKET_DEBUG_PRINT
/**< websocket debug print option if defined, enables debug print */
#if defined(WEBSOCKET_DEBUG_PRINT)
-#define WEBSOCKET_DEBUG ndbg
+#define WEBSOCKET_DEBUG printf
#else
#define WEBSOCKET_DEBUG(...) do { } while (0)
#endif
|
[chainmaker][#464]modify BOAT_CFLAGS | @@ -200,6 +200,7 @@ endif
ifeq ($(BOAT_TEST), TEST_MODE)
BOAT_TEST_FLAG = -fprofile-arcs\
-ftest-coverage
+endif
# Combine FLAGS
BOAT_CFLAGS := $(TARGET_SPEC_CFLAGS) \
$(BOAT_INCLUDE) \
@@ -209,17 +210,6 @@ BOAT_CFLAGS := $(TARGET_SPEC_CFLAGS) \
$(BOAT_DEFINED_MACROS) \
$(EXTERNAL_CFLAGS) \
$(BOAT_TEST_FLAG)
-else
-# C... |
kernel/timer: set PREALLOC_TIMERS' default to 0 on disabled timer
When timer is disabled, number of preallocated timer is not needed.
Let's set a default value of PREALLOC_TIMERS to zero
when DISABLE_POSIX_TIMER is enabled. | @@ -220,7 +220,8 @@ config WDOG_INTRESERVE
config PREALLOC_TIMERS
int "Number of pre-allocated POSIX timers"
- default 8
+ default 8 if !DISABLE_POSIX_TIMERS
+ default 0 if DISABLE_POSIX_TIMERS
---help---
The number of pre-allocated POSIX timer structures. The system manages a
pool of preallocated timer structures to m... |
clEnqueueNDRange: move the oversized work-group check earlier
We should only check that the user-specified work-group size is not too
large. We should never produce one ourselves. (Do assert if we do,
though.) | @@ -115,6 +115,29 @@ POname(clEnqueueNDRangeKernel)(cl_command_queue command_queue,
local_x = local_work_size[0];
local_y = work_dim > 1 ? local_work_size[1] : 1;
local_z = work_dim > 2 ? local_work_size[2] : 1;
+
+ POCL_RETURN_ERROR_ON(
+ (local_x * local_y * local_z >
+ command_queue->device->max_work_group_size),
+ ... |
Upload .hex version of bootloader in addition to .bin | @@ -70,7 +70,7 @@ jobs:
python tools/progen_compile.py --release --parallel -v -v --ignore-failures
(ls -lR firmware_*; ccache -s; arm-none-eabi-gcc -v) | tee log.txt
mkdir bootloaders
- cp projectfiles/make_gcc_arm/*_bl/build/*_crc.bin bootloaders
+ cp projectfiles/make_gcc_arm/*_bl/build/*_crc.{bin,hex} bootloaders
-... |
dojo: Set max input current limit to 2944mA
Limit input current lower than 2944mA for safety.
BRANCH=cherry
TEST=make sure safety test pass. | @@ -380,6 +380,9 @@ const struct usb_mux usb_muxes[CONFIG_USB_PD_PORT_MAX_COUNT] = {
void board_set_charge_limit(int port, int supplier, int charge_ma,
int max_ma, int charge_mv)
{
+ /* Limit input current lower than 2944 mA for safety */
+ charge_ma = MIN(charge_ma, 2944);
+
charge_set_input_current_limit(
MAX(charge_... |
redrix: Fix FAN acoustic while EC reset
BRANCH=none
TEST=Verify FAN acoustic is not loud while EC reset. | @@ -71,8 +71,8 @@ GPIO(EC_PCH_RTCRST, PIN(7, 6), GPIO_OUT_LOW)
GPIO(EC_PCH_SYS_PWROK, PIN(3, 7), GPIO_OUT_LOW)
GPIO(EC_PCH_WAKE_R_ODL, PIN(C, 0), GPIO_ODR_HIGH)
GPIO(EC_PROCHOT_ODL, PIN(6, 3), GPIO_ODR_HIGH)
-GPIO(EN_PP5000_FAN, PIN(6, 1), GPIO_OUT_HIGH)
-GPIO(EN_PP5000_FAN2, PIN(5, 0), GPIO_OUT_HIGH)
+GPIO(EN_PP5000_F... |
Log rb cleanup
Rename log_buf_not_empty_output to something sane and drop
uneeded null test.
Move rb queueing code to function. | @@ -209,12 +209,26 @@ static void log_output(int pri, const char *msg, bool bypass)
}
}
+static void log_queue_msg(struct log_buf *logbuf, int pri, char *buf)
+{
+ unsigned int head;
+ char *msg;
+
+ head = logbuf->head;
+ rb_set_pri(logbuf, head, pri);
+ msg = rb_get_msg(logbuf, head);
+ memcpy(msg, buf, LOG_MSG_LEN);... |
Remove warning with casting in reflect. | @@ -180,7 +180,7 @@ int scope_define(scope sp, const char *key, value val)
{
if (sp != NULL && key != NULL && val != NULL)
{
- if (set_contains(sp->objects, key) == 0)
+ if (set_contains(sp->objects, (set_key)key) == 0)
{
log_write("metacall", LOG_LEVEL_ERROR, "Scope failed to define a object with key '%s', this key as... |
strptime: initialize 'len' variable | @@ -143,7 +143,7 @@ _flb_strptime(const char *buf, const char *fmt, struct tm *tm, int initialize)
{
unsigned char c;
const unsigned char *bp, *ep;
- size_t len;
+ size_t len = 0;
int alt_format, i, offs;
int neg = 0;
static int century, relyear, fields;
|
android: returning obfuscation | -dontoptimize
-dontpreverify
-useuniqueclassmembernames
--dontobfuscate
-verbose
-dump class_files.txt
# Switch off some optimizations that trip older versions of the Dalvik VM.
-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*
-
-allowaccessmodification
# RemoteViews might need annotations.
|
avf: fix incorrect flag for flow director
When parsing flow action type in avf, there is an incorrect flag for
flow director, which makes flow director rule created unexpectedly.
Type: fix | @@ -506,6 +506,7 @@ pattern_end:
if (f->actions & VNET_FLOW_ACTION_RSS)
{
avf_actions[action_count].conf = &act_rss;
+ is_fdir = false;
if ((act_rss.func = avf_flow_convert_rss_func (f->rss_fun)) ==
AVF_ETH_HASH_FUNCTION_MAX)
@@ -522,8 +523,6 @@ pattern_end:
is_fdir = true;
}
- is_fdir = false;
-
if (fate == true)
{
rv... |
use low-mem in test | @@ -254,7 +254,7 @@ tests/test-pics-basis-noncart-memory2: traj scale phantom ones join noise transp
$(TOOLDIR)/fmac -s 64 ksp4.ra o1.ra ksp5.ra ;\
$(TOOLDIR)/ones 3 128 128 1 coils.ra ;\
$(TOOLDIR)/transpose 2 5 traj2.ra traj3.ra ;\
- $(TOOLDIR)/pics -S -i100 -r0. -t traj3.ra -Bo1.ra ksp5.ra coils.ra reco1.ra ;\
+ $(T... |
Fix 2nd llnl-58 test include path | @@ -5,7 +5,7 @@ TESTSRC_MAIN = clang_llnl_58.cc
TESTSRC_AUX =
TESTSRC_ALL = $(TESTSRC_MAIN) $(TESTSRC_AUX)
-OMP_FLAGS = -c -D__HIP_PLATFORM_AMD__ -I/opt/rocm-4.2.0/include -O3 -g -fopenmp -fopenmp-targets=amdgcn-amd-amdhsa -Xopenmp-target=amdgcn-amd-amdhsa -march=gfx908
+OMP_FLAGS = -c -D__HIP_PLATFORM_AMD__ -I$(AOMPHI... |
Only Change Partitions for New Paths | @@ -4320,7 +4320,7 @@ QuicConnRecvDatagramBatch(
QuicConnRecvPostProcessing(Connection, &Path, Packet);
RecvState->ResetIdleTimeout |= Packet->CompletelyValid;
- if (Path->IsActive && Packet->CompletelyValid &&
+ if (Path->IsActive && !Path->IsPeerValidated && Packet->CompletelyValid &&
(Datagrams[i]->PartitionIndex % ... |
compat FEATURE new compare-exchange atomic macro | # define ATOMIC_ADD_RELAXED(var, x) atomic_fetch_add_explicit(&(var), x, memory_order_relaxed)
# define ATOMIC_DEC_RELAXED(var) atomic_fetch_sub_explicit(&(var), 1, memory_order_relaxed)
# define ATOMIC_SUB_RELAXED(var, x) atomic_fetch_sub_explicit(&(var), x, memory_order_relaxed)
+# define ATOMIC_COMPARE_EXCHANGE_RELA... |
Utilities: Fix boot filename | @@ -40,7 +40,7 @@ dd if=/dev/random of=newbs skip=496 seek=496 bs=1 count=14 conv=notrunc
sudo dd if=newbs of=/dev/rdisk"${N}"s1
diskutil mount disk"${N}"s1
-cp -v "boot${ARCHS}" "$(diskutil info disk"${N}"s1 | sed -n 's/.*Mount Point: *//p')"
+cp -v "boot${ARCHS}" "$(diskutil info disk"${N}"s1 | sed -n 's/.*Mount Poin... |
openjdk versions: 11.0.3 and 12.0.1 | @@ -6,9 +6,9 @@ IF(USE_SYSTEM_JDK)
ELSEIF(JDK_VERSION STREQUAL "12")
DECLARE_EXTERNAL_HOST_RESOURCES_BUNDLE(
JDK
- sbr:899346226 FOR DARWIN
- sbr:899341715 FOR LINUX
- sbr:899348970 FOR WIN32
+ sbr:1024709691 FOR DARWIN
+ sbr:1024708480 FOR LINUX
+ sbr:1024706391 FOR WIN32
)
IF(NOT HOST_OS_LINUX AND NOT HOST_OS_WINDOWS... |
replaced faulty checkpoint | @@ -51,7 +51,7 @@ namespace Checkpoints
( 641361, uint256("0x000000000005e6b7e106ce402511a64b239b5668e3599fb9e71dd75c16528033") )
( 654900, uint256("0x000000000003200e2a80124060eab0f846671ec542cfa8f19f1bf4ad9501ad3e") )
( 695732, uint256("0x000000000039800dffda8f76c6fc46db0e0fc585274d34d3377058a7ae4be093") )
- ( 735300... |
docs: gpbackup - fix typo - remove extra bracket | [<b>-exclude-table</b> <varname>schema.table</varname>]
[<b>-exclude-table-file</b> <varname>file_name</varname>]
[<b>-include-schema</b> <varname>schema_name</varname>]
- [[<b>-include-table</b> <varname>schema.table</varname>]
+ [<b>-include-table</b> <varname>schema.table</varname>]
[<b>-include-table-file</b> <varn... |
esp_hw_support/sleep: fix light sleep wakeup flag
light sleep wakeup flag is true to indicate the most recent successful wakeup from light sleep,
which means the most recent light sleep occurred successfully and then wakes up by wakeup source | @@ -816,15 +816,20 @@ esp_err_t esp_light_sleep_start(void)
int64_t final_sleep_duration_us = (int64_t)s_config.sleep_duration - (int64_t)s_config.sleep_time_adjustment;
int64_t min_sleep_duration_us = rtc_time_slowclk_to_us(RTC_CNTL_MIN_SLP_VAL_MIN, s_config.rtc_clk_cal_period);
+ // reset light sleep wakeup flag befo... |
Remove unused TIndexHelper::Write (copy-paste + with a bug) | @@ -55,14 +55,6 @@ public:
return (compressedData[offset] >> shift) & Mask();
}
- template <class T>
- inline void Write(TVector<ui64>& compressedData, ui32 index, T data) const {
- const ui32 offset = Offset(index);
- const ui32 shift = Shift(index);
- CB_ENSURE((data & Mask()) == data);
- compressedData[offset] = ((u... |
Increase max offsets in cameraMoveTo event | @@ -8,7 +8,7 @@ const fields = [
label: l10n("FIELD_X"),
type: "number",
min: 0,
- max: 12,
+ max: 255,
width: "50%",
defaultValue: 0
},
@@ -17,7 +17,7 @@ const fields = [
label: l10n("FIELD_Y"),
type: "number",
min: 0,
- max: 14,
+ max: 255,
width: "50%",
defaultValue: 0
},
|
Removed unnecessary closing span tag from template. | <!-- TPL General -->
<script id="tpl-general" type="text/template">
<h4 class="hidden-xs gheader">{{head}}<span class="pull-right"><span class="from"></span> — <span class="to"></span></span></h4>
- <h5 class="visible-xs hidden-sm hidden-md hidden-lg gheader">{{head}} <span class="from"></span> —... |
odissey: set correct debug name for default route | @@ -590,7 +590,8 @@ void od_frontend(void *arg)
od_route_t *route = client->route;
od_debug_client(&instance->log, &client->id, NULL,
"route to '%s' (using '%s' storage)",
- route->scheme->target,
+ (route->scheme->is_default) ?
+ "default" : route->scheme->target,
route->scheme->storage->name);
break;
}
|
Fix tcl comments at end of line | @@ -21,25 +21,25 @@ set factory_image [string toupper $::env(FACTORY_IMAGE)]
set_property BITSTREAM.GENERAL.COMPRESS TRUE [current_design]
set_property BITSTREAM.CONFIG.EXTMASTERCCLK_EN {DIV-4} [current_design]
set_property CONFIG_MODE BPI16 [current_design]
-set_property BITSTREAM.CONFIG.BPI_SYNC_MODE DISABLE [current... |
travis: Allow ubuntu-latest to fail
Ubuntu-latest is a rolling development release, similar to rawhide.
There's no need to treat failing there as an actual error. | @@ -25,6 +25,7 @@ jobs:
allow_failures:
- env: RUN_ON_CONTAINER=fedora-rawhide
- env: RUN_ON_CONTAINER=debian-unstable
+ - env: RUN_ON_CONTAINER=ubuntu-latest
exclude:
- os: linux-ppc64le
env: RUN_ON_CONTAINER=centos7
|
Don't log secrets in cipherBlock module.
In practice there are lots of ways secrets can be leaked (e.g. info load, protocol) but at least remove this instance. | @@ -386,7 +386,7 @@ cipherBlockNew(CipherMode mode, CipherType cipherType, const Buffer *pass, const
FUNCTION_LOG_BEGIN(logLevelTrace);
FUNCTION_LOG_PARAM(ENUM, mode);
FUNCTION_LOG_PARAM(ENUM, cipherType);
- FUNCTION_LOG_PARAM(BUFFER, pass);
+ FUNCTION_TEST_PARAM(BUFFER, pass); // Use FUNCTION_TEST so passphrase is not... |
Fixup ssl unit test with example ticket files. | . ../common.sh
kill_pid $UNBOUNDSERV_PID
kill_pid $UNBOUNDCLIE_PID
+cat unboundserv.log
+cat unboundclie.log
|
doc: fix presentation of kata containers tutorial
Fixed a few layout issues and added link to mailing list | @@ -80,7 +80,7 @@ to automate the Kata Containers installation procedure.
#. Modify the :ref:`daemon.json` file in order to:
- #. Add a ``kata-acrn`` runtime (``runtimes`` section).
+ a. Add a ``kata-acrn`` runtime (``runtimes`` section).
.. note:: In order to run Kata with ACRN, the container stack must provide
block-... |
vm: fix integer overflow
Fixes issue | @@ -329,7 +329,7 @@ static void *_map_map(vm_map_t *map, void *vaddr, process_t *proc, size_t size,
if (o == NULL) {
/* Try to use existing amap */
- if (next != NULL && next->amap != NULL && next->aoffs >= (next->vaddr - e->vaddr)) {
+ if (next != NULL && next->amap != NULL && e->vaddr >= (next->vaddr - next->aoffs)) ... |
docs/fingerprint: Make power its own section
BRANCH=none
TEST=view in gitiles | @@ -324,20 +324,21 @@ Start a fingerprint enrollment:
> fpenroll
```
-The Dragonclaw reference board has an onboard INA that monitors the voltage
-and power draw of the MCU and FP Sensor independently.
+### Measuring Power
+
+The Dragonclaw reference board has an onboard INA that monitors the voltage and
+power draw of... |
Script access for new binding match behavior constants. | @@ -71,6 +71,10 @@ int mapstrings_transconst(ScriptVariant **varlist, int paramCount)
ICMPCONST(BINDING_MATCHING_FRAME_TARGET)
ICMPCONST(BINDING_MATCHING_ANIMATION_REMOVE)
ICMPCONST(BINDING_MATCHING_FRAME_REMOVE)
+ ICMPCONST(BINDING_MATCHING_ANIMATION_DEFINED)
+ ICMPCONST(BINDING_MATCHING_ANIMATION_DIE)
+ ICMPCONST(BIN... |
Return should happen after setting status | @@ -52,9 +52,9 @@ double ccl_omega_x(ccl_cosmology * cosmo, double a, ccl_omega_x_label label, int
return cosmo->params.Omega_k*a/(cosmo->params.Omega_m+cosmo->params.Omega_l*pow(a,-3*(cosmo->params.w0+cosmo->params.wa))*
exp(3*cosmo->params.wa*(a-1))+cosmo->params.Omega_k*a+cosmo->params.Omega_g/a);
default:
- return ... |
Add doc/note for WUFFS_BASE__QUIRK_IGNORE_CHECKSUM | @@ -48,5 +48,16 @@ values, such as `WUFFS_JSON__QUIRK_ALLOW_LEADING_UNICODE_BYTE_ORDER_MARK`.
## Listing
+Common quirks:
+
+- `WUFFS_BASE__QUIRK_IGNORE_CHECKSUM` configures decoders (but not encoders) to
+ skip checksum verification. This can result in [noticably faster
+ decodes](https://github.com/google/wuffs/commit... |
new tools are no longer experimental | @@ -39,15 +39,15 @@ Detailed description
| Tool | Description |
| -------------- | ---------------------------------------------------------------------------------------------------------------------- |
-| hcxpcapngtool | Provide new hashcat format 22000 - highly experimental - format may change until final release (s... |
fix restore from snapshot bug without test file | @@ -153,7 +153,8 @@ namespace NCatboostCuda {
auto testMetricHistory = History.TestMetricsHistory;
- for (Iteration = 0; Iteration < testMetricHistory.size(); ++Iteration) {
+ Iteration = History.TimeHistory.size();
+ for (int iteration = 0; iteration < testMetricHistory.size(); ++iteration) {
const int testIdxToLog = ... |
Fix chip/s32k3xx_lpspi.c:719:23: error: unused function 's32k3xx_lpspi_readbyte'
and chip/s32k3xx_lpspi.c:748:20: error: unused function 's32k3xx_lpspi_writebyte' | @@ -720,64 +720,6 @@ static inline void s32k3xx_lpspi_write_dword(struct s32k3xx_lpspidev_s *priv,
#endif
-/****************************************************************************
- * Name: s32k3xx_lpspi_readbyte
- *
- * Description:
- * Read one byte from SPI
- *
- * Input Parameters:
- * priv - Device-specific s... |
[hardware] Use older Questasim version to avoid internal error | @@ -34,7 +34,7 @@ dpi_library ?= work-dpi
# Top level module to compile
top_level ?= mempool_tb
# QuestaSim Version
-questa_version ?= 2020.1
+questa_version ?= 2019.3
# QuestaSim command
questa_cmd ?= questa-$(questa_version)
# QuestaSim arguments
@@ -92,7 +92,7 @@ $(bender):
.PHONY: lib
lib: $(buildpath) $(buildpath)... |
Update README with app store link.
[ci skip] | @@ -34,13 +34,14 @@ The makefile executes this operation in batch mode*
These instruction assume OSX Mavericks or later.
-Open the AppStore application, search for XCode and install it. Install the
-command line compiler tools by opening Terminal and typing the following:
+Install XCode from the AppStore application ([... |
fix(bmp) fix typo in BPP condition
Thanks | @@ -152,7 +152,7 @@ static lv_res_t decoder_open(lv_img_decoder_t * decoder, lv_img_decoder_dsc_t *
b.row_size_bytes = ((b.bpp * b.px_width + 31) / 32) * 4;
bool color_depth_error = false;
- if(LV_COLOR_DEPTH == 32 && (b.bpp != 32 || b.bpp != 24)) {
+ if(LV_COLOR_DEPTH == 32 && (b.bpp != 32 && b.bpp != 24)) {
LV_LOG_WA... |
Build: Enable Linux CLANGPDB/GCC5 builds | @@ -8,7 +8,7 @@ env:
matrix:
include:
- os: osx
- name: "Build"
+ name: "Build macOS XCODE5"
osx_image: xcode10.2
compiler: clang
@@ -28,6 +28,25 @@ matrix:
api_key:
secure: BCsj6FO40+02MPylXhIrUqS0KmwoUsd3y+iS5mwcBo16dqTbgF/emsApptKKgLCrb83sgmedkdEI1tkMTw7kAP8341E4Xmo0DVRQcJ/zDMXMtutmN5f0j1sMsiHhZ6wnaFhVIOvysSiuIal5vR... |
bufr_count -f: hangs on invalid input | @@ -694,6 +694,10 @@ static int read_BUFR(reader *r)
i++;
}
+ if(length==0) {
+ return GRIB_INVALID_MESSAGE;
+ }
+
/* Edition number */
if(r->read(r->read_data,&tmp[i],1,&err) != 1 || err)
return err;
|
[CI] run |mass after +test | @@ -38,6 +38,13 @@ Promise.resolve(urbit)
})
.then(actions.safeBoot)
.then(actions.test)
+.then(function(){
+ return urbit.line("|mass")
+ .then(function(){
+ return urbit.expectEcho("%ran-mass")
+ .then(function(){ return urbit.resetListeners(); })
+ })
+})
.then(exit)
.catch(function(err){
// we still exit 0, Arvo er... |
Masternode List Renamings | @@ -217,9 +217,9 @@ Value masternode(const Array& params, bool fHelp)
strCommand = params[1].get_str().c_str();
}
- if (strCommand != "active" && strCommand != "vin" && strCommand != "pubkey" && strCommand != "lastseen" && strCommand != "lastpaid" && strCommand != "activeseconds" && strCommand != "rank" && strCommand !... |
rpi-base.inc: Add Raspberry Pi 3B+ dtb | @@ -20,6 +20,7 @@ KERNEL_DEVICETREE ?= " \
bcm2708-rpi-b-plus.dtb \
bcm2709-rpi-2-b.dtb \
bcm2710-rpi-3-b.dtb \
+ bcm2710-rpi-3-b-plus.dtb \
bcm2708-rpi-cm.dtb \
bcm2710-rpi-cm3.dtb \
\
|
fix printStdout | @@ -57,7 +57,7 @@ int fprintNormal(FILE* out, char* fmt, ...) {
int printStdout(char* fmt, ...) {
va_list args;
va_start(args, fmt);
- int ret = printf(fmt, args);
+ int ret = vprintf(fmt, args);
va_end(args);
return ret;
}
|
vm: remove debug trap on page fault | @@ -663,9 +663,6 @@ static void map_pageFault(unsigned int n, exc_context_t *ctx)
vaddr = hal_exceptionsFaultAddr(n, ctx);
paddr = (void *)((unsigned long)vaddr & ~(SIZE_PAGE - 1));
- process_dumpException(n, ctx);
- for (;;) ;
-
hal_cpuEnableInterrupts();
thread = proc_current();
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.