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 elektraMmapstorageWriteKeySet (char * mappedRegion, KeySet * keySet)
dataNextFreeBlock += keyValueSize;
// move Key itself
- Key * mmapKey = (Key *) ksRegion + SIZEOF_KEYSET + (keyIndex * SIZEOF_KEY);
+ void * mmapKey = ksRegion + SIZEOF_KEYSET + (keyIndex * SIZEOF_KEY);
cur->flags |= KEY_FLAG_MMAP;
memcpy (mmapKey, cur, SIZEOF_KEY);
//fwrite (cur, keyValueSize, 1, fp);
@@ -250,6 +249,15 @@ static void elektraMmapstorageWriteKeySet (char * mappedRegion, KeySet * keySet)
memcpy (ksRegion, keySet, SIZEOF_KEYSET);
}
+static void mmapToKeySet (char * mappedRegion, KeySet * returned)
+{
+ KeySet * keySet = (KeySet *) (mappedRegion + SIZEOF_MMAPINFO);
+ returned->array = keySet->array;
+ returned->size = keySet->size;
+ ksRewind(returned);
+ returned->flags = keySet->flags;
+}
+
int elektraMmapstorageOpen (Plugin * handle ELEKTRA_UNUSED, Key * errorKey ELEKTRA_UNUSED)
{
// plugin initialization logic
@@ -313,7 +321,7 @@ int elektraMmapstorageGet (Plugin * handle ELEKTRA_UNUSED, KeySet * returned, Ke
ELEKTRA_LOG ("mappedRegion == MAP_FAILED");
return -1;
}
- ELEKTRA_LOG ("mappedRegion size: %lld", sbuf.st_size);
+ ELEKTRA_LOG_WARNING ("mappedRegion size: %l", sbuf.st_size);
char * ksRegion = mappedRegion + SIZEOF_MMAPINFO;
ksCopy (returned, (KeySet *) ksRegion);
@@ -359,8 +367,8 @@ int elektraMmapstorageSet (Plugin * handle ELEKTRA_UNUSED, KeySet * returned, Ke
elektraMmapstorageWriteKeySet (mappedRegion, returned);
- ksCopy(returned, (KeySet *) mappedRegion);
- returned->flags |= KS_FLAG_MMAP;
+ //ksCopy(returned, (KeySet *) mappedRegion);
+ mmapToKeySet(mappedRegion, returned);
// TODO FIXME: don't use ksCopy but replace all fields inside the KeySet.
// just replace the pointers to Key ** array and so on
|
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?.type !== 'home') ? `-${Math.floor(Math.random() * 10000)}`
+ : '');
try {
const { name, description, moduleType, ships } = values;
switch (moduleType) {
|
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 == 0x94) {
- state3d_ok = extr(state->state3d, 29, 1) && !extr(state->debug[3], 13, 1);
- } else if (cls == 0x55 || cls == 0x95) {
- state3d_ok = extr(state->state3d, 30, 1) && !extr(state->debug[3], 13, 1);
- } else {
- state3d_ok = extr(state->state3d, 0, 16) == state->ctx_switch[3] && extr(state->state3d, 24, 1);
- }
- } else if (state->chipset.card_type < 0x20) {
if (extr(state->state3d, 0, 16) == state->ctx_switch[3] && extr(state->state3d, 24, 1))
state3d_ok = true;
- if (cls == 0x54 || cls == 0x94) {
- if (!extr(state->debug[3], 13, 1))
+ if (!extr(state->debug[3], 13, 1)) {
+ if (cls == 0x48) {
+ state3d_ok = extr(state->state3d, 28, 1);
+ } else if (cls == 0x54 || cls == 0x94) {
state3d_ok = extr(state->state3d, 29, 1);
} else if (cls == 0x55 || cls == 0x95) {
- if (!extr(state->debug[3], 13, 1))
state3d_ok = extr(state->state3d, 30, 1);
- } else {
}
+ }
+ if (state->chipset.card_type < 0x20 && state->chipset.chipset != 0x10) {
if (extr(state->debug[3], 9, 1))
state3d_ok = extr(state->state3d, 25, 1) && extr(state->state3d, 16, 5) == extr(state->ctx_user, 24, 5);
- } else {
- if (extr(state->state3d, 0, 16) == state->ctx_switch[3] && extr(state->state3d, 24, 1))
- state3d_ok = true;
}
return state3d_ok;
}
|
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/images/logo
Distribute the flyer found at https://master.libelektra.org/doc/images/flyer.odt
And of course: talk about it!
|
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 = priv->planeinfo.putrun(priv->lcd_ptr, row,
lcd_area->col_start, buf,
- row_size);
+ cols);
if (ret < 0)
{
break;
|
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_HOST_EVENT_DEVICE))
/* And the MKBP events */
#ifdef HAS_TASK_KEYSCAN
|
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 represent the line numbers:
7 //some other comment
8
9 setting4 -1
+```
We mount that file by:
- > sudo kdb mount line user/line line
+```bash
+sudo kdb mount line user/line line
+```
This file would result in the following keyset which is being displayed as
`key: value`, e.g. with:
- > kdb export -c "format=%s: %s" user/line simpleini
-
- #0: setting1 true
- #1: setting2 false
- #2: setting3 1000
- #3: #comment
- #4:
- #5:
- #6: //some other comment
- #7:
- #8: setting4 -l
+```bash
+kdb export -c "format=%s: %s" user/line simpleini
+#> 0: setting1 true
+#> 1: setting2 false
+#> 2: setting3 1000
+#> 3: #comment
+#> 4:
+#> 5:
+#> 6: //some other comment
+#> 7:
+#> 8: setting4 -l
+```
### Creating Files
|
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;
+
return 0;
}
|
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(...) RFCHwIntClear(__VA_ARGS__)
/*---------------------------------------------------------------------------*/
/* sys_ctrl.h */
#include "driverlib/sys_ctrl.h"
|
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 "$ArtifactsPath\bin\xdp" -Force
Remove-Item -Path $ZipPath
}
}
|
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 FFLAGS = $(LAPACK_FFLAGS)" >> $(NETLIB_LAPACK_DIR)/make.inc
+endif
-@echo "FFLAGS_DRV = $(LAPACK_FFLAGS)" >> $(NETLIB_LAPACK_DIR)/make.inc
-@echo "POPTS = $(LAPACK_FPFLAGS)" >> $(NETLIB_LAPACK_DIR)/make.inc
-@echo "FFLAGS_NOOPT = -O0 $(LAPACK_NOOPT)" >> $(NETLIB_LAPACK_DIR)/make.inc
|
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 (unix_file_t * uf)
/* align size to 2M page */
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);
vui->region_mmap_addr[i] = mmap (0, map_sz, PROT_READ | PROT_WRITE,
MAP_SHARED, fds[i], 0);
@@ -1168,7 +1168,7 @@ vhost_user_socket_read (unix_file_t * uf)
/* align size to 2M page */
long page_sz = get_huge_page_size (fd);
ssize_t map_sz =
- (msg.log.size + msg.log.offset + page_sz) & ~(page_sz - 1);
+ (msg.log.size + msg.log.offset + page_sz - 1) & ~(page_sz - 1);
vui->log_base_addr = mmap (0, map_sz, PROT_READ | PROT_WRITE,
MAP_SHARED, fd, 0);
|
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
+ - cs-filerep-schema-topology-crashrecov
+ - cs-filerep-end-to-end
+ - cs-aoco-compression
+ - mpp_interconnect
+
+- name: Adopted CCP
+ jobs:
+ - icw_resource_group
+ - DPM_backup-restore
+ - MM_gppkg
+ - MM_gprecoverseg
+
## ======================================================================
## resource types
## ======================================================================
|
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;
+}
+
static inline od_status_t
od_relay_pipeline(od_relay_t *relay)
{
@@ -326,6 +334,12 @@ od_relay_step(od_relay_t *relay)
if (machine_cond_try(relay->src->on_read))
{
if (relay->dst == NULL) {
+ rc = od_relay_read(relay);
+ if (rc != OD_OK)
+ return rc;
+ if (!od_relay_data_pending(relay))
+ return OD_OK;
+
/* signal to retry on read logic */
machine_cond_signal(relay->src->on_read);
return OD_ATTACH;
|
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_MICRO_VERSION})
# Version of the library
|
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](https://en.pingcap.com/blog/tips-and-tricks-for-writing-linux-bpf-applications-with-libbpf)
Building
-------
|
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_P6_NATIVE)
+ #elif defined(SIMDE_POWER_ALTIVEC_P8_NATIVE)
r_.altivec_f32 = HEDLEY_REINTERPRET_CAST(SIMDE_POWER_ALTIVEC_VECTOR(float),
vec_nand(vec_cmpeq(a_.altivec_f32, a_.altivec_f32), vec_cmpeq(b_.altivec_f32, b_.altivec_f32)));
+ #elif defined(SIMDE_POWER_ALTIVEC_P6_NATIVE)
+ r_.altivec_f32 = HEDLEY_REINTERPRET_CAST(SIMDE_POWER_ALTIVEC_VECTOR(float),
+ vec_and(vec_cmpeq(a_.altivec_f32, a_.altivec_f32), vec_cmpeq(b_.altivec_f32, b_.altivec_f32)));
+ r_.altivec_f32 = vec_nor(r_.altivec_f32, r_.altivec_f32);
#elif defined(simde_math_isnanf)
SIMDE_VECTORIZE
for (size_t i = 0 ; i < (sizeof(r_.f32) / sizeof(r_.f32[0])) ; i++) {
|
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_vfs_proxy_call(vfs, MP_QSTR_chdir, 1, &root);
break;
}
@@ -318,7 +318,7 @@ STATIC mp_obj_t mp_vfs_ilistdir_it_iternext(mp_obj_t self_in) {
self->cur.vfs = vfs->next;
if (vfs->len == 1) {
// vfs is mounted at root dir, delegate to it
- mp_obj_t root = mp_obj_new_str("/", 1, false);
+ mp_obj_t root = MP_OBJ_NEW_QSTR(MP_QSTR__slash_);
self->is_iter = true;
self->cur.iter = mp_vfs_proxy_call(vfs, MP_QSTR_ilistdir, 1, &root);
return mp_iternext(self->cur.iter);
|
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.CommonFlags
+)
+
+var (
+ processCollectorParamThreads bool
)
func init() {
@@ -45,22 +48,23 @@ func init() {
processCollectorCmd,
}
- // Add flags for all collector gadgets
+ // Add common flags for all collector gadgets
for _, command := range commands {
rootCmd.AddCommand(command)
- utils.AddCommonFlags(command, &collectorParams)
+ utils.AddCommonFlags(command, &commonParams)
}
+ // Add specific flags
processCollectorCmd.PersistentFlags().BoolVarP(
- &collectorParamThreads,
+ &processCollectorParamThreads,
"threads",
"t",
false,
- fmt.Sprintf("Show all threads"),
+ "Show all threads",
)
}
-func collectorCmdRun(subCommand string) func(*cobra.Command, []string) {
+func processCollectorCmdRun(subCommand string) func(*cobra.Command, []string) {
callback := func(contextLogger *log.Entry, nodes *corev1.NodeList, results *gadgetv1alpha1.TraceList) {
// Display results
type Process struct {
@@ -78,7 +82,7 @@ func collectorCmdRun(subCommand string) func(*cobra.Command, []string) {
json.Unmarshal([]byte(i.Status.Output), &processes)
allProcesses = append(allProcesses, processes...)
}
- if !collectorParamThreads {
+ if !processCollectorParamThreads {
allProcessesTrimmed := []Process{}
for _, i := range allProcesses {
if i.Tgid == i.Pid {
@@ -106,7 +110,7 @@ func collectorCmdRun(subCommand string) func(*cobra.Command, []string) {
}
})
- if collectorParams.JsonOutput {
+ if commonParams.JsonOutput {
b, err := json.MarshalIndent(allProcesses, "", " ")
if err != nil {
contextLogger.Fatalf("Error marshalling results: %s", err)
@@ -114,7 +118,7 @@ func collectorCmdRun(subCommand string) func(*cobra.Command, []string) {
fmt.Printf("%s\n", b)
} else {
w := tabwriter.NewWriter(os.Stdout, 0, 0, 4, ' ', 0)
- if collectorParamThreads {
+ if processCollectorParamThreads {
fmt.Fprintln(w, "NAMESPACE\tPOD\tCONTAINER\tCOMM\tTGID\tPID\t")
for _, p := range allProcesses {
fmt.Fprintf(w, "%s\t%s\t%s\t%s\t%d\t%d\t\n",
@@ -142,6 +146,6 @@ func collectorCmdRun(subCommand string) func(*cobra.Command, []string) {
}
}
return func(cmd *cobra.Command, args []string) {
- utils.GenericTraceCommand(subCommand, &collectorParams, args, "Status", callback, nil)
+ utils.GenericTraceCommand(subCommand, &commonParams, args, "Status", callback, nil)
}
}
|
[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)
{
if (data == 0u) { return 32u; }
|
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 will fill */
n_dst_bits_this_ply = clib_min (8, -n_dst_bits_next_plies);
@@ -413,8 +413,8 @@ set_root_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 will fill */
n_dst_bits_this_ply = 16 - a->dst_address_length;
|
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 system (without Cygwin)
@@ -36,12 +42,6 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/bin")
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/lib")
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/library")
-# Fluent Bit Version
-set(FLB_VERSION_MAJOR 1)
-set(FLB_VERSION_MINOR 2)
-set(FLB_VERSION_PATCH 0)
-set(FLB_VERSION_STR "${FLB_VERSION_MAJOR}.${FLB_VERSION_MINOR}.${FLB_VERSION_PATCH}")
-
# Build Options
option(FLB_ALL "Enable all features" No)
option(FLB_DEBUG "Build with debug symbols" No)
|
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 CONFIG=BoomConfig $1
-make SUB_PROJECT=example CONFIG=DefaultRocketConfig && make SUB_PROJECT=example CONFIG=DefaultRocketConfig $1
-make SUB_PROJECT=boomexample CONFIG=DefaultBoomConfig && make SUB_PROJECT=boomexample CONFIG=DefaultBoomConfig $1
+make SUB_PROJECT=rocketchip CONFIG=DefaultConfig
+make SUB_PROJECT=rocketchip CONFIG=DefaultConfig $1
+make SUB_PROJECT=boom CONFIG=BoomConfig
+make SUB_PROJECT=boom CONFIG=BoomConfig $1
+make SUB_PROJECT=example CONFIG=DefaultRocketConfig
+make SUB_PROJECT=example CONFIG=DefaultRocketConfig $1
+make SUB_PROJECT=boomexample CONFIG=DefaultBoomConfig
+make SUB_PROJECT=boomexample CONFIG=DefaultBoomConfig $1
cd ../verisim/
-make SUB_PROJECT=rocketchip CONFIG=DefaultConfig && make SUB_PROJECT=rocketchip CONFIG=DefaultConfig $1
-make SUB_PROJECT=boom CONFIG=BoomConfig && make SUB_PROJECT=boom CONFIG=BoomConfig $1
-make SUB_PROJECT=example CONFIG=DefaultRocketConfig && make SUB_PROJECT=example CONFIG=DefaultRocketConfig $1
-make SUB_PROJECT=boomexample CONFIG=DefaultBoomConfig && make SUB_PROJECT=boomexample CONFIG=DefaultBoomConfig $1
+make SUB_PROJECT=rocketchip CONFIG=DefaultConfig
+make SUB_PROJECT=rocketchip CONFIG=DefaultConfig $1
+make SUB_PROJECT=boom CONFIG=BoomConfig
+make SUB_PROJECT=boom CONFIG=BoomConfig $1
+make SUB_PROJECT=example CONFIG=DefaultRocketConfig
+make SUB_PROJECT=example CONFIG=DefaultRocketConfig $1
+make SUB_PROJECT=boomexample CONFIG=DefaultBoomConfig
+make SUB_PROJECT=boomexample CONFIG=DefaultBoomConfig $1
|
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 signal function */
res = scrl_signal(scrl, sign, param);
@@ -1111,12 +1113,27 @@ static lv_res_t lv_ta_scrollable_signal(lv_obj_t * scrl, lv_signal_t sign, void
if(sign == LV_SIGNAL_REFR_EXT_SIZE) {
/*Set ext. size because the cursor might be out of this object*/
- lv_obj_t * ta = lv_obj_get_parent(scrl);
- lv_ta_ext_t * ext = lv_obj_get_ext_attr(ta);
lv_style_t * style_label = lv_obj_get_style(ext->label);
lv_coord_t font_h = lv_font_get_height(style_label->text.font);
scrl->ext_size = LV_MATH_MAX(scrl->ext_size, style_label->text.line_space + font_h);
}
+#if 0
+ else if(sign == LV_SIGNAL_CORD_CHG) {
+ /*Set the label width according to the text area width*/
+ if(ext->label) {
+ if(lv_obj_get_width(ta) != lv_area_get_width(param) ||
+ lv_obj_get_height(ta) != lv_area_get_height(param)) {
+ lv_obj_t * scrl = lv_page_get_scrl(ta);
+ lv_style_t * style_scrl = lv_obj_get_style(scrl);
+ lv_obj_set_width(ext->label, lv_obj_get_width(scrl) - 2 * style_scrl->body.padding.hor);
+ lv_obj_set_pos(ext->label, style_scrl->body.padding.hor, style_scrl->body.padding.ver);
+ lv_label_set_text(ext->label, NULL); /*Refresh the label*/
+
+ refr_cursor_area(ta);
+ }
+ }
+ }
+#endif
return res;
}
|
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-block-fab] q.pro]]
:: ~_ (dunk '%musk-blocked-type')
:: ~| [%musk-blocked-gene gen]
:: ~| [%musk-blocked-mask mask.bus]
:: ~| [%musk-blocked-formula q.pro]
- !!
+ :: !!
[p.pro [%1 p.u.jon]]
::
++ burn
|
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(context, cls);
+ }
+
Logger.I(TAG, "Notification recived!!!");
}
}
\ No newline at end of file
|
Missed that line in configure.ac | AC_PREREQ(2.60)
-AC_INIT([libupnp], [1.14.14], [[email protected]])
+AC_INIT([libupnp], [1.14.15], [[email protected]])
dnl ############################################################################
dnl # *Independently* of the above libupnp package version, the libtool version
dnl # of the 3 libraries need to be updated whenever there is a change released:
|
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 *val_str, buf[22];
size_t i;
int ret;
|
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
- )
-# For Python2 we build our own bindings (using SWIG) in the build directory
-# but for Python3 one has to add the eccodes from pip3 AFTER the install
-if( PYTHON_VERSION_MAJOR EQUAL 3 )
set( HAVE_PYTHON 0 )
-endif()
## TODO REQUIRED_LANGUAGES Fortran
ecbuild_add_option( FEATURE FORTRAN
@@ -432,15 +422,6 @@ if( HAVE_BUILD_TOOLS )
endif()
add_subdirectory( fortran )
-if( PYTHON_VERSION_MAJOR GREATER 2 )
- # Python3 is no longer built with SWIG but is a separate
- # package. User should do: pip3 install eccodes
- #add_subdirectory( python3 )
- set( ECCODES_PYTHON_DIR "python3" )
-else()
- add_subdirectory( python )
- set( ECCODES_PYTHON_DIR "python" )
-endif()
add_subdirectory( tests )
add_subdirectory( examples )
add_subdirectory( data )
@@ -478,7 +459,7 @@ ecbuild_pkgconfig(
IGNORE_INCLUDE_DIRS ${PYTHON_INCLUDE_DIRS} ${NUMPY_INCLUDE_DIRS} ${NETCDF_INCLUDE_DIRS}
VARIABLES HAVE_MEMFS HAVE_JPEG HAVE_LIBJASPER HAVE_LIBOPENJPEG
HAVE_ECCODES_THREADS HAVE_ECCODES_OMP_THREADS
- HAVE_NETCDF HAVE_PYTHON2 HAVE_FORTRAN HAVE_PNG HAVE_AEC
+ HAVE_NETCDF HAVE_FORTRAN HAVE_PNG HAVE_AEC
)
if( HAVE_FORTRAN )
ecbuild_pkgconfig(
@@ -490,7 +471,7 @@ if( HAVE_FORTRAN )
${PYTHON_INCLUDE_DIRS} ${NUMPY_INCLUDE_DIRS} ${NETCDF_INCLUDE_DIRS}
VARIABLES HAVE_MEMFS HAVE_JPEG HAVE_LIBJASPER HAVE_LIBOPENJPEG
HAVE_ECCODES_THREADS HAVE_ECCODES_OMP_THREADS
- HAVE_NETCDF HAVE_PYTHON2 HAVE_PNG HAVE_AEC
+ HAVE_NETCDF HAVE_PNG HAVE_AEC
)
endif()
@@ -513,10 +494,6 @@ ecbuild_info(" | ecCodes version ${eccodes_VERSION} |")
ecbuild_info(" +--------------------------+")
ecbuild_info("")
-if( HAVE_PYTHON2 )
- ecbuild_deprecate("Python2 support is deprecated and will be discontinued")
-endif()
-
ecbuild_info(" +--------------------------------------+")
ecbuild_info(" | Please note: |")
ecbuild_info(" | For Python3 support, first install |")
|
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 array, the surround identifer of each channels.
+ // Returns the number of elements stored in channel_map
// [main-thread]
- uint32_t (*get_channel_type)(const clap_plugin_t *plugin,
+ uint32_t (*get_channel_map)(const clap_plugin_t *plugin,
bool is_input,
uint32_t port_index,
- uint32_t channel_index);
+ uint8_t *channel_map,
+ uint32_t channel_map_capacity);
} clap_plugin_surround_t;
typedef struct clap_host_surround {
|
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 specifically there until further notice.
+ my $save_STDOUT;
+ my $save_STDERR;
+ if ($^O eq 'VMS') {
# In non-verbose, we want to shut up the command interpreter, in case
# it has something to complain about. On VMS, it might complain both
# on stdout and stderr
- my $save_STDOUT;
- my $save_STDERR;
if ($ENV{HARNESS_ACTIVE} && !$ENV{HARNESS_VERBOSE}) {
open $save_STDOUT, '>&', \*STDOUT or die "Can't dup STDOUT: $!";
open $save_STDERR, '>&', \*STDERR or die "Can't dup STDERR: $!";
open STDOUT, ">", devnull();
open STDERR, ">", devnull();
}
+ }
$ENV{HARNESS_OSSL_LEVEL} = $level + 1;
@@ -489,6 +494,8 @@ sub run {
${$opts{statusvar}} = $r;
}
+ # Restore STDOUT / STDERR on VMS
+ if ($^O eq 'VMS') {
if ($ENV{HARNESS_ACTIVE} && !$ENV{HARNESS_VERBOSE}) {
close STDOUT;
close STDERR;
@@ -498,6 +505,9 @@ sub run {
print STDERR "$prefix$display_cmd => $e\n"
if !$ENV{HARNESS_ACTIVE} || $ENV{HARNESS_VERBOSE};
+ } else {
+ print STDERR "$prefix$display_cmd => $e\n";
+ }
# At this point, $? stops being interesting, and unfortunately,
# there are Test::More versions that get picky if we leave it
@@ -1244,8 +1254,11 @@ sub __decorate_cmd {
my $display_cmd = "$cmdstr$stdin$stdout$stderr";
+ # VMS program output escapes TAP::Parser
+ if ($^O eq 'VMS') {
$stderr=" 2> ".$null
unless $stderr || !$ENV{HARNESS_ACTIVE} || $ENV{HARNESS_VERBOSE};
+ }
$cmdstr .= "$stdin$stdout$stderr";
|
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"
+ // maneuvers. The lengthy constant speed phase is checked separately
+ // later on anyway.
+ duration = trj->t1 * 2;
+ } else {
+ // For standard maneuvers, check slightly more than the length, to
+ // include testing the behavior after completion. Either add a second,
+ // or do twice the duration, whichever is less.
+ duration = pbio_math_min(duration + 10000, duration * 2);
+ }
+
// Loop over all trajectory points and assert results.
- for (uint32_t t = 1; t < pbio_trajectory_get_duration(trj) * 2; t += 500) {
+ for (uint32_t t = 1; t < duration; t += 500) {
// Get current reference.
uint32_t now = t + time_start;
|
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
## ======================================================================
@@ -600,6 +608,25 @@ jobs:
<<: *pulse_properties
PULSE_PROJECT_NAME: "cs-storage"
+- name: cs-aoco-compression
+ plan:
+ - get: nightly-trigger-pulse
+ trigger: true
+ - aggregate: *pulse_trigger_resource
+ - task: trigger_pulse
+ tags: ["gpdb5-pulse-worker"]
+ file: gpdb_src/ci/pulse/api/trigger_pulse.yml
+ input_mapping: *input_mappings
+ params:
+ <<: *pulse_properties
+ PULSE_PROJECT_NAME: "cs-aoco-compression"
+ - task: monitor_pulse
+ tags: ["gpdb5-pulse-worker"]
+ file: gpdb_src/ci/pulse/api/monitor_pulse.yml
+ params:
+ <<: *pulse_properties
+ PULSE_PROJECT_NAME: "cs-aoco-compression"
+
- name: mpp_interconnect
plan:
- aggregate: *pulse_trigger_resource
|
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_num);
+ return mp_const_none;
+}
+STATIC MP_DEFINE_CONST_FUN_OBJ_1(machine_uart_deinit_obj, machine_uart_deinit);
+
STATIC mp_obj_t machine_uart_any(mp_obj_t self_in) {
machine_uart_obj_t *self = MP_OBJ_TO_PTR(self_in);
size_t rxbufsize;
@@ -327,7 +334,7 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_1(machine_uart_sendbreak_obj, machine_uart_sendbr
STATIC const mp_rom_map_elem_t machine_uart_locals_dict_table[] = {
{ MP_ROM_QSTR(MP_QSTR_init), MP_ROM_PTR(&machine_uart_init_obj) },
-
+ { MP_ROM_QSTR(MP_QSTR_deinit), MP_ROM_PTR(&machine_uart_deinit_obj) },
{ MP_ROM_QSTR(MP_QSTR_any), MP_ROM_PTR(&machine_uart_any_obj) },
{ MP_ROM_QSTR(MP_QSTR_read), MP_ROM_PTR(&mp_stream_read_obj) },
{ MP_ROM_QSTR(MP_QSTR_readline), MP_ROM_PTR(&mp_stream_unbuffered_readline_obj) },
|
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 **atts)
for (i = 0; i < *depthPtr; i++)
putchar('\t');
- xcputs(name);
+ printf("%" XML_FMT_STR "\n", name);
*depthPtr += 1;
}
|
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",
+ "Programming Language :: Python :: Implementation :: PyPy",
],
cmdclass = {'build_ext': libuv_build_ext,
'sdist' : libuv_sdist},
|
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);
+ *dest = ptr;
+
strcpy(*dest,src);
}
@@ -170,12 +169,10 @@ const FLT* config_set_float_a(config_group *cg, const char *tag, const FLT* valu
sstrcpy(&(cv->tag), tag);
- if (cv->data == NULL) {
- cv->data = (char*)malloc(sizeof(FLT)*count);
- }
- else {
- cv->data = (char*)realloc(cv->data, sizeof(FLT)*count);
- }
+ char* ptr = (char*)realloc(cv->data, sizeof(FLT)*count);
+ assert(ptr!=NULL);
+ cv->data = ptr;
+
printf("float array\n");
memcpy(cv->data,values,sizeof(FLT)*count);
|
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\Core_A\Include\*.*
+XCOPY /Q /S /Y ..\..\CMSIS\Core_A\Source\*.* %RELEASE_PATH%\CMSIS\Core_A\Source\*.*
:: -- DAP files
XCOPY /Q /S /Y ..\..\CMSIS\DAP\*.* %RELEASE_PATH%\CMSIS\DAP\*.*
|
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
+ UART1; note that if you are currently
+ communicating on UART1 and you change the
+ baud rate of UART1 then the acknowledgement
+ for the baud rate change will go missing;
+ it is up to you to call uPortUartClose() /
+ uPortUartOpen() with the new baud rate
+ to re-establish communication with the
+ GNSS chip. */
U_GNSS_CFG_VAL_KEY_ITEM_UART1_STOPBITS_E1 = 0x02, /**< the number of stop bits on UART1, see
#uGnssCfgValKeyItemValueUartStopbits_t. */
U_GNSS_CFG_VAL_KEY_ITEM_UART1_DATABITS_E1 = 0x03, /**< the number of data bits on UART1, see
@@ -2138,7 +2146,15 @@ typedef enum {
/** Item IDs for #U_GNSS_CFG_VAL_KEY_GROUP_ID_UART2.
*/
typedef enum {
- U_GNSS_CFG_VAL_KEY_ITEM_UART2_BAUDRATE_U4 = 0x01, /**< the baud rate that should be configured on UART2. */
+ U_GNSS_CFG_VAL_KEY_ITEM_UART2_BAUDRATE_U4 = 0x01, /**< the baud rate that should be configured on
+ UART2; note that if you are currently
+ communicating on UART2 and you change the
+ baud rate of UART2 then the acknowledgement
+ for the baud rate change will go missing;
+ it is up to you to call uPortUartClose() /
+ uPortUartOpen() with the new baud rate
+ to re-establish communication with the
+ GNSS chip. */
U_GNSS_CFG_VAL_KEY_ITEM_UART2_STOPBITS_E1 = 0x02, /**< the number of stop bits on UART2, see
#uGnssCfgValKeyItemValueUartStopbits_t. */
U_GNSS_CFG_VAL_KEY_ITEM_UART2_DATABITS_E1 = 0x03, /**< the number of data bits on UART2, see
|
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, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31,
32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 47, 50,
@@ -197,13 +197,13 @@ void hub75_display_update() {
Pixel pixel_bottom = backbuffer[x][y + HEIGHT / 2];
// Gamma correct the colour values from 8-bit to 11-bit
- uint16_t pixel_top_b = GAMMA[pixel_top.b];
- uint16_t pixel_top_g = GAMMA[pixel_top.g];
- uint16_t pixel_top_r = GAMMA[pixel_top.r];
+ uint16_t pixel_top_b = GAMMA_12BIT[pixel_top.b];
+ uint16_t pixel_top_g = GAMMA_12BIT[pixel_top.g];
+ uint16_t pixel_top_r = GAMMA_12BIT[pixel_top.r];
- uint16_t pixel_bottom_b = GAMMA[pixel_bottom.b];
- uint16_t pixel_bottom_g = GAMMA[pixel_bottom.g];
- uint16_t pixel_bottom_r = GAMMA[pixel_bottom.r];
+ uint16_t pixel_bottom_b = GAMMA_12BIT[pixel_bottom.b];
+ uint16_t pixel_bottom_g = GAMMA_12BIT[pixel_bottom.g];
+ uint16_t pixel_bottom_r = GAMMA_12BIT[pixel_bottom.r];
// Set the clock low while we set up the data pins
gpio_put(PIN_CLK, !CLK_POLARITY);
|
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
-# Combine FLAGS
-BOAT_CFLAGS := $(TARGET_SPEC_CFLAGS) \
- $(BOAT_INCLUDE) \
- $(BOAT_CSTD_FLAGS) \
- $(BOAT_OPTIMIZATION_FLAGS) \
- $(BOAT_WARNING_FLAGS) \
- $(BOAT_DEFINED_MACROS) \
- $(EXTERNAL_CFLAGS)
-endif
-
BOAT_LFLAGS := $(BOAT_COMMON_LINK_FLAGS) $(TARGET_SPEC_LINK_FLAGS)
LINK_LIBS := $(EXTERNAL_LIBS) $(TARGET_SPEC_LIBS)
|
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 minimize dynamic allocations. Set to
|
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),
+ CL_INVALID_WORK_GROUP_SIZE,
+ "Local worksize dimensions exceed device's max workgroup size\n");
+
+ POCL_RETURN_ERROR_ON(
+ (local_x > command_queue->device->max_work_item_sizes[0]),
+ CL_INVALID_WORK_ITEM_SIZE,
+ "local_work_size.x > device's max_workitem_sizes[0]\n");
+
+ if (work_dim > 1)
+ POCL_RETURN_ERROR_ON(
+ (local_y > command_queue->device->max_work_item_sizes[1]),
+ CL_INVALID_WORK_ITEM_SIZE,
+ "local_work_size.y > device's max_workitem_sizes[1]\n");
+
+ if (work_dim > 2)
+ POCL_RETURN_ERROR_ON(
+ (local_z > command_queue->device->max_work_item_sizes[2]),
+ CL_INVALID_WORK_ITEM_SIZE,
+ "local_work_size.z > device's max_workitem_sizes[2]\n");
}
/* If the kernel has the reqd_work_group_size attribute, then the local
@@ -229,19 +252,10 @@ POname(clEnqueueNDRangeKernel)(cl_command_queue command_queue,
(unsigned)(global_y / local_y),
(unsigned)(global_z / local_z));
- POCL_RETURN_ERROR_ON((local_x * local_y * local_z > command_queue->device->max_work_group_size),
- CL_INVALID_WORK_GROUP_SIZE, "Local worksize dimensions exceed device's max workgroup size\n");
-
- POCL_RETURN_ERROR_ON((local_x > command_queue->device->max_work_item_sizes[0]),
- CL_INVALID_WORK_ITEM_SIZE, "local_work_size.x > device's max_workitem_sizes[0]\n");
-
- if (work_dim > 1)
- POCL_RETURN_ERROR_ON((local_y > command_queue->device->max_work_item_sizes[1]),
- CL_INVALID_WORK_ITEM_SIZE, "local_work_size.y > device's max_workitem_sizes[1]\n");
-
- if (work_dim > 2)
- POCL_RETURN_ERROR_ON((local_z > command_queue->device->max_work_item_sizes[2]),
- CL_INVALID_WORK_ITEM_SIZE, "local_work_size.z > device's max_workitem_sizes[2]\n");
+ assert(local_x * local_y * local_z <= command_queue->device->max_work_group_size);
+ assert(local_x <= command_queue->device->max_work_item_sizes[0]);
+ assert(local_y <= command_queue->device->max_work_item_sizes[1]);
+ assert(local_z <= command_queue->device->max_work_item_sizes[2]);
POCL_RETURN_ERROR_COND((global_x % local_x != 0), CL_INVALID_WORK_GROUP_SIZE);
POCL_RETURN_ERROR_COND((global_y % local_y != 0), CL_INVALID_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
- name: Upload test artifacts
uses: actions/upload-artifact@v2
|
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_ma, CONFIG_CHARGER_INPUT_CURRENT), charge_mv);
}
|
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_FAN, PIN(6, 1), GPIO_OUT_LOW)
+GPIO(EN_PP5000_FAN2, PIN(5, 0), GPIO_OUT_LOW)
GPIO(EN_PP5000_USBA_R, PIN(D, 7), GPIO_OUT_LOW)
GPIO(EN_S5_RAILS, PIN(B, 6), GPIO_OUT_LOW)
GPIO(IMVP9_VRRDY_OD, PIN(4, 3), GPIO_INPUT)
|
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);
+ rb_update_head(logbuf);
+
+ if (logbuf->thread_active == false)
+ pthread_cond_signal(&logbuf->cond);
+}
+
static void
log_internal(int pri, struct tcmu_device *dev, const char *funcname,
int linenr, const char *fmt, va_list args)
{
- unsigned int head;
- char *msg, buf[LOG_MSG_LEN];
+ char buf[LOG_MSG_LEN];
int n;
struct tcmur_handler *rhandler;
@@ -256,21 +270,14 @@ log_internal(int pri, struct tcmu_device *dev, const char *funcname,
*/
log_output(pri, buf, true);
- if (pri >= TCMU_LOG_DEBUG_SCSI_CMD)
- goto unlock;
-
/*
- * Insert the log msg to the ringbuffer if
- * the pri < TCMU_LOG_DEBUG_SCSI_CMD
+ * Avoid overflowing the log buf with SCSI CDBs. Insert the log msg to
+ * the ringbuffer if the pri < TCMU_LOG_DEBUG_SCSI_CMD
*/
- head = tcmu_logbuf->head;
- rb_set_pri(tcmu_logbuf, head, pri);
- msg = rb_get_msg(tcmu_logbuf, head);
- memcpy(msg, buf, LOG_MSG_LEN);
- rb_update_head(tcmu_logbuf);
+ if (pri >= TCMU_LOG_DEBUG_SCSI_CMD)
+ goto unlock;
- if (tcmu_logbuf->thread_active == false)
- pthread_cond_signal(&tcmu_logbuf->cond);
+ log_queue_msg(tcmu_logbuf, pri, buf);
unlock:
pthread_mutex_unlock(&tcmu_logbuf->lock);
@@ -508,16 +515,12 @@ int tcmu_create_file_output(int pri, const char *filename, bool reloading)
return 0;
}
-static bool log_buf_not_empty_output(struct log_buf *logbuf)
+static bool log_dequeue_msg(struct log_buf *logbuf)
{
unsigned int tail;
uint8_t pri;
char *msg, buf[LOG_MSG_LEN];
- if (!logbuf) {
- return false;
- }
-
pthread_mutex_lock(&logbuf->lock);
if (rb_is_empty(logbuf)) {
pthread_mutex_unlock(&logbuf->lock);
@@ -561,7 +564,7 @@ static void *log_thread_start(void *arg)
tcmu_logbuf->thread_active = true;
pthread_mutex_unlock(&tcmu_logbuf->lock);
- while (log_buf_not_empty_output(tcmu_logbuf));
+ while (log_dequeue_msg(tcmu_logbuf));
}
pthread_cleanup_pop(1);
|
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 already been defined", (char *)key);
|
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 = VNET_FLOW_ERROR_INTERNAL;
|
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 ;\
+ $(TOOLDIR)/pics -S -U -i100 -r0. -t traj3.ra -Bo1.ra ksp5.ra coils.ra reco1.ra ;\
$(TOOLDIR)/slice 6 0 reco1.ra reco.ra ;\
$(TOOLDIR)/slice 6 1 reco1.ra reco2.ra ;\
$(TOOLDIR)/scale 2. reco2.ra reco3.ra ;\
|
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$(AOMPHIP)/include -O3 -g -fopenmp -fopenmp-targets=amdgcn-amd-amdhsa -Xopenmp-target=amdgcn-amd-amdhsa -march=gfx908
CLANG = clang++
OMP_BIN = $(AOMP)/bin/$(CLANG)
|
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 % MsQuicLib.PartitionCount) != RecvState->PartitionIndex) {
RecvState->PartitionIndex = Datagrams[i]->PartitionIndex % MsQuicLib.PartitionCount;
RecvState->UpdatePartitionId = TRUE;
|
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_RELAXED(var, exp, des, result) \
+ result = atomic_compare_exchange_strong_explicit(&(var), &(exp), des, memory_order_relaxed, memory_order_relaxed)
#else
# include <stdint.h>
# define ATOMIC_ADD_RELAXED(var, x) __sync_fetch_and_add(&(var), x)
# define ATOMIC_DEC_RELAXED(var) __sync_fetch_and_sub(&(var), 1)
# define ATOMIC_SUB_RELAXED(var, x) __sync_fetch_and_sub(&(var), x)
+# define ATOMIC_COMPARE_EXCHANGE_RELAXED(var, exp, des, result) \
+ { \
+ ATOMIC_T __old = __sync_val_compare_and_swap(&(var), exp, des); \
+ result = ATOMIC_LOAD_RELAXED(__old) == ATOMIC_LOAD_RELAXED(exp) ? 1 : 0; \
+ ATOMIC_STORE_RELAXED(exp, ATOMIC_LOAD_RELAXED(__old)); \
+ }
#endif
#ifndef HAVE_VDPRINTF
|
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 Point: *//p')/boot"
if [ "$(diskutil info disk"${N}" | sed -n 's/.*Content (IOContent): *//p')" == "FDisk_partition_scheme" ]
then
|
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 AND NOT HOST_OS_DARWIN)
MESSAGE(FATAL_ERROR Unsupported platform for JDK12)
@@ -16,9 +16,9 @@ ELSEIF(JDK_VERSION STREQUAL "12")
ELSEIF(JDK_VERSION STREQUAL "11")
DECLARE_EXTERNAL_HOST_RESOURCES_BUNDLE(
JDK
- sbr:810389307 FOR DARWIN
- sbr:810391789 FOR LINUX
- sbr:810454054 FOR WIN32
+ sbr:1024418107 FOR DARWIN
+ sbr:1024427521 FOR LINUX
+ sbr:1024431126 FOR WIN32
)
IF(NOT HOST_OS_LINUX AND NOT HOST_OS_WINDOWS AND NOT HOST_OS_DARWIN)
MESSAGE(FATAL_ERROR Unsupported platform for JDK11)
|
replaced faulty checkpoint | @@ -51,7 +51,7 @@ namespace Checkpoints
( 641361, uint256("0x000000000005e6b7e106ce402511a64b239b5668e3599fb9e71dd75c16528033") )
( 654900, uint256("0x000000000003200e2a80124060eab0f846671ec542cfa8f19f1bf4ad9501ad3e") )
( 695732, uint256("0x000000000039800dffda8f76c6fc46db0e0fc585274d34d3377058a7ae4be093") )
- ( 735300, uint256("0x00000000001243854f41fb00ab1c3eae82d010a1fa6095955bcdedfed16501ad") )
+ ( 735000, uint256("0x000000000026ee4128cd6cc718bcd6e346e83be573cbc1bd7aba846e4f843939") )
;
// TestNet has no checkpoints
|
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> <varname>file_name</varname>]
[<b>-leaf-partition-data</b>]
[<b>-metadata-only</b>]
|
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 before a new light sleep
+ s_light_sleep_wakeup = false;
+
// if rtc timer wakeup source is enabled, need to compare final sleep duration and min sleep duration to avoid late wakeup
if ((s_config.wakeup_triggers & RTC_TIMER_TRIG_EN) && (final_sleep_duration_us <= min_sleep_duration_us)) {
err = ESP_ERR_SLEEP_TOO_SHORT_SLEEP_DURATION;
} else {
// Enter sleep, then wait for flash to be ready on wakeup
err = esp_light_sleep_inner(pd_flags, flash_enable_time_us, vddsdio_config);
- s_light_sleep_wakeup = true;
}
+ // light sleep wakeup flag only makes sense after a successful light sleep
+ s_light_sleep_wakeup = (err == ESP_OK);
+
// System timer has been stopped for the duration of the sleep, correct for that.
uint64_t rtc_ticks_at_end = rtc_time_get();
uint64_t rtc_time_diff = rtc_time_slowclk_to_us(rtc_ticks_at_end - s_config.rtc_ticks_at_sleep_start, s_config.rtc_clk_cal_period);
|
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] = ((ui64)data << shift);
- }
-
private:
ui32 BitsPerKey;
ui32 EntriesPerType;
|
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> — <span class="to"></span></span></h5>
+ <h5 class="visible-xs hidden-sm hidden-md hidden-lg gheader">{{head}} <span class="from"></span> — <span class="to"></span></h5>
<div class="wrap-general-items"></div>
</script>
|
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_design] # default disable
+set_property BITSTREAM.CONFIG.BPI_SYNC_MODE DISABLE [current_design] ;# default disable
set_property BITSTREAM.CONFIG.BPI_1ST_READ_CYCLE 4 [current_design]
set_property BITSTREAM.CONFIG.BPI_PAGE_SIZE 8 [current_design]
-set_property BITSTREAM.CONFIG.UNUSEDPIN Pullnone [current_design] # default pulldown, doesn't load at power-on!
-set_property BITSTREAM.CONFIG.OVERTEMPSHUTDOWN Enable [current_design] # default disable
+set_property BITSTREAM.CONFIG.UNUSEDPIN Pullnone [current_design] ;# default pulldown, doesn't load at power-on!
+set_property BITSTREAM.CONFIG.OVERTEMPSHUTDOWN Enable [current_design] ;# default disable
set_property CFGBVS GND [ current_design ]
set_property CONFIG_VOLTAGE 1.8 [current_design]
-set_property BITSTREAM.CONFIG.PERSIST NO [current_design] # default NO anyhow
+set_property BITSTREAM.CONFIG.PERSIST NO [current_design] ;# default NO anyhow
# xapp1246/xapp1296/ug908: These settings may not be needed for SNAP
-# set_property BITSTREAM.CONFIG.CONFIGFALLBACK ENABLE [current_design] # default enable
-set_property BITSTREAM.CONFIG.TIMER_CFG 0XFFFFFFFF [current_design] # no watchdog
+# set_property BITSTREAM.CONFIG.CONFIGFALLBACK ENABLE [current_design] ;# default enable
+set_property BITSTREAM.CONFIG.TIMER_CFG 0XFFFFFFFF [current_design] ;# no watchdog
# The factory bitstream has the above properties plus:
if { $factory_image == "TRUE" } {
#xapp1246/xapp1296: These settings are not needed for SNAP.
#FIXME remove when testing was successful
- # set_property BITSTREAM.CONFIG.NEXT_CONFIG_ADDR 0X01000000 [current_design] # default is 0x0
- set_property BITSTREAM.CONFIG.REVISIONSELECT_TRISTATE ENABLE [current_design] # default enable
- set_property BITSTREAM.CONFIG.REVISIONSELECT 01 [current_design] # default is 00
+ # set_property BITSTREAM.CONFIG.NEXT_CONFIG_ADDR 0X01000000 [current_design] ;# default is 0x0
+ set_property BITSTREAM.CONFIG.REVISIONSELECT_TRISTATE ENABLE [current_design] ;# default enable
+ set_property BITSTREAM.CONFIG.REVISIONSELECT 01 [current_design] ;# default is 00
}
|
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 logged
FUNCTION_LOG_PARAM(STRING, digestName);
FUNCTION_LOG_END();
@@ -471,7 +471,7 @@ cipherBlockFilterGroupAdd(IoFilterGroup *filterGroup, CipherType type, CipherMod
FUNCTION_LOG_PARAM(IO_FILTER_GROUP, filterGroup);
FUNCTION_LOG_PARAM(ENUM, type);
FUNCTION_LOG_PARAM(ENUM, mode);
- FUNCTION_LOG_PARAM(STRING, pass);
+ FUNCTION_TEST_PARAM(STRING, pass); // Use FUNCTION_TEST so passphrase is not logged
FUNCTION_LOG_END();
ASSERT(filterGroup != NULL);
|
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-based storage, such as :file:`device-mapper`. Since Docker may be
@@ -151,7 +151,7 @@ to automate the Kata Containers installation procedure.
Verify that these configurations are effective by checking the following
outputs:
-.. code-block:: none
+.. code-block:: console
$ sudo docker info | grep -i runtime
WARNING: the devicemapper storage-driver is deprecated, and will be removed in a future release.
@@ -160,7 +160,7 @@ outputs:
Runtimes: kata-clh kata-fc kata-qemu kata-qemu-virtiofs runc kata-acrn
Default Runtime: kata-acrn
-.. code-block:: none
+.. code-block:: console
$ /opt/kata/bin/kata-runtime --kata-config /opt/kata/share/defaults/kata-containers/configuration-acrn.toml kata-env | awk -v RS= '/\[Hypervisor\]/'
[Hypervisor]
@@ -198,6 +198,7 @@ Start a Kata Container on ACRN:
$ sudo docker run -ti busybox sh
-If you run into problems, contact us on the ACRN mailing list and provide as
+If you run into problems, contact us on the `ACRN mailing list
+<https://lists.projectacrn.org/g/acrn-dev>`_ and provide as
much detail as possible about the issue. The output of ``sudo docker info``
and ``kata-runtime kata-env`` is useful.
|
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)) {
e->amap = amap_ref(next->amap);
e->aoffs = next->aoffs - (next->vaddr - e->vaddr);
}
|
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 the MCU and FP Sensor independently.
Signal Name | Description
-------------- | -------------------------------------
-pp3300_dx_mcu | 3.3V supplying the MCU
-pp3300_dx_fp | 3.3V supplying the fingerprint sensor
-pp1800_dx_fp | 1.8V supplying the fingerprint sensor
+--------------- | -------------------------------------
+`pp3300_dx_mcu` | 3.3V supplying the MCU
+`pp3300_dx_fp` | 3.3V supplying the fingerprint sensor
+`pp1800_dx_fp` | 1.8V supplying the fingerprint sensor
You can monitor all power and voltages by using the following command:
```bash
-(chroot) $ watch -n0.5 dut-control pp3300_dx_mcu_mv pp3300_dx_fp_mv \
-pp1800_dx_fp_mv pp3300_dx_mcu_mw pp3300_dx_fp_mw pp1800_dx_fp_mw
+(chroot) $ watch -n0.5 dut-control pp3300_dx_mcu_mv pp3300_dx_fp_mv pp1800_dx_fp_mv pp3300_dx_mcu_mw pp3300_dx_fp_mw pp1800_dx_fp_mw
```
*** note
|
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(BINDING_MATCHING_FRAME_DEFINED)
+ ICMPCONST(BINDING_MATCHING_FRAME_DIE)
ICMPCONST(DIRECTION_LEFT)
ICMPCONST(DIRECTION_RIGHT)
|
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 0.;
*status = CCL_ERROR_PARAMETERS;
sprintf(cosmo->status_message,"ccl_background.c: ccl_omega_x(): Species %d not supported\n",label);
+ return 0.;
}
}
|
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/170a8104867fa818d329d85921012c922577c955),
+ at a cost of being less able to detect data corruption and to deviate from a
+ strict reading of the relevant file format specifications, accepting some
+ inputs that are technically invalid (but otherwise decode fine).
+
+Package-specific quirks:
+
- [GIF image decoder quirks](/std/gif/decode_quirks.wuffs)
- [JSON decoder quirks](/std/json/decode_quirks.wuffs)
|
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 (see changelog) |
-| hcxpsktool | Calculates candidates for hashcat and john based on based on hcxpcapngtool output (-c -o, -z- -U) or commandline input |
-| hcxhashtool | Provide various filter operations on new PMKID/EAPOL hash line - highly experimental - only limited functions |
-| hcxwltool | Calculates candidates for hashcat and john based on hcxpcaptool output (-E, -I- -U) |
+| hcxpcapngtool | Provide new hashcat format 22000 |
+| hcxhashtool | Provide various filter operations on new PMKID/EAPOL hash line |
+| hcxpsktool | Calculates candidates for hashcat and john based on based on hcxpcapngtool output (-c -o -z- -U) or commandline input |
+| hcxwltool | Calculates candidates for hashcat and john based on hcxpcaptool output (-E -I- -U) |
| wlancap2wpasec | Upload multiple (gzip compressed) pcapng, pcap and cap files to https://wpa-sec.stanev.org |
+| whoismac | Show vendor information and/or download oui reference list |
| -------------- | ---------------------------------------------------------------------------------------------------------------------- |
| deprecated | obsolete when hashcat and JtR moved to new PMKID/EAPOL hash line - no longer under maintenance |
| -------------- | ---------------------------------------------------------------------------------------------------------------------- |
-| whoismac | Show vendor information and/or download oui reference list |
| hcxmactool | Various MAC based filter operations on HCCAPX and PMKID files - convert hccapx and/or PMKID to new hashline format |
| hcxhash2cap | Converts hash file (PMKID, EAPOL-hccapx, EAPOL-hccap, WPAPSK-john) to cap |
| hcxpcaptool | Shows info of pcap/pcapng file and convert it to other hashformats accepted by hashcat and John the Ripper |
|
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 = 0;
const int metricIdxToLog = 0;
if (ShouldCalcMetricOnIteration()) {
|
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 state data
- *
- * Returned Value:
- * Byte as read
- *
- ****************************************************************************/
-
-static inline uint8_t s32k3xx_lpspi_readbyte(struct s32k3xx_lpspidev_s *priv)
-{
- /* Wait until the receive buffer is not empty */
-
- while ((s32k3xx_lpspi_getreg32(priv, S32K3XX_LPSPI_SR_OFFSET) &
- LPSPI_SR_RDF) == 0)
- {
- }
-
- /* Then return the received byte */
-
- return s32k3xx_lpspi_getreg8(priv, S32K3XX_LPSPI_RDR_OFFSET);
-}
-
-/****************************************************************************
- * Name: s32k3xx_lpspi_writebyte
- *
- * Description:
- * Write one 8-bit frame to the SPI FIFO
- *
- * Input Parameters:
- * priv - Device-specific state data
- * byte - Byte to send
- *
- * Returned Value:
- * None
- *
- ****************************************************************************/
-
-static inline void s32k3xx_lpspi_writebyte(struct s32k3xx_lpspidev_s *priv,
- uint8_t byte)
-{
- /* Wait until the transmit buffer is empty */
-
- while ((s32k3xx_lpspi_getreg32(priv, S32K3XX_LPSPI_SR_OFFSET) &
- LPSPI_SR_TDF) == 0)
- {
- }
-
- /* Then send the byte */
-
- s32k3xx_lpspi_putreg8(priv, S32K3XX_LPSPI_TDR_OFFSET, byte);
-}
-
/****************************************************************************
* Name: s32k3xx_lpspi_9to16bitmode
*
|
[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)/$(library)
$(buildpath)/$(library):
- cd $(buildpath) && $(questa_cmd) vlib $(library) && $(questa_cmd) vmap $(library) $(library)
+ cd $(buildpath) && $(questa_cmd) vlib $(library) && chmod +w modelsim.ini && $(questa_cmd) vmap $(library) $(library)
# Compilation
.PHONY: compile
|
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 ([Click Here](https://itunes.apple.com/us/app/xcode/id497799835?mt=12)).
+Then install the command line compiler tools by opening Terminal and typing the
+following:
xcode-select --install
-Install MacPorts (https://www.macports.org/install.php), and use it to install
-the remaining packages:
+Install MacPorts from https://www.macports.org/install.php, then use it to install
+the remaining packages from the terminal:
sudo port install cmake bison swig swig-python imagemagick libsdl2 curl emacs
|
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_WARN("LV_COLOR_DEPTH == 32 but bpp is %d (should be 32 or 24)", b.bpp);
color_depth_error = true;
}
|
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/zDMXMtutmN5f0j1sMsiHhZ6wnaFhVIOvysSiuIal5vRX04rG/2UPnrM2CIv3s1jQPMhuMJGWPGOg76UoFQVo+1Mx7AtDTLJoJhymtIldbrH30h77HDdJbyCT+VPBtFmNbBJvTwVTyyVOuKkUX5JI0P1qNayEY6aFURLvOR6ZR7CSqIFXOiQmWEbFulxGp3Ss+HD+Ule94DXEeuK7xF1NKYHubUBF8BDk3eJcSfbA0vFvE6SbB1OJHItVnXliLb/pR3TlJiY11+XtT3N2YFHTEFOVSUxplyQpmXZDwhiIgn7sZRZQGL6Eqs4CtjKj8Lu/EJEFRIbJZCdlVkznFebSwMjvRaK9Anj1vW5gFs+Wsw5lUZOJPYI8jiHdzGszsDFpOex2PVixwLfVscM7fa5Sgsk4FgV0EzGpzmbcH9jc7AurbyRUgCSnDxhOuH/m4TJLdS8xL3XS+MiB8wZ4bTStqjMWK6fKy13IrmLChJUVPBYoyyqgOjHjtOBYYEcChpDbUqiLh6UCpFyZmkiph8uElgolgGuDZkEIGwcuquap2Ih4q9x1CX5eMri/ukzAqaHz506o=
+ - os: linux
+ name: "Build Linux CLANGPDB/GCC5"
+ dist: xenial
+ addons:
+ apt:
+ packages:
+ - nasm
+ - uuid-dev
+
+ script:
+ - llvmfile="clang+llvm-9.0.1-x86_64-linux-gnu-ubuntu-16.04"
+ - curl -LO "https://github.com/llvm/llvm-project/releases/download/llvmorg-9.0.1/${llvmfile}.tar.xz" || exit 1
+ - llvmsum=$(shasum -a 256 "${llvmfile}.tar.xz" | cut -f1 -d' ')
+ - llvmexpsum="1af280e96fec62acf5f3bb525e36baafe09f95f940dc9806e22809a83dfff4f8"
+ - if [ "$llvmsum" != "$llvmexpsum" ]; then echo "Invalid LLVM checksum $llvmsum" ; exit 1 ; fi
+ - tar -xf "${llvmfile}.tar.xz" || exit 1
+ - export PATH="$(pwd)/${llvmfile}/bin:$PATH"
+ - "./macbuild.tool"
+
- os: osx
name: "Analyze Coverity"
osx_image: xcode11.3
|
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 errors are not our fault ...
|
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 != "txindex" && strCommand != "full" && strCommand != "protocol"){
+ if (strCommand != "active" && strCommand != "txid" && strCommand != "pubkey" && strCommand != "lastseen" && strCommand != "lastpaid" && strCommand != "activeseconds" && strCommand != "rank" && strCommand != "n" && strCommand != "full" && strCommand != "protocol"){
throw runtime_error(
- "list supports 'active', 'vin', 'pubkey', 'lastseen', 'lastpaid', 'activeseconds', 'rank', 'txindex', 'protocol', 'full'\n");
+ "list supports 'active', 'txid', 'pubkey', 'lastseen', 'lastpaid', 'activeseconds', 'rank', 'n', 'protocol', 'full'\n");
}
Object obj;
@@ -228,7 +228,7 @@ Value masternode(const Array& params, bool fHelp)
if(strCommand == "active"){
obj.push_back(Pair(mn.addr.ToString().c_str(), (int)mn.IsEnabled()));
- } else if (strCommand == "vin") {
+ } else if (strCommand == "txid") {
obj.push_back(Pair(mn.addr.ToString().c_str(), mn.vin.prevout.hash.ToString().c_str()));
} else if (strCommand == "pubkey") {
CScript pubkey;
@@ -240,7 +240,7 @@ Value masternode(const Array& params, bool fHelp)
obj.push_back(Pair(mn.addr.ToString().c_str(), address2.ToString().c_str()));
} else if (strCommand == "protocol") {
obj.push_back(Pair(mn.addr.ToString().c_str(), (int64_t)mn.protocolVersion));
- } else if (strCommand == "txindex") {
+ } else if (strCommand == "n") {
obj.push_back(Pair(mn.addr.ToString().c_str(), (int64_t)mn.vin.prevout.n));
} else if (strCommand == "lastpaid") {
obj.push_back(Pair(mn.addr.ToString().c_str(), mn.nBlockLastPaid));
@@ -254,8 +254,8 @@ Value masternode(const Array& params, bool fHelp)
else if (strCommand == "full") {
Object list;
list.push_back(Pair("active", (int)mn.IsEnabled()));
- list.push_back(Pair("vin", mn.vin.prevout.hash.ToString().c_str()));
- list.push_back(Pair("txindex", (int64_t)mn.vin.prevout.n));
+ list.push_back(Pair("txid", mn.vin.prevout.hash.ToString().c_str()));
+ list.push_back(Pair("n", (int64_t)mn.vin.prevout.n));
CScript pubkey;
pubkey =GetScriptForDestination(mn.pubkey.GetID());
|
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.