message
stringlengths 6
474
| diff
stringlengths 8
5.22k
|
---|---|
skiboot.spec: Update to v5.10 release
Update skiboot.spec to be able to package skiboot v5.10 release. | Name: opal-prd
-Version: 5.6.0
+Version: 5.10
Release: 1%{?dist}
Summary: OPAL Processor Recovery Diagnostics Daemon
@@ -12,7 +12,7 @@ BuildRequires: systemd
Requires: systemd
-Source0: https://github.com/open-power/skiboot/archive/skiboot-%{version}.tar.gz
+Source0: https://github.com/open-power/skiboot/archive/v%{version}.tar.gz
%description
This package provides a daemon to load and run the OpenPower firmware's
@@ -44,7 +44,7 @@ services to the OS (Linux) on IBM Power and OpenPower systems.
%prep
-%setup -q -n skiboot-skiboot-%version
+%setup -q -n skiboot-%{version}
%build
SKIBOOT_VERSION=%version CROSS= make V=1 %{?_smp_mflags}
@@ -108,6 +108,9 @@ fi
%{_datadir}/qemu/
%changelog
+* Thu Mar 01 2018 Murilo Opsfelder Araujo <[email protected]> - 5.10-1
+- Update to v5.10 release
+
* Tue Feb 09 2016 Vasant Hegde <[email protected]> - 5.1.13
- Update to latest upstream release
|
Fix dresden elektronik Lighting Switch group configuration | @@ -2535,7 +2535,25 @@ void DeRestPluginPrivate::checkSensorButtonEvent(Sensor *sensor, const deCONZ::A
{
QStringList gids;
ResourceItem *item = sensor->addItem(DataTypeString, RConfigGroup);
- QString gid = QString::number(ind.dstAddress().group());
+
+ quint16 groupId = ind.dstAddress().group();
+
+ if (sensor->modelId() == QLatin1String("Lighting Switch"))
+ {
+ // adjust groupId for endpoints
+ // ep 1: <gid>
+ // ep 2: <gid> + 1
+ if (sensor->fingerPrint().endpoint == 2 && ind.srcEndpoint() == 1)
+ {
+ groupId++;
+ }
+ else if (sensor->fingerPrint().endpoint == 1 && ind.srcEndpoint() == 2)
+ {
+ groupId--;
+ }
+ }
+
+ QString gid = QString::number(groupId);
if (item)
{
|
metadata-push-hook: correct association key
Fixes urbit/landscape#405 | =/ role=(unit (unit role-tag))
(role-for-ship:grp group.update src.bowl)
=/ =metadatum:store
- (need (peek-metadatum:met %contacts group.update))
+ (need (peek-metadatum:met %groups group.update))
?~ role %.n
?^ u.role
?=(?(%admin %moderator) u.u.role)
|
Removed old os_strcmp function | #define ZERO(x) memset(&x, 0, sizeof(x))
-static int os_strcmp(const char* s1, const char* s2) {
- size_t size = strlen(s1) + 1;
- return memcmp(s1, s2, size);
-}
-
int handle_check_address(check_address_parameters_t* params, chain_config_t* chain_config) {
PRINTF("Params on the address %d\n", (unsigned int) params);
PRINTF("Address to check %s\n", params->address_to_check);
@@ -69,7 +64,7 @@ int handle_check_address(check_address_parameters_t* params, chain_config_t* cha
offset_0x = 2;
}
- if (os_strcmp(locals_union1.address, params->address_to_check + offset_0x) != 0) {
+ if (strcmp(locals_union1.address, params->address_to_check + offset_0x) != 0) {
PRINTF("Addresses don't match\n");
return 0;
}
|
driverkit: provide some more debug information in the iommu client | @@ -201,6 +201,10 @@ static errval_t iommu_alloc_vregion(struct iommu_client *st,
return SYS_ERR_OK;
}
+
+ DRIVERKIT_DEBUG("[iommu client] allocate driver vspace\n");
+
+
// Alloc space in my vspace
int32_t my_nodeid = driverkit_hwmodel_get_my_node_id();
err = driverkit_hwmodel_vspace_alloc(mem, my_nodeid, driver);
@@ -209,6 +213,8 @@ static errval_t iommu_alloc_vregion(struct iommu_client *st,
return err;
}
+ DRIVERKIT_DEBUG("[iommu client] allocate device vspace\n");
+
// Map into dev vspace
int32_t device_nodeid = driverkit_iommu_get_nodeid(st);
err = driverkit_hwmodel_vspace_alloc(mem, device_nodeid, device);
@@ -1122,15 +1128,21 @@ errval_t driverkit_iommu_vspace_map_cl(struct iommu_client *cl,
return err;
}
+ DRIVERKIT_DEBUG("%s:%u Allocated VREGIONs 0x%" PRIxLVADDR " 0x%" PRIxLVADDR "\n",
+ __FUNCTION__, __LINE__, dmem->vbase, dmem->devaddr);
+
/*
* if driver vbase is null, then we map it at any address in the driver's
* vspace. Only if the policy is not shared, then we have to map it.
*/
if (cl == NULL || cl->policy != IOMMU_VSPACE_POLICY_SHARED || !cl->enabled) {
if (dmem->vbase == 0) {
+ DRIVERKIT_DEBUG("vspace_map_one_frame_attr(?, %lu)\n", dmem->size >> 20);
err = vspace_map_one_frame_attr((void **)&dmem->vbase, dmem->size,
dmem->mem, flags, NULL, NULL);
} else {
+ DRIVERKIT_DEBUG("vspace_map_one_frame_fixed_attr(%lx, %lu)\n",
+ dmem->vbase, dmem->size >> 20);
err = vspace_map_one_frame_fixed_attr(dmem->vbase, dmem->size,
dmem->mem, flags, NULL, NULL);
}
|
BugID:16974841:Rm not used enable auth and ota params | @@ -126,7 +126,6 @@ static void alink_work(void *arg)
init_bzlink.set_cb = set_dev_status_handler;
init_bzlink.get_cb = get_dev_status_handler;
init_bzlink.apinfo_cb = apinfo_handler;
- init_bzlink.enable_auth = true;
init_bzlink.secret_len = strlen(DEVICE_SECRET);
memcpy(init_bzlink.secret, DEVICE_SECRET, init_bzlink.secret_len);
@@ -150,7 +149,6 @@ static void alink_work(void *arg)
memcpy(ota_module.verison.fw_ver, SOFTWARE_VERSION, ota_module.verison.fw_ver_len);
ota_module.get_dat_cb = NULL;
ota_breeze_service_init(&ota_module);
- init_bzlink.enable_ota = true;
init_bzlink.ota_cb = ota_module.get_dat_cb;
#else
init_bzlink.ota_cb = ota_handler;
|
doc: fix typo beeing -> being | @@ -176,7 +176,7 @@ All options have a helptext next to them explaining what the settings do.
Most of the default settings should be ok, however some settings need to be
verified or added:
* In Branch Sources under Behaviours `Filter by name` should be
- added to exclude the `debian` branch from beeing build.
+ added to exclude the `debian` branch from being build.
* `Advanced clone behaviours` should be added and the path to the git mirror
needs to be specified: `/home/jenkins/git_mirrors/libelektra`
* Under Property strategy you can add `Trigger build on pull request comment`.
|
Extend LE entity test to hex entities | @@ -6603,9 +6603,10 @@ END_TEST
START_TEST(test_entity_in_utf16_le_attr)
{
const char text[] =
- /* <e a='ä'></e> */
- "<\0e\0 \0a\0=\0'\0&\0#\0\x32\0\x32\0\x38\0;\0'\0>\0<\0/\0e\0>\0";
- const XML_Char *expected = "\xc3\xa4";
+ /* <e a='ä ä'></e> */
+ "<\0e\0 \0a\0=\0'\0&\0#\0\x32\0\x32\0\x38\0;\0 \0"
+ "&\0#\0x\0\x30\0\x30\0E\0\x34\0;\0'\0>\0<\0/\0e\0>\0";
+ const XML_Char *expected = "\xc3\xa4 \xc3\xa4";
CharData storage;
CharData_Init(&storage);
|
wireless/scsc: Fix uninitialized variable | @@ -565,7 +565,7 @@ int slsi_hw_scan(void *priv, struct wpa_driver_scan_params *request)
int r, i;
#ifdef CONFIG_SCSC_ENABLE_P2P
- u16 p2p_state = sdev->p2p_state;
+ u16 p2p_state;
#endif
u8 *scan_ie = NULL;;
size_t scan_ie_len;
@@ -585,6 +585,9 @@ int slsi_hw_scan(void *priv, struct wpa_driver_scan_params *request)
return -EINVAL;
}
+#ifdef CONFIG_SCSC_ENABLE_P2P
+ p2p_state = sdev->p2p_state;
+#endif
dev = slsi_get_netdev(sdev, SLSI_NET_INDEX_WLAN);
if (!dev) {
SLSI_ERR_NODEV("dev not available\n");
|
Update session local address is_ip4 on bind when not global | @@ -772,6 +772,7 @@ done:
{
rmp->handle = a->handle;
rmp->lcl_port = mp->port;
+ rmp->lcl_is_ip4 = mp->is_ip4;
if (app && application_has_global_scope (app))
{
s = listen_session_get_from_handle (a->handle);
|
PR algorithm support for TSIG signing of...
ldns-notify in the man page | @@ -40,9 +40,9 @@ Append a SOA record indicating the serial number of the updated zone.
Use port as destination port (default the DNS port 53) for the UDP packets.
.TP
-\fB-y key:data\fR
-Use the given TSIG key and base64-data to sign the NOTIFY. Uses the
-hmac-md5 algorithm.
+\fB-y key:data[:algo] \fR
+Use the given TSIG key and base64-data, and optinally an algorithm to sign
+the NOTIFY. The algorithm defaults to hmac-md5.sig-alg.reg.int.
.TP
\fB-d\fR
|
Add AtkCursor | @@ -15,6 +15,7 @@ namespace FFXIVClientStructs.FFXIV.Component.GUI
[FieldOffset(0x0)] public AtkEventTarget AtkEventTarget;
[FieldOffset(0x20)] public RaptureAtkUnitManager* RaptureAtkUnitManager;
[FieldOffset(0x168)] public AtkTooltipManager TooltipManager;
+ [FieldOffset(0x338)] public AtkCursor AtkCursor;
[MemberFunction("E8 ? ? ? ? 0F BF D5", IsStatic = true)]
public static partial AtkStage* GetSingleton();
|
Add d_m3SkipCallCheck | @@ -70,7 +70,7 @@ d_m3OpDef (CallIndirect)
{
// TODO: this can eventually be simplified. by using a shared set of unique M3FuncType objects in
// M3Environment, the compare can be reduced to a single pointer-compare operation
-
+#if !defined(d_m3SkipCallCheck)
if (type->numArgs != function->funcType->numArgs)
{
return m3Err_trapIndirectCallTypeMismatch;
@@ -88,7 +88,7 @@ d_m3OpDef (CallIndirect)
return m3Err_trapIndirectCallTypeMismatch;
}
}
-
+#endif
if (not function->compiled)
r = Compile_Function (function);
|
Check all pressed inputs for attached scripts | @@ -741,19 +741,21 @@ static void SceneHandleInput()
{
input_index = 0;
input_joy = joy;
- while (!(input_joy & 1) && input_joy != 0)
+ for (input_index = 0; input_index != 8; ++input_index)
+ {
+ if (input_joy & 1)
{
- input_index += 1;
- input_joy = input_joy >> 1;
- }
if (input_script_ptrs[input_index].bank)
{
actors[0].moving = FALSE;
- joy = last_joy;
+ last_joy = joy;
ScriptStart(&input_script_ptrs[input_index]);
return;
}
}
+ input_joy = input_joy >> 1;
+ }
+ }
if (JOY_PRESSED(J_A))
{
|
README: Update for pycopy-cross. | @@ -112,13 +112,13 @@ You will also need bash, gcc, and Python 3.3+ available as the command `python3`
(if your system only has Python 2.7 then invoke make with the additional option
`PYTHON=python2`).
-The cross-compiler, mpy-cross
------------------------------
+The cross-compiler, pycopy-cross
+--------------------------------
Most ports require the Pycopy cross-compiler to be built first. This
-program, called mpy-cross, is used to pre-compile Python scripts to .mpy
+program, called pycopy-cross, is used to pre-compile Python scripts to .mpy
files which can then be included (frozen) into the firmware/executable for
-a port. To build mpy-cross use:
+a port. To build pycopy-cross use:
$ cd mpy-cross
$ make
|
[bsp] fix incompatible type for finsh_system_init in bsp/lpc824 | extern int rt_application_init(void);
#ifdef RT_USING_FINSH
-extern void finsh_system_init(void);
+extern int finsh_system_init(void);
extern void finsh_set_device(const char* device);
#endif
|
Fix the example code of 'jerry_define_own_property' function
JerryScript-DCO-1.0-Signed-off-by: Gabor Loki | @@ -2837,7 +2837,8 @@ jerry_define_own_property (const jerry_value_t obj_val,
prop_desc.value = value_to_set;
jerry_value_t prop_name = jerry_create_string ((const jerry_char_t *) "my_prop");
- jerry_define_own_property (global_obj_val, prop_name, &prop_desc);
+ jerry_value_t return_value = jerry_define_own_property (global_obj_val, prop_name, &prop_desc);
+ jerry_release_value (return_value);
jerry_release_value (prop_name);
jerry_free_property_descriptor_fields (&prop_desc);
|
pyocf: security test for seq cutoff threshold | @@ -126,6 +126,71 @@ def test_neg_cache_set_seq_cut_off_policy(pyocf_ctx, cm, cls):
cache.set_seq_cut_off_policy(i)
[email protected]("cm", CacheMode)
[email protected]("cls", CacheLineSize)
[email protected]
+def test_neg_cache_set_seq_cut_off_threshold(pyocf_ctx, cm, cls):
+ """
+ Test whether it is possible to change cache seq cut-off threshold to invalid value
+ :param pyocf_ctx: basic pyocf context fixture
+ :param cm: cache mode we start with
+ :param cls: cache line size we start with
+ :return:
+ """
+ # Start cache device
+ cache_device = Volume(S.from_MiB(30))
+ cache = Cache.start_on_device(cache_device, cache_mode=cm, cache_line_size=cls)
+
+ # Create 2 core devices
+ core_device1 = Volume(S.from_MiB(10))
+ core1 = Core.using_device(core_device1, name="core1")
+ core_device2 = Volume(S.from_MiB(10))
+ core2 = Core.using_device(core_device2, name="core2")
+
+ # Add cores
+ cache.add_core(core1)
+ cache.add_core(core2)
+
+ # Change cache seq cut off policy to invalid one and check if failed
+ for i in RandomGenerator(DefaultRanges.UINT32):
+ if i in ConfValidValues.seq_cutoff_threshold_rage:
+ continue
+ with pytest.raises(OcfError, match="Error setting cache seq cut off policy threshold"):
+ cache.set_seq_cut_off_threshold(i)
+ print("\n" + i)
+
+
[email protected]("cm", CacheMode)
[email protected]("cls", CacheLineSize)
[email protected]
+def test_neg_core_set_seq_cut_off_threshold(pyocf_ctx, cm, cls):
+ """
+ Test whether it is possible to change core seq cut-off threshold to invalid value
+ :param pyocf_ctx: basic pyocf context fixture
+ :param cm: cache mode we start with
+ :param cls: cache line size we start with
+ :return:
+ """
+ # Start cache device
+ cache_device = Volume(S.from_MiB(30))
+ cache = Cache.start_on_device(cache_device, cache_mode=cm, cache_line_size=cls)
+
+ # Create core device
+ core_device = Volume(S.from_MiB(10))
+ core = Core.using_device(core_device, name="core")
+
+ # Add core
+ cache.add_core(core)
+
+ # Change core seq cut off policy to invalid one and check if failed
+ for i in RandomGenerator(DefaultRanges.UINT32):
+ if i in ConfValidValues.seq_cutoff_threshold_rage:
+ continue
+ with pytest.raises(OcfError, match="Error setting core seq cut off policy threshold"):
+ core.set_seq_cut_off_threshold(i)
+ print("\n" + i)
+
+
@pytest.mark.parametrize("cm", CacheMode)
@pytest.mark.parametrize("cls", CacheLineSize)
@pytest.mark.security
|
Check that elasticsearch is reachable on Datafari's initialization | @@ -52,6 +52,10 @@ then
cd $ELASTICSEARCH_HOME/bin
sudo -E su datafari -p -c "bash elasticsearch -p $ELASTICSEARCH_PID_FILE" &
sleep 15
+
+ #Test if Elasticsearch is up, if not then exit
+ curl -s --fail -XGET http://localhost:9200/ || { echo "Fail to reach Elasticsearch on localhost:9200"; echo "Please check your network connection and, in case a proxy is configured, that a proxy exception exists for 'localhost' and '127.0.0.1' !"; sudo -E su datafari -p -c "kill $(cat $ELASTICSEARCH_PID_FILE)"; exit 1; }
+
sudo -E su datafari -p -c "sed -i '/pid\.file/c\pid.file: ${KIBANA_PID_FILE}' $KIBANA_HOME/config/kibana.yml"
cd $KIBANA_HOME/bin
sudo -E su datafari -p -c "bash kibana" &
|
hv: use ARRAY_SIZE to calc local array size
if one array just used in local only, and its size not used extern,
use ARRAY_SIZE macro to calculate its size. | @@ -80,8 +80,7 @@ static const uint32_t emulated_guest_msrs[NUM_GUEST_MSRS] = {
#endif
};
-#define NUM_MTRR_MSRS 13U
-static const uint32_t mtrr_msrs[NUM_MTRR_MSRS] = {
+static const uint32_t mtrr_msrs[] = {
MSR_IA32_MTRR_CAP,
MSR_IA32_MTRR_DEF_TYPE,
MSR_IA32_MTRR_FIX64K_00000,
@@ -98,13 +97,7 @@ static const uint32_t mtrr_msrs[NUM_MTRR_MSRS] = {
};
/* Following MSRs are intercepted, but it throws GPs for any guest accesses */
-#define NUM_ALWAYS_UNSUPPORTED_MSRS 92U
-#ifndef CONFIG_NVMX_ENABLED
-#define NUM_UNSUPPORTED_MSRS (NUM_ALWAYS_UNSUPPORTED_MSRS + NUM_VMX_MSRS)
-#else
-#define NUM_UNSUPPORTED_MSRS NUM_ALWAYS_UNSUPPORTED_MSRS
-#endif
-static const uint32_t unsupported_msrs[NUM_UNSUPPORTED_MSRS] = {
+static const uint32_t unsupported_msrs[] = {
/* Variable MTRRs are not supported */
MSR_IA32_MTRR_PHYSBASE_0,
MSR_IA32_MTRR_PHYSMASK_0,
@@ -370,13 +363,13 @@ void init_msr_emulation(struct acrn_vcpu *vcpu)
enable_msr_interception(msr_bitmap, emulated_guest_msrs[i], INTERCEPT_READ_WRITE);
}
- for (i = 0U; i < NUM_MTRR_MSRS; i++) {
+ for (i = 0U; i < ARRAY_SIZE(mtrr_msrs); i++) {
enable_msr_interception(msr_bitmap, mtrr_msrs[i], INTERCEPT_READ_WRITE);
}
intercept_x2apic_msrs(msr_bitmap, INTERCEPT_READ_WRITE);
- for (i = 0U; i < NUM_UNSUPPORTED_MSRS; i++) {
+ for (i = 0U; i < ARRAY_SIZE(unsupported_msrs); i++) {
enable_msr_interception(msr_bitmap, unsupported_msrs[i], INTERCEPT_READ_WRITE);
}
|
Legacy: Fix boot1 base address | @@ -17,7 +17,7 @@ Acidanthera variant of DuetPkg. Specialties:
1. `boot0` is loaded by BIOS from MBR at `7C00h`.
2. `boot0` finds active MBR or ESP GPT partition.
-3. `boot0` loads `boot1` from found partition at `9000h`.
+3. `boot0` loads `boot1` from found partition at `E000h`.
4. `boot1` finds `boot` file at partition root.
5. `boot1` loads `boot` at `20000h` (begins with `StartX64` or `StartIA32`).
6. `Start` enables paging (prebuilt for `X64` or generated for `IA32`).
@@ -31,7 +31,7 @@ Acidanthera variant of DuetPkg. Specialties:
| Name | PHYS | VIRT |
|:----------|:------------|:------------|
| `boot0` | `7C00h` | |
-| `boot1` | `9000h` | |
+| `boot1` | `E000h` | |
| `Start` | `20000h` | `20000h` |
| `EfiXX` | `21000h` | `21000h` |
| `EfiLdr` | `22000h` | `10000h` |
|
fix reader byte ordering | @@ -229,19 +229,19 @@ static uintptr_t counter(char *data, size_t len) {
/* leftover bytes */
switch ((len & 7)) {
case 7: /* overflow */
- tmp |= ((uint64_t)data[6]) << 56;
+ tmp |= ((uint64_t)data[6]) << 8;
case 6: /* overflow */
- tmp |= ((uint64_t)data[5]) << 48;
+ tmp |= ((uint64_t)data[5]) << 16;
case 5: /* overflow */
- tmp |= ((uint64_t)data[4]) << 40;
+ tmp |= ((uint64_t)data[4]) << 24;
case 4: /* overflow */
tmp |= ((uint64_t)data[3]) << 32;
case 3: /* overflow */
- tmp |= ((uint64_t)data[2]) << 24;
+ tmp |= ((uint64_t)data[2]) << 40;
case 2: /* overflow */
- tmp |= ((uint64_t)data[1]) << 16;
+ tmp |= ((uint64_t)data[1]) << 48;
case 1: /* overflow */
- tmp |= ((uint64_t)data[0]) << 8;
+ tmp |= ((uint64_t)data[0]) << 56;
}
__asm__ volatile("" ::: "memory");
return ++counter;
@@ -881,4 +881,3 @@ inline FIO_FUNC uintptr_t fio_risky_hash_old(void *data_, size_t len,
#if TEST_XXHASH
#include "xxhash.c"
#endif
-
|
stats: fix crash on early init | @@ -63,6 +63,17 @@ STATIC_ASSERT_OFFSET_OF (vlib_buffer_t, template_end, 64);
u16 __vlib_buffer_external_hdr_size = 0;
+static void
+buffer_gauges_update_cached_fn (stat_segment_directory_entry_t * e,
+ u32 index);
+
+static void
+buffer_gauges_update_available_fn (stat_segment_directory_entry_t * e,
+ u32 index);
+
+static void
+buffer_gauges_update_used_fn (stat_segment_directory_entry_t * e, u32 index);
+
uword
vlib_buffer_length_in_chain_slow_path (vlib_main_t * vm,
vlib_buffer_t * b_first)
@@ -716,11 +727,15 @@ buffer_get_cached (vlib_buffer_pool_t * bp)
u32 cached = 0;
vlib_buffer_pool_thread_t *bpt;
+ clib_spinlock_lock (&bp->lock);
+
/* *INDENT-OFF* */
vec_foreach (bpt, bp->threads)
cached += vec_len (bpt->cached_buffers);
/* *INDENT-ON* */
+ clib_spinlock_unlock (&bp->lock);
+
return cached;
}
@@ -808,21 +823,20 @@ vlib_buffer_main_init (struct vlib_main_t * vm)
vec_foreach (bp, bm->buffer_pools)
{
- name = format (0, "/buffer/cached/%s%c", bp->name, 0);
+ name = format (0, "/buffer-pools/%s/cached%c", bp->name, 0);
stat_segment_register_gauge (name, buffer_gauges_update_cached_fn,
bp - bm->buffer_pools);
vec_free (name);
- name = format (0, "/buffer/used/%s%c", bp->name, 0);
+ name = format (0, "/buffer-pools/%s/used%c", bp->name, 0);
stat_segment_register_gauge (name, buffer_gauges_update_used_fn,
bp - bm->buffer_pools);
vec_free (name);
- name = format (0, "/buffer/available/%s%c", bp->name, 0);
+ name = format (0, "/buffer-pools/%s/available%c", bp->name, 0);
stat_segment_register_gauge (name, buffer_gauges_update_available_fn,
bp - bm->buffer_pools);
vec_free (name);
}
-
done:
vec_free (bmp);
return err;
|
zephyr: zmake: Drop the log level of some config related logging
INFO can be a bit spammy for these logs, use DEBUG instead.
BRANCH=none
TEST="zmake list-projects" has no output spam | @@ -55,10 +55,10 @@ def load_config_file(path):
exec(code, config_globals)
# Next, load the BUILD.py
- logging.info("Loading config file %s", path)
+ logging.debug("Loading config file %s", path)
code = compile(path.read_bytes(), str(path), "exec")
exec(code, config_globals)
- logging.info("Config file %s defines %s projects", path, len(projects))
+ logging.debug("Config file %s defines %s projects", path, len(projects))
return projects
@@ -71,7 +71,7 @@ def find_projects(root_dir):
Returns:
A dictionary mapping project names to Project objects.
"""
- logging.info("Finding zmake targets under '%s'.", root_dir)
+ logging.debug("Finding zmake targets under '%s'.", root_dir)
found_projects = {}
for path in pathlib.Path(root_dir).rglob("BUILD.py"):
for project in load_config_file(path):
|
http_server: plugins: fix buffer destroy API usage | @@ -99,7 +99,7 @@ static void cb_plugins(mk_request_t *request, void *data)
out_buf, flb_sds_len(out_buf), NULL);
mk_http_done(request);
- flb_free(out_buf);
+ flb_sds_destroy(out_buf);
}
/* Perform registration */
|
README.md: add example config file location | @@ -259,7 +259,9 @@ Some Linux native OpenGL games overrides LD_PRELOAD and stops MangoHud from work
## Hud configuration
-MangoHud comes with a config file which can be used to set configuration options globally or per application. The priorities of different config files are:
+MangoHud comes with a config file which can be used to set configuration options globally or per application. Usually it is installed as `/usr/share/doc/mangohud/MangoHud.conf.example` or [get a copy from here](https://raw.githubusercontent.com/flightlessmango/MangoHud/master/data/MangoHud.conf).
+
+The priorities of different config files are:
1. `/path/to/application/dir/MangoHud.conf`
2. Per-application configuration in ~/.config/MangoHud:
|
sensors: occ: Skip the deconfigured core sensors
This patch skips the deconfigured cores from the core sensors while
parsing the sensor names in the main memory as these sensor values are
not updated by OCC. | #include <chip.h>
#include <sensor.h>
#include <device.h>
+#include <cpu.h>
/*
* OCC Sensor Data
@@ -474,9 +475,11 @@ static void add_sensor_label(struct dt_node *node, struct occ_sensor_name *md,
if (!strncmp(str_maps[i].occ_str, md->name,
strlen(str_maps[i].occ_str))) {
char *end;
- int num;
+ int num = -1;
+ if (md->location != OCC_SENSOR_LOC_CORE)
num = parse_entity(md->name, &end);
+
if (num != -1) {
snprintf(sname, sizeof(sname), "%s%s %d %s",
prefix, str_maps[i].opal_str, num,
@@ -573,11 +576,22 @@ void occ_sensors_init(void)
char name[30];
const char *type, *loc;
struct dt_node *node;
+ struct cpu_thread *c = NULL;
u32 handler;
if (!(md[i].type & HWMON_SENSORS_MASK))
continue;
+ if (md[i].location == OCC_SENSOR_LOC_CORE) {
+ int num = parse_entity(md[i].name, NULL);
+
+ for_each_available_core_in_chip(c, chip->id)
+ if (pir_to_core_id(c->pir) == num)
+ break;
+ if (!c)
+ continue;
+ }
+
type = get_sensor_type_string(md[i].type);
loc = get_sensor_loc_string(md[i].location);
snprintf(name, sizeof(name), "%s-%s", loc, type);
@@ -598,6 +612,9 @@ void occ_sensors_init(void)
"ibm,opal-sensor");
dt_add_property_string(node, "occ_label", md[i].name);
add_sensor_label(node, &md[i], chip->id);
+
+ if (md[i].location == OCC_SENSOR_LOC_CORE)
+ dt_add_property_cells(node, "ibm,pir", c->pir);
}
occ_num++;
}
|
Mark animating wiki documented. | @@ -2492,7 +2492,7 @@ typedef struct entity
int noaicontrol; // pause A.I. control
int projectile;
int toexplode; // Needed to determine if the projectile is a type that will explode (bombs, dynamite, etc)
- int animating; // Set by animation code can be -1, 0 or 1 (used for reverse animation)
+ int animating; // Animation status (none, forward, reverse). ~~
bool arrowon; // Flag to display parrow/parrow2 or not
unsigned pathblocked;
s_axis_principal_float *waypoints;
|
docs(codes): improve macOS support data (volume, brightness, media controls)
Codes:
K_VOLUME_UP, C_VOLUME_UP, K_VOLUME_DOWN, C_VOLUME_DOWN, K_MUTE
C_BRIGHTNESS_INC, C_BRIGHTNESS_DEC
C_PLAY_PAUSE, C_NEXT, C_PREVIOUS
Tested on:
Catalina 10.15.7
Big Sur 11.2 Beta
PR:
See: | @@ -3218,7 +3218,7 @@ export default [
windows: null,
linux: true,
android: true,
- macos: null,
+ macos: true,
ios: null,
},
footnotes: {},
@@ -3239,7 +3239,7 @@ export default [
windows: null,
linux: true,
android: true,
- macos: null,
+ macos: false,
ios: null,
},
footnotes: {},
@@ -3260,7 +3260,7 @@ export default [
windows: null,
linux: true,
android: true,
- macos: null,
+ macos: false,
ios: null,
},
footnotes: {},
@@ -5172,7 +5172,7 @@ export default [
windows: null,
linux: true,
android: null,
- macos: null,
+ macos: true,
ios: null,
},
footnotes: {},
@@ -5193,7 +5193,7 @@ export default [
windows: null,
linux: true,
android: null,
- macos: null,
+ macos: true,
ios: null,
},
footnotes: {},
@@ -5886,7 +5886,7 @@ export default [
windows: null,
linux: true,
android: true,
- macos: null,
+ macos: true,
ios: null,
},
footnotes: {},
@@ -5907,7 +5907,7 @@ export default [
windows: null,
linux: true,
android: true,
- macos: null,
+ macos: true,
ios: null,
},
footnotes: {},
@@ -6054,7 +6054,7 @@ export default [
windows: null,
linux: true,
android: true,
- macos: null,
+ macos: true,
ios: null,
},
footnotes: {},
@@ -6138,7 +6138,7 @@ export default [
windows: null,
linux: true,
android: true,
- macos: null,
+ macos: true,
ios: null,
},
footnotes: {},
@@ -6159,7 +6159,7 @@ export default [
windows: null,
linux: true,
android: true,
- macos: null,
+ macos: true,
ios: null,
},
footnotes: {},
|
make: print gcc version on succesfull build | @@ -7,6 +7,8 @@ CP=arm-none-eabi-objcopy
OD=arm-none-eabi-objdump
SE=arm-none-eabi-size
+GCC_VERSION=$(shell arm-none-eabi-gcc -dumpversion)
+
INCLUDE = src \
src/main \
src/main/rx \
@@ -62,9 +64,9 @@ all: $(TARGET)
FORCE:
$(TARGET): $(BUILD_DIR)/target $(BUILD_DIR)/$(BINARY).bin $(BUILD_DIR)/$(BINARY).hex $(BUILD_DIR)/$(BINARY).list
+ @echo "built $(BINARY) with gcc $(GCC_VERSION)"
$(BUILD_DIR)/target: FORCE
-
@mkdir -p $(BUILD_DIR)
@echo "Setting target to $(TARGET)"
@echo "$(TARGET)" > $(BUILD_DIR)/target.tmp
|
Doc: Remove type information for import_generated in postgres-fdw.sgml.
The type information for FDW options is only added to HEAD; remove this
from back branches. Oversight in commit
Apply the patch to v12, v13, and v14.
Discussion: | </listitem>
</varlistentry>
<varlistentry>
- <term><literal>import_generated</literal> (<type>boolean</type>)</term>
+ <term><literal>import_generated</literal></term>
<listitem>
<para>
This option controls whether column <literal>GENERATED</literal> expressions
|
Change comment in gst.h | @@ -210,8 +210,8 @@ struct GstValue {
GstValueUnion data;
};
-/* A lightweight thread in gst. Does not correspond to
- * operating system threads. Used in coroutines and continuations. */
+/* A lightweight green thread in gst. Does not correspond to
+ * operating system threads. */
struct GstThread {
uint32_t count;
uint32_t capacity;
|
Fix coverity CID & - Arg passed to function that cannot be negative in cms_ess.c | @@ -430,12 +430,12 @@ ASN1_OCTET_STRING *cms_encode_Receipt(CMS_SignerInfo *si)
int cms_add1_signing_cert_v2(CMS_SignerInfo *si, ESS_SIGNING_CERT_V2 *sc)
{
ASN1_STRING *seq = NULL;
- unsigned char *p, *pp;
+ unsigned char *p, *pp = NULL;
int len;
/* Add SigningCertificateV2 signed attribute to the signer info. */
len = i2d_ESS_SIGNING_CERT_V2(sc, NULL);
- if ((pp = OPENSSL_malloc(len)) == NULL)
+ if (len <= 0 || (pp = OPENSSL_malloc(len)) == NULL)
goto err;
p = pp;
i2d_ESS_SIGNING_CERT_V2(sc, &p);
@@ -462,12 +462,12 @@ int cms_add1_signing_cert_v2(CMS_SignerInfo *si, ESS_SIGNING_CERT_V2 *sc)
int cms_add1_signing_cert(CMS_SignerInfo *si, ESS_SIGNING_CERT *sc)
{
ASN1_STRING *seq = NULL;
- unsigned char *p, *pp;
+ unsigned char *p, *pp = NULL;
int len;
/* Add SigningCertificate signed attribute to the signer info. */
len = i2d_ESS_SIGNING_CERT(sc, NULL);
- if ((pp = OPENSSL_malloc(len)) == NULL)
+ if (len <= 0 || (pp = OPENSSL_malloc(len)) == NULL)
goto err;
p = pp;
i2d_ESS_SIGNING_CERT(sc, &p);
|
Remove SRCDIR in opessl/apps. | @@ -91,67 +91,65 @@ IF (OS_WINDOWS AND ARCH_X86_64)
)
ENDIF()
-SRCDIR(contrib/libs/openssl)
-
SRCS(
- apps/app_rand.c
- apps/apps.c
- apps/asn1pars.c
- apps/bf_prefix.c
- apps/ca.c
- apps/ciphers.c
- apps/cms.c
- apps/crl.c
- apps/crl2p7.c
- apps/dgst.c
- apps/dhparam.c
- apps/dsa.c
- apps/dsaparam.c
- apps/ec.c
- apps/ecparam.c
- apps/enc.c
- apps/engine.c
- apps/errstr.c
- apps/gendsa.c
- apps/genpkey.c
- apps/genrsa.c
- apps/nseq.c
- apps/ocsp.c
- apps/openssl.c
- apps/opt.c
- apps/passwd.c
- apps/pkcs12.c
- apps/pkcs7.c
- apps/pkcs8.c
- apps/pkey.c
- apps/pkeyparam.c
- apps/pkeyutl.c
- apps/prime.c
- apps/rand.c
- apps/rehash.c
- apps/req.c
- apps/rsa.c
- apps/rsautl.c
- apps/s_cb.c
- apps/s_client.c
- apps/s_server.c
- apps/s_socket.c
- apps/s_time.c
- apps/sess_id.c
- apps/smime.c
- apps/speed.c
- apps/spkac.c
- apps/srp.c
- apps/storeutl.c
- apps/ts.c
- apps/verify.c
- apps/version.c
- apps/x509.c
+ app_rand.c
+ apps.c
+ asn1pars.c
+ bf_prefix.c
+ ca.c
+ ciphers.c
+ cms.c
+ crl.c
+ crl2p7.c
+ dgst.c
+ dhparam.c
+ dsa.c
+ dsaparam.c
+ ec.c
+ ecparam.c
+ enc.c
+ engine.c
+ errstr.c
+ gendsa.c
+ genpkey.c
+ genrsa.c
+ nseq.c
+ ocsp.c
+ openssl.c
+ opt.c
+ passwd.c
+ pkcs12.c
+ pkcs7.c
+ pkcs8.c
+ pkey.c
+ pkeyparam.c
+ pkeyutl.c
+ prime.c
+ rand.c
+ rehash.c
+ req.c
+ rsa.c
+ rsautl.c
+ s_cb.c
+ s_client.c
+ s_server.c
+ s_socket.c
+ s_time.c
+ sess_id.c
+ smime.c
+ speed.c
+ spkac.c
+ srp.c
+ storeutl.c
+ ts.c
+ verify.c
+ version.c
+ x509.c
)
IF (OS_WINDOWS AND ARCH_X86_64)
SRCS(
- apps/win32_init.c
+ win32_init.c
)
ENDIF()
|
Recover performance for sector-aligned uhex images | @@ -84,7 +84,7 @@ static uint8_t validate_checksum(hex_line_t *record)
static hex_line_t line = {0};
static uint32_t next_address_to_write = 0;
-static uint8_t low_nibble = 0, idx = 0, record_processed = 0, load_unaligned_record = 0;
+static uint8_t low_nibble = 0, idx = 0, record_processed = 0, load_unaligned_record = 0, skip_until_aligned = 0;
static uint16_t binary_version = 0;
uint16_t board_id_hex __WEAK;
uint16_t board_id_hex_min __WEAK;
@@ -98,6 +98,7 @@ void reset_hex_parser(void)
record_processed = 0;
load_unaligned_record = 0;
binary_version = 0;
+ skip_until_aligned = 0;
}
hexfile_parse_status_t parse_hex_blob(const uint8_t *hex_blob, const uint32_t hex_blob_size, uint32_t *hex_parse_cnt, uint8_t *bin_buf, const uint32_t bin_buf_size, uint32_t *bin_buf_address, uint32_t *bin_buf_cnt)
@@ -108,6 +109,16 @@ hexfile_parse_status_t parse_hex_blob(const uint8_t *hex_blob, const uint32_t he
*bin_buf_cnt = (uint32_t)0;
// Check if hex blob is aligned on a line boundary
uint8_t block_aligned = ((hex_blob[hex_blob_size - 1] == '\n') || (hex_blob[hex_blob_size - 1] == '\r')) ? 1 : 0;
+ if (skip_until_aligned) {
+ if (hex_blob[0] == ':') {
+ // This is block is aligned we can stop skipping
+ skip_until_aligned = 0;
+ } else {
+ // This is block is not aligned we can skip it
+ status = HEX_PARSE_OK;
+ goto hex_parser_exit;
+ }
+ }
// we had an exit state where the address was unaligned to the previous record and data count.
// Need to pop the last record into the buffer before decoding anthing else since it was
@@ -179,8 +190,13 @@ hexfile_parse_status_t parse_hex_blob(const uint8_t *hex_blob, const uint32_t he
*bin_buf_cnt = (uint32_t)(*bin_buf_cnt) + line.byte_count;
// Save next address to write
next_address_to_write = ((next_address_to_write & 0xffff0000) | line.address) + line.byte_count;
- } else if (block_aligned) {
- // If hex buffer is aligned on line boundary we can skip until next block
+ } else {
+ // If block is aligned on line we can skip until next block.
+ // Otherwise we assume it is sector aligned so we will have
+ // to start skipping block until we find one aligned on record.
+ if (!block_aligned) {
+ skip_until_aligned = 1;
+ }
status = HEX_PARSE_OK;
goto hex_parser_exit;
}
|
compiled schema BUGFIX recursive error cleanup
Fixes | @@ -7407,7 +7407,7 @@ error:
/* revert compilation of modules implemented by dependency */
for (u = 0; u < ctx.ctx->list.count; ++u) {
m = ctx.ctx->list.objs[u];
- if (m->implemented == 2) {
+ if ((m->implemented == 2) && m->compiled) {
/* revert features list to the precompiled state */
lys_feature_precompile_revert(&ctx, m);
/* mark module as imported-only / not-implemented */
|
ic: use ovsdb_index to iterate over routes
Small optimization in routes advertizement code.
Instead of iterating over all routes and checking for
needed transit_switch and availability_zone, use
ovsdb_index built with appropriate fields. | @@ -68,6 +68,7 @@ struct ic_context {
struct ovsdb_idl_index *sbrec_port_binding_by_name;
struct ovsdb_idl_index *icsbrec_port_binding_by_ts;
struct ovsdb_idl_index *icsbrec_route_by_ts;
+ struct ovsdb_idl_index *icsbrec_route_by_ts_az;
};
struct ic_state {
@@ -1256,15 +1257,13 @@ advertise_route(struct ic_context *ctx,
{
ovs_assert(ctx->ovnisb_txn);
const struct icsbrec_route *isb_route;
- ICSBREC_ROUTE_FOR_EACH (isb_route, ctx->ovnisb_idl) {
- if (strcmp(isb_route->transit_switch, ts_name)) {
- continue;
- }
-
- if (isb_route->availability_zone != az) {
- continue;
- }
+ const struct icsbrec_route *isb_route_key =
+ icsbrec_route_index_init_row(ctx->icsbrec_route_by_ts_az);
+ icsbrec_route_index_set_transit_switch(isb_route_key, ts_name);
+ icsbrec_route_index_set_availability_zone(isb_route_key, az);
+ ICSBREC_ROUTE_FOR_EACH_EQUAL (isb_route, isb_route_key,
+ ctx->icsbrec_route_by_ts_az) {
struct in6_addr prefix, nexthop;
unsigned int plen;
@@ -1292,6 +1291,7 @@ advertise_route(struct ic_context *ctx,
free(route_adv);
}
}
+ icsbrec_route_index_destroy_row(isb_route_key);
/* Create the missing routes in IC-SB */
struct ic_route_info *route_adv, *next;
@@ -1692,6 +1692,11 @@ main(int argc, char *argv[])
= ovsdb_idl_index_create1(ovnisb_idl_loop.idl,
&icsbrec_route_col_transit_switch);
+ struct ovsdb_idl_index *icsbrec_route_by_ts_az
+ = ovsdb_idl_index_create2(ovnisb_idl_loop.idl,
+ &icsbrec_route_col_transit_switch,
+ &icsbrec_route_col_availability_zone);
+
/* Main loop. */
exiting = false;
state.had_lock = false;
@@ -1733,6 +1738,7 @@ main(int argc, char *argv[])
.sbrec_chassis_by_name = sbrec_chassis_by_name,
.icsbrec_port_binding_by_ts = icsbrec_port_binding_by_ts,
.icsbrec_route_by_ts = icsbrec_route_by_ts,
+ .icsbrec_route_by_ts_az = icsbrec_route_by_ts_az,
};
if (!state.had_lock && ovsdb_idl_has_lock(ovnsb_idl_loop.idl)) {
|
LISP: fix wrong reply message in map_register_fallback_threshold call | @@ -1617,7 +1617,7 @@ static void
mp->value = clib_net_to_host_u32 (mp->value);
rv = vnet_lisp_map_register_fallback_threshold_set (mp->value);
- REPLY_MACRO (VL_API_ONE_MAP_REGISTER_FALLBACK_THRESHOLD);
+ REPLY_MACRO (VL_API_ONE_MAP_REGISTER_FALLBACK_THRESHOLD_REPLY);
}
static void
|
Ensure sending Set Long Poll Interval after Check-in Interval | @@ -135,6 +135,8 @@ bool DeRestPluginPrivate::checkPollControlClusterTask(Sensor *sensor)
item->setValue(item->toNumber() & ~R_PENDING_WRITE_POLL_CHECKIN_INTERVAL);
return true;
}
+
+ return false; // only send Set Long Poll Interval after writing this attribute
}
if (item->toNumber() & R_PENDING_SET_LONG_POLL_INTERVAL)
|
Fix trigger interact call | @@ -12,7 +12,9 @@ UBYTE last_trigger = NO_TRIGGER_COLLISON;
UBYTE trigger_at_intersection(bounding_box_t *bb, upoint16_t *offset);
void trigger_interact(UBYTE i) __banked {
- script_execute(triggers[i].script.bank, triggers[i].script.ptr, 0, 0);
+ if (triggers[i].script_flags & TRIGGER_HAS_ENTER_SCRIPT) {
+ script_execute(triggers[i].script.bank, triggers[i].script.ptr, 0, 1, 1);
+ }
}
UBYTE trigger_activate_at(UBYTE tx, UBYTE ty, UBYTE force) __banked {
|
Check the value passed to the grib_set -d option | @@ -240,7 +240,13 @@ int grib_process_runtime_options(grib_context* context,int argc,char** argv,grib
options->gts=grib_options_on("g");
if (grib_options_on("d:")) {
- options->constant=atof(grib_options_get_option("d:"));
+ char* endPtr = NULL; /* for error handling */
+ const char* optionStr = grib_options_get_option("d:");
+ options->constant=strtod(optionStr, &endPtr);
+ if(*endPtr) {
+ fprintf(stderr, "Invalid number for -d option: '%s'\n", optionStr);
+ exit(1);
+ }
options->repack=1;
}
|
taniks: Set input current as 95% of adapter rating
BRANCH=brya
TEST=make buildall -j
verify pass by power team | #include "battery.h"
#include "button.h"
+#include "charge_manager.h"
#include "charge_ramp.h"
+#include "charge_state_v2.h"
#include "charger.h"
#include "common.h"
#include "compile_time_macros.h"
@@ -109,3 +111,17 @@ enum battery_present battery_hw_present(void)
/* The GPIO is low when the battery is physically present */
return gpio_get_level(GPIO_EC_BATT_PRES_ODL) ? BP_NO : BP_YES;
}
+
+__override void board_set_charge_limit(int port, int supplier, int charge_ma,
+ int max_ma, int charge_mv)
+{
+ /*
+ * Follow OEM request to limit the input current to
+ * 95% negotiated limit.
+ */
+ charge_ma = charge_ma * 95 / 100;
+
+ charge_set_input_current_limit(MAX(charge_ma,
+ CONFIG_CHARGER_INPUT_CURRENT),
+ charge_mv);
+}
\ No newline at end of file
|
Use stock bam-bam-boogieman | @@ -20,15 +20,9 @@ set -x
sudo apt-get install -y figlet
#Install boogieman
-#sudo gem install --pre bam-bam-boogieman
-git clone https://github.com/Qthan/bam-bam-boogieman.git -b cost-modeling
-cd bam-bam-boogieman
-bundle update
-bundle exec rake install
-cd ..
+gem install bam-bam-boogieman
which bam
-
#Install the apt-get dependencies from the smack build script: this way they will still be there
#when we get things from cache
DEPENDENCIES="git cmake python-yaml python-psutil unzip wget python3-yaml"
|
Fix fstr for EMetricBestValue::FixedValue | @@ -390,7 +390,7 @@ static TVector<std::pair<double, TFeature>> CalcFeatureEffectLossChange(
score = -score;
break;
case EMetricBestValue::FixedValue:
- score = abs(score - bestValue);
+ score = abs(metric->GetFinalError(scores[idx]) - bestValue) - abs(metric->GetFinalError(scores.back()) - bestValue);
default:
ythrow TCatBoostException() << "unsupported bestValue metric type";
}
|
Fix for armclang support | @@ -61,7 +61,7 @@ COMPILER_ASSERT(sizeof(cfg_setting_t) < SECTOR_BUFFER_SIZE);
COMPILER_ASSERT(SECTOR_BUFFER_SIZE % 8 == 0);
// Configuration ROM
-#if defined(__CC_ARM) || defined(__ARMCC_VERSION)
+#if defined(__CC_ARM)
static volatile cfg_setting_t config_rom __attribute__((section("cfgrom"),zero_init));
#else
static volatile cfg_setting_t config_rom __attribute__((section("cfgrom")));
|
print warning if virtual monitor mode interface is detected | @@ -7491,7 +7491,7 @@ else
{
for (p = 0; p < 6; p++) printf("%02x", (permaddr[p]));
if(checkmonitorinterface(ifa->ifa_name) == false) printf(" %s (%s)", ifa->ifa_name, drivername);
- else printf(" %s (%s) warning:probably a monitor interface!", ifa->ifa_name, drivername);
+ else printf(" %s (%s) warning:probably a virtual monitor interface!", ifa->ifa_name, drivername);
if(memcmp(&permaddr, &virtaddr, 6) != 0)
{
printf(" warning:spoofed MAC ");
|
zephyr/test/drivers/src/stubs.c: Format with clang-format
BRANCH=none
TEST=none | @@ -55,8 +55,7 @@ BUILD_ASSERT(ARRAY_SIZE(pi3usb9201_bc12_chips) == USBC_PORT_COUNT);
int board_set_active_charge_port(int port)
{
- int is_real_port = (port >= 0 &&
- port < CONFIG_USB_PD_PORT_MAX_COUNT);
+ int is_real_port = (port >= 0 && port < CONFIG_USB_PD_PORT_MAX_COUNT);
int i;
if (!is_real_port && port != CHARGE_PORT_NONE)
@@ -84,7 +83,6 @@ int board_set_active_charge_port(int port)
return EC_ERROR_INVAL;
}
-
CPRINTS("New charge port: p%d", port);
/*
|
extmod/Matrix: return if already a matrix
We can do this because our matrix type is immutable. | @@ -285,12 +285,18 @@ typedef struct _robotics_Matrix_obj_t {
bool transposed;
} robotics_Matrix_obj_t;
+const mp_obj_type_t robotics_Matrix_type;
// pybricks.robotics.Matrix.__init__
STATIC mp_obj_t robotics_Matrix_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_kw, const mp_obj_t *args) {
PB_PARSE_ARGS_CLASS(n_args, n_kw, args,
PB_ARG_REQUIRED(rows));
+ // If the input is already a matrix, just return it
+ if (mp_obj_is_type(rows, &robotics_Matrix_type)) {
+ return rows;
+ }
+
// Before we allocate the object, check if it's a 1x1 matrix: C = [[c]],
// in which case we should just return c as a float.
@@ -342,9 +348,6 @@ STATIC mp_obj_t robotics_Matrix_make_new(const mp_obj_type_t *type, size_t n_arg
return MP_OBJ_FROM_PTR(self);
}
-const mp_obj_type_t robotics_Matrix_type;
-
-
// Get string representation of the form -123.456
static void print_float(char *buf, float_t x) {
|
Update: NAR_language_ex10.txt: improved example: | @@ -25,12 +25,6 @@ plastic is meltable
<BOTTLE --> [MELTABLE]>.
a bottle is meltable
-<LIGHTNING --> [DANGEROUS]>.
-lightning is dangerous
-
-<THUNDER --> [LOUD]>.
-thunder is loud
-
*train=false
<<($1 * $2) --> CAUSE> ==> <<$1 --> [OBSERVE]> =/> <$2 --> [OBSERVE]>>>.
<<$1 --> [MELTABLE]> ==> <(<$1 --> [OBSERVE]> &/ ^lighter) =/> <$1 --> [FLUID]>>>.
@@ -39,4 +33,4 @@ a plastic bottle is meltable
<?1 =/> <THUNDER --> [OBSERVE]>>?
Answer: <<LIGHTNING --> [OBSERVE]> =/> <THUNDER --> [OBSERVE]>>. Truth: frequency=1.000000 confidence=0.447514
<?1 =/> <(PLASTIC * BOTTLE) --> [FLUID]>>?
-Answer: <(<(PLASTIC * BOTTLE) --> [OBSERVE]> &/ ^lighter) =/> <BOTTLE --> [FLUID]>>. Truth: frequency=1.000000 confidence=0.447514
+Answer: <(<(PLASTIC * BOTTLE) --> [OBSERVE]> &/ ^lighter) =/> <(PLASTIC * BOTTLE) --> [FLUID]>>. Truth: frequency=1.000000 confidence=0.447514
|
fixed unknown topic warning in the console | @@ -844,7 +844,7 @@ static void fileFound(void* data)
FREE(loadPublicCartData);
}
-static void printUsage(Console* console, const char* command);
+static bool printUsage(Console* console, const char* command);
static void onLoadCommandConfirmed(Console* console)
{
@@ -3092,7 +3092,7 @@ static void toUpperStr(char* str)
}
}
-static void printUsage(Console* console, const char* command)
+static bool printUsage(Console* console, const char* command)
{
FOR(const Command*, cmd, Commands)
{
@@ -3112,12 +3112,14 @@ static void printUsage(Console* console, const char* command)
}
printLine(console);
- break;
+ return true;
}
}
+
+ return false;
}
-static void printApi(Console* console, const char* param)
+static bool printApi(Console* console, const char* param)
{
FOR(const ApiItem*, api, Api)
{
@@ -3129,9 +3131,11 @@ static void printApi(Console* console, const char* param)
printFront(console, "\n\n");
printBack(console, api->help);
printLine(console);
- break;
+ return true;
}
}
+
+ return false;
}
#define STRBUF_SIZE(name, ...) + STRLEN(#name) + STRLEN(Sep)
@@ -3298,8 +3302,10 @@ static void onHelpCommand(Console* console)
{
const char* param = console->desc->params->key;
- printUsage(console, param);
- printApi(console, param);
+ if(printUsage(console, param)) return commandDone(console);
+ else if(printApi(console, param)) return commandDone(console);
+ else
+ {
static const struct Handler {const char* cmd; void(*handler)(Console*);} Handlers[] =
{
@@ -3312,8 +3318,8 @@ static void onHelpCommand(Console* console)
if(strcmp(ptr->cmd, param) == 0)
{
ptr->handler(console);
- commandDone(console);
- return;
+ return commandDone(console);
+ }
}
printError(console, "\nunknown topic: ");
|
TLSProxy/Proxy.pm: preclude output intermix.
s_server -rev emits info output on stderr, i.e. unbufferred, which
risks intermixing with output from TLSProxy itself on non-line
boundaries, which in turn is confusing to TAP parser. | @@ -239,7 +239,7 @@ sub start
open(my $savedin, "<&STDIN");
# Temporarily replace STDIN so that sink process can inherit it...
- $pid = open(STDIN, "$execcmd |") or die "Failed to $execcmd: $!\n";
+ $pid = open(STDIN, "$execcmd 2>&1 |") or die "Failed to $execcmd: $!\n";
$self->{real_serverpid} = $pid;
# Process the output from s_server until we find the ACCEPT line, which
|
Modify for all-wet core. | :: :: ::
:::: :: ::
:: :: ::
+!:
|%
++ foil :: ship allocation map
|* a=mold :: entry mold
[min=1 ctr=1 und=~ ove=~ max=(dec (bex (bex a))) box=~]
::
++ fo
- =| (foil $@(~ *))
- |@
+ |_ (foil $@(~ *))
+- nth :: index
|= a/@u ^- (pair (unit @u) @u)
?: (lth a ~(wyt in und))
?: =(0 a) [(some ctr) a]
$(a (dec a), +<.nth new)
::
+ +- fit |=(a/@u &((lte min a) (lte a max))) :: in range
+ +- gud :: invariant
+ ?& (fit(max +(max)) ctr)
+ (~(all in und) fit(max ctr))
+ (~(all in ove) fit(min ctr))
+ (~(all in box) |=({a/@u *} (fit a)))
+ |- ^- ?
+ ?: =(min max) &
+ =- &(- $(min +(min)))
+ %+ gte 1 :: at most one of
+ ;: add
+ ?:(=(min ctr) 1 0)
+ ?:((~(has in und) min) 1 0)
+ ?:((~(has in ove) min) 1 0)
+ ?:((~(has by box) min) 1 0)
+ ==
+ ==
+ ::
+- fin +< :: abet
- +- new :: alloc
- ?: =(ctr +(max)) +<
- =. ctr +(ctr)
- ?. (~(has in ove) ctr) +<
- new(ove (~(del in ove) ctr))
::
+- get :: nullable
|= a/@p ^+ ?~(box ~ q.n.box)
+- put
|* {a/@u b/*} ^+ fin :: b/_(~(got by box))
~| put+[a fin]
- ?> (fit a)
+ :: ?> (fit a)
=; adj adj(box (~(put by box) a b))
?: (~(has in box) a) fin
?: =(ctr a) new
=+ n=new(+< new)
n(und (~(put in und.n) ctr))
::
- +- fit |=(a/@u &((lte min a) (lte a max))) :: in range
- +- gud :: invariant
- ?& (fit(max +(max)) ctr)
- (~(all in und) fit(max ctr))
- (~(all in ove) fit(min ctr))
- (~(all in box) |=({a/@u *} (fit a)))
- |- ^- ?
- ?: =(min max) &
- =- &(- $(min +(min)))
- %+ gte 1 :: at most one of
- ;: add
- ?:(=(min ctr) 1 0)
- ?:((~(has in und) min) 1 0)
- ?:((~(has in ove) min) 1 0)
- ?:((~(has by box) min) 1 0)
- ==
- ==
+ +- new :: alloc
+ |- ^+ +>-
+ ?: =(ctr +(max)) +>-
+ =. ctr +(ctr)
+ ?. (~(has in ove) ctr) +>-
+ $(ove (~(del in ove) ctr))
--
--
:: :: ::
|
it just blows up | // stolen from zexy/relay by porres
+#define USEVAR(x) x=x
+
#include "m_pd.h"
static t_class *routepass_class;
@@ -116,7 +118,7 @@ static void *routepass_new(t_symbol *s, int argc, t_atom *argv)
t_routepasselement *e;
t_routepass *x = (t_routepass *)pd_new(routepass_class);
t_atom a;
-// ZEXY_USEVAR(s);
+ USEVAR(s);
if (argc == 0)
{
argc = 1;
|
Add Debuggers And Tools Wow64 dbghelp support | @@ -210,13 +210,13 @@ VOID PhpSymbolProviderCompleteInitialization(
VOID
)
{
-#ifdef _WIN64
- static PH_STRINGREF windowsKitsRootKeyName = PH_STRINGREF_INIT(L"Software\\Wow6432Node\\Microsoft\\Windows Kits\\Installed Roots");
-#else
static PH_STRINGREF windowsKitsRootKeyName = PH_STRINGREF_INIT(L"Software\\Microsoft\\Windows Kits\\Installed Roots");
+#ifdef _WIN64
+ static PH_STRINGREF windowsKitsRootKeyNameWow64 = PH_STRINGREF_INIT(L"Software\\Wow6432Node\\Microsoft\\Windows Kits\\Installed Roots");
#endif
static PH_STRINGREF dbghelpFileName = PH_STRINGREF_INIT(L"dbghelp.dll");
static PH_STRINGREF symsrvFileName = PH_STRINGREF_INIT(L"symsrv.dll");
+ PPH_STRING winsdkPath;
PVOID dbghelpHandle;
PVOID symsrvHandle;
HANDLE keyHandle;
@@ -227,6 +227,7 @@ VOID PhpSymbolProviderCompleteInitialization(
return;
}
+ winsdkPath = NULL;
dbghelpHandle = NULL;
symsrvHandle = NULL;
@@ -238,29 +239,48 @@ VOID PhpSymbolProviderCompleteInitialization(
0
)))
{
- PPH_STRING winsdkPath;
- PPH_STRING dbghelpName;
- PPH_STRING symsrvName;
+ PhMoveReference(&winsdkPath, PhQueryRegistryString(keyHandle, L"KitsRoot10")); // Windows 10 SDK
+ if (PhIsNullOrEmptyString(winsdkPath))
+ PhMoveReference(&winsdkPath, PhQueryRegistryString(keyHandle, L"KitsRoot81")); // Windows 8.1 SDK
+ if (PhIsNullOrEmptyString(winsdkPath))
+ PhMoveReference(&winsdkPath, PhQueryRegistryString(keyHandle, L"KitsRoot")); // Windows 8 SDK
- winsdkPath = PhQueryRegistryString(keyHandle, L"KitsRoot10"); // Windows 10 SDK
+ NtClose(keyHandle);
+ }
+#ifdef _WIN64
+ if (PhIsNullOrEmptyString(winsdkPath))
+ {
+ if (NT_SUCCESS(PhOpenKey(
+ &keyHandle,
+ KEY_READ,
+ PH_KEY_LOCAL_MACHINE,
+ &windowsKitsRootKeyNameWow64,
+ 0
+ )))
+ {
+ PhMoveReference(&winsdkPath, PhQueryRegistryString(keyHandle, L"KitsRoot10")); // Windows 10 SDK
if (PhIsNullOrEmptyString(winsdkPath))
PhMoveReference(&winsdkPath, PhQueryRegistryString(keyHandle, L"KitsRoot81")); // Windows 8.1 SDK
-
if (PhIsNullOrEmptyString(winsdkPath))
PhMoveReference(&winsdkPath, PhQueryRegistryString(keyHandle, L"KitsRoot")); // Windows 8 SDK
- if (!PhIsNullOrEmptyString(winsdkPath))
+ NtClose(keyHandle);
+ }
+ }
+#endif
+
+ if (winsdkPath)
{
+ PPH_STRING dbghelpName;
+ PPH_STRING symsrvName;
+
#ifdef _WIN64
PhMoveReference(&winsdkPath, PhConcatStringRefZ(&winsdkPath->sr, L"\\Debuggers\\x64\\"));
#else
PhMoveReference(&winsdkPath, PhConcatStringRefZ(&winsdkPath->sr, L"\\Debuggers\\x86\\"));
#endif
- }
- if (winsdkPath)
- {
if (dbghelpName = PhConcatStringRef2(&winsdkPath->sr, &dbghelpFileName))
{
dbghelpHandle = LoadLibrary(dbghelpName->Buffer);
@@ -276,9 +296,6 @@ VOID PhpSymbolProviderCompleteInitialization(
PhDereferenceObject(winsdkPath);
}
- NtClose(keyHandle);
- }
-
if (!dbghelpHandle)
dbghelpHandle = LoadLibrary(L"dbghelp.dll");
|
Some minor changes to Omeganuh2 python routines | from pyccl import ccllib as lib
-from pyccl.pyutils import _vectorize_fn_simple
def Omeganuh2(a,Neff,mnu,TCMB):
"""Omeganuh2
@@ -7,14 +6,14 @@ def Omeganuh2(a,Neff,mnu,TCMB):
Args:
a (float): Scale factor, normalized to 1 today.
Neff (float): Number of relativistic neutrino species
- mnu (float): Neutrino mass ()
+ mnu (float): Neutrino mass (in eV)
TCMB (float): Temperature of the CMB (K)
Returns:
Omeganuh2 (float or array_like)
"""
status=0
- return lib.Omeganuh2(a,Neff,mnu,TCMB,None,status)
+ return lib.Omeganuh2(a,Neff,mnu,TCMB,None,status)[0]
def Omeganuh2_to_Mnu(a,Neff,OmNuh2,TCMB):
@@ -31,4 +30,4 @@ def Omeganuh2_to_Mnu(a,Neff,OmNuh2,TCMB):
"""
status=0
- return lib.Omeganuh2_to_Mnu(a,Neff,OmNuh2,TCMB,None,status)
+ return lib.Omeganuh2_to_Mnu(a,Neff,OmNuh2,TCMB,None,status)[0]
|
debian: bump to v1.0.0 | -td-agent-bit (0.15.0) stable; urgency=low
+td-agent-bit (1.0.0) stable; urgency=low
- * Fluent Bit v0.15.0
+ * Fluent Bit v1.0.0
- -- Eduardo Silva <[email protected]> Fri, 05 Oct 2018 22:00:00 -0600
+ -- Eduardo Silva <[email protected]> Mon, 10 Dec 2018 08:00:00 -0600
+
+td-agent-bit (0.14.7) stable; urgency=low
+
+ * Fluent Bit v0.14.7
+
+ -- Eduardo Silva <[email protected]> Wed, 07 Nov 2018 08:00:00 -0600
+
+td-agent-bit (0.14.6) stable; urgency=low
+
+ * Fluent Bit v0.14.6
+
+ -- Eduardo Silva <[email protected]> Wed, 31 Oct 2018 08:00:00 -0600
+
+td-agent-bit (0.14.5) stable; urgency=low
+
+ * Fluent Bit v0.14.5
+
+ -- Eduardo Silva <[email protected]> Fri, 05 Oct 2018 08:00:00 -0600
+
+td-agent-bit (0.14.4) stable; urgency=low
+
+ * Fluent Bit v0.14.4
+
+ -- Eduardo Silva <[email protected]> Fri, 28 Sep 2018 08:00:00 -0600
+
+td-agent-bit (0.14.3) stable; urgency=low
+
+ * Fluent Bit v0.14.3
+
+ -- Eduardo Silva <[email protected]> Fri, 21 Sep 2018 22:00:00 -0600
+
+td-agent-bit (0.14.2) stable; urgency=low
+
+ * Fluent Bit v0.14.2
+
+ -- Eduardo Silva <[email protected]> Fri, 07 Sep 2018 22:00:00 -0600
+
+td-agent-bit (0.14.1) stable; urgency=low
+
+ * Fluent Bit v0.14.1
+
+ -- Eduardo Silva <[email protected]> Thu, 30 Aug 2018 22:00:00 -0600
td-agent-bit (0.14.0) stable; urgency=low
|
chat: timestamps are lined at top of messages | @@ -97,7 +97,7 @@ export default class ChatMessage extends Component<ChatMessageProps> {
const containerClass = `${renderSigil
? `cf pt2 pl3 lh-copy`
- : `items-center cf hide-child`} ${isPending ? 'o-40' : ''} ${className}`
+ : `items-top cf hide-child`} ${isPending ? 'o-40' : ''} ${className}`
const timestamp = moment.unix(msg.when / 1000).format(renderSigil ? 'hh:mm a' : 'hh:mm');
@@ -255,7 +255,7 @@ export class MessageWithSigil extends PureComponent<MessageProps> {
export const MessageWithoutSigil = ({ timestamp, msg, remoteContentPolicy, measure }) => (
<>
- <p className="child pr1 mono f9 gray2 dib">{timestamp}</p>
+ <Text mono gray display='inline-block' pr='1' pt='2px' lineHeight='tall' className="child">{timestamp}</Text>
<Box fontSize='14px' className="clamp-message" style={{ flexGrow: 1 }}>
<MessageContent content={msg.letter} remoteContentPolicy={remoteContentPolicy} measure={measure}/>
</Box>
|
docs: update cn trans for flash-encryptions | @@ -434,7 +434,7 @@ To use a host generated key, take the following steps:
espefuse.py --port PORT burn_key BLOCK_KEY0 flash_encryption_key256.bin XTS_AES_128_KEY
- For AES-128 key derived from 128 bits (SHA256(128 bits)) - ``XTS_AES_128_KEY_DERIVED_FROM_128_EFUSE_BITS``. The FE key will be written in the lower part of eFuse BLOCK_KEY0, the upper 128 bits are not used and will remain available for reading by software. Using the special mode of the espefuse tool, shown in the ``For burning both keys together`` section below, the user can write their data to it using any espefuse commands.
+ For AES-128 key derived from 128 bits (SHA256(128 bits)) - ``XTS_AES_128_KEY_DERIVED_FROM_128_EFUSE_BITS``. The FE key will be written in the lower part of eFuse BLOCK_KEY0. The upper 128 bits are not used and will remain available for reading by software. Using the special mode of the espefuse tool, shown in the ``For burning both keys together`` section below, the user can write their data to it using any espefuse commands.
.. code-block:: bash
@@ -552,7 +552,7 @@ When using Flash Encryption in production:
- Do not reuse the same flash encryption key between multiple devices. This means that an attacker who copies encrypted data from one device cannot transfer it to a second device.
:esp32: - When using ESP32 V3, if the UART ROM Download Mode is not needed for a production device then it should be disabled to provide an extra level of protection. Do this by calling :cpp:func:`esp_efuse_disable_rom_download_mode` during application startup. Alternatively, configure the project :ref:`CONFIG_ESP32_REV_MIN` level to 3 (targeting ESP32 V3 only) and select the :ref:`CONFIG_SECURE_UART_ROM_DL_MODE` to "Permanently disable ROM Download Mode (recommended)". The ability to disable ROM Download Mode is not available on earlier ESP32 versions.
- :not esp32: - The UART ROM Download Mode should be disabled entirely if it is not needed, or permanently set to "Secure Download Mode" otherwise. Secure Download Mode permanently limits the available commands to update SPI config, changing baud rate, basic flash write and a command to return a summary of currently enabled security features (`get_security_info`). The default behaviour is to set Secure Download Mode on first boot in Release mode. To disable Download Mode entirely select select the :ref:`CONFIG_SECURE_UART_ROM_DL_MODE` to "Permanently disable ROM Download Mode (recommended)" or call :cpp:func:`esp_efuse_disable_rom_download_mode` at runtime.
+ :not esp32: - The UART ROM Download Mode should be disabled entirely if it is not needed, or permanently set to "Secure Download Mode" otherwise. Secure Download Mode permanently limits the available commands to updating SPI config, changing baud rate, basic flash write, and returning a summary of the currently enabled security features with the `get_security_info` command. The default behaviour is to set Secure Download Mode on first boot in Release mode. To disable Download Mode entirely, select :ref:`CONFIG_SECURE_UART_ROM_DL_MODE` to "Permanently disable ROM Download Mode (recommended)" or call :cpp:func:`esp_efuse_disable_rom_download_mode` at runtime.
- Enable :doc:`Secure Boot <secure-boot-v2>` as an extra layer of protection, and to prevent an attacker from selectively corrupting any part of the flash before boot.
Possible Failures
|
Update http_client.c | * Usage: http_client remote_addr remote_port [local_port] [local_encaps_port] [remote_encaps_port] [uri]
*
* Example
- * Server: $ ./echo_server 11111 22222
- * Client: $ ./http_client 127.0.0.1 7 0 22222 11111 "/index.html"
+ * Client: $ ./http_client 212.201.121.100 80 0 9899 9899 /index.html
*/
#ifdef _WIN32
|
python lib: only import spidev as necessary | @@ -18,7 +18,6 @@ from .update import ensure_st_up_to_date # noqa pylint: disable=import-error
from .serial import PandaSerial # noqa pylint: disable=import-error
from .isotp import isotp_send, isotp_recv # pylint: disable=import-error
from .config import DEFAULT_FW_FN, DEFAULT_H7_FW_FN, SECTOR_SIZES_FX, SECTOR_SIZES_H7 # noqa pylint: disable=import-error
-from .spi import SpiHandle # noqa pylint: disable=import-error
__version__ = '0.0.10'
@@ -253,6 +252,8 @@ class Panda:
self._handle = None
if self._spi:
+ # TODO: move this back. need to wait until next AGNOS build
+ from .spi import SpiHandle # noqa pylint: disable=import-error
self._handle = SpiHandle()
# TODO implement
|
Fix command-line defaults processing. | @@ -40,11 +40,6 @@ main(int argc, /* I - Number of command-line args */
*/
memset(&pinfo, 0, sizeof(pinfo));
-
- pinfo.document_formats = "application/pdf,image/jpeg,image/pwg-raster";
- pinfo.location = "";
- pinfo.make = "Test";
- pinfo.model = "Printer";
pinfo.print_group = SERVER_GROUP_NONE;
pinfo.proxy_group = SERVER_GROUP_NONE;
@@ -253,6 +248,15 @@ main(int argc, /* I - Number of command-line args */
serverLog(SERVER_LOGLEVEL_INFO, "Using default configuration with a single printer.");
+ if (!pinfo.document_formats)
+ pinfo.document_formats = "application/pdf,image/jpeg,image/pwg-raster";
+ if (!pinfo.location)
+ pinfo.location = "";
+ if (!pinfo.make)
+ pinfo.make = "Test";
+ if (!pinfo.model)
+ pinfo.model = "Printer";
+
if (!serverFinalizeConfiguration())
return (1);
|
Switching from localtime to localtime_r on non-Windows platforms.
localtime isn't thread-safe, since it returns a pointer to a
statically-allocated struct, whereas localtime_r takes the address of a
user-allocated struct.
This is only used in usrsctp_dumppacket. | @@ -3353,12 +3353,11 @@ usrsctp_dumppacket(const void *buf, size_t len, int outbound)
{
size_t i, pos;
char *dump_buf, *packet;
+ struct tm t;
#ifdef _WIN32
struct timeb tb;
- struct tm t;
#else
struct timeval tv;
- struct tm *t;
time_t sec;
#endif
@@ -3378,10 +3377,10 @@ usrsctp_dumppacket(const void *buf, size_t len, int outbound)
#else
gettimeofday(&tv, NULL);
sec = (time_t)tv.tv_sec;
- t = localtime((const time_t *)&sec);
+ localtime_r((const time_t *)&sec, &t);
snprintf(dump_buf, PREAMBLE_LENGTH + 1, PREAMBLE_FORMAT,
outbound ? 'O' : 'I',
- t->tm_hour, t->tm_min, t->tm_sec, (long)tv.tv_usec);
+ t.tm_hour, t.tm_min, t.tm_sec, (long)tv.tv_usec);
#endif
pos += PREAMBLE_LENGTH;
#ifdef _WIN32
|
ChatResource: cap initial backlog | @@ -40,7 +40,7 @@ function ChatResource(props: ChatResourceProps) {
const graphPath = station.slice(7);
const graph = graphs[graphPath];
const unreads = useHarkState(state => state.unreads);
- const unreadCount = unreads.graph?.[station]?.['/']?.unreads || 0;
+ const unreadCount = unreads.graph?.[station]?.['/']?.unreads as number || 0;
const graphTimesentMap = useGraphState(state => state.graphTimesentMap);
const [,, owner, name] = station.split('/');
const ourContact = contacts?.[`~${window.ship}`];
@@ -48,7 +48,7 @@ function ChatResource(props: ChatResourceProps) {
const canWrite = isWriter(group, station);
useEffect(() => {
- const count = 100 + unreadCount;
+ const count = Math.min(400, 100 + unreadCount);
props.api.graph.getNewest(owner, name, count);
}, [station]);
|
Rollback: r6436477
[diff-resolver:snermolaev] Sandbox task:
Task author: rustammm@
Description: Caused too many nodes in builds
Note: mandatory check (NEED_CHECK) was skipped | @@ -20,13 +20,7 @@ GLOBAL_SRCS_IN_RESULTS=yes
JSON_CACHE_IS_ATTACHED=yes
_BLACKLISTS=
-when ($DISABLE_BLACKLIST == "yes") {
- _BLACKLISTS=
-}
-elsewhen ($CUSTOM_BLACKLIST != "") {
- _BLACKLISTS=$CUSTOM_BLACKLIST
-}
-elsewhen ($AUTOCHECK == "yes" || $TEST_BLACKLIST_AUTOCHECK == "yes") {
+when ($AUTOCHECK == "yes" || $TEST_BLACKLIST_AUTOCHECK == "yes") {
_BLACKLISTS+=build/rules/autocheck.blacklist
}
otherwise {
|
Ensure we don't re-render Term/HTML output if no data was read/piped. | @@ -797,6 +797,10 @@ perform_tail_follow (GLog * glog) {
if (glog->filename[0] == '-' && glog->filename[1] == '\0') {
parse_tail_follow (glog, glog->pipe);
+ /* did we read something from the pipe? */
+ if (0 == glog->bytes)
+ return;
+
glog->length += glog->bytes;
goto out;
}
|
DEV: Init attr/sleeper from Node Descriptor | @@ -236,6 +236,7 @@ void DEV_NodeDescriptorStateHandler(Device *device, const Event &event)
if (!device->node()->nodeDescriptor().isNull())
{
DBG_Printf(DBG_INFO, "ZDP node descriptor verified: 0x%016llX\n", device->key());
+ device->item(RAttrSleeper)->setValue(!device->node()->nodeDescriptor().receiverOnWhenIdle()); // can be overwritten by DDF
d->setState(DEV_ActiveEndpointsStateHandler);
}
else if (!device->reachable()) // can't be queried, go back to #1 init
|
travis: add libhwloc-dev to build | @@ -93,6 +93,7 @@ matrix:
apt:
packages:
- libjson-c-dev
+ - libhwloc-dev
- uuid-dev
- doxygen
- lcov
@@ -114,6 +115,7 @@ matrix:
apt:
packages:
- libjson-c-dev
+ - libhwloc-dev
- uuid-dev
- doxygen
- lcov
|
Doc: Replace mention to "K bytes" by "kilobytes" in textsearch.sgml
"kB" or "kilobyte" is used in the documentation.
Author: Daniel Gustafsson
Discussion: | @@ -3915,7 +3915,7 @@ Parser: "pg_catalog.default"
text search features are:
<itemizedlist spacing="compact" mark="bullet">
<listitem>
- <para>The length of each lexeme must be less than 2K bytes</para>
+ <para>The length of each lexeme must be less than 2 kilobytes</para>
</listitem>
<listitem>
<para>The length of a <type>tsvector</type> (lexemes + positions) must be
|
fix: make install | @@ -194,8 +194,8 @@ install : all
install -m 644 $(LIBDISCORD) $(PREFIX)/lib/
install -d $(PREFIX)/include/orca/
install -m 644 *.h common/*.h common/**/*.h $(PREFIX)/include/orca/
- $(foreach var, $(SPECS_SUBDIR), install -d $(PREFIX)/include/orca/$(SPECSDIR)/$(var))
- $(foreach var, $(SPECS_SUBDIR), install -m 644 $(SPECSDIR)/$(var)*.h $(PREFIX)/include/orca/$(SPECSDIR)/$(var))
+ install -d $(PREFIX)/include/orca/$(SPECSDIR)/discord/
+ install -m 644 $(SPECSDIR)/discord/*.h $(PREFIX)/include/orca/$(SPECSDIR)/discord/
specs_clean :
rm -rf $(SPECSDIR)
|
BugID:21716117: Enlarge CLI stack size for esp8266 yts APP | @@ -33,3 +33,8 @@ $(NAME)_SOURCES := board.c
EXTRA_TARGET_MAKEFILES += $($(HOST_MCU_FAMILY)_LOCATION)/gen_crc_bin.mk
GLOBAL_DEFINES += LOCAL_PORT_ENHANCED_RAND WITH_VENDOR_LWIP
+
+ifeq ($(APP), yts)
+GLOBAL_DEFINES += CLI_CONFIG_STACK_SIZE=4096
+endif
+
|
Fix `__open_2` reported operation error
- fix error open/close - `__openat_2` -> `__open_2` | @@ -2024,7 +2024,7 @@ __open_2(const char *file, int oflag)
if (fd != -1) {
doOpen(fd, file, FD, "__open_2");
} else {
- doUpdateState(FS_ERR_OPEN_CLOSE, fd, 0, "__openat_2", file);
+ doUpdateState(FS_ERR_OPEN_CLOSE, fd, 0, "__open_2", file);
}
return fd;
|
Enable saving IAS Zone based sensor state to database | @@ -98,6 +98,7 @@ void DeRestPluginPrivate::handleIasZoneClusterIndication(const deCONZ::ApsDataIn
bool alarm = (zoneStatus & (STATUS_ALARM1 | STATUS_ALARM2)) ? true : false;
item->setValue(alarm);
sensor->updateStateTimestamp();
+ sensor->setNeedSaveDatabase(true);
deCONZ::NumericUnion num = {0};
num.u16 = zoneStatus;
|
build/configs/usbrule.sh : Modify descriptions about supporting which boards
This file is not only for Artik05x, but also another boards like stm32, imxrt. | #
###########################################################################
#
-# File : artik05x_usbrule.sh
-# Description : usb rule script for ARTIK 05X
+# File : usbrule.sh
+# Description : usb rule script
args=("$@")
BOARD=${args[0]}
|
os/binfmt/libelf: fix build warning
Add preprocessor condition to fix build warning as shown below
CC: libelf/libelf_read.c
libelf/libelf_read.c: In function 'elf_read':
libelf/libelf_read.c:134:8: warning: unused variable 'rpos' [-Wunused-variable]
off_t rpos; /* Position returned by lseek */
^~~~ | @@ -131,7 +131,9 @@ static inline void elf_dumpreaddata(FAR char *buffer, int buflen)
int elf_read(FAR struct elf_loadinfo_s *loadinfo, FAR uint8_t *buffer, size_t readsize, off_t offset)
{
ssize_t nbytes; /* Number of bytes read */
+#if !defined(CONFIG_COMPRESSED_BINARY)
off_t rpos; /* Position returned by lseek */
+#endif
/* Advance offset by binary header size, loadinfo->offset will be 0 in normal exec call */
offset += loadinfo->offset;
|
tests: add test for exponentiation | @@ -288,6 +288,23 @@ describe("Titan code generator ", function()
local ok, err = call("titan_test", "assert(6==titan_test.sum(1,2,3))")
assert.truthy(ok, err)
end)
+
+ it("generates code for exponentiation", function()
+ local code = [[
+ function power(a: float, b: float): float
+ return a ^ b
+ end
+ ]]
+ local ast, err = parser.parse(code)
+ assert.truthy(ast, err)
+ local ok, err = checker.check(ast, code, "test.titan")
+ assert.truthy(ok, err)
+ local ok, err = generate(ast, "titan_test")
+ assert.truthy(ok, err)
+ local ok, err = call("titan_test", "assert(titan_test.power(2,3) == 8)")
+ assert.truthy(ok, err)
+ end)
+
end)
|
Fix problems with script introduced yesterday. | @@ -290,6 +290,7 @@ if test "$branch" = "trunk" ; then
-DCMAKE_BUILD_TYPE=Release \
-DVISIT_BUILD_ALL_PLUGINS=1 \
-DVISIT_DATA_MANUAL_EXAMPLES:BOOL=ON \
+ -DVISIT_INSTALL_THIRD_PARTY:BOOL=ON \
-DIGNORE_THIRD_PARTY_LIB_PROBLEMS:BOOL=ON \
-DCMAKE_CXX_FLAGS_RELEASE:STRING="-fopenmp -O3 -DNDEBUG -Wall -pedantic -Wextra -Wno-long-long -Wno-unused-parameter" \
-DCMAKE_C_FLAGS_RELEASE:STRING="-O3 -DNDEBUG -Wall -pedantic -Wextra -Wno-long-long -Wno-unused-parameter" \
@@ -307,7 +308,7 @@ else
. >> ../buildlog 2>&1
fi
rm -rf ../make.out ../make.err
-make -k -j 36 1>../make.out 2>../make.err
+make -k -j 36 package 1>../make.out 2>../make.err
if test $? -ne 0; then
echo "Source build FAILED at: \`date\`" | mail -s "Source build FAILED" $userEmail
exit 1
@@ -336,10 +337,10 @@ fi
echo "Starting install:\`date\`"
# Install the package
-cd ..
-version=`cat $srcdir/VERSION`
+cd ../src
+version=`cat $testDir/$user/$workingDir/src/VERSION`
-../src/svn_bin/visit-install -c llnl_open $version linux-x86_64 ./_install >> ../installLog 2>&1
+./svn_bin/visit-install -c llnl_open \$version linux-x86_64 ./_install >> ../installLog 2>&1
if test "$testHost" = "pascal" || \
test "$testHost" = "borax" || \
@@ -355,7 +356,7 @@ if test "$testHost" = "pascal" || \
test "$testHost" = "rzsurface" || \
test "$testHost" = "syrah" || \
test "$testHost" = "agate" ; then
- mv ./_install/$version/linux-x86_64 ./_install/$version/linux-x86_64-toss3
+ mv ./_install/\$version/linux-x86_64 ./_install/\$version/linux-x86_64-toss3
fi
|
debian: fix libmbedtls package names on different debian versions | @@ -8,7 +8,7 @@ Homepage: https://github.com/mwarning/kadnode
Package: kadnode
Architecture: any
-Depends: libmbedtls (>=2.4.2), ${shlibs:Depends}, ${misc:Depends}, ${misc:Pre-Depends}
+Depends: libmbedtls (>=2.4.2) | libmbedtls10 (>=2.4.2) | libmbedtls12 (>=2.4.2), ${shlibs:Depends}, ${misc:Depends}, ${misc:Pre-Depends}
Description: decentralized DynDNS alternative
KadNode is a P2P DNS resolver that intercepts system requests for the
p2p TLD. The decentralized BitTorrent DHT network is network is used
|
vere: adds --no-dock to usage printf | @@ -681,6 +681,7 @@ u3_ve_usage(c3_i argc, c3_c** argv)
"-Y, --scry-into FILE Optional name of file (for -X)\n",
"-Z, --scry-format FORMAT Optional file format ('jam', or aura, for -X)\n",
" --no-conn Do not run control plane\n",
+ " --no-dock Skip binary \"docking\" on boot\n",
"\n",
"Development Usage:\n",
" To create a development ship, use a fakezod:\n",
|
[CI] Run matrix multiplication and hello world | variables:
GIT_SUBMODULE_STRATEGY: recursive
ROOT_DIR: '$CI_PROJECT_DIR'
- APP: 'hello_world'
+ APPS: "hello_world matrix_mul"
before_script:
- env
@@ -96,10 +96,16 @@ hardware:
script:
- git apply .gitlab-ci.d/patches/0001-hardware-Set-number-of-cores-to-32-in-simulation.patch
- cd apps
- - make COMPILER=${COMPILER} bin/${APP}
+ - |
+ for APP in ${APPS}; do
+ make COMPILER=${COMPILER} bin/${APP}
+ done
- cd ../hardware
- - app=${APP} make run
- - make trace
+ - |
+ for APP in ${APPS}; do
+ app=${APP} make run
+ make trace
+ done
artifacts:
paths:
- hardware/build/transcript
|
Add a CHANGES entry to mention the replay protection capabilities | Changes between 1.1.0g and 1.1.1 [xx XXX xxxx]
+ *) TLSv1.3 replay protection for early data has been implemented. See the
+ SSL_read_early_data() man page for further details.
+ [Matt Caswell]
+
*) Separated TLSv1.3 ciphersuite configuration out from TLSv1.2 ciphersuite
configuration. TLSv1.3 ciphersuites are not compatible with TLSv1.2 and
below. Similarly TLSv1.2 ciphersuites are not compatible with TLSv1.3.
|
Remove pg_xact from pg_stat_reset_slru docs
This should have been included in
Reported-by: Fujii Masao
Discussion: | @@ -3483,9 +3483,9 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i
predefined list (<literal>async</literal>, <literal>clog</literal>,
<literal>commit_timestamp</literal>, <literal>multixact_offset</literal>,
<literal>multixact_member</literal>, <literal>oldserxid</literal>,
- <literal>pg_xact</literal>, <literal>subtrans</literal> and
- <literal>other</literal>) resets counters for only that entry.
- Names not included in this list are treated as <literal>other</literal>.
+ <literal>subtrans</literal> and <literal>other</literal>) resets counters
+ for only that entry. Names not included in this list are treated as
+ <literal>other</literal>.
</entry>
</row>
</tbody>
|
test-suite: disable ucx for openmpi/opencoarrays | @@ -12,7 +12,7 @@ check_rms
rm=$RESOURCE_MANAGER
NODES=2
-TASKS=4
+TASKS=2
ARGS=8
@test "[libs/OpenCoarrays] hello_multiverse binary runs under resource manager ($rm/$LMOD_FAMILY_COMPILER/$LMOD_FAMILY_MPI)" {
@@ -28,6 +28,11 @@ ARGS=8
export FI_PROVIDER=sockets
fi
+ if [[ "$LMOD_FAMILY_MPI" =~ "openmpi" ]];then
+ export OMPI_MCA_osc="^ucx"
+ export OMPI_MCA_pml="^ucx"
+ fi
+
if [ "$LMOD_FAMILY_MPI" != "impi" ];then
run run_mpi_binary ./hello "" $NODES $TASKS
|
simplify test, make more robust, new interface | @@ -299,38 +299,37 @@ static bool test_iter_lsqr_warmstart(void)
enum { N = 3 };
long dims[N] = { 4, 2, 3 };
- complex float* src1 = md_alloc(N, dims, CFL_SIZE);
- complex float* dst1 = md_alloc(N, dims, CFL_SIZE);
- complex float* dst2 = md_alloc(N, dims, CFL_SIZE);
-
- md_zfill(N, dims, src1, 1.);
- md_zfill(N, dims, dst1, 0.);
+ complex float* src = md_alloc(N, dims, CFL_SIZE);
+ complex float* dst = md_alloc(N, dims, CFL_SIZE);
- md_copy(N, dims, dst2, src1, CFL_SIZE);
+ md_zfill(N, dims, src, 1.66);
+ md_zfill(N, dims, dst, 0.66);
const struct linop_s* id = linop_identity_create(3, dims);
- linop_forward_unchecked(id, dst1, src1);
+ struct lsqr_conf conf = lsqr_defaults;
+ conf.warmstart = true;
- const struct operator_p_s* lsqr = NULL;
-
- struct iter_conjgrad_conf conf = iter_conjgrad_defaults;
- conf.maxiter = 0;
+ struct iter_conjgrad_conf cg_conf = iter_conjgrad_defaults;
+ cg_conf.maxiter = 0;
- lsqr = lsqr2_create(&lsqr_defaults,
- iter2_conjgrad, CAST_UP(&conf),
- NULL, true, id, NULL,
+ const struct operator_p_s* lsqr = lsqr2_create(&conf,
+ iter2_conjgrad, CAST_UP(&cg_conf),
+ NULL, id, NULL,
0, NULL, NULL, NULL);
- operator_p_apply(lsqr, 1., N, dims, dst2, N, dims, src1);
+ operator_p_apply(lsqr, 0.3, N, dims, dst, N, dims, src);
- double err = md_znrmse(N, dims, dst1, dst2);
+ md_zfill(N, dims, src, 0.66);
+
+ double err = md_znrmse(N, dims, src, dst);
linop_free(id);
- md_free(src1);
- md_free(dst1);
- md_free(dst2);
+ md_free(src);
+ md_free(dst);
+
+ operator_p_free(lsqr);
UT_ASSERT(err < UT_TOL);
}
|
web ui docker: add more mountpoints to demo | @@ -10,6 +10,11 @@ WORKDIR /home/elektra
# mount as root user
RUN kdb mount --with-recommends hosts user/hosts hosts
+RUN kdb mount /etc/networks system/networks hosts
+RUN kdb mount /etc/ssh/ssh_config system/ssh line
+RUN kdb mount /etc/ldap/ldap.conf system/ldap line
+RUN kdb mount /var/lib/dpkg/available system/dpkg/available dpkg
+RUN kdb mount /var/lib/dpkg/status system/dpkg/status dpkg
# then switch to elektra user
USER elektra
|
tools/dual-boot: refactor padding read
Make it take just its length so it does not need to know about base firmware size | @@ -143,27 +143,33 @@ def get_base_firmware(size, new_boot_vector):
# Gets empty padding blocks with extra information put in at the end
-def get_padding(base_firmware_size, second_firmware_start, extra_info):
+def get_padding(padding_length, extra_info):
+
+ if len(extra_info) > padding_length:
+ raise ValueError('Padding not large enough for extra data.')
# Total padding size
- padding_size = second_firmware_start - len(extra_info) - base_firmware_size
+ padding_ff = padding_length - len(extra_info)
# Pad whole blocks as far as we can
- for _ in range(padding_size // BLOCK_WRITE):
+ for _ in range(padding_ff // BLOCK_WRITE):
yield FF * BLOCK_WRITE
# Pad remaining FF as a partial block
- yield FF * (padding_size % BLOCK_WRITE)
+ yield FF * (padding_ff % BLOCK_WRITE)
# Padd the extra info
yield extra_info
def get_combined_firmware():
+ base_firmware_size = 0
+
for block in get_base_firmware(firmware_size, PYBRICKS_VECTOR):
+ base_firmware_size += len(block)
yield block
- for block in get_padding(firmware_size, pybricks_start_position, firmware_boot_vector):
+ for block in get_padding(pybricks_start_position - base_firmware_size, firmware_boot_vector):
yield block
# Get external flash ready
@@ -176,6 +182,7 @@ bytes_written = 0
for block in get_combined_firmware():
# Store the block from internal flash on external flash
+ if len(block) > 0:
appl_image_store(block)
# Display progress
|
Document random PIN and reset functions in oc_api.h
This adds doxygen documentation for:
- oc_random_pin_cb_t - callback function
- oc_set_random_pin_callback
- oc_reset
- oc_reset_device | @@ -454,8 +454,56 @@ int oc_init_platform(const char *mfg_name,
#define oc_set_custom_platform_property(prop, value) \
oc_rep_set_text_string(root, prop, value)
+/**
+ * Callback invoked when an onboarding client requests device ownership via the
+ * Random PIN Ownership Transfer Method (OTM). The purpose of the callback is
+ * to allow the device to display the random PIN to the user onboarding the
+ * device.
+ *
+ * Example:
+ * ```
+ * #ifdef OC_SECURITY
+ * void random_pin_cb(const unsigned char *pin, size_t pin_len, void *data)
+ * {
+ * (void)data;
+ * PRINT("\n\nRandom PIN: %.*s\n\n", (int)pin_len, pin);
+ * }
+ * #endif // OC_SECURITY
+ *
+ * int main(void) {
+ * ...
+ * #ifdef OC_SECURITY
+ * oc_storage_config("./server_creds");
+ * oc_set_random_pin_callback(random_pin_cb, NULL);
+ * #endif // OC_SECURITY
+ * // handler code omitted from example code see oc_main_init
+ * oc_main_init(&handler)
+ * ...
+ * return 0;
+ * }
+ * ```
+ *
+ * @param[in] data context pointer that comes from the oc_init_platform()
+ * function
+ *
+ * @see oc_set_random_pin_callback
+ */
typedef void (*oc_random_pin_cb_t)(const unsigned char *pin, size_t pin_len,
void *data);
+
+/**
+ * Set the random pin callback for Random PIN Ownership Transfer Method (OTM)
+ *
+ * @note This should be set before invoking oc_main_init().
+ *
+ * @param[in] cb callback function invoked when client requests Random PIN OTM
+ * @param[in] data context pointer that is passed to the oc_random_pin_cb_t the
+ * context pointer must be a valid pointer as long as the device
+ * is in 'Ready For Ownership Transfer Method' (RFOTM) state.
+ *
+ * @see oc_random_pin_cb_t
+ * @see oc_main_init
+ */
void oc_set_random_pin_callback(oc_random_pin_cb_t cb, void *data);
/**
@@ -479,8 +527,37 @@ bool oc_get_con_res_announced(void);
*/
void oc_set_con_res_announced(bool announce);
+/**
+ * Reset all logical devices to the RFOTM state
+ *
+ * All devices will be placed in the 'Ready For Ownership Transfer Mode'
+ * (RFOTM). This is the initial startup state for for all devices that have not
+ * yet been onboarded. After this call all devices will need to be onboarded
+ * and provisioned again.
+ *
+ * @note The function oc_reset() deals only with security and provisioning it
+ * does not reset any other device settings.
+ *
+ * @note Use of this function requires building with OC_SECURITY defined.
+ */
void oc_reset();
+/**
+ * Reset logical device to the RFOTM state
+ *
+ * The device will be placed in the 'Ready For Ownership Transfer Mode' (RFOTM).
+ * This is the initial state startup state for for all devices that have not yet
+ * been onboarded. After this call the device will need to be onboarded and
+ * provisioned again.
+ *
+ * @note The function oc_reset_device() deals only with security and
+ * provisioning it does not reset any other device settings.
+ *
+ * @note Use of this function requires building the stack with OC_SECURITY
+ * defined.
+ *
+ * @param[in] device index of the logical device to reset
+ */
void oc_reset_device(size_t device);
/** Server side */
|
OSX is unhappy when combining 'as -g' and .loc directives.
Turn it off. It isn't really helping with .loc directives. | @@ -98,7 +98,7 @@ esac
# config.h
echo '#define Instroot "'$prefix'"' >> config.h
-echo '#define Asmcmd {"as", "-g", "-o", NULL}' >> config.h
+echo '#define Asmcmd {"as", "-o", NULL}' >> config.h
echo '#define Objsuffix ".o"' >> config.h
echo 'export SYSCLASS=posixy' >> config.mk
echo '#define Symprefix' $symprefix >> config.h
|
Cmake will automatically install Imath if it is not found to be installed. | @@ -25,6 +25,23 @@ project(IlmBase VERSION ${ILMBASE_VERSION} LANGUAGES C CXX)
find_package(Imath)
+if(NOT Imath_FOUND)
+ message("Imath was not found. It is going to be cloned and installed.")
+
+ include(ExternalProject)
+
+ set(EXTERNAL_INSTALL_LOCATION ${CMAKE_BINARY_DIR}/Imath)
+
+ ExternalProject_Add(Imath
+ GIT_REPOSITORY https://github.com/AcademySoftwareFoundation/Imath.git
+ CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${EXTERNAL_INSTALL_LOCATION}
+ )
+
+ include_directories(${EXTERNAL_INSTALL_LOCATION}/include)
+ link_directories(${EXTERNAL_INSTALL_LOCATION}/lib)
+endif()
+
+
#######################################
#######################################
# This declares all the configuration variables visible
|
input_metric: use new cmetrics function names | @@ -34,7 +34,7 @@ int flb_input_metrics_append(struct flb_input_instance *ins,
size_t mt_size;
/* Convert metrics to msgpack */
- ret = cmt_encode_msgpack(cmt, &mt_buf, &mt_size);
+ ret = cmt_encode_msgpack_create(cmt, &mt_buf, &mt_size);
if (ret != 0) {
flb_plg_error(ins, "could not encode metrics");
return -1;
@@ -43,7 +43,7 @@ int flb_input_metrics_append(struct flb_input_instance *ins,
/* Append packed metrics */
ret = flb_input_chunk_append_raw(ins, tag, tag_len, mt_buf, mt_size);
- flb_free(mt_buf);
+ cmt_encode_msgpack_destroy(mt_buf);
return ret;
}
|
Fix datafari-community/datafari-ce#862 Autocomplete for entity
extraction not working | ACTIVATED=false
-AUTOCOMPLETESUGGESTERS=[]
-CATEGORIES={}
\ No newline at end of file
+AUTOCOMPLETESUGGESTERS=[\
+ {\
+ "i18nKey":"asAuthor", \
+ "serverUrl":"", \
+ "solrCore":"", \
+ "servlet":"suggestEntityAuthors", \
+ "suggestComponent":"suggesterEntityAuthors", \
+ "maxSuggest":1, \
+ "categoryKey":"authors", \
+ "categoryi18nKey":"authors", \
+ "cssClass":"",\
+ "activated": "false"\
+ },\
+ {\
+ "i18nKey":"asphone", \
+ "serverUrl":"", \
+ "solrCore":"", \
+ "servlet":"suggestPhones", \
+ "suggestComponent":"suggesterPhones", \
+ "maxSuggest":1, \
+ "categoryKey":"phones", \
+ "categoryi18nKey":"phones", \
+ "cssClass":"",\
+ "activated": "false"\
+ },\
+ {\
+ "i18nKey":"asEntity", \
+ "serverUrl":"", \
+ "solrCore":"Entities", \
+ "servlet":"suggestSTTEntities", \
+ "suggestComponent":"suggesterSTTEntities", \
+ "maxSuggest":2, \
+ "categoryKey":"sttEntities", \
+ "categoryi18nKey":"sttEntities", \
+ "cssClass":"",\
+ "activated": "false"\
+ }\
+]
+CATEGORIES={\
+ "authors":{\
+ "queryPrefix":"author_search:(", \
+ "querySuffix":")"\
+ },\
+ "phones":{\
+ "queryPrefix":"entity_phone:\\\"", \
+ "querySuffix":"\\\""\
+ },\
+ "sttEntities":{\
+ "queryPrefix":"document_entities:(",\
+ "querySuffix":")"\
+ }\
+}
\ No newline at end of file
|
kick and tick | @@ -892,6 +892,7 @@ _n_burn(c3_y* pog)
&&do_nock, &&do_noct,
&&do_deep, &&do_peep,
&&do_bump, &&do_same,
+ &&do_kick, &&do_tick,
};
#define BURN() goto *lab[pog[ip_s++]]
@@ -985,7 +986,7 @@ _n_burn(c3_y* pog)
do_quot:
_n_toss();
do_quip:
- _n_push(_n_rean(pog, &ip_s));
+ _n_push(u3k(_n_rean(pog, &ip_s)));
BURN();
do_nock:
@@ -1025,5 +1026,41 @@ _n_burn(c3_y* pog)
u3z(x);
u3z(o);
BURN();
+
+ do_kick:
+ x = _n_rean(pog, &ip_s);
+ top = _n_peek();
+ o = *top;
+ u3t_off(noc_o);
+ *top = u3j_kick(o, x);
+ u3t_on(noc_o);
+ if ( u3_none == *top ) {
+ u3_noun fol = u3r_at(x, o);
+ if ( u3_none == fol ) {
+ return u3m_bail(c3__exit);
+ }
+ gop = _n_find(fol);
+ _n_push(o);
+ *top = _n_burn(gop);
+ }
+ BURN();
+
+ do_tick:
+ x = _n_rean(pog, &ip_s);
+ top = _n_peek();
+ o = *top;
+ u3t_off(noc_o);
+ *top = u3j_kick(o, x);
+ u3t_on(noc_o);
+ if ( u3_none == *top ) {
+ u3_noun fol = u3r_at(x, o);
+ if ( u3_none == fol ) {
+ return u3m_bail(c3__exit);
+ }
+ *top = o;
+ pog = _n_find(fol);
+ ip_s = 0;
+ }
+ BURN();
}
}
|
Formating
Fixing formatting. | # Comment that will be sent if an issue is judged to be closed
-comment: "Hi there. Thank you for filing this issue. Unfortunately, we cannot help you, as you haven't sticked to the provided template and/or have not provided all information requested. Consequently, this issue has been closed.
-
-We're more than happy to help out where we can once you raise a new issue containing all requested information in the requested format. In this regard, please take note that:
-- read the template thoroughly
-- all given header lines (starting with ###) **must not be deleted**
-- everything enclosed by <!-- --> is intended to give you guidance and should be replaced by your input specific to the issue
-- Listings regarding your environment must be filled out completely where applicable (bug reports and user questions).
-- Not following the template or providing insufficient information can still implicate manual closure.
-
-So please, first help us a bit to help you!"
+comment: "Hi there. </br>
+ </br>
+ Thank you for filing this issue. Unfortunately, we cannot help you, as you haven't sticked to the provided template and/or have not provided all information requested. Consequently, this issue has been closed. </br>
+ We're more than happy to help out where we can once you raise a new issue containing all requested information in the requested format. </br>
+ </br>
+ In this regard, please take note that: </br>
+ - read the template thoroughly</br>
+ - all given header lines (starting with ###) **must not be deleted** </br>
+ - everything enclosed by <!-- --> is intended to give you guidance and should be replaced by your input specific to the issue </br>
+ - Listings regarding your environment must be filled out completely where applicable (bug reports and user questions).</br>
+ - Not following the template or providing insufficient information can still implicate manual closure.</br>
+ </br>
+ So please, first help us a bit to help you! </br>"
issueConfigs:
# There can be several configs for different kind of issues.
- content:
|
add check for non power of two device count for doc-parallel mode | @@ -74,16 +74,28 @@ namespace NCatboostCuda {
}
inline void UpdateDataPartitionType(const TBinarizedFeaturesManager& featuresManager,
- NCatboostOptions::TCatBoostOptions& catBoostOptions) {
+ NCatboostOptions::TCatBoostOptions& catBoostOptions,
+ ui32 devCount) {
+
+ const bool couldUsedDocParallelBoosting = (1 << IntLog2(devCount)) == devCount;
if (catBoostOptions.CatFeatureParams->MaxTensorComplexity > 1 && featuresManager.GetCatFeatureIds().size()) {
return;
} else {
if (catBoostOptions.BoostingOptions->BoostingType == EBoostingType::Plain) {
+ if (!couldUsedDocParallelBoosting) {
+ MATRIXNET_WARNING_LOG << "Can't used doc-parallel data-partition for non-power of 2 device count. It could be more efficient to use less devices, but with doc-parallel mode."<<Endl;
+ return;
+ }
if (catBoostOptions.BoostingOptions->DataPartitionType.NotSet()) {
catBoostOptions.BoostingOptions->DataPartitionType = EDataPartitionType::DocParallel;
}
}
}
+ if (catBoostOptions.BoostingOptions->BoostingType == EDataPartitionType::DocParallel) {
+ CB_ENSURE(couldUsedDocParallelBoosting, "Can't use doc-parallel data partition for non-power of two device currently. We'll fix it in upcoming release. Please use FeatureParallel mode instead");
+
+ }
+
}
inline bool HasCtrs(const TBinarizedFeaturesManager& featuresManager) {
@@ -236,7 +248,11 @@ namespace NCatboostCuda {
} else {
catBoostOptions.CatFeatureParams = snapshotOptions->CatFeatureParams;
}
- UpdateDataPartitionType(featuresManager, catBoostOptions);
+ {
+ const ui32 devCount = NCudaLib::GetEnabledDevices(catBoostOptions.SystemOptions->Devices,
+ NCudaLib::GetDevicesProvider().GetDeviceCount()).size();
+ UpdateDataPartitionType(featuresManager, catBoostOptions, devCount);
+ }
UpdatePinnedMemorySizeOption(dataProvider, testProvider.Get(), featuresManager, catBoostOptions);
// TODO(nikitxskv): Remove it when the l2 normalization will be added.
|
Fix GL error with buffer unmapping;
This doesn't seem to fix any of the macOS rendering bugs though... | @@ -1744,8 +1744,10 @@ void lovrBufferDiscard(Buffer* buffer) {
glBufferData(glType, buffer->size, NULL, convertBufferUsage(buffer->usage));
#else
// We unmap even if persistent mapping is supported
- // TODO investigate glInvalidateBufferData and its interactions with persistently mapped buffers.
+ if (buffer->mapped || GLAD_GL_ARB_buffer_storage) {
glUnmapBuffer(glType);
+ buffer->mapped = false;
+ }
GLbitfield flags = GL_MAP_WRITE_BIT | GL_MAP_FLUSH_EXPLICIT_BIT | GL_MAP_UNSYNCHRONIZED_BIT | GL_MAP_INVALIDATE_BUFFER_BIT | (buffer->readable ? GL_MAP_READ_BIT : 0);
flags |= GLAD_GL_ARB_buffer_storage ? GL_MAP_PERSISTENT_BIT : 0;
|
BugID:18545473:[netmgr] add g_alink_smartconfig implementation | @@ -61,7 +61,7 @@ typedef struct
bool wifi_scan_complete_cb_finished;
} netmgr_cxt_t;
-extern autoconfig_plugin_t g_alink_smartconfig;
+autoconfig_plugin_t g_alink_smartconfig;
static netmgr_cxt_t g_netmgr_cxt;
#ifndef WITH_SAL
@@ -734,3 +734,39 @@ int netmgr_wifi_start(bool autoconfig)
return -1;
}
+
+#ifdef CONFIG_YWSS
+ static int smart_config_start(void)
+ {
+ extern int awss_start();
+ awss_start();
+ return 0;
+ }
+
+ static void smart_config_stop(void)
+ {
+ netmgr_ap_config_t config;
+ memset(&config, 0, sizeof(netmgr_ap_config_t));
+ netmgr_get_ap_config(&config);
+
+ if (strcmp(config.ssid, "adha") == 0 ||
+ strcmp(config.ssid, "aha") == 0) {
+ return;
+ }
+
+ printf("%s %d\r\n", __func__, __LINE__);
+ // awss_stop();
+ }
+
+ static void smart_config_result_cb(int result, uint32_t ip)
+ {
+ aos_post_event(EV_WIFI, CODE_WIFI_ON_GOT_IP, 0u);
+ }
+
+ autoconfig_plugin_t g_alink_smartconfig = {
+ .description = "alink_smartconfig",
+ .autoconfig_start = smart_config_start,
+ .autoconfig_stop = smart_config_stop,
+ .config_result_cb = smart_config_result_cb
+ };
+#endif
\ No newline at end of file
|
RTX5 (Component View): displaying "Mutex owner" only when mutex locked | <?xml version="1.0" encoding="utf-8"?>
<component_viewer schemaVersion="1.2.0" xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="Component_Viewer.xsd">
- <component name="CMSIS:RTOS2:Keil RTX5" shortname="RTX5" version="5.5.0"/> <!-- name and version of the component -->
+ <component name="CMSIS:RTOS2:Keil RTX5" shortname="RTX5" version="5.5.1"/> <!-- name and version of the component -->
<typedefs>
<!-- Attributes structure for thread -->
<item property="osMutexRobust" value="%t[(MCB[i].attr & 0x08) ? "True" : "False"]" />
</item>
- <list cond="MCB[i].owner_thread" name="n" start="0" limit="TCB._count">
+ <list cond="MCB[i].lock" name="n" start="0" limit="TCB._count">
<item cond="MCB[i].owner_thread == TCB[n]._addr" property="Owner thread" value="id: %x[TCB[n]._addr] %N[TCB[n].name]"/>
</list>
|
To keep the cache little | @@ -1608,12 +1608,8 @@ void xdag_list_mined_blocks(int count, int include_non_payed, FILE *out)
void cache_retarget(int32_t cache_hit, int32_t cache_miss)
{
if(g_xdag_extstats.cache_usage >= g_xdag_extstats.cache_size) {
- if(g_xdag_extstats.cache_hitrate < 0.94 && g_xdag_extstats.cache_size * 2 <= CACHE_MAX_SIZE) {
- if(!g_xdag_extstats.cache_size && CACHE_MAX_SIZE) {
+ if(g_xdag_extstats.cache_hitrate < 0.94 && g_xdag_extstats.cache_size < CACHE_MAX_SIZE) {
g_xdag_extstats.cache_size++;
- } else {
- g_xdag_extstats.cache_size = g_xdag_extstats.cache_size * 2;
- }
} else if(g_xdag_extstats.cache_hitrate > 0.98 && !cache_miss && g_xdag_extstats.cache_size) {
g_xdag_extstats.cache_size--;
}
|
Refactored Scene update | @@ -40,9 +40,10 @@ void SceneRender();
UBYTE SceneNpcAt_b(UBYTE actor_i, UBYTE tx_a, UBYTE ty_a);
UBYTE SceneTriggerAt_b(UBYTE tx_a, UBYTE ty_a);
void SceneUpdateActors_b();
-void MapRepositionCamera_b();
+void SceneUpdateCamera_b();
void SceneHandleTriggers_b();
-void MapUpdateEmotionBubble_b();
+void SceneRenderActors_b();
+void SceneRenderEmotionBubble_b();
void MapUpdateActorMovement_b(UBYTE i);
UBYTE ClampUBYTE(UBYTE v, UBYTE min, UBYTE max);
@@ -177,7 +178,7 @@ void SceneInit_b()
first_frame_on_tile = FALSE;
camera_settings = CAMERA_LOCK_FLAG;
- MapRepositionCamera_b();
+ SceneUpdateCamera_b();
SceneHandleTriggers_b();
FadeIn();
@@ -195,6 +196,9 @@ void SceneInit_b()
void SceneUpdate_b()
{
SceneHandleInput();
+ SceneUpdateActors_b();
+ SceneHandleTriggers_b();
+ SceneUpdateCamera_b();
SceneRender();
// Handle map switch
@@ -205,7 +209,7 @@ void SceneUpdate_b()
}
}
-void MapRepositionCamera_b()
+void SceneUpdateCamera_b()
{
UBYTE cam_x, cam_y;
@@ -381,7 +385,9 @@ void SceneRender()
}
}
- SceneUpdateActors_b();
+ SceneRenderActors_b();
+ SceneRenderEmotionBubble_b();
+
UIUpdate();
// Handle Shake
@@ -609,6 +615,28 @@ void SceneUpdateActors_b()
}
}
+ for (i = 0; i != map_actor_num; i++)
+ {
+ // If running script only update script actor - Unless needs redraw
+ if (script_ptr && i != script_actor && !actors[i].redraw)
+ {
+ continue;
+ }
+
+ // Move actors
+ if (actors[i].moving)
+ {
+ actors[i].pos.x += actors[i].dir.x;
+ actors[i].pos.y += actors[i].dir.y;
+ }
+ }
+}
+
+void SceneRenderActors_b()
+{
+ UBYTE i, flip, frame, sprite_index, x, y;
+ BYTE r;
+
for (i = 0; i != map_actor_num; i++)
{
@@ -667,18 +695,8 @@ void SceneUpdateActors_b()
actors[i].redraw = FALSE;
}
- // Move actors
- if (actors[i].moving)
- {
- actors[i].pos.x += actors[i].dir.x;
- actors[i].pos.y += actors[i].dir.y;
- }
- }
-
- SceneHandleTriggers_b();
- // Position Camera
- MapRepositionCamera_b();
+ }
// Position Sprites
for (i = 0; i != map_actor_num; i++)
@@ -700,7 +718,7 @@ void SceneUpdateActors_b()
}
}
- MapUpdateEmotionBubble_b();
+ SceneRenderEmotionBubble_b();
}
void SceneHandleTriggers_b()
@@ -736,7 +754,7 @@ void SceneHandleTriggers_b()
}
}
-void MapUpdateEmotionBubble_b()
+void SceneRenderEmotionBubble_b()
{
UBYTE x, y;
|
Add troubleshooting in wireless section
Add a small troubleshooting section since wireless might add some
complexity, and to lessen incoming relevant issue posts.
PR <https://github.com/Genymobile/scrcpy/pull/1303> | @@ -418,6 +418,11 @@ Alternatively, it is possible to enable the TCP/IP connection manually using
6. Connect to your device: `adb connect DEVICE_IP:5555` _(replace `DEVICE_IP`)_.
7. Run `scrcpy` as usual.
+If the connection randomly drops, run your `scrcpy` command to reconnect. If it
+says there are no devices/emulators found, try running `adb connect
+DEVICE_IP:5555` again, and then `scrcpy` as usual. If it still says there are
+none found, try running `adb disconnect` and then run those two commands again.
+
It may be useful to decrease the bit-rate and the definition:
```bash
|
[kernel][mem] Improve some ISR check range. | @@ -261,11 +261,11 @@ void *rt_malloc(rt_size_t size)
rt_size_t ptr, ptr2;
struct heap_mem *mem, *mem2;
- RT_DEBUG_NOT_IN_INTERRUPT;
-
if (size == 0)
return RT_NULL;
+ RT_DEBUG_NOT_IN_INTERRUPT;
+
if (size != RT_ALIGN(size, RT_ALIGN_SIZE))
RT_DEBUG_LOG(RT_DEBUG_MEM, ("malloc size %d, but align to %d\n",
size, RT_ALIGN(size, RT_ALIGN_SIZE)));
@@ -513,8 +513,6 @@ void *rt_calloc(rt_size_t count, rt_size_t size)
{
void *p;
- RT_DEBUG_NOT_IN_INTERRUPT;
-
/* allocate 'count' objects of size 'size' */
p = rt_malloc(count * size);
@@ -536,10 +534,11 @@ void rt_free(void *rmem)
{
struct heap_mem *mem;
- RT_DEBUG_NOT_IN_INTERRUPT;
-
if (rmem == RT_NULL)
return;
+
+ RT_DEBUG_NOT_IN_INTERRUPT;
+
RT_ASSERT((((rt_uint32_t)rmem) & (RT_ALIGN_SIZE - 1)) == 0);
RT_ASSERT((rt_uint8_t *)rmem >= (rt_uint8_t *)heap_ptr &&
(rt_uint8_t *)rmem < (rt_uint8_t *)heap_end);
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.