message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
parallel-libs/petsc: bump version to v3.9.3 | @@ -25,7 +25,7 @@ Name: %{pname}-%{compiler_family}-%{mpi_family}%{PROJ_DELIM}
Summary: Portable Extensible Toolkit for Scientific Computation
License: 2-clause BSD
Group: %{PROJ_NAME}/parallel-libs
-Version: 3.9.2
+Version: 3.9.3
Release: 1%{?dist}
Source0: http://ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc-%{ve... |
Fix shell-commands.c | #endif /* MAC_CONF_WITH_TSCH */
#include "net/routing/routing.h"
#include "net/mac/llsec802154.h"
-#if RPL_WITH_NON_STORING
-/* For RPL non-storing specific link printout */
-#include "rpl-ns.h"
-#endif
+/* For RPL-specific commands */
+#if UIP_CONF_IPV6_RPL_LITE
+#include "net/routing/rpl-lite/rpl.h"
+#elif UIP_CONF_I... |
Disable kernel tests as part of CI
These are intermittently timing out (issue disable for now until I can
debug. | @@ -35,11 +35,12 @@ PYTHON=python3
# fpga/ - These only run in the FPGA environment and validate things
# specific to the dev board (the test target only assembles them)
# kernel/
-# crash/ - The following are omitted because they take a long time
+# crash/ - Intermittently timing out, potentially because of a bug
# gl... |
Unix special files: add /proc/meminfo
In the current implementation, the following info is returned:
MemTotal, MemFree, MemAvailable (whose value is approximated as the
sum of free memory and page pache occupancy) and Cached. | @@ -45,6 +45,21 @@ static u32 null_events(file f)
return EPOLLOUT;
}
+static sysreturn meminfo_read(file f, void *dest, u64 length, u64 offset)
+{
+ heap h = (heap)heap_physical(get_kernel_heaps());
+ u64 total = heap_total(h) / KB;
+ u64 free = total - heap_allocated(h) / KB;
+ u64 cached = pagecache_get_occupancy() /... |
Add entry point for fpgaotsu-09C4 | @@ -35,7 +35,8 @@ setup(
'rsu = opae.admin.tools.rsu:main',
'super-rsu = opae.admin.tools.super_rsu:main',
'fpgaflash = opae.admin.tools.fpgaflash:main',
- 'fpgaotsu = opae.admin.tools.fpgaotsu:main'
+ 'fpgaotsu = opae.admin.tools.fpgaotsu:main',
+ 'fpgaotsu-09C4 = opae.admin.tools.fpgaotsu_09C4:main'
]
},
install_requ... |
Refocus input in console on item click | @@ -98,6 +98,7 @@ void Overlay::DrawImgui()
str = str.substr(2);
std::strncpy(command, str.c_str(), sizeof(command) - 1);
+ Get().m_focusConsoleInput = true;
}
ImGui::PopID();
}
|
Add guard to detect zombies, somehow the event occurs to not be handled | @@ -9800,10 +9800,19 @@ void DeRestPlugin::idleTimerFired()
LightNode *lightNode = &d->nodes[d->lightIter];
d->lightIter++;
- if (!lightNode->isAvailable() || !lightNode->lastRx().isValid())
+ if (!lightNode->isAvailable() || !lightNode->lastRx().isValid() || !lightNode->node())
+ {
+ continue;
+ }
+
+ if (lightNode->n... |
move Events and Metrics to its own page | - name: Working With AppScope
path: /docs/working-with
+ - name: Events and Metrics in AppScope
+ path: /docs/events-and-metrics
+
- name: Cool, but What Can I Do with It?
path: /docs/what-do-with-scope
|
Coder spec: remove misleading comment
Float coercions are tested elsewhere, but they don't test whether "tofloat"
can be called explicitly. | @@ -974,8 +974,6 @@ describe("Pallene coder /", function()
end)
describe("tofloat builtin", function()
- -- This builtin is also tested further up, in automatic
- -- arithmetic conversions.
setup(compile([[
function itof(x:integer): float
return tofloat(x)
|
sysdeps/managarm: Handle FIONBIO in sys_ioctl | @@ -1747,6 +1747,16 @@ int sys_ioctl(int fd, unsigned long request, void *arg, int *result) {
return EBADF;
switch(request) {
+ case FIONBIO: {
+ auto mode = reinterpret_cast<int *>(arg);
+ int flags = fcntl(fd, F_GETFL, 0);
+ if(*mode) {
+ fcntl(fd, F_SETFL, flags | O_NONBLOCK);
+ }else{
+ fcntl(fd, F_SETFL, flags & ~... |
sim/alsa: don't let siwtch out when open alsa | @@ -315,7 +315,8 @@ static void sim_audio_config_ops(struct sim_audio_s *priv, uint8_t fmt)
static int sim_audio_open(struct sim_audio_s *priv)
{
- snd_pcm_t *pcm;
+ irqstate_t flags;
+ snd_pcm_t *pcm = NULL;
int direction;
int ret;
@@ -324,13 +325,15 @@ static int sim_audio_open(struct sim_audio_s *priv)
return 0;
}
+... |
Uodate test | @@ -27,6 +27,10 @@ grib_check_key_equals $temp1 uuidOfHGrid '00000000000000000000000000000000'
${tools_dir}/grib_set -s uuidOfHGrid=DEfdBEef10203040b00b1e50001100FF $temp1 $temp2
grib_check_key_equals $temp2 uuidOfHGrid 'defdbeef10203040b00b1e50001100ff'
+${tools_dir}/grib_set -s uuidOfHGrid:s=1099111111111111111111500... |
examples/nxlines/Kconfig: Correct nxlines example program name. | @@ -15,7 +15,7 @@ if EXAMPLES_NXLINES
config EXAMPLES_NXLINES_PROGNAME
string "NX lines program name"
- default "nxhello"
+ default "nxlines"
---help---
This is the name of the program that will be used when the NSH ELF
program is installed.
|
board/morphius/thermal.c: Format with clang-format
BRANCH=none
TEST=none | @@ -352,8 +352,7 @@ static const struct fan_step fan0_table_stand[] = {
#define lid_angle_tablet 340
static int throttle_on;
-BUILD_ASSERT(ARRAY_SIZE(fan1_table_clamshell) ==
- ARRAY_SIZE(fan1_table_tablet));
+BUILD_ASSERT(ARRAY_SIZE(fan1_table_clamshell) == ARRAY_SIZE(fan1_table_tablet));
#define average_time 60
int f... |
Documentation change only: clarification about uMqttClientSetDisconnectCallback().
Clarify that uMqttClientSetDisconnectCallback() should only be called after a connection has been made and that if it is called twice the previous callback will be replaced with the new one. | @@ -354,7 +354,9 @@ int32_t uMqttClientGetTotalMessagesSent(const uMqttClientContext_t *pContext);
int32_t uMqttClientGetTotalMessagesReceived(const uMqttClientContext_t *pContext);
/** Set a callback to be called if the broker drops the MQTT
- * connection.
+ * connection. You must have made an MQTT connection using
+... |
doc: add a note to the RAND_get0_ calls indicating how to set the DRBG type.
The type needs to be set before the DRBGs are created. | @@ -57,9 +57,14 @@ During initialization, it is possible to change the reseed interval
and reseed time interval.
It is also possible to exchange the reseeding callbacks entirely.
+To set the type of DRBG that will be instantiated, use the
+L<RAND_set_DRBG_type(3)> call before accessing the random number generation
+inf... |
Fix rgblink.5 man page installation path
The man page rgblink.5 was installed in the `man1` folder instead of
`man5` as expected. | @@ -82,7 +82,7 @@ install: all
$Qinstall -m ${MANMODE} src/asm/rgbasm.1 ${MANPREFIX}/man1/rgbasm.1
$Qinstall -m ${MANMODE} src/fix/rgbfix.1 ${MANPREFIX}/man1/rgbfix.1
$Qinstall -m ${MANMODE} src/link/rgblink.1 ${MANPREFIX}/man1/rgblink.1
- $Qinstall -m ${MANMODE} src/link/rgblink.5 ${MANPREFIX}/man1/rgblink.5
+ $Qinsta... |
CCSDS: Add test for data quality checks | #
. ./include.ctest.sh
-set -u
+
# ---------------------------------------------------------
# Tests for data quality checks
# ---------------------------------------------------------
@@ -22,6 +22,7 @@ tempGrib2=temp.${label}.grib2
sample_g1=$ECCODES_SAMPLES_PATH/GRIB1.tmpl
sample_g2=$ECCODES_SAMPLES_PATH/GRIB2.tmpl
+... |
Always use FORMAT_BINARY for infile
CLA: trivial | @@ -169,9 +169,6 @@ opthelp:
goto err;
}
- /* Use text mode for stdin */
- if (infile == NULL || strcmp(infile, "-") == 0)
- inform = FORMAT_TEXT;
in = bio_open_default(infile, 'r', inform);
if (in == NULL)
goto err;
|
metrics: release unused sds in case of error | @@ -263,6 +263,7 @@ void cb_metrics_prometheus(mk_request_t *request, void *data)
/* length of HELP text */
metric_helptxt = flb_sds_create_size(128);
if (!metric_helptxt) {
+ flb_sds_destroy(sds);
mk_http_status(request, 500);
mk_http_done(request);
buf->users--;
|
Prism: Add board_kblight_shutdown
This patch adds kblight_shutdown.
BRANCH=None
TEST=Vell | @@ -243,8 +243,18 @@ const uint8_t rgbkbd_map[] = {
};
const size_t rgbkbd_map_size = ARRAY_SIZE(rgbkbd_map);
+__override void board_kblight_shutdown(void)
+{
+ gpio_set_level(GPIO_RGBKBD_POWER, 0);
+}
+
__override void board_kblight_init(void)
{
+ /*
+ * Keep hardware stand-by always on since it doesn't allow scale an... |
Renew ygdiff: +musl, +mds backup | },
"ygdiff": {
"formula": {
- "sandbox_id": 505015799,
+ "sandbox_id": 505451223,
"match": "ygdiff"
},
"executable": {
|
[tests] reduce test_base64 brute force tests
It is not necessary to test every single value of 3 chars for confidence
in the tests. 256^256^256 is a bit overkill (and much more time
consuming than other tests) | @@ -38,7 +38,7 @@ static void check_all_len_2 (const base64_charset enc) {
static void check_all_len_3 (const base64_charset enc) {
unsigned int c1, c2, c3;
- for (c1 = 0; c1 < 256; ++c1) for (c2 = 0; c2 < 256; ++c2) for (c3 = 0; c3 < 256; ++c3) {
+ for (c1 = 0; c1 < 256; c1+=255) for (c2 = 0; c2 < 256; ++c2) for (c3 =... |
group-store: add /wait endpoints | |= =path
^- (quip card _this)
?> (team:title our.bowl src.bowl)
+ ?: ?=([%wait ~] path)
+ `this
?> ?=([%groups ~] path)
:_ this
[%give %fact ~ %group-update-0 !>([%initial groups])]~
|= =path
^- (unit (unit cage))
?+ path (on-peek:def path)
+ [%x %wait ~]
+ ``ships+!>(~(tap in wait))
[%y %groups ~]
``noun+!>(`(set reso... |
Little P&P log update | @@ -238,7 +238,7 @@ void getPads(Uint8* keystate, Uint8* keystate_def)
char buffer[26];
open_joystick(i);
get_time_string(buffer, 26, (time_t)ev.jdevice.timestamp, TIMESTAMP_PATTERN);
- printf("Joystick %s connected at port: %d at %s\n",joysticks[i].Name,i,buffer);
+ printf("Joystick: \"%s\" connected at port: %d at %s... |
rpl_neighbor_snprint: do not add prefix | @@ -94,10 +94,6 @@ rpl_neighbor_snprint(char *buf, int buflen, rpl_nbr_t *nbr)
const struct link_stats *stats = rpl_neighbor_get_link_stats(nbr);
clock_time_t clock_now = clock_time();
- index += snprintf(buf+index, buflen-index, "nbr: ");
- if(index >= buflen) {
- return index;
- }
index += uiplib_ipaddr_snprint(buf+i... |
drbgtest: avoid a memory leak | @@ -627,6 +627,13 @@ err:
int setup_tests(void)
{
+ /*
+ * TODO(3.0): figure out why and fix.
+ * Create the primary DRBG here to avoid a memory leak if it is done in
+ * the test cases.
+ */
+ if (RAND_get0_primary(NULL) == NULL)
+ return 0;
ADD_TEST(test_rand_drbg_reseed);
ADD_TEST(test_rand_drbg_prediction_resistanc... |
fixed stick gesture pid adjust bug - increased only | @@ -393,15 +393,9 @@ int next_pid_axis() {
float adjust_rounded_pid(float input, float adjust_amount){
float result;
float value = (int)(input * 100.0f + 0.5f);
- if (adjust_amount > 0){
result = (float)(value+(100.0f * adjust_amount)) / 100.0f;
if ((int)(result*100.0f) <= 0) return 0;
else return result;
- }else{
- re... |
rune/libenclave: Format code style | @@ -35,7 +35,7 @@ func (pal *enclaveRuntimePal) Init(args string, logLevel string) error {
}
pal.version = ver
- C.workaround_nanosleep();
+ C.workaround_nanosleep()
return api.init(args, logLevel)
}
|
Use stderr for getline output instead of stdout. | @@ -67,7 +67,7 @@ void janet_line_deinit() {
}
void janet_line_get(const char *p, JanetBuffer *buffer) {
- FILE *out = janet_dynfile("out", stdout);
+ FILE *out = janet_dynfile("err", stderr);
fputs(p, out);
fflush(out);
simpleline(buffer);
@@ -492,16 +492,16 @@ static void kshowcomp(void) {
if (cols == 0) cols = 1;
in... |
Disbale test cases of gpfdist_ssl
The test cases of gpfdist_ssl sometimes
fail on pipeline. We don't know the root
cause yet. So just disable them. And we will
enable them after fixing. | @@ -6,9 +6,9 @@ default: installcheck
REGRESS = exttab1 custom_format gpfdist2
ifeq ($(enable_gpfdist),yes)
-ifeq ($(with_openssl),yes)
- REGRESS += gpfdist_ssl
-endif
+#ifeq ($(with_openssl),yes)
+# REGRESS += gpfdist_ssl
+#endif
endif
PSQLDIR = $(prefix)/bin
@@ -16,10 +16,10 @@ REGRESS_OPTS = --init-file=init_file
in... |
Add +1 for ikev1 check when at max str length | @@ -392,7 +392,7 @@ ACVP_RESULT acvp_kdf135_ikev1_kat_handler (ACVP_CTX *ctx, JSON_Object *obj) {
return ACVP_MISSING_ARG;
}
if (strnlen((char *)init_nonce,
- ACVP_KDF135_IKEV1_INIT_NONCE_STR_MAX) != ((init_nonce_len + 7) / 8) * 2) {
+ ACVP_KDF135_IKEV1_INIT_NONCE_STR_MAX + 1) != ((init_nonce_len + 7) / 8) * 2) {
ACVP_... |
More syscon and pervasive NIDs | @@ -5791,7 +5791,11 @@ modules:
ksceSysconSetLowBatteryCallback: 0x3F0DB7C0
ksceSysconSetThermalAlertCallback: 0x773B8126
ksceSysconWaitInitialized: 0x55DF1C9B
- ksceSysconGetBaryon: 0xFF86F4C5
+ ksceSysconGetBaryonVersion: 0xFF86F4C5
+ ksceSysconGetBaryonTimestamp: 0x4D588A0A
+ ksceSysconCtrlMsPower: 0x710A7CF0
+ ksce... |
Only store the first group in ssl_tls13_parse_supported_groups_ext() | @@ -109,8 +109,8 @@ static int ssl_tls13_parse_supported_groups_ext(
const unsigned char *buf, const unsigned char *end )
{
const unsigned char *p = buf;
- size_t named_group_list_len, curve_list_len;
- const mbedtls_ecp_curve_info *curve_info, **curves;
+ size_t named_group_list_len;
+ const mbedtls_ecp_curve_info *cu... |
DOCS: remove reference to SNMP/email feature that's no longer provided | case, the failed component must be replaced or recovered to restore full redundancy. Until
the failed component is recovered, the active component lacks a standby, and the system may
not be executing optimally. For these reasons, it is important to perform recovery
- operations promptly. Constant system monitoring and ... |
zephyr: remove entries from config_allowed
Remove config entries CONFIG_I2C_VIRTUAL_BATTERY (fixed) and
CONFIG_SPI_MASTER (obsolete) from the config_allowed.txt list.
BRANCH=none
TEST=zmake testall
TEST=make BOARD=volteer | @@ -558,7 +558,6 @@ CONFIG_I2C_SCL_GATE_ADDR_FLAGS
CONFIG_I2C_SCL_GATE_GPIO
CONFIG_I2C_SCL_GATE_PORT
CONFIG_I2C_UPDATE_IF_CHANGED
-CONFIG_I2C_VIRTUAL_BATTERY
CONFIG_I2C_XFER_BOARD_CALLBACK
CONFIG_I2C_XFER_LARGE_TRANSFER
CONFIG_INA219
@@ -871,7 +870,6 @@ CONFIG_SPI_FLASH_W25Q80
CONFIG_SPI_FLASH_W25X40
CONFIG_SPI_FP_PORT... |
DDF state/battery describe range 0-100 % | "access": "R",
"public": true,
"range": [0, 100],
- "description": "The current device battery level."
+ "description": "The current device battery level in range 0–100 %."
}
\ No newline at end of file
|
.github/workflows/travis-ci.yml: unix-coverage-32-bit: Install g++-multilib. | @@ -246,7 +246,7 @@ jobs:
sudo apt-get install -y gcc-7
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 80
sudo update-alternatives --config gcc
- sudo apt-get install gcc-multilib gcc-7-multilib libffi-dev:i386
+ sudo apt-get install gcc-multilib g++-multilib gcc-7-multilib libffi-dev:i386
sudo apt-... |
limesuitecal - ensure integer division
numpy array size can return a float, use len()
* Resolves | @@ -76,7 +76,7 @@ def sampsToPowerFFT(rxSamples, fftSize=NUM_BINS_PER_FFT):
@param rxSamples an array of samples (not list of arrays)
"""
- numFFTs = rxSamples.size/fftSize
+ numFFTs = len(rxSamples)/fftSize
if numFFTs == 1:
x = rxSamples[:fftSize]
|
config_tool: Move "BIOS Revision" line in Configurator UI
Placed the "BIOS Revision:" at the top line of BIOS
information, and change the order of the information to have
the board information to the left, and BIOS information to the right. | <div class="card-body">
<div class="card-text text-pre-line">
<div class="px-3 py-2 row">
- <div class="py-1 col-sm">{{ this.imported ? this.board.BIOS_INFO : '' }}</div>
<div class="py-1 col-sm">{{ this.imported ? this.board.BASE_BOARD_INFO : '' }}</div>
+ <div class="py-1 col-sm">{{ this.imported ? this.board.BIOS_IN... |
CUDA: Fix deprecation warning | @@ -126,7 +126,13 @@ namespace NCudaLib {
cudaPointerAttributes attributes;
CUDA_SAFE_CALL(cudaPointerGetAttributes(&attributes, (void*)(ptr)));
//TODO(noxoomo): currently don't distinguish pinned/non-pinned memory
+#ifndef CUDART_VERSION
+#error "CUDART_VERSION is not defined: include cuda_runtime_api.h"
+#elif (CUDAR... |
Make `PyDocument.editor` a weak reference | @@ -22,7 +22,7 @@ enum PyDocumentError: Error {
#if MAIN
/// The editor that is editing this document.
- var editor: EditorViewController?
+ weak var editor: EditorViewController?
#endif
/// A boolean indicating whether `open(completionHandler:)` has been called for this instance.
|
wording in status display | @@ -4335,10 +4335,10 @@ snprintf(servermsg, SERVERMSG_MAX, "\e[?25l\nstart capturing (stop with ctrl+c)\
"FILTERMODE................: %s\n"
"WEAK CANDIDATE............: %s\n"
"ESSID list................: %d entries\n"
- "ROGUE (ACCESS POINT)......: %02x%02x%02x%02x%02x%02x (BROADCAST HIDDEN)\n"
- "ROGUE (ACCESS POINT).... |
chore(docs): 6.4-build on cloud - gitpod | @@ -75,6 +75,7 @@ Use the [installer](https://github.com/metacall/install) and try [some examples]
- [6.1 Build Options](#61-build-options)
- [6.2 Coverage](#62-coverage)
- [6.3 Debugging](#63-debugging)
+ - [6.4 Build on Cloud - Gitpod](#64-build-on-cloud---gitpod)
- [7. Platform Support](#7-platform-support)
- [7.1 D... |
Update: parser for old-school negation fixed | @@ -160,7 +160,7 @@ char* replaceWithCanonicalCopulas(char *narsese, int n)
if(narsese[i] == '-' && narsese[i+1] == '-' && narsese[i+2] != '>') // -- becomes !
{
narsese_replaced[j] = '!';
- i+=3; j++;
+ i+=2; j++;
}
else
{
|
u3: removes unused atom measurement function in urth.c | #include "all.h"
#include "ur/ur.h"
-/* _cu_met_3(): atom bytewidth a la u3r_met(3, ...)
-*/
-static inline c3_w
-_cu_met_3(u3a_atom* vat_u)
-{
- c3_w len_w = vat_u->len_w;
- c3_w* buf_w = vat_u->buf_w;
-
- if ( !len_w ) {
- return 0;
- }
- else {
- c3_w gal_w = len_w - 1;
- c3_w daz_w = buf_w[gal_w];
-
- return (gal_w... |
Fix issue when animated model has no animator; | @@ -27,8 +27,10 @@ static void renderNode(Model* model, uint32_t nodeIndex, int instances) {
mat4 globalTransform = model->globalNodeTransforms + 16 * nodeIndex;
if (node->primitiveCount > 0) {
+ bool animated = node->skin >= 0 && model->animator;
float pose[16 * MAX_BONES];
- if (node->skin >= 0 && model->animator) {
... |
Fixed algorithm in VmaBlockMetadata_TLSF::CreateAllocationRequest
Code by | @@ -9928,12 +9928,15 @@ bool VmaBlockMetadata_TLSF::CreateAllocationRequest(
// Round up to the next block
VkDeviceSize sizeForNextList = allocSize;
- if (allocSize >= (1 << SECOND_LEVEL_INDEX))
+ VkDeviceSize smallSizeStep = SMALL_BUFFER_SIZE / (IsVirtual() ? 1 << SECOND_LEVEL_INDEX : 4);
+ if (allocSize > SMALL_BUFFE... |
Don't use deprecated EVP_CIPHER_CTX_cleanup() internally
Use EVP_CIPHER_CTX_reset() instead | @@ -60,7 +60,7 @@ CMAC_CTX *CMAC_CTX_new(void)
void CMAC_CTX_cleanup(CMAC_CTX *ctx)
{
- EVP_CIPHER_CTX_cleanup(ctx->cctx);
+ EVP_CIPHER_CTX_reset(ctx->cctx);
OPENSSL_cleanse(ctx->tbl, EVP_MAX_BLOCK_LENGTH);
OPENSSL_cleanse(ctx->k1, EVP_MAX_BLOCK_LENGTH);
OPENSSL_cleanse(ctx->k2, EVP_MAX_BLOCK_LENGTH);
|
added option to disable nonse-correction check | @@ -129,7 +129,7 @@ if(fhjohn != 0)
return;
}
/*===========================================================================*/
-int processdata(char *hcxinname)
+int processdata(char *hcxinname, uint8_t noncecheckflag)
{
struct stat statinfo;
FILE *fhhcx;
@@ -175,7 +175,9 @@ zeigerhcx = (hcx_t*)(data);
if(((datasize % H... |
ebisp/repl: Use constructor to create scope, not an explicit initializer
* This looks to be a lingering bit of code duplication, probably
created before the constructor. Just use the constructor. | @@ -45,9 +45,7 @@ int main(int argc, char *argv[])
char buffer[REPL_BUFFER_MAX + 1];
Gc *gc = create_gc();
- struct Scope scope = {
- .expr = CONS(gc, NIL(gc), NIL(gc))
- };
+ struct Scope scope = create_scope(gc);
load_std_library(gc, &scope);
load_repl_runtime(gc, &scope);
|
Fix incorrect error message
There is an extraneous `.format` parameter | @@ -574,7 +574,7 @@ cdef object bcf_check_values(VariantRecord record, value, int sample,
cdef int given = len(values)
if value_count[0] != -1 and value_count[0] != given:
if scalar[0]:
- raise TypeError('value expected to be scalar, given len={}'.format(value_count[0], given))
+ raise TypeError('value expected to be s... |
integration: Use json output for trace capabilities test | @@ -27,6 +27,7 @@ import (
"time"
bindTypes "github.com/kinvolk/inspektor-gadget/pkg/gadgets/trace/bind/types"
+ capabilitiesTypes "github.com/kinvolk/inspektor-gadget/pkg/gadgets/trace/capabilities/types"
execTypes "github.com/kinvolk/inspektor-gadget/pkg/gadgets/trace/exec/types"
openTypes "github.com/kinvolk/inspekt... |
Sort conftest modules before importing
Sort conftest modules before importing
ISSUE:
([arc::pullid] b55d491-22f7559c-64882a4c-66b158b5) | @@ -18,8 +18,15 @@ conftest_modules = []
def pytest_addhooks(pluginmanager):
- for name in sys.extra_modules:
- if name.endswith('.conftest'):
+ conftests = filter(lambda name: name.endswith(".conftest"), sys.extra_modules)
+
+ def conftest_key(name):
+ if not name.startswith("__tests__."):
+ # Make __tests__ come last... |
Fix go entry in summary. | @@ -1001,7 +1001,7 @@ endfunction()
tinyspline_set_on_off(TINYSPLINE_WITH_CXX TINYSPLINE_ENABLE_CXX)
tinyspline_set_on_off_swig(TINYSPLINE_WITH_CSHARP TINYSPLINE_ENABLE_CSHARP)
tinyspline_set_on_off_swig(TINYSPLINE_WITH_DLANG TINYSPLINE_ENABLE_DLANG)
-tinyspline_set_on_off(TINYSPLINE_WITH_GOLANG FALSE)
+tinyspline_set_... |
News: Add subentries for plugins, bindings & libs | @@ -50,17 +50,36 @@ You can also read the news [on our website](https://www.libelektra.org/news/0.8.
## Plugins
-- <<TODO>>
-- <<TODO>>
-- <<TODO>>
+
+### <<Plugin1>>
+
+
+### <<Plugin2>>
+
+
+### <<Plugin3>>
+
+
+## Libraries
+
+### <<Library1>>
+### <<Library2>>
+
+
+### <<Library3>>
+
## Bindings
-- <<TODO>>
-- <<TO... |
host_exerciser: fix erroneous buffer commpare
The host was receiving the interrupt before the final data
writes were complete. Therefore the resulting buffer compare
failed. Fix involves reading the DSM, which acts as a fence,
before performing the compare. | @@ -199,14 +199,13 @@ public:
}
std::cout << "Input Config:" << he_lpbk_cfg_.value << std::endl;
- // Stop he-lpbk
+ // assert reset he-lpbk
he_lpbk_ctl_.value = 0;
- he_lpbk_ctl_.ForcedTestCmpl = 1;
d_afu->write32(HE_CTL, he_lpbk_ctl_.value);
usleep(1000);
- // Reset he-lpbk
+ // deassert reset he-lpbk
he_lpbk_ctl_.va... |
setting default browsing dependent on env variable | @@ -19,7 +19,7 @@ Listen localhost:@DEFAULT_IPP_PORT@
@CUPS_LISTEN_DOMAINSOCKET@
# Show shared printers on the local network.
-Browsing On
+Browsing @CUPS_BROWSING@
BrowseLocalProtocols @CUPS_BROWSE_LOCAL_PROTOCOLS@
# Default authentication type, when authentication is required...
|
there's no need to define a path string | @@ -35,7 +35,6 @@ void handle_quic_event(void *cpu, void *data, int len) {
int main(int argc, char **argv) {
// Simplified for demonstration purpose.
pid_t pid = -1;
- std::string h2o_path;
if (argc < 2) {
std::cerr << "h2olog <pid>" << std::endl;
return 1;
@@ -43,7 +42,7 @@ int main(int argc, char **argv) {
pid = std:... |
metadata-store: migrate publish to graph-store | +$ state-2 [%2 base-state-0]
+$ state-3 [%3 base-state-1]
+$ state-4 [%4 base-state-1]
++$ state-5 [%5 base-state-1]
+$ versioned-state
$% state-0
state-1
state-2
state-3
state-4
+ state-5
==
--
::
-=| state-4
+=| state-5
=* state -
%+ verb |
%- agent:dbug
=/ old !<(versioned-state vase)
=| cards=(list card)
|^
- ?: ?=... |
misc: configurator:Fix delete vm button apearance
update activeVMID to make the delete vm button disappear
when all VMs are deleted. | @@ -241,7 +241,7 @@ export default {
msg = "Post-launched VMs require the Service VM. If you proceed, all post-launched VMs and their settings will also be deleted. Are you sure you want to proceed?"
isserivevm = true
} else {
- msg = `Delete this virtual machine VM${this.activeVMID}, launch script will alse be deleted... |
Mention alternative mnemonics in gbz80(7)
Fixes | @@ -879,9 +879,9 @@ Bytes: 2
Flags: None affected.
.Pp
This is sometimes written as
-.Ql ldio [n16], a ,
+.Ql LDIO [n16],A ,
or
-.Ql ld [$ff00+n8], a .
+.Ql LD [$FF00+n8],A .
.Ss LDH [C],A
Store value in register
.Sy A
@@ -895,9 +895,9 @@ Bytes: 1
Flags: None affected.
.Pp
This is sometimes written as
-.Ql ldio [c], a ... |
Fix texture refcounting in lovr.graphics.newTexture;
Also a memory leak with window icons (does anyone use that?) | @@ -301,10 +301,13 @@ static void stencilCallback(void* userdata) {
lua_call(L, 0, 0);
}
+// Must be released when done
static TextureData* luax_checktexturedata(lua_State* L, int index, bool flip) {
TextureData* textureData = luax_totype(L, index, TextureData);
- if (!textureData) {
+ if (textureData) {
+ lovrRetain(t... |
honggfuzz-qemu: Pass -ldl to the linker as it's required by libhfuzz.a | @@ -10,7 +10,7 @@ qemu_bin: honggfuzz-qemu/config.status
honggfuzz-qemu/config.status: honggfuzz-qemu/
@echo "=== Configuring QEMU for \"$(TARGETS)\" ==="
@cd honggfuzz-qemu/ && \
- ./configure --honggfuzz-path="$(PWD)/../" --disable-system --target-list="$(TARGETS)"
+ LIBS=-ldl ./configure --honggfuzz-path="$(PWD)/../... |
CMSIS-DSP: Disable some tests in the test framework.
NN tests are by default disables. | @@ -68,6 +68,7 @@ endfunction()
option(BENCHMARK "Benchmarking compiled" OFF)
option(EXTBENCH "Benchmarking with external traces" OFF)
+option(NN "NN Tests included" OFF)
project(Testing)
@@ -84,12 +85,19 @@ set(TESTFRAMEWORK ON)
include(config)
add_subdirectory(../Source bin_dsp)
+if (NN)
add_subdirectory(${ROOT}/CMSI... |
Workaround PRIu64 on Windows
On Windows, PRIu64 is defined to "llu", which is not supported:
error: unknown conversion type character 'l' in format | @@ -170,7 +170,12 @@ control_msg_log(const struct control_msg *msg) {
(long) msg->inject_touch_event.buttons);
} else {
// numeric pointer id
- LOG_CMSG("touch [id=%" PRIu64 "] %-4s position=%" PRIi32 ",%"
+#ifndef __WIN32
+# define PRIu64_ PRIu64
+#else
+# define PRIu64_ "I64u" // Windows...
+#endif
+ LOG_CMSG("touch ... |
Error if require path is too long instead of truncating; | @@ -433,7 +433,10 @@ const char* lovrFilesystemGetRequirePath() {
}
void lovrFilesystemSetRequirePath(const char* requirePath) {
- strncpy(state.requirePath, requirePath, sizeof(state.requirePath) - 1);
+ size_t length = strlen(requirePath);
+ lovrCheck(length < sizeof(state.requirePath), "Require path is too long");
+... |
des/des_locl.h: clean up unused/irrelevant macros. | # define ITERATIONS 16
# define HALF_ITERATIONS 8
-/* used in des_read and des_write */
-# define MAXWRITE (1024*16)
-# define BSIZE (MAXWRITE+4)
-
# define c2l(c,l) (l =((DES_LONG)(*((c)++))) , \
l|=((DES_LONG)(*((c)++)))<< 8L, \
l|=((DES_LONG)(*((c)++)))<<16L, \
* replacements for htonl and ntohl since I have no idea... |
ip: format table ids with %u
Type: fix | @@ -502,13 +502,13 @@ vnet_show_ip_table_cmd (vlib_main_t *vm, unformat_input_t *main_input,
}
fib = fib_table_get (fib_index, fproto);
- vlib_cli_output (vm, "[%3u] table_id:%3u %v", fib->ft_index,
+ vlib_cli_output (vm, "[%u] table_id:%u %v", fib->ft_index,
fib->ft_table_id, fib->ft_desc);
}
else
{
pool_foreach (fib,... |
Return correct error codes when nvm_set_master_passphrase api is called with long passwords
Add a check to determine if the supplied old password or new password for the api is longer
than maximum password length and return relevant error code. | @@ -1628,6 +1628,12 @@ NVM_API int nvm_set_master_passphrase(const NVM_UID device_uid,
CHAR16 UnicodeOldMasterPassphrase[PASSPHRASE_BUFFER_SIZE];
CHAR16 UnicodeNewMasterPassphrase[PASSPHRASE_BUFFER_SIZE];
+ if (old_master_passphrase_len > PASSPHRASE_BUFFER_SIZE
+ || new_master_passphrase_len > PASSPHRASE_BUFFER_SIZE) {... |
testcase/le_tc/kernel: Add config flag for timer tc to resolve asserts
Timer make direct calls to kernel specific structures
which results in assert.
So this patch adds protected build config dependency for above mentioned
kernel testcase. | int sig_no = SIGRTMIN;
+#ifndef CONFIG_BUILD_PROTECTED
/**
* @fn :tc_timer_timer_create_delete
* @brief :Create and delete a POSIX per-process timer
@@ -118,6 +119,7 @@ static void tc_timer_timer_create_delete(void)
TC_SUCCESS_RESULT();
}
+#endif /* CONFIG_BUILD_PROTECTED */
#ifndef CONFIG_DISABLE_POSIX_TIMERS
/**
@@ -... |
remove out of place headline | @@ -39,8 +39,6 @@ You can install the kadnode .ipk using "opkg install \<ipkg-file\>" on the route
For details please check the OpenWrt/LEDE documentation.
-# Notes for developers
-
## Build Notes
You might want to use your own source location and not the remote respository.
|
Modifications to wifi_test Makefile, to remove builtin feature | -include $(TOPDIR)/Make.defs
include $(APPDIR)/Make.defs
-# WIFI APIs built-in application info
-
-APPNAME = wifi_test
-THREADEXEC = TASH_EXECMD_ASYNC
-
# WIFI APIs Example
ASRCS =
@@ -92,6 +87,8 @@ install:
endif
+context:
+
.depend: Makefile $(SRCS)
@$(MKDEP) $(ROOTDEPPATH) "$(CC)" -- $(CFLAGS) -- $(SRCS) >Make.dep
@... |
Add json conversions to &hall-command. | ++ grab :: convert from
|%
++ noun command :: from %noun
+ ++ json :: from %json
+ => [. dejs:hall-json] ::TODO =,
+ =, dejs-soft:format
+ |= a/json
+ ^- command:hall
+ =- (need ((of -) a))
+ :~ publish+(ar thot)
+ present+(ot nos+(as so) dif+disa ~)
+ :: bearing not needed
+ ==
+ --
+::
+++ grow :: convert to
+ |%
+ +... |
fix int vs size_t mismatch | @@ -87,7 +87,7 @@ typedef struct st_picoquic_tls_ctx_t {
ptls_handshake_properties_t handshake_properties;
ptls_iovec_t* alpn_vec;
size_t alpn_vec_size;
- int alpn_count;
+ size_t alpn_count;
uint8_t* ext_data;
size_t ext_data_size;
uint16_t esni_version;
|
libc/math: Update testcases for frexpf(), log() & log2f()
Update testcase frexpf() for negative value.
Update testcases for log() & log2f() to cover zero input condition.
Update testcase pow() for spacing format according to coding rules. | @@ -1651,8 +1651,8 @@ static void tc_libc_math_frexp(void)
static void tc_libc_math_frexpf(void)
{
const float in_val[] = { 8.0, 2.3, -10.0 };
- const float sol_val[] = { 0.99999976158142, 0.574999988079071, 0 };
- const int n_val[] = { 3, 2, 2147483647 };
+ const float sol_val[] = { 0.99999976158142, 0.574999988079071... |
rescaler_utils: set max valid scaled w/h to INT_MAX/2
this will avoid the potential for some integer overflows in rescaler
calculations | // Author: Skal (pascal.massimino@gmail.com)
#include <assert.h>
+#include <limits.h>
#include <stdlib.h>
#include <string.h>
#include "src/dsp/dsp.h"
@@ -83,6 +84,7 @@ int WebPRescalerGetScaledDimensions(int src_width, int src_height,
{
int width = *scaled_width;
int height = *scaled_height;
+ const int max_size = INT... |
pull-hook: noop on unsupported, unversioned facts
Pull-hook side of the previous change to push-hook
(479fbfd798413945a074bb3dcbe2a48d82e2ae37). Noop on unsupported
unversioned marks, waiting for the publisher to upgrade and kick. Same
tradeoffs as previous change apply. | =/ fact-ver=@ud
(read-version:ver p.cage)
?. (gte fact-ver min-version.config)
+ ?. versioned
+ :: don't process unversioned, unsupported facts
+ :: just wait for publisher to upgrade and kick the
+ :: subscription
+ tr-core
(tr-suspend-pub-ver min-version.config)
=/ =vase
(convert-to:ver cage)
|
cooja: remove unused parts of Makefile
This file is no longer produced by Cooja
in the default configuration. | @@ -98,8 +98,6 @@ $(COOJA_BASE) $(COOJA_INTFS) $(COOJA_CORE) $(COOJA_NET) $(COOJA_SOURCEFILES)
CONTIKI_SOURCEFILES += $(CONTIKI_TARGET_SOURCEFILES)
-CLEAN += COOJA.log
-
### Compiler arguments
CFLAGSNO = $(JAVA_CFLAGS) $(EXTRA_CC_ARGS) -Wall -DCLASSNAME=$(CLASSNAME)
ifeq ($(WERROR),1)
|
parallel-libs/petsc: adjust DESTDIR to fix double installpath | @@ -105,7 +105,7 @@ make
%install
-make install DESTDIR=$RPM_BUILD_ROOT/%{install_path}
+make install DESTDIR=$RPM_BUILD_ROOT
# remove stock module file
rm -rf %{buildroot}%{install_path}/lib/modules
|
Fix typo in documentation example for Show Media Error Log. | @@ -78,7 +78,7 @@ ipmctl show -error Thermal Level=High
Show all low media error log entries
[verse]
-ipmctl show -error Thermal Level=High
+ipmctl show -error Thermal Level=Low
LIMITATIONS
-----------
|
Provide auth information for submodule fetching | @@ -24,6 +24,9 @@ jobs:
steps:
- uses: actions/checkout@v1
- name: include submodule to base repo
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ GIT_PULL_TOKEN: ${{ secrets.GIT_PULL_TOKEN }}
run: git submodule update --init
- name: Test ${{ matrix.os }} ${{ matrix.config }}
env:
|
build info can be disabled by silence-define | void print_build_infos()
{
- #ifndef GL4ES_SILENCE_MESSAGES
- LOGD("v%d.%d.%d built on %s %s\n", MAJOR, MINOR, REVISION, __DATE__, __TIME__);
- #endif
+ SHUT_LOGD("v%d.%d.%d built on %s %s\n", MAJOR, MINOR, REVISION, __DATE__, __TIME__);
}
|
Add YT_UNITTEST (with custom main needed for yt cli initialization) | @@ -632,6 +632,13 @@ module TOOL: PROGRAM {
# DISABLE(SANITIZER_TYPE)
}
+module UNITTEST_BASE: BASE_PROGRAM {
+ when ($UT_SKIP_EXCEPTIONS == "yes") {
+ C_DEFINES+=-DUT_SKIP_EXCEPTIONS
+ }
+ ADD_YTEST($REALPRJNAME unittest.py)
+}
+
### @usage: UNITTEST ([name])
###
### Project Definition-unit test.
@@ -639,13 +646,14 @@... |
Compatibility with -c11 | @@ -259,8 +259,8 @@ M3Result m3_LinkFunction (IM3Module io_module, ccstr_t i_functionName, ccstr
{
M3Result result = c_m3Err_none;
- M3ArgPusher pushers [c_m3MaxNumFunctionArgs + 1] = {};
- u8 signature [1 /* return */ + c_m3MaxNumFunctionArgs + 2] = {};
+ M3ArgPusher pushers [c_m3MaxNumFunctionArgs + 1];
+ u8 signatur... |
python: fix segfaults | @@ -392,6 +392,8 @@ int PYTHON_PLUGIN_FUNCTION (Get) (ckdb::Plugin * handle, ckdb::KeySet * returned
#include ELEKTRA_README (PYTHON_PLUGIN_NAME)
keyNew (_MODULE_CONFIG_PATH "/infos/version", KEY_VALUE, PLUGINVERSION, KEY_END), KS_END));
ksDel (n);
+
+ return ELEKTRA_PLUGIN_STATUS_SUCCESS;
}
ElektraPluginProcess * pp =... |
Fix fuzz seed_corpora for test filename rename
Updates | bmp: test/data/*.bmp ../bmpsuite_corpus/*.bmp
cbor: test/data/*.cbor
-gif: test/data/*.gif test/data/artificial/*.gif
-gzip: test/data/*.gz test/data/artificial/*.gz
+gif: test/data/*.gif test/data/artificial-gif/*.gif
+gzip: test/data/*.gz
json: test/data/*.json ../rapidjson_corpus/* ../simdjson_corpus/* ../JSONTestSu... |
flow control delay | @@ -149,8 +149,11 @@ def _isotp_thread(panda, bus, tx_addr, tx_queue, rx_queue):
elif rx_data[0] >> 4 == 0x3:
# flow control
assert tx_frame["done"] == False, "tx: no active frame"
- # TODO: support non-zero block size and separate time
- assert rx_data[0] == 0x30 and rx_data[2] == 0x00, "tx: flow-control requires: con... |
py/runtime: Remove obsolete comment about mp_parse_compile_execute.
mp_locals_get/set and mp_globals_get/set are now static-inline functions so
this comment is no longer correct. | @@ -1407,7 +1407,6 @@ void mp_import_all(mp_obj_t module) {
#if MICROPY_ENABLE_COMPILER
-// this is implemented in this file so it can optimise access to locals/globals
mp_obj_t mp_parse_compile_execute(mp_lexer_t *lex, mp_parse_input_kind_t parse_input_kind, mp_obj_dict_t *globals, mp_obj_dict_t *locals) {
// save con... |
Enable a tofloat test | @@ -1055,15 +1055,12 @@ describe("Pallene coder /", function()
describe("tofloat builtin", function()
setup(compile([[
- --[=[
function itof(x:integer): float
return tofloat(x)
end
- --]=]
]]))
it("works", function()
- pending("todo (tofloat)")
run_test([[
local x_i = 1
local x_f = test.itof(x_i)
|
Mark lua_typename, lua_{get,set}metatable as unsafe
These function don't call back into haskell and can hence be marked
unsafe (i.e., the compiler is allowed to optimize these calls
aggressively). | @@ -141,7 +141,7 @@ foreign import ccall unsafe "lua.h lua_type"
lua_type :: LuaState -> CInt -> IO CInt
-- | See <https://www.lua.org/manual/5.3/manual.html#lua_typename lua_typename>
-foreign import ccall "lua.h lua_typename"
+foreign import ccall unsafe "lua.h lua_typename"
lua_typename :: LuaState -> CInt -> IO (Pt... |
brackets added. | @@ -305,9 +305,9 @@ infra_adjust(struct infra_cache* infra, struct config_file* cfg)
if(maxmem != slabhash_get_size(infra->hosts) ||
cfg->infra_cache_slabs != infra->hosts->size ||
cfg->ratelimit_slabs != infra->domain_rates->size ||
- cfg->ratelimit_size/cfg->ratelimit_slabs*cfg->ratelimit_slabs != slabhash_get_size(i... |
Update example/gifplayer for quirk rename | @@ -131,7 +131,7 @@ const char* read_stdin() {
const char* reset_color = "\x1B[0m";
bool color_flag = false;
-bool quirk_background_is_opaque_flag = false;
+bool quirk_honor_background_color_flag = false;
const int stdout_fd = 1;
static inline uint32_t load_u32le(uint8_t* p) {
@@ -298,9 +298,9 @@ const char* play() {
r... |
test/sslapitest.c: Add check for SSL_CTX_new
As the potential failure of the memory allocation, it should
be better to check the return value of SSL_CTX_new() and return
error if fails, like SSL_CTX_new_ex(). | @@ -8090,8 +8090,12 @@ static int test_cert_cb_int(int prot, int tst)
else
cert_cb_cnt = 0;
- if (tst == 2)
+ if (tst == 2) {
snictx = SSL_CTX_new(TLS_server_method());
+ if (!TEST_ptr(snictx))
+ goto end;
+ }
+
SSL_CTX_set_cert_cb(sctx, cert_cb, snictx);
if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clien... |
posix: posix_truncate() check for negative length
JIRA: | @@ -275,7 +275,7 @@ int posix_truncate(oid_t *oid, off_t length)
msg_t msg;
int err = -EINVAL;
- if (oid->port != US_PORT) {
+ if (oid->port != US_PORT && length >= 0) {
hal_memset(&msg, 0, sizeof(msg));
msg.type = mtTruncate;
hal_memcpy(&msg.i.io.oid, oid, sizeof(oid_t));
|
Make blit layers 1-indexed;
Annoying for 3D textures, but matches layer indices most elsewhere. | @@ -939,10 +939,10 @@ static int l_lovrPassBlit(lua_State* L) {
uint32_t srcOffset[4], dstOffset[4], srcExtent[3], dstExtent[3];
srcOffset[0] = luax_optu32(L, 4, 0);
srcOffset[1] = luax_optu32(L, 5, 0);
- srcOffset[2] = luax_optu32(L, 6, 0);
+ srcOffset[2] = luax_optu32(L, 6, 1) - 1;
dstOffset[0] = luax_optu32(L, 7, 0)... |
rm save directory mount failure fix;
This is a temporary revert to make a merge easier. | @@ -333,7 +333,6 @@ bool lovrFilesystemSetIdentity(const char* identity) {
// Mount the fully resolved save path
if (!lovrFilesystemMount(state.savePath, NULL, false, NULL)) {
- state.identity[0] = '\0';
return false;
}
|
pal: Fix function declaration error in PAL API Specification
The prototype declaration of pal_init() is wrong, this is a
copy-paste error, this patch fixes it. | @@ -4,7 +4,7 @@ Enclave Runtime PAL API defines a common interface to interact between `rune` an
## pal_init()
| **Description** | Initialize enclave runtime with specific attributes. |
| :-: | :- |
-| **Prototype** | struct pal_attr_t {<br/> const char \*args;<br/> const char \*log_level;<br/>};<br/>int pal_init(char ... |
CLASS status check now added | @@ -369,10 +369,19 @@ static void ccl_cosmology_compute_power_class(ccl_cosmology * cosmo, int * statu
//The 2D interpolation routines access the function values y_{k_ia_j} with the following ordering:
//y_ij = y2d[j*N_k + i]
//with i = 0,...,N_k-1 and j = 0,...,N_a-1.
- s = spectra_pk_at_k_and_z(&ba, &pm, &sp,x[i],1./... |
Bugfix for dereferencing issue with metadata parameters | @@ -286,8 +286,8 @@ def is_atomic_block(blckstmt):
def needs_defererencing(dst, src):
- if 'needs_dereferencing' in src.urtype and src.urtype.needs_dereferencing:
- return True
+ if 'needs_dereferencing' in src.urtype:
+ return src.urtype.needs_dereferencing
src_dst_differ = src.node_type != dst.node_type
complex_type ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.