message
stringlengths
6
474
diff
stringlengths
8
5.22k
update read function
@@ -308,7 +308,7 @@ shutdownTlsSession(transport_t *trans) // shutdown not complete, call again char buf[4096]; while(1) { - ret = SSL_read(trans->net.tls.ssl, buf, sizeof(buf)); + ret = SCOPE_SSL_read(trans->net.tls.ssl, buf, sizeof(buf)); if (ret <= 0) { break; }
acrn-config: add 2 UUIDs for post-launched Standard VM Add 2 UUIDs for post-launched Standard VM. Acked-by: Victor Sun Acked-by: Terry Zou
@@ -41,7 +41,8 @@ UUID_DB = { 'SOS_VM':'dbbbd434-7a57-4216-a12c-2201f1ab0240', 'SAFETY_VM':'fc836901-8685-4bc0-8b71-6e31dc36fa47', 'PRE_STD_VM':['26c5e0d8-8f8a-47d8-8109-f201ebd61a5e', 'dd87ce08-66f9-473d-bc58-7605837f935e'], - 'POST_STD_VM':['d2795438-25d6-11e8-864e-cb7a18b34643', '615db82a-e189-4b4f-8dbb-d321343e4ab3', '38158821-5208-4005-b72a-8a609e4190d0'], + 'POST_STD_VM':['d2795438-25d6-11e8-864e-cb7a18b34643', '615db82a-e189-4b4f-8dbb-d321343e4ab3', + '38158821-5208-4005-b72a-8a609e4190d0', 'a6750180-f87a-48d2-91d9-4e7f62b6519e', 'd1816e4a-a9bb-4cb4-a066-3f1a8a5ce73f'], 'POST_RT_VM':'495ae2e5-2603-4d64-af76-d4bc5a8ec0e5', 'KATA_VM':'a7ada506-1ab0-4b6b-a0da-e513ca9b8c2f', }
add deep and hdf OPs
https://iam-test.indigo-datacloud.eu/ https://iam-test.indigo-datacloud.eu/manage/dev/dynreg https://iam.deep-hybrid-datacloud.eu/ https://iam.deep-hybrid-datacloud.eu/manage/dev/dynreg [email protected] +https://iam.extreme-datacloud.eu/ https://iam.extreme-hybrid-datacloud.eu/manage/dev/dynreg [email protected] https://b2access.eudat.eu/oauth2/ https://b2access.eudat.eu/ https://b2access-integration.fz-juelich.de/oauth2 https://b2access-integration.fz-juelich.de/ https://unity.eudat-aai.fz-juelich.de/oauth2/ https://unity.eudat-aai.fz-juelich.de/ +https://unity.helmholtz-data-federation.de/oauth2/ https://unity.helmholtz-data-federation.de/ https://services.humanbrainproject.eu/oidc/ https://services.humanbrainproject.eu/oidc/manage/dev/dynreg [email protected] https://accounts.google.com/ https://console.developers.google.com/ https://aai.egi.eu/oidc/ [email protected] https://aai-dev.egi.eu/oidc https://aai-dev.egi.eu/oidc/manage/admin/client/new [email protected] https://login.elixir-czech.org/oidc/ https://login.elixir-czech.org/oidc/manage/dev/dynreg/new [email protected] https://oidc-kc.scc.kit.edu/auth/realms/kit/ [email protected] [email protected] + +
Default the python bindings to on
@@ -22,7 +22,7 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake) option(OPENEXR_BUILD_ILMBASE "Build IlmBase" ON) option(OPENEXR_BUILD_OPENEXR "Build OpenEXR" ON) -option(OPENEXR_BUILD_PYTHON_LIBS "Build the Python bindings" OFF) +option(OPENEXR_BUILD_PYTHON_LIBS "Build the Python bindings" ON) option(OPENEXR_BUILD_VIEWERS "Build the viewers" OFF) option(OPENEXR_BUILD_TESTS "Enable the tests" ON)
swaynag: remove unnecessary zero of swaynag struct Global variables are initialized to 0.
@@ -25,7 +25,6 @@ int main(int argc, char **argv) { list_t *types = create_list(); swaynag_types_add_default(types); - memset(&swaynag, 0, sizeof(swaynag)); swaynag.buttons = create_list(); wl_list_init(&swaynag.outputs); wl_list_init(&swaynag.seats);
actions: print JDK capabilities
@@ -78,7 +78,7 @@ jobs: which javac || true javac --version || true /usr/libexec/java_home --failfast || true - cat $JAVA_HOME/Contents/Info.plist + cat $JAVA_HOME/../Info.plist || true - name: Configure CMake # Use a bash shell so we can use the same syntax for environment variable
Typo: should check mgf1md
@@ -504,7 +504,7 @@ static int pkey_rsa_ctrl(EVP_PKEY_CTX *ctx, int type, int p1, void *p2) *(const EVP_MD **)p2 = rctx->md; } else { if (rsa_pss_restricted(rctx)) { - if (EVP_MD_type(rctx->md) == EVP_MD_type(p2)) + if (EVP_MD_type(rctx->mgf1md) == EVP_MD_type(p2)) return 1; RSAerr(RSA_F_PKEY_RSA_CTRL, RSA_R_MGF1_DIGEST_NOT_ALLOWED); return 0;
Dockerfile: do not upgrade pip/setuptools
@@ -101,9 +101,7 @@ RUN wget -nv https://github.com/renode/renode/releases/download/v${RENODE_VERSIO # Matplotlib is required for result visualization. # Keep the image size down by removing the pip cache when done. COPY files/rtd_requirements.txt /tmp -RUN python3 -m pip -q install --upgrade pip && \ - python3 -m pip -q install \ - setuptools \ +RUN python3 -m pip -q install \ matplotlib \ nrfutil && \ python3 -m pip -q install -r /tmp/rtd_requirements.txt && \
remove publish test, add clang config
@@ -38,7 +38,15 @@ jobs: Release: CC: gcc BuildType: release - cmakeExtraArgs: -DCMAKE_BUILD_TYPE=Debug + cmakeExtraArgs: -DCMAKE_BUILD_TYPE=Release + Debug Clang: + CC: clang + BuildType: debug-clang + cmakeExtraArgs: -DCMAKE_BUILD_TYPE=Debug -DMI_CHECK_FULL=ON + Release Clang: + CC: clang + BuildType: release-clang + cmakeExtraArgs: -DCMAKE_BUILD_TYPE=Release steps: - task: CMake@1 @@ -53,11 +61,6 @@ jobs: - upload: $(Build.SourcesDirectory)/$(BuildType) artifact: ubuntu-$(BuildType) - - task: PublishTestResults@2 - inputs: - testResultsFormat: cTest - testResultsFiles: '$(BuildType)/Testing/Temporary/LastTest.log' - - job: displayName: macOS pool:
options/ansi: reset error and eof flags on rewind
@@ -592,7 +592,7 @@ int setvbuf(FILE *file_base, char *buffer, int mode, size_t size) { void rewind(FILE *file_base) { auto file = static_cast<mlibc::abstract_file *>(file_base); file->seek(0, SEEK_SET); - // TODO: rewind() should also clear the error indicator. + file_base->__status_bits &= ~(__MLIBC_EOF_BIT | __MLIBC_ERROR_BIT); } int ungetc(int c, FILE *file_base) {
exclude non-tracked files in swig check
@@ -20,6 +20,8 @@ t1_swig_cwrap=`git log --pretty=format:%ct -n 1 ../pyccl/ccl_wrap.c` for hdr in `ls ../include/*.h ../class/include/*.h ../pyccl/*.i`; do last_commit=`git log --pretty=format:%ct -n 1 $hdr` + if [ ! -z "$last_commit" ]; + then if [ "$last_commit" -gt "$t1_swig_pylib" ] || [ "$last_commit" -gt "$t1_swig_cwrap" ]; then echo $msg1 @@ -28,6 +30,7 @@ do echo $swig_command exit 1 fi + fi done # If everything was up to date, tell the user
build: secrets optional
@@ -16,11 +16,11 @@ on: required: false secrets: CACHIX_AUTH_TOKEN: - required: true + required: false GCS_SERVICE_ACCOUNT_KEY: - required: true + required: false GCS_PROJECT: - required: true + required: false workflow_dispatch: inputs:
pbio/servo: conditionally reset integrator For ongoing maneuvers, we don't need to reset the integrator. We still need to pause+resume to ensure the state gets saved. This will save the integration state for the current maneuver, since it will continue integrating a different trajectory afterwards.
@@ -449,11 +449,18 @@ pbio_error_t pbio_servo_run(pbio_servo_t *srv, int32_t speed) { if (busy) { // If a maneuver is ongoing, we start from the current reference get_reference(time_start, &srv->control.trajectory, &count_start, &rate_start); + + // Pause and unpause the integrator. This saves the current state, so we can resume + // with the newly activated trajectory. + pbio_rate_integrator_pause(&srv->control.rate_integrator, time_start, count_now, count_start); + pbio_rate_integrator_resume(&srv->control.rate_integrator, time_start, count_now, count_start); } else { // Otherwise, start from the physical state count_start = count_now; rate_start = rate_now; + // Reset the integrator to a clean state + pbio_rate_integrator_reset(&srv->control.rate_integrator, time_start, count_now, count_start); } // Set new maneuver action and stop type @@ -473,9 +480,6 @@ pbio_error_t pbio_servo_run(pbio_servo_t *srv, int32_t speed) { return err; } - // Initialize or reset the PID control status for the given maneuver - pbio_rate_integrator_reset(&srv->control.rate_integrator, 0, srv->control.trajectory.th0, srv->control.trajectory.th0); - // Run is always in the background srv->state = PBIO_SERVO_STATE_TIME_BACKGROUND;
stm32/modmachine: Get machine.sleep working on F0 MCUs.
@@ -524,6 +524,20 @@ STATIC mp_obj_t machine_sleep(void) { // reconfigure the system clock after waking up + #if defined(STM32F0) + + // Enable HSI48 + __HAL_RCC_HSI48_ENABLE(); + while (!__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY)) { + } + + // Select HSI48 as system clock source + MODIFY_REG(RCC->CFGR, RCC_CFGR_SW, RCC_SYSCLKSOURCE_HSI48); + while (__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_CFGR_SWS_HSI48) { + } + + #else + // enable HSE __HAL_RCC_HSE_CONFIG(MICROPY_HW_CLK_HSE_STATE); while (!__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY)) { @@ -545,6 +559,8 @@ STATIC mp_obj_t machine_sleep(void) { #endif + #endif + return mp_const_none; } MP_DEFINE_CONST_FUN_OBJ_0(machine_sleep_obj, machine_sleep);
term: bump on-return spinner delay from 0 to 100ms Not drawing the spinner when the command gets processed nearly instantly makes things feel slightly better.
@@ -1023,6 +1023,7 @@ _term_spin_timer_cb(uv_timer_t* tim_u) _term_spin_step(uty_u); } +#define _SPIN_FAST_US 100UL // spinner activation delay when expected #define _SPIN_COOL_US 500UL // spinner activation delay when cool #define _SPIN_WARM_US 50UL // spinner activation delay when warm #define _SPIN_RATE_US 250UL // spinner rate (ms/frame) @@ -1047,7 +1048,7 @@ u3_term_start_spinner(u3_atom say, c3_o del_o) { c3_d now_d = _term_msc_out_host(); c3_d end_d = tat_u->sun_u.end_d; - c3_d wen_d = (c3n == del_o) ? 0UL : + c3_d wen_d = (c3n == del_o) ? _SPIN_FAST_US : (now_d - end_d < _SPIN_IDLE_US) ? _SPIN_WARM_US : _SPIN_COOL_US;
npm start runs parcel in parallel
"description": "My Electron application description", "main": "dist/index.js", "scripts": { - "start": "electron-forge start", + "start": "run-p parcel:watch start:electron", + "start:electron": "electron-forge start", "package": "electron-forge package", "make:electron": "electron-forge make", "make": "run-s parcel make:electron",
bond: cli rename rename "enslave interface <slave> to <BondEthernetx>" to "bond add <BondEthernetx> <slave> "detach interface <slave>" to "bond del <slave>"
@@ -505,12 +505,10 @@ enslave_interface_command_fn (vlib_main_t * vm, unformat_input_t * input, args.group = ~0; while (unformat_check_input (line_input) != UNFORMAT_END_OF_INPUT) { - if (unformat (line_input, "interface %U", + if (unformat (line_input, "%U %U", + unformat_vnet_sw_interface, vnm, &args.group, unformat_vnet_sw_interface, vnm, &args.slave)) ; - else if (unformat (line_input, "to %U", unformat_vnet_sw_interface, vnm, - &args.group)) - ; else if (unformat (line_input, "passive")) args.is_passive = 1; else if (unformat (line_input, "long-timeout")) @@ -529,7 +527,7 @@ enslave_interface_command_fn (vlib_main_t * vm, unformat_input_t * input, if (args.group == ~0) return clib_error_return (0, "Missing bond interface"); if (args.slave == ~0) - return clib_error_return (0, "please specify valid interface name"); + return clib_error_return (0, "please specify valid slave interface name"); bond_enslave (vm, &args); @@ -538,8 +536,9 @@ enslave_interface_command_fn (vlib_main_t * vm, unformat_input_t * input, /* *INDENT-OFF* */ VLIB_CLI_COMMAND (enslave_interface_command, static) = { - .path = "enslave", - .short_help = "enslave interface <interface> to <BondEthernetx> [passive] [long-timeout]", + .path = "bond add", + .short_help = "bond add <BondEthernetx> <slave-interface> " + "[passive] [long-timeout]", .function = enslave_interface_command_fn, }; /* *INDENT-ON* */ @@ -576,7 +575,7 @@ detach_interface_command_fn (vlib_main_t * vm, unformat_input_t * input, args.slave = ~0; while (unformat_check_input (line_input) != UNFORMAT_END_OF_INPUT) { - if (unformat (line_input, "interface %U", + if (unformat (line_input, "%U", unformat_vnet_sw_interface, vnm, &args.slave)) ; else @@ -591,7 +590,7 @@ detach_interface_command_fn (vlib_main_t * vm, unformat_input_t * input, if (args.error) return args.error; if (args.slave == ~0) - return clib_error_return (0, "please specify valid interface name"); + return clib_error_return (0, "please specify valid slave interface name"); bond_detach_slave (vm, &args); @@ -600,8 +599,8 @@ detach_interface_command_fn (vlib_main_t * vm, unformat_input_t * input, /* *INDENT-OFF* */ VLIB_CLI_COMMAND (detach_interface_command, static) = { - .path = "detach", - .short_help = "detach interface <interface>", + .path = "bond del", + .short_help = "bond del <slave-interface>", .function = detach_interface_command_fn, }; /* *INDENT-ON* */
change streamAppendItem to use raxEOF instead of raxNext The call to raxNext didn't really progress in the rax, since we were already on the last item. instead, all it does is check that it is indeed a valid item, so the new code clearer.
@@ -458,8 +458,8 @@ int streamAppendItem(stream *s, robj **argv, int64_t numfields, streamID *added_ size_t lp_bytes = 0; /* Total bytes in the tail listpack. */ unsigned char *lp = NULL; /* Tail listpack pointer. */ + if (!raxEOF(&ri)) { /* Get a reference to the tail node listpack. */ - if (raxNext(&ri)) { lp = ri.data; lp_bytes = lpBytes(lp); }
fix pinout ptp
@@ -147,8 +147,8 @@ void EXTI4_15_IRQHandler(void) /* USER CODE BEGIN EXTI4_15_IRQn 0 */ /* USER CODE END EXTI4_15_IRQn 0 */ - HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_11); - HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_12); + HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_8); + HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_13); /* USER CODE BEGIN EXTI4_15_IRQn 1 */ /* USER CODE END EXTI4_15_IRQn 1 */
Enable xGEMMT functions
#define INCLUDE_CTGSYL INCLUDE_XTGSYL #define INCLUDE_ZTGSYL INCLUDE_XTGSYL -#define INCLUDE_XGEMMT 0 +#define INCLUDE_XGEMMT 1 #define INCLUDE_SGEMMT INCLUDE_XGEMMT #define INCLUDE_DGEMMT INCLUDE_XGEMMT #define INCLUDE_CGEMMT INCLUDE_XGEMMT
test:add state check for certificate and verify
@@ -11206,6 +11206,8 @@ run_test "TLS 1.3: Server side check - openssl" \ -s "tls13 server state: MBEDTLS_SSL_SERVER_HELLO" \ -s "tls13 server state: MBEDTLS_SSL_ENCRYPTED_EXTENSIONS" \ -s "tls13 server state: MBEDTLS_SSL_SERVER_CERTIFICATE" \ + -s "tls13 server state: MBEDTLS_SSL_CERTIFICATE_VERIFY" \ + -s "tls13 server state: MBEDTLS_SSL_SERVER_FINISHED" \ -s "SSL - The requested feature is not available" \ -s "=> parse client hello" \ -s "<= parse client hello" @@ -11241,6 +11243,8 @@ run_test "TLS 1.3: Server side check - gnutls" \ -s "tls13 server state: MBEDTLS_SSL_SERVER_HELLO" \ -s "tls13 server state: MBEDTLS_SSL_ENCRYPTED_EXTENSIONS" \ -s "tls13 server state: MBEDTLS_SSL_SERVER_CERTIFICATE" \ + -s "tls13 server state: MBEDTLS_SSL_CERTIFICATE_VERIFY" \ + -s "tls13 server state: MBEDTLS_SSL_SERVER_FINISHED" \ -s "SSL - The requested feature is not available" \ -s "=> parse client hello" \ -s "<= parse client hello" @@ -11294,6 +11298,8 @@ run_test "TLS 1.3: Server side check - mbedtls with client authentication" \ -s "tls13 server state: MBEDTLS_SSL_SERVER_HELLO" \ -s "tls13 server state: MBEDTLS_SSL_ENCRYPTED_EXTENSIONS" \ -s "tls13 server state: MBEDTLS_SSL_SERVER_CERTIFICATE" \ + -s "tls13 server state: MBEDTLS_SSL_CERTIFICATE_VERIFY" \ + -s "tls13 server state: MBEDTLS_SSL_SERVER_FINISHED" \ -c "client state: MBEDTLS_SSL_CERTIFICATE_REQUEST" \ -s "SSL - The requested feature is not available" \ -s "=> parse client hello" \
fix inherate will overwrite cls table
@@ -66,7 +66,7 @@ end local function inherite(cls,base) for k,v in pairs(getmetatable(base)) do - if k:sub(1,2)~='__' and k:sub(1,1)>='A' and k:sub(1,1)<='Z' then + if not cls[k] and k:sub(1,2)~='__' and k:sub(1,1)>='A' and k:sub(1,1)<='Z' then cls[k]=v end end
HLS Search: Prettify formatting and print results
@@ -482,10 +482,14 @@ int main(int argc, char *argv[]) printf(" >>> Searching : run n %d \n", run); printf("***************************************************\n"); printf("Start Step3 (Do Search by hardware, in DDR) .......\n"); - if (method == 1) printf(" >>>>>>>>>> Naive method (%d) \n", method); - else if (method == 2) printf(" >>>>>>>>>> KMP method (%d) \n", method); - else if (method == 0) printf(" >>>>>>>>>> Streaming method (%d) \n", method); - else printf(" >>>>>>>>>> Naive method (%d) \n", method); + if (method == 1) + printf(" >>>>>>>>>> Naive method (%d) \n", method); + else if (method == 2) + printf(" >>>>>>>>>> KMP method (%d) \n", method); + else if (method == 0) + printf(" >>>>>>>>>> Streaming method (%d) \n", method); + else + printf(" >>>>>>>>>> Naive method (%d) \n", method); printf("***************************************************\n"); step = 3; @@ -506,6 +510,11 @@ int main(int argc, char *argv[]) fprintf(stderr, "err: job retc %x!\n", cjob.retc); goto out_error3; } + + printf("nb of occurrences = %d \n", (int)sjob_in.nb_of_occurrences); + printf("nb of occurrences = %d \n", (int)sjob_out.nb_of_occurrences); + total_found += sjob_out.nb_of_occurrences; + printf("****************************************************\n"); printf("Start Step5 (Copy pattern positions back to Host) ..\n"); printf("......no positions yet to transfer .............. ..\n"); @@ -517,6 +526,8 @@ int main(int argc, char *argv[]) offs, items, pbuff, psize, method, step); printf("dsize = %d - psize = %d \n", (int)dsize, (int)psize); */ + snap_print_search_results(&cjob, run); + /* trigger repeat if search was not complete */ sjob_in.nb_of_occurrences = sjob_out.nb_of_occurrences; sjob_in.next_input_addr = sjob_out.next_input_addr; @@ -531,7 +542,6 @@ int main(int argc, char *argv[]) sjob_in.src_text1.addr = (unsigned long)input_addr; sjob_in.src_text1.size = input_size; } - total_found += sjob_out.nb_of_occurrences; run++;
changes in uart_console to avoid filling buffer when UART is suspended
@@ -90,7 +90,8 @@ uart_console_queue_char(struct uart_dev *uart_dev, uint8_t ch) { int sr; - if ((uart_dev->ud_dev.od_flags & OS_DEV_F_STATUS_OPEN) == 0) { + if (((uart_dev->ud_dev.od_flags & OS_DEV_F_STATUS_OPEN) == 0) || + ((uart_dev->ud_dev.od_flags & OS_DEV_F_STATUS_SUSPENDED) != 0)) { return; }
seccomp: Add owner reference information to the profile annotations
@@ -33,6 +33,7 @@ import ( gadgetv1alpha1 "github.com/kinvolk/inspektor-gadget/pkg/apis/gadget/v1alpha1" "github.com/kinvolk/inspektor-gadget/pkg/gadgets" seccomptracer "github.com/kinvolk/inspektor-gadget/pkg/gadgets/seccomp/tracer" + pb "github.com/kinvolk/inspektor-gadget/pkg/gadgettracermanager/api" "github.com/kinvolk/inspektor-gadget/pkg/gadgettracermanager/pubsub" ) @@ -173,12 +174,19 @@ func seccompProfileAddLabelsAndAnnotations( trace *gadgetv1alpha1.Trace, podName string, containerName string, + ownerReference *pb.OwnerReference, ) { traceName := fmt.Sprintf("%s/%s", trace.ObjectMeta.Namespace, trace.ObjectMeta.Name) r.ObjectMeta.Annotations["seccomp.gadget.kinvolk.io/trace"] = traceName r.ObjectMeta.Annotations["seccomp.gadget.kinvolk.io/node"] = trace.Spec.Node r.ObjectMeta.Annotations["seccomp.gadget.kinvolk.io/pod"] = podName r.ObjectMeta.Annotations["seccomp.gadget.kinvolk.io/container"] = containerName + if ownerReference != nil { + r.ObjectMeta.Annotations["seccomp.gadget.kinvolk.io/ownerReference-ApiVersion"] = ownerReference.Apiversion + r.ObjectMeta.Annotations["seccomp.gadget.kinvolk.io/ownerReference-Kind"] = ownerReference.Kind + r.ObjectMeta.Annotations["seccomp.gadget.kinvolk.io/ownerReference-Name"] = ownerReference.Name + r.ObjectMeta.Annotations["seccomp.gadget.kinvolk.io/ownerReference-UID"] = ownerReference.Uid + } // Copy labels from the trace into the SeccompProfile. This will allow // the CLI to add a label on the trace and gather its output @@ -321,7 +329,8 @@ func (t *Trace) containerTerminated(trace *gadgetv1alpha1.Trace, event pubsub.Pu r := syscallArrToSeccompPolicy(profileName, b) podName := fmt.Sprintf("%s/%s", event.Container.Namespace, event.Container.Podname) - seccompProfileAddLabelsAndAnnotations(r, trace, podName, event.Container.Name) + seccompProfileAddLabelsAndAnnotations(r, trace, podName, + event.Container.Name, event.Container.OwnerReference) switch trace.Spec.OutputMode { case "ExternalResource": @@ -502,7 +511,8 @@ func (t *Trace) Generate(trace *gadgetv1alpha1.Trace) { r := syscallArrToSeccompPolicy(profileName, b) podName := fmt.Sprintf("%s/%s", trace.Spec.Filter.Namespace, trace.Spec.Filter.Podname) - seccompProfileAddLabelsAndAnnotations(r, trace, podName, containerName) + ownerReference := t.resolver.LookupOwnerReferenceByMntns(mntns) + seccompProfileAddLabelsAndAnnotations(r, trace, podName, containerName, ownerReference) err = t.client.Create(context.TODO(), r) if err != nil {
VERSION bump to version 0.12.20
@@ -32,7 +32,7 @@ set(CMAKE_C_FLAGS_DEBUG "-g -O0") # set version set(LIBNETCONF2_MAJOR_VERSION 0) set(LIBNETCONF2_MINOR_VERSION 12) -set(LIBNETCONF2_MICRO_VERSION 19) +set(LIBNETCONF2_MICRO_VERSION 20) set(LIBNETCONF2_VERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION}.${LIBNETCONF2_MICRO_VERSION}) set(LIBNETCONF2_SOVERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION})
configure: build list of image files
@@ -1956,6 +1956,7 @@ if ($builder eq "unified") { my %defines = (); my %depends = (); my %generate = (); + my %imagedocs = (); my %htmldocs = (); my %mandocs = (); @@ -2169,6 +2170,11 @@ if ($builder eq "unified") { \$attributes{scripts}, $+{ATTRIBS}, tokenize($expand_variables->($+{VALUE}))) if !@skip || $skip[$#skip] > 0; }, + qr/^\s* IMAGEDOCS ${index_re} = ${value_re} $/x + => sub { $push_to->(\%imagedocs, $expand_variables->($+{INDEX}), + undef, undef, + tokenize($expand_variables->($+{VALUE}))) + if !@skip || $skip[$#skip] > 0; }, qr/^\s* HTMLDOCS ${index_re} = ${value_re} $/x => sub { $push_to->(\%htmldocs, $expand_variables->($+{INDEX}), undef, undef, @@ -2463,6 +2469,13 @@ EOF } } + foreach my $section (keys %imagedocs) { + foreach (@{$imagedocs{$section}}) { + my $imagedocs = cleanfile($buildd, $_, $blddir); + $unified_info{imagedocs}->{$section}->{$imagedocs} = 1; + } + } + foreach my $section (keys %htmldocs) { foreach (@{$htmldocs{$section}}) { my $htmldocs = cleanfile($buildd, $_, $blddir); @@ -2704,7 +2717,7 @@ EOF } # Two level structures foreach my $l1 (("sources", "shared_sources", "ldadd", "depends", - "htmldocs", "mandocs")) { + "imagedocs", "htmldocs", "mandocs")) { foreach my $l2 (sort keys %{$unified_info{$l1}}) { my @items = sort @@ -2751,7 +2764,9 @@ EOF "dso" => [ @{$unified_info{modules}} ], "bin" => [ @{$unified_info{programs}} ], "script" => [ @{$unified_info{scripts}} ], - "docs" => [ (map { @{$unified_info{htmldocs}->{$_} // []} } + "docs" => [ (map { @{$unified_info{imagedocs}->{$_} // []} } + keys %{$unified_info{imagedocs} // {}}), + (map { @{$unified_info{htmldocs}->{$_} // []} } keys %{$unified_info{htmldocs} // {}}), (map { @{$unified_info{mandocs}->{$_} // []} } keys %{$unified_info{mandocs} // {}}) ] );
Downgrade SQL printout from INFO to TRACE
@@ -676,7 +676,7 @@ namespace ARIASDK_NS_BEGIN { } int64_t startTime = PAL::getMonotonicTimeMs(); - LOG_INFO("=== [%p] execute2 step...", m_stmt); + LOG_TRACE("=== [%p] execute2 step...", m_stmt); int result = g_sqlite3Proxy->sqlite3_step(m_stmt); m_duration = static_cast<unsigned>(PAL::getMonotonicTimeMs() - startTime);
exception for custom metrics on GPU
@@ -1624,6 +1624,8 @@ cdef class _PreprocessParams: params_to_json = params if is_custom_objective or is_custom_eval_metric: + if params.get("task_type") == "GPU": + raise CatBoostError("User defined loss functions and metrics are not supported for GPU") keys_to_replace = set() if is_custom_objective: keys_to_replace.add("loss_function")
Fix crash on suggestions
@@ -184,16 +184,20 @@ class EditorViewController: UIViewController, SyntaxTextViewDelegate, InputAssis func textViewDidChangeSelection(_ textView: UITextView) { if textView.isFirstResponder { - inputAssistant.reloadData() + updateSuggestions() } return self.textView.textViewDidChangeSelection(textView) } func textViewDidChange(_ textView: UITextView) { - inputAssistant.reloadData() + updateSuggestions() return self.textView.textViewDidChange(textView) } + func textViewDidBeginEditing(_ textView: UITextView) { + updateSuggestions() + } + // MARK: - Suggestions /// All supported suggestions. @@ -213,9 +217,14 @@ class EditorViewController: UIViewController, SyntaxTextViewDelegate, InputAssis } /// Returns suggestions for current word. - var suggestions: [String] { + var suggestions = [String]() + + /// Updates suggestions. + func updateSuggestions() { + guard let selectedWord = textView.contentTextView.currentWord, !selectedWord.isEmpty else { - return EditorViewController.suggestions + self.suggestions = [] + return inputAssistant.reloadData() } var suggestions = EditorViewController.suggestions @@ -230,7 +239,8 @@ class EditorViewController: UIViewController, SyntaxTextViewDelegate, InputAssis } checkForSuggestions() - return suggestions + self.suggestions = suggestions + inputAssistant.reloadData() } // MARK: - Syntax text view delegate
Set a default command timeout
@@ -879,8 +879,7 @@ public class Program : BackgroundService connectionString.Append($"SSL Password={pgConfig.TlsPassword};"); } - if(pgConfig.CommandTimeout.HasValue) - connectionString.Append($"CommandTimeout={pgConfig.CommandTimeout.Value};"); + connectionString.Append($"CommandTimeout={pgConfig.CommandTimeout ?? 120};"); // register connection factory builder.RegisterInstance(new PgConnectionFactory(connectionString.ToString()))
[core] temporarily disable O_NOFOLLOW on Cygwin broken in current cygwin; fixed in cygwin test x-ref:
@@ -171,6 +171,10 @@ int fdevent_dup_cloexec (int fd) { #endif int fdevent_open_cloexec(const char *pathname, int symlinks, int flags, mode_t mode) { +#ifdef __CYGWIN__ /* broken in current cygwin; fixed in cygwin test */ +#undef O_NOFOLLOW +#define O_NOFOLLOW 0 +#endif if (!symlinks) flags |= O_NOFOLLOW; #ifdef O_CLOEXEC return open(pathname, flags | O_CLOEXEC | FDEVENT_O_FLAGS, mode);
groups: trim ship string on preSig
@@ -234,11 +234,11 @@ export function preSig(ship: string): string { return ''; } - if (ship.startsWith('~')) { - return ship; + if (ship.trim().startsWith('~')) { + return ship.trim(); } - return '~'.concat(ship); + return '~'.concat(ship.trim()); } export function uxToHex(ux: string) {
Fix Lua compile warning Apparently, GCC 11.2.0 has a new fancy warning for misleading indentations. It prints a warning when BRET(b) is on the same line as the loop.
@@ -98,7 +98,8 @@ static int bit_bnot(lua_State *L) { BRET(~barg(L, 1)) } #define BIT_OP(func, opr) \ static int func(lua_State *L) { int i; UBits b = barg(L, 1); \ - for (i = lua_gettop(L); i > 1; i--) b opr barg(L, i); BRET(b) } + for (i = lua_gettop(L); i > 1; i--) b opr barg(L, i); \ + BRET(b) } BIT_OP(bit_band, &=) BIT_OP(bit_bor, |=) BIT_OP(bit_bxor, ^=)
Changelog note for PR Merge from akhait: has been revoked. It removes the from the default list in unbound-anchor, now that the revocation period is over. is the only trust anchor in the shipped default now.
+21 April 2020: Wouter + - Merge #225 from akhait: KSK-2010 has been revoked. It removes the + KSK-2010 from the default list in unbound-anchor, now that the + revocation period is over. KSK-2017 is the only trust anchor in + the shipped default now. + 21 April 2020: George - Change default value for 'rrset-roundrobin' to yes.
Release: Add info about fixed minimal config
@@ -93,6 +93,7 @@ These notes are of interest for people developing Elektra: Many problems were resolved with the following fixes: - [YAML CPP](http://libelektra.org/plugins/yamlcpp) now also saves key values directly below a mountpoint correctly. +- If you use a minimal configuration ([`dump`](http://libelektra.org/plugins/dump) and [`resolver`](https://www.libelektra.org/plugins/resolver) only), all test of the test suite now finish successfully again. ## Outlook
cc2500: support having USE_CC2500_PA_LNA without CC2500_LNA_EN_PIN
@@ -23,8 +23,11 @@ static void cc2500_hardware_init() { #if defined(USE_CC2500_PA_LNA) // turn antenna on + +#if defined(CC2500_LNA_EN_PIN) gpio_pin_init(&gpio_init, CC2500_LNA_EN_PIN); gpio_pin_set(CC2500_LNA_EN_PIN); +#endif // turn tx off gpio_pin_init(&gpio_init, CC2500_TX_EN_PIN); @@ -180,14 +183,22 @@ void cc2500_switch_antenna() { void cc2500_enter_rxmode() { #if defined(USE_CC2500_PA_LNA) + +#if defined(CC2500_LNA_EN_PIN) gpio_pin_set(CC2500_LNA_EN_PIN); +#endif + gpio_pin_reset(CC2500_TX_EN_PIN); #endif } void cc2500_enter_txmode() { #if defined(USE_CC2500_PA_LNA) + +#if defined(CC2500_LNA_EN_PIN) gpio_pin_reset(CC2500_LNA_EN_PIN); +#endif + gpio_pin_set(CC2500_TX_EN_PIN); #endif }
Correct line ending in man page.
@@ -204,7 +204,7 @@ A power\-user interface that lets you specify an unbound config file, see \fIunbound.conf\fR(5), which is read for configuration. Not all options are relevant. For some specific options, such as adding trust anchors, special routines exist. This function is thread\-safe only if a single instance of -ub_ctx* exists in the application, If several instances exist the +ub_ctx* exists in the application. If several instances exist the application has to ensure that ub_ctx_config is not called in parallel by the different instances. .TP
another fix for copy()
@@ -143,7 +143,7 @@ foreach my $distro (@distros) { # add .repo file(s) print "Adding [base] repofile contents\n"; - File::copy("repo.base.in","$tmp_dir/$distro/OpenHPC.local.repo") || die "Unable to copy repo.base.in\n"; + File::Copy::copy("repo.base.in","$tmp_dir/$distro/OpenHPC.local.repo") || die "Unable to copy repo.base.in\n"; if($micro) { print "Adding [update] repofile contents\n"; open (BASE, ">>","$tmp_dir/$distro/OpenHPC.local.repo") || die "Unable to append to repo file\n";
u3: fixes memory leak introduced in +murn jet
@@ -29,8 +29,9 @@ u3qb_murn(u3_noun a, u3_noun b) if ( u3_nul != res ) { *lit = u3i_defcons(&hed, &tel); - *hed = u3t(res); + *hed = u3k(u3t(res)); lit = tel; + u3z(res); } } while ( u3_nul != t );
Implement a mechanism to erase cached definitions/tables
@@ -811,6 +811,7 @@ void grib_context_reset(grib_context* c) grib_context_free(c, cur->value); grib_context_free(c, cur); } + c->grib_definition_files_dir=0; } if (c->multi_support_on) @@ -831,6 +832,7 @@ void grib_context_reset(grib_context* c) void grib_context_delete(grib_context* c) { + size_t i = 0; if (!c) c = grib_context_get_default(); @@ -838,8 +840,19 @@ void grib_context_delete(grib_context* c) /* grib_trie_delete(c->def_files); TODO:masn */ grib_context_reset(c); + if (c != &default_grib_context) grib_context_free_persistent(&default_grib_context, c); + + for(i=0; i<MAX_NUM_HASH_ARRAY; ++i) + c->hash_array[i] = NULL; + c->hash_array_count = 0; + grib_itrie_delete(c->hash_array_index); + c->hash_array_index=0; + grib_trie_delete(c->expanded_descriptors); + c->expanded_descriptors=0; + + c->inited = 0; } void codes_bufr_multi_element_constant_arrays_on(grib_context* c)
mpi-families/openmpi: bump version to v3.1.0
@@ -34,12 +34,12 @@ Summary: A powerful implementation of MPI Name: %{pname}%{RMS_DELIM}-%{compiler_family}%{PROJ_DELIM} -Version: 3.0.1 +Version: 3.1.0 Release: 1%{?dist} License: BSD-3-Clause Group: %{PROJ_NAME}/mpi-families URL: http://www.open-mpi.org -Source0: http://www.open-mpi.org/software/ompi/v3.0/downloads/openmpi-%{version}.tar.bz2 +Source0: http://www.open-mpi.org/software/ompi/v3.1/downloads/openmpi-%{version}.tar.bz2 Source1: OHPC_macros Source3: pbs-config Patch0: openmpi-3.0-pbs-config.patch
Support devices with sectors less than 256 bytes If a device's sector is smaller than 256 bytes then set the minimum programming size to the sector size rather than asserting.
@@ -172,7 +172,9 @@ static error_t target_flash_erase_chip(void) static uint32_t target_flash_program_page_min_size(uint32_t addr) { uint32_t size = 256; - util_assert(target_device.sector_size >= size); + if (size > target_device.sector_size) { + size = target_device.sector_size; + } return size; }
Add much more strict ncurses timeout (temp)
@@ -942,7 +942,7 @@ void ged_do_stuff(Ged* a) { do_play = true; break; } - if (secs_span - sdiff > ms_to_sec(2.0)) + if (secs_span - sdiff > ms_to_sec(0.5)) break; } if (do_play) { @@ -1885,12 +1885,18 @@ int main(int argc, char** argv) { new_timeout = 0; } else if (secs_to_d < ms_to_sec(2.0)) { new_timeout = 0; - } else if (secs_to_d < ms_to_sec(10.0)) { - new_timeout = 2; + } else if (secs_to_d < ms_to_sec(7.0)) { + new_timeout = 0; + } else if (secs_to_d < ms_to_sec(15.0)) { + new_timeout = 0; + } else if (secs_to_d < ms_to_sec(25.0)) { + new_timeout = 1; } else if (secs_to_d < ms_to_sec(50.0)) { - new_timeout = 15; - } else { new_timeout = 20; + } else if (secs_to_d < ms_to_sec(100.0)) { + new_timeout = 40; + } else { + new_timeout = 50; } if (new_timeout != cur_timeout) { wtimeout(stdscr, new_timeout);
Prototype enum flags for update marks.
@@ -118,6 +118,19 @@ movement restirctions are here! #define DEFAULT_ATK_DROPV_X 1.2 #define DEFAULT_ATK_DROPV_Z 0 +// Caskey, Damon V. +// 2019-01-25 +// +// Flags for flags used to time update functions. +typedef enum +{ + UPDATE_MARK_NONE = 0, + UPDATE_MARK_UPDATE_ANIMATION = 1, + UPDATE_MARK_CHECK_AI = 2, + UPDATE_MARK_CHECK_MOVE = 4, + UPDATE_MARK_CHECK_GRAVITY = 8 +} e_update_mark; + // PLAY/REC INPUT vars typedef struct InputKeys {
Remove boomerang enumerator.
@@ -2471,19 +2471,6 @@ static const char *eplist_aiflag[] = "walkmode", }; -enum boomerang_enum -{ - _ep_boomerang_acceleration, - _ep_boomerang_hdistance, - _ep_boomerang_the_end, -}; - -static const char *eplist_boomerang[] = -{ - "acceleration", - "hdistance", -}; - enum edgerange_enum { _ep_edgerange_x,
Fix array access issue
@@ -802,7 +802,7 @@ static int encode_double_array(grib_context* c,grib_buffer* buff,long* pos, bufr } ii=0; - while (*v==GRIB_MISSING_DOUBLE && ii<nvals) { + while (ii<nvals && *v==GRIB_MISSING_DOUBLE) { thereIsAMissing=1; v++; ii++;
Increase unit test timeout from 90s to 300s (for tests with parameters).
@@ -307,7 +307,7 @@ foreach c, tests : components env: t_env, is_parallel: t_is_parallel, suite: t_suites, - timeout: 90, + timeout: 300, ) endforeach else
Fix Console commands not working
@@ -91,15 +91,15 @@ void Console::OnUpdate() const auto consoleLogger = spdlog::get("scripting"); consoleLogger->info("> {}", m_command); + if (!m_vm.ExecuteLua(m_command)) + consoleLogger->info("Command failed to execute!"); + m_historyIndex = m_history.size(); auto& history = m_history.emplace_back(); history.swap(m_command); m_command.resize(255); m_newHistory = true; - if (!m_vm.ExecuteLua(m_command)) - consoleLogger->info("Command failed to execute!"); - ImGui::SetKeyboardFocusHere(-1); // Auto focus previous widget } }
system/trace: fix the irq print compatibility with systrace
@@ -592,8 +592,8 @@ static int trace_dump_one(FAR FILE *out, nih = (FAR struct note_irqhandler_s *)p; trace_dump_header(out, note, ctx); - fprintf(out, "irq_handler_entry: irq=%u\n", - nih->nih_irq); + fprintf(out, "irq_handler_entry: irq=%u name=%d\n", + nih->nih_irq, nih->nih_irq); cctx->intr_nest++; } break; @@ -604,7 +604,7 @@ static int trace_dump_one(FAR FILE *out, nih = (FAR struct note_irqhandler_s *)p; trace_dump_header(out, note, ctx); - fprintf(out, "irq_handler_exit: irq=%u\n", + fprintf(out, "irq_handler_exit: irq=%u ret=handled\n", nih->nih_irq); cctx->intr_nest--;
Fix explode operator crash on Windows. Initialize planeDist. It was being used uninitialized and caused the crash.
@@ -2236,7 +2236,7 @@ PlaneExplosion::CalcDisplacement(double *dataCenter, double expFactor, // on the plane. If it does, use a new data point that // isn't the cell center but still should be in the cell. // - double planeDist; + double planeDist = 0.0; for (int i = 0; i < 3; ++i) { planeDist += (dataPt[i] - planePoint[i]) * planeNorm[i];
hoon: comment and syn mod for +slab
=+ gun=(~(mint ut typ) %noun gen) [p.gun (slum q.gat q.sam)] :: +:: +slab states whether you can access an arm in a type +:: for reading, writing, or reading-and-writing. +:: ++ slab :: test if contains - |= {cog/@tas way/?(%read %rite %both) typ/type} + |= [way=?(%read %rite %both) cog=@tas typ=type] ?= [%| *] (~(find ut typ) way ~[cog]) ::
process: add release note
@@ -54,8 +54,8 @@ The following section lists news about the [modules](https://www.libelektra.org/ ### Process -- There is also a new plugin called [process](https://github.com/ElektraInitiative/libelektra/tree/master/src/plugins/process). - This plugin utilizes the pluginprocess library in order to execute arbitrary other +- There is a new plugin called [process](https://master.libelektra.org/src/plugins/process). + This plugin utilizes the pluginprocess library in order to execute other plugins in an own process, acting as a proxy itself. Therefore it is not required to explicitly change a plugin's implementation if it shall be executed in an own process. *(Armin Wurzinger)*
acrn-config: fix the issue some select boxes disappear after edited fix the issue: some select boxes disappear unexpectly after edited
@@ -300,6 +300,8 @@ $().ready(function(){ }) $(document).on('click', "button:contains('+')", function() { + if($(this).text() != '+') + return; var add_vcpu_id = $(this).attr('id'); var id = add_vcpu_id.replace('add_vcpu_', ''); var config_item = $(this).parent().parent(); @@ -315,6 +317,8 @@ $().ready(function(){ }); $(document).on('click', "button:contains('-')", function() { + if($(this).text() != '-') + return; var config_item = $(this).parent().parent(); config_item.remove(); });
doc: update gpio api guide reference on c3
@@ -18,6 +18,13 @@ Overview - Note that GPIO26-32 are usually used for SPI flash. - GPIO46 is fixed to pull-down and is input only +.. only:: esp32c3 + + The {IDF_TARGET_NAME} chip features 22 physical GPIO pads. Some GPIO pads cannot be used or do not have the corresponding pin on the chip package. For more details, see *{IDF_TARGET_NAME} Technical Reference Manual* > *IO MUX and GPIO Matrix (GPIO, IO_MUX)* [`PDF <{IDF_TARGET_TRM_EN_URL}#iomuxgpio>`__]. Each pad can be used as a general purpose I/O or can be connected to an internal peripheral signal. + + - Note that GPIO12-17 are usually used for SPI flash. + - Note that GPIO 18 and 19 are used by USB-JTAG by default. In order to use them as GPIOs, USB-JTAG will be disabled by the drivers. + - {IDF_TARGET_NAME} doesn't have separate "RTC GPIO" support. However, GPIO0-5 keep the rtc feature, which can be used for power-management and analog subsystem. .. only:: SOC_RTCIO_INPUT_OUTPUT_SUPPORTED
common/mat33.c: Format with clang-format BRANCH=none TEST=none
@@ -59,8 +59,7 @@ void mat33_fp_swap_rows(mat33_fp_t A, const size_t i, const size_t j) * The i-th eigenvalue corresponds to the eigenvector in the i-th _row_ of * "eigenvecs". */ -void mat33_fp_get_eigenbasis(mat33_fp_t S, fpv3_t e_vals, - mat33_fp_t e_vecs) +void mat33_fp_get_eigenbasis(mat33_fp_t S, fpv3_t e_vals, mat33_fp_t e_vecs) { const size_t N = 3; sizev3_t ind; @@ -176,8 +175,8 @@ size_t mat33_fp_maxind(mat33_fp_t A, size_t k) return m; } -void mat33_fp_rotate(mat33_fp_t A, fp_t c, fp_t s, - size_t k, size_t l, size_t i, size_t j) +void mat33_fp_rotate(mat33_fp_t A, fp_t c, fp_t s, size_t k, size_t l, size_t i, + size_t j) { fp_t tmp = fp_mul(c, A[k][l]) - fp_mul(s, A[i][j]); A[i][j] = fp_mul(s, A[k][l]) + fp_mul(c, A[i][j]);
updating changelog for 2.6.1
# -*- mode: sh; fill-column: 120; -*- +Version 2.6.1 (08 Feb 2023) + +[General Updates] + + * updated ohpc-runtime meta-packages package to address singularity/apptainer dependency resolution + (https://github.com/openhpc/ohpc/issues/1644) + +---------------------------------------------------------------------------------------------------------------------- + Version 2.6 (16 Nov 2022) [General Updates]
fix build with MSYS2 x86_64
#include "compiler.h" #include "soundmng.h" -#include <algorithm> #include "parts.h" #include "sound.h" #if defined(VERMOUTH_LIB) @@ -50,7 +49,7 @@ static void sound_play_cb(void *userdata, UINT8 *stream, int len) { SINT16 *dst; const SINT32 *src; - length = (std::min)(len, (int)(soundmng.samples * 2 * sizeof(SINT16))); + length = min(len, (int)(soundmng.samples * 2 * sizeof(SINT16))); #if defined(__LIBRETRO__) dst = soundbuf;//soundmng.buf[soundmng.nsndbuf]; #else /* __LIBRETRO__ */
zephyr: nivviks: Enable port 80 This will enable port80 debug prints on EC console. BRANCH=None TEST=zmake configure -B ~/tmp/nivviks nivviks -b
@@ -126,6 +126,9 @@ CONFIG_PLATFORM_EC_CHARGER_SENSE_RESISTOR_AC=10 # TODO(b/188605676): bring these features up CONFIG_PLATFORM_EC_BACKLIGHT_LID=n +#Port 80 +CONFIG_PLATFORM_EC_PORT80=y + # Power Sequencing # TODO(b/203446068): Implement ADL-N power sequence. #CONFIG_PLATFORM_EC_POWERSEQ=y
dbginfo.sh: update copyright date update copyright date
# # dbginfo.sh - Tool to collect runtime, configuration, and trace information # -# Copyright IBM Corp. 2002, 2022 +# Copyright IBM Corp. 2002, 2023 # # s390-tools is free software; you can redistribute it and/or modify # it under the terms of the MIT license. See LICENSE for details. @@ -71,7 +71,7 @@ paramWORKDIR_BASE="/tmp" # initial default path print_version() { cat <<EOF ${SCRIPTNAME}: Debug information script version %S390_TOOLS_VERSION% -Copyright IBM Corp. 2002, 2022 +Copyright IBM Corp. 2002, 2023 EOF }
OpenCanopy: Silence Coverity uninit warning
@@ -1048,7 +1048,9 @@ GuiDrawLoop ( // 'Button down' must have caught and set an interaction object. // It may be NULL for objects that solely delegate pointer events. // + DEBUG_CODE_BEGIN (); ASSERT (ObjectHeld); + DEBUG_CODE_END (); if (HoldObject != NULL) { GuiGetBaseCoords (
doc: Update todo documentation
@@ -36,6 +36,12 @@ We also disabled `testmod_zeromqsend` from `kdb run_all` in `tests/shell/run_all We disabled `testmod_crypto` on `debian-unstable-full-clang` due to memory leaks. +### Shellcheck + +Several files have been excluded from checking with shellcheck (`tests/shell/check_shellcheck.sh`). + +The list of excluded files is `tests/shell/shellcheck/check_shellcheck_ignorelist.txt`. + ## error test that error codes are set correctly
ifInput codegen
@@ -670,11 +670,19 @@ class ScriptBuilder { }; _getMemInt8 = (location: ScriptBuilderStackVariable, cVariable: string) => { - this._addCmd("VM_GET_INT8", location, `_${cVariable}`); + this._addCmd( + "VM_GET_INT8", + location, + cVariable.startsWith("^") ? cVariable : `_${cVariable}` + ); }; _getMemInt16 = (location: ScriptBuilderStackVariable, cVariable: string) => { - this._addCmd("VM_GET_INT16", location, `_${cVariable}`); + this._addCmd( + "VM_GET_INT16", + location, + cVariable.startsWith("^") ? cVariable : `_${cVariable}` + ); }; _setVariableMemInt8 = (variable: string, cVariable: string) => { @@ -3220,7 +3228,23 @@ class ScriptBuilder { truePath: ScriptEvent[] | ScriptBuilderPathFunction = [], falsePath: ScriptEvent[] | ScriptBuilderPathFunction = [] ) => { - console.error("ifInput not implemented "); + const trueLabel = this.getNextLabel(); + const endLabel = this.getNextLabel(); + this._addComment(`If Input`); + this._stackPushConst(0); + this._getMemInt8(".ARG0", "^/(_joypads + 1)/"); + this._rpn() // + .ref(".ARG0") + .int8(inputDec(input)) + .operator(".B_AND") + .stop(); + this._ifConst(".NE", ".ARG0", 0, trueLabel, 2); + this._compilePath(falsePath); + this._jump(endLabel); + this._label(trueLabel); + this._compilePath(truePath); + this._label(endLabel); + this._addNL(); }; ifActorRelativeToActor = (
Remove unused debug code.
@@ -34,10 +34,8 @@ def GetGCCRoot(rtconfig): if exec_path == '/usr/bin': root_path = os.path.join('/usr/lib', prefix) - print(root_path) else: root_path = os.path.join(exec_path, '..', prefix) - print(root_path) return root_path
Fix error in processing $target{enable}
@@ -1112,13 +1112,13 @@ foreach my $feature (@{$target{disable}}) { $disabled{$feature} = 'config'; } foreach my $feature (@{$target{enable}}) { - if ("default" eq ($disabled{$_} // "")) { + if ("default" eq ($disabled{$feature} // "")) { if (exists $deprecated_disablables{$feature}) { warn "***** config $target enables deprecated feature $feature\n"; } elsif (!grep { $feature eq $_ } @disablables) { die "***** config $target enables unknown feature $feature\n"; } - delete $disabled{$_}; + delete $disabled{$feature}; } }
Fixed implicit casting from void* in lv_imgbuf.h
@@ -276,7 +276,7 @@ bool _lv_img_buf_transform_anti_alias(lv_img_transform_dsc_t * dsc); */ static inline bool lv_img_buf_transform(lv_img_transform_dsc_t * dsc, lv_coord_t x, lv_coord_t y) { - const uint8_t * src_u8 = dsc->cfg.src; + const uint8_t * src_u8 = (const uint8_t*)dsc->cfg.src; /*Get the target point relative coordinates to the pivot*/ int32_t xt = x - dsc->cfg.pivot_x;
[ymake] Move DEFAULT_REQUIREMENTS to ymake.core.conf
@@ -11,6 +11,7 @@ INCLUDE_EXTS=.h .hh .hpp .rli .cuh .inc .i SANDBOX_TASK_ID=0 ARCADIA_TEST_ROOT=../arcadia_tests_data/ +DEFAULT_REQUIREMENTS=network:restricted when ($USE_GCCFILTER == "yes") { GCCFILTER=${ARCADIA_ROOT}/devtools/gccfilter/gccfilter.pl
Really fix compilation; fix crash when pmodel is not present in cpuinfo
@@ -88,18 +88,21 @@ int detect(void){ infile = fopen("/proc/cpuinfo", "r"); while (fgets(buffer, sizeof(buffer), infile)){ if(!strncmp(buffer, "model name", 10)){ - strcpy(model_buffer, buffer) + strcpy(model_buffer, buffer); pmodel = strchr(isa_buffer, ':') + 1; } if(!strncmp(buffer, "isa", 3)){ - strcpy(isa_buffer, buffer) + strcpy(isa_buffer, buffer); pisa = strchr(isa_buffer, '4') + 1; } } fclose(infile); + if (!pmodel) + return(CPU_GENERIC); + if (strstr(pmodel, check_c910_str) && strchr(pisa, 'v')) return CPU_C910V;
Ignore more items of gphdfs regression test results
-- start_matchignore +-- # start distro specific ignore m/INFO Configuration.deprecation/ m/INFO impl.YarnClientImpl/ m/INFO .*/ @@ -7,6 +8,19 @@ m/Hadoop command-line option parsing not performed.*/ m/\\\!export.*/ m/INFO client.RMProxy/ m/GP_IGNORE.*/ +m/This node is now reported.*/ +m/This node was earlier reported.*/ +m/the mapper string is mapreduce.*/ +m/the mapper string is mapred.*/ +m/DISK_MILLIS_MAPS.*/ +m/DISK_MILLIS_REDUCES.*/ +m/get map string.*/ +m/reach here.*/ +m/jar:file:.*/ +m/<time> WARN shortcircuit.DomainSocketFactory.*/ +m/\\\!hadoop_bin.*/ +-- # end distro specific ignore + -- m/hdfs.DFSClient:/ -- m/TokenCache:/ -- m/mapred.JobClient:/ @@ -48,6 +62,7 @@ m/GP_IGNORE.*/ -- m/Bytes Read=/ -- m/Bytes Written=/ -- end_matchignore + -- start_matchsubs -- m/gphdfs:\/\/.*:\d+/ -- s/gphdfs:\/\/.*:\d+/gphdfs:\/\/<hostname>:<port>/
DOC: add --pm_by_vuart setting guide. new params: --pm_by_vuart is used to set power mananger by vuart on ACRN; so add it to user guide.
@@ -331,9 +331,27 @@ Here are descriptions for each of these ``acrn-dm`` command line parameters: - This option is used to define which channel could be used DM to communicate with VM about power management event. - ACRN supports two channels: ``ioc`` and ``power button``. + ACRN supports three channels: ``ioc``, ``power button`` and ``uart``. usage:: --pm_notify_channel ioc Use ioc as power management event motify channel. + + * - :kbd:`--pm_by_vuart [pty|tty],<node_path>` + - This option is used to set a user OS power management by virtual UART. + With acrn-dm UART emulation and hypervisor UART emulation and configure, + service OS can communicate with user OS through virtual UART. By this + option, service OS can notify user OS to shutdown itself by vUART. + + It need work with `--pm_notify_channel` and PCI UART setting (lpc and -l). + + Example:: + + for general UOS, like LaaG or WaaG, it need set: + --pm_notify_channel uart --pm_by_vuart pty,/run/acrn/life_mngr_vm1 + -l com2,/run/acrn/life_mngr_vm1 + for RTVM, like RT-Linux: + --pm_notify_channel uart --pm_by_vuart tty,/dev/ttyS1 + + For different UOS, it can be configured as needed.
Homestar:Sensor:Update the sensor matrix TEST=make -j BOARD=homestar Verify build on EVT board BRANCH=Trogdor
@@ -264,7 +264,7 @@ static struct bmi_drv_data_t g_bmi160_data; const mat33_fp_t lid_standard_ref = { { FLOAT_TO_FP(-1), 0, 0}, { 0, FLOAT_TO_FP(-1), 0}, - { 0, FLOAT_TO_FP(1), 0} + { 0, 0, FLOAT_TO_FP(1)} }; struct motion_sensor_t motion_sensors[] = {
Sconscript: requires on .o not on .elf
@@ -137,7 +137,9 @@ panda_env = Environment( version = f'const uint8_t gitversion[] = "{get_version(BUILDER, BUILD_TYPE)}";' gitversion = panda_env.Textfile("obj/gitversion.h", [version, ""]) Ignore('bootstub.o', gitversion) +Requires('bootstub.o', gitversion) Ignore('main.o', gitversion) +Requires('main.o', gitversion) certs = [get_key_header(n) for n in ["debug", "release"]] certheader = panda_env.Textfile("obj/cert.h", certs + [""]) @@ -148,13 +150,11 @@ startup = panda_env.Object(STARTUP_FILE) crypto = ["../crypto/rsa.c", "../crypto/sha.c"] bootstub_elf = panda_env.Program(f"obj/bootstub.{PROJECT}.elf", [startup] + crypto + ["bootstub.c"]) bootstub_bin = panda_env.Objcopy(f"obj/bootstub.{PROJECT}.bin", bootstub_elf) -Requires(bootstub_elf, gitversion) # Build main main_elf = panda_env.Program(f"obj/{PROJECT}.elf", [startup, MAIN], LINKFLAGS=["-Wl,--section-start,.isr_vector=0x8004000"] + flags) main_bin = panda_env.Objcopy(f"obj/{PROJECT}.bin", main_elf) -Requires(main_elf, gitversion) # Sign main sign_py = File("../crypto/sign.py").srcnode().abspath
simplify the syntax
@@ -184,13 +184,13 @@ function main(platform) -- include abi directory if cxxstl_sdkdir:find("llvm-libc++", 1, true) then - local abi_path = path.translate(format("%s/sources/cxx-stl/llvm-libc++abi", ndk)) - local before_r13 = path.translate(path.join(abi_path, "libcxxabi")) - local after_r13 = path.translate(path.join(abi_path, "include")) + local abi_path = path.join(ndk, "sources", "cxx-stl", "llvm-libc++abi") + local before_r13 = path.join(abi_path, "libcxxabi") + local after_r13 = path.join(abi_path, "include") if os.isdir(before_r13) then - platform:add("cxxflags", format("-I%s",before_r13)) + platform:add("cxxflags", "-I" .. before_r13) elseif os.isdir(after_r13) then - platform:add("cxxflags", format("-I%s",after_r13)) + platform:add("cxxflags", "-I" .. after_r13) end end end
test: removed the FIXME, because of added test cases
@@ -762,7 +762,6 @@ static void test_keyNeedSync (void) static void test_keyCopy (void) { - // FIXME: add more tests printf ("test copy key\n"); Key * k = keyNew ("/", KEY_END); Key * c = keyNew ("user:/name", KEY_END);
board/servo_v4p1/ioexpanders.c: Format with clang-format BRANCH=none TEST=none
@@ -220,8 +220,7 @@ inline int board_id_det(void) /* Cache board ID at init */ if (ioex_get_port(IOEX_GET_INFO(IOEX_BOARD_ID_DET0)->ioex, - IOEX_GET_INFO(IOEX_BOARD_ID_DET0)->port, - &id)) + IOEX_GET_INFO(IOEX_BOARD_ID_DET0)->port, &id)) return id; /* Board ID consists of bits 5, 4, and 3 */ @@ -296,8 +295,7 @@ inline int read_faults(void) int val; ioex_get_port(IOEX_GET_INFO(IOEX_USERVO_FAULT_L)->ioex, - IOEX_GET_INFO(IOEX_USERVO_FAULT_L)->port, - &val); + IOEX_GET_INFO(IOEX_USERVO_FAULT_L)->port, &val); return val; } @@ -307,8 +305,7 @@ inline int read_irqs(void) int val; ioex_get_port(IOEX_GET_INFO(IOEX_SYS_PWR_IRQ_ODL)->ioex, - IOEX_GET_INFO(IOEX_SYS_PWR_IRQ_ODL)->port, - &val); + IOEX_GET_INFO(IOEX_SYS_PWR_IRQ_ODL)->port, &val); return val; } @@ -343,9 +340,7 @@ inline int board_id_det(void) int res; /* Cache board ID at init */ - res = i2c_read8(TCA6416A_PORT, - TCA6416A_ADDR, - BOARD_ID_DET_PORT, + res = i2c_read8(TCA6416A_PORT, TCA6416A_ADDR, BOARD_ID_DET_PORT, &id); if (res != EC_SUCCESS) return res;
Add mime-support to docker container
@@ -3,7 +3,7 @@ FROM k8s.gcr.io/debian-base-amd64:1.0.0 RUN /usr/local/bin/clean-install \ git g++ make binutils autoconf automake autotools-dev libtool \ pkg-config libev-dev libjemalloc-dev \ - libev4 libjemalloc1 ca-certificates && \ + libev4 libjemalloc1 ca-certificates mime-support && \ git clone --depth 1 -b openssl-quic-draft-22 https://github.com/tatsuhiro-t/openssl && \ cd openssl && ./config enable-tls1_3 --openssldir=/etc/ssl && make -j$(nproc) && make install_sw && cd .. && rm -rf openssl && \ git clone --depth 1 https://github.com/ngtcp2/nghttp3 && \
framework/task_manager : Change free sequence in task_manager_set_broadcast_cb WID:152687 Pointer '&request_msg.data->cb_data' is dereferenced at task_manager_set_callback.c:237 after the referenced memory was deallocated at task_manager_set_callback.c:236 by calling function 'free'.
@@ -233,8 +233,8 @@ int task_manager_set_broadcast_cb(int msg, tm_broadcast_callback_t func, tm_msg_ ((tm_msg_t *)((tm_broadcast_info_t *)request_msg.data)->cb_data)->msg_size = cb_data->msg_size; ((tm_msg_t *)((tm_broadcast_info_t *)request_msg.data)->cb_data)->msg = TM_ALLOC(cb_data->msg_size); if (((tm_msg_t *)((tm_broadcast_info_t *)request_msg.data)->cb_data)->msg == NULL) { - TM_FREE(request_msg.data); TM_FREE(((tm_broadcast_info_t *)request_msg.data)->cb_data); + TM_FREE(request_msg.data); return TM_OUT_OF_MEMORY; } memcpy(((tm_msg_t *)((tm_broadcast_info_t *)request_msg.data)->cb_data)->msg, cb_data->msg, cb_data->msg_size);
update reference_counting decision
## Decision -TODO @kodebach: update decision as implemented - -- add second reference counter to Key -- One counter is for locking references, the other one for general references. A locking reference automatically locks/unlocks the keyname. -- introduce reference counter for KeySets (for external keyset references) -- `keyBorrow` returns an error in case of reference counter overflow -- use fixed sized types for reference counters +- add second counter to Key +- One counter is for references, the other one is for locking the keyname. The keyname is thereby protected with a re-entrant lock. +- introduce reference counter for KeySets (for external keyset references, e.g. in bindings) +- limit number of references to `UINT16_MAX - 1` and use `UINT16_MAX` as an error value +- return error on reference count overflow +- no error on underflow (decrement when zero), instead stay at zero +- use fixed sized types (`uint16_t`) for reference counters - increment/decrement references before/after passing instances to plugins ## Rationale - Adding a second reference counter to Key and reducing the size of both significantly (`size_t` to `uint16_t`) actually saves memory (32 vs 64bit on 64-bit machines) compared to the previous solution. -- The added complexity of maintaining two reference counters is worth the - tradeoff for the gained functionality. +- The added complexity of maintaining two reference counters is worth the trade-off for the gained functionality. ## Implications -Missing: - -- C++ API update - ## Related Decisions ## Notes + +Not implemented yet: + +- Update bindings to use KeySet reference counter (especially C++) +- Second counter for automatic keyname (un)locking
filter_grep: add error messages for troubleshooting
@@ -76,6 +76,7 @@ static int set_rules(struct grep_ctx *ctx, struct flb_filter_instance *f_ins) rule->type = GREP_EXCLUDE; } else { + flb_error("[filter_grep] unknown rule type '%s'", kv->key); delete_rules(ctx); flb_free(rule); return -1; @@ -106,6 +107,8 @@ static int set_rules(struct grep_ctx *ctx, struct flb_filter_instance *f_ins) /* Convert string to regex pattern */ rule->regex = flb_regex_create(rule->regex_pattern); if (!rule->regex) { + flb_error("[filter_grep] could not compile regex pattern '%s'", + rule->regex_pattern); delete_rules(ctx); flb_free(rule); return -1;
volteer: Reconfigure SSD GPIOs Configure M2_SSD_PLN and M2_SSD_PLA as active-low and M2_SSD_PLN as open-drain, per vendor guidance. TEST=make buildall BRANCH=none
@@ -106,11 +106,12 @@ UNIMPLEMENTED(USB_C1_RT_FORCE_PWR) /* Misc Signals */ GPIO(EC_H1_PACKET_MODE, PIN(7, 5), GPIO_OUT_LOW) /* H1 Packet Mode */ /* - * TODO(b/138954381): Determine the polarity of these SSD signals and whether - * they are open-drain. + * Despite their names, M2_SSD_PLN and M2_SSD_PLA are active-low, and M2_SSD_PLN + * is open-drain. + * TODO(b/138954381): Change these names when they change on the schematic. */ -GPIO(M2_SSD_PLN, PIN(A, 0), GPIO_OUT_HIGH) /* SSD power-loss notification */ -GPIO(M2_SSD_PLA, PIN(7, 0), GPIO_INPUT) /* SSD power-loss acknoledgement */ +GPIO(M2_SSD_PLN, PIN(A, 0), GPIO_ODR_HIGH) /* SSD power-loss notification */ +GPIO(M2_SSD_PLA, PIN(7, 0), GPIO_INPUT) /* SSD power-loss acknowledgment */ GPIO(CCD_MODE_ODL, PIN(E, 5), GPIO_INPUT) /* Case Closed Debug Mode */ GPIO(EC_SLP_S0IX, PIN(7, 2), GPIO_INPUT | GPIO_PULL_UP)
Uninitialize minhook on Shutdown()
@@ -99,6 +99,9 @@ void Initialize(HMODULE mod) void Shutdown() { kiero::shutdown(); + + MH_DisableHook(MH_ALL_HOOKS); + MH_Uninitialize(); } BOOL APIENTRY DllMain(HMODULE mod, DWORD ul_reason_for_call, LPVOID) {
adding missing lint comment for T_UINT32_READ
#ifndef __UNALIGNED_UINT32_READ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wpacked" +//lint -esym(9058, T_UINT32_READ) disable MISRA 2012 Rule 2.4 for T_UINT32_READ __PACKED_STRUCT T_UINT32_READ { uint32_t v; }; #pragma clang diagnostic pop #define __UNALIGNED_UINT32_READ(addr) (((const struct T_UINT32_READ *)(const void *)(addr))->v)
NVMe: Reduce verbosity
@@ -28,7 +28,6 @@ all: snap_config.sv # a closing '. # snap_config.sv: $(SNAP_CONFIG) - @echo "+++++ Generating $@ ... searching XSIM in $(SNAP_CONFIG) +++++" echo "/* SNAP_CONFIG */" > snap_config.sv grep "SIM_XSIM=y" $(SNAP_CONFIG); \ if [ $$? -eq 0 ]; then \ @@ -36,5 +35,4 @@ snap_config.sv: $(SNAP_CONFIG) fi clean: - @echo "+++++ Deleting snap_config.sv ... +++++" $(RM) snap_config.sv
[update] cmake.py, delete extra code.
@@ -39,7 +39,7 @@ def GenerateCFiles(env,project): cm_file.write("SET(CMAKE_SIZE \""+ SIZE + "\")\n\n") - cm_file.write("SET(CMAKE_C_FLAGS \""+ rtconfig.CFLAGS + " -nostdlib\")\n") + cm_file.write("SET(CMAKE_C_FLAGS \""+ rtconfig.CFLAGS + "\")\n") cm_file.write("SET(CMAKE_CXX_FLAGS \""+ rtconfig.CXXFLAGS + "\")\n") cm_file.write("SET(CMAKE_ASM_FLAGS \""+ rtconfig.AFLAGS + "\")\n") cm_file.write("SET(CMAKE_EXE_LINKER_FLAGS \""+ re.sub('-T(\s*)', '-T ${CMAKE_SOURCE_DIR}/',rtconfig.LFLAGS) + "\")\n\n")
DDF add clone for frient plug
{ "schema": "devcap1.schema.json", - "manufacturername": "frient A/S", - "modelid": "SPLZB-131", - "vendor": "Develco Products", - "product": "SPLZB-131 smart plug (Schuko)", + "manufacturername": ["frient A/S", "frient A/S"], + "modelid": ["SPLZB-131", "SPLZB-134"], + "product": "SPLZB-131 and SPLZB-134 smart plug", "sleeper": false, "status": "Gold", "subdevices": [
Have example/jsonptr consider string conversion
@@ -342,7 +342,16 @@ handle_token(wuffs_base__token t) { if (!prev_token_incomplete) { TRY(write_dst("\"", 1)); } + + if (vbd & WUFFS_BASE__TOKEN__VBD__STRING__CONVERT_0_DST_1_SRC_DROP) { + // No-op. + } else if (vbd & + WUFFS_BASE__TOKEN__VBD__STRING__CONVERT_1_DST_1_SRC_COPY) { TRY(write_dst(src.data.ptr + curr_token_end_src_index - len, len)); + } else { + return "main: internal error: unexpected string-token conversion"; + } + prev_token_incomplete = vbd & WUFFS_BASE__TOKEN__VBD__STRING__INCOMPLETE; if (prev_token_incomplete) {
Test: Run certain source checks in parallel
@@ -107,9 +107,23 @@ function (add_scripttest testname) set_property (TEST testscr_${testname_we} PROPERTY ENVIRONMENT "LD_LIBRARY_PATH=${CMAKE_BINARY_DIR}/lib") + + set (parallel_tests + check_bashisms + check_doc + check_formatting + check_oclint + check_plugins + check_posix) + list (FIND parallel_tests + "${testname_we}" + index_parallel) + if (index_parallel EQUAL -1) set_property (TEST testscr_${testname_we} PROPERTY RUN_SERIAL TRUE) + endif (index_parallel EQUAL -1) + endif (NOT ${testname_we} STREQUAL "run_all") endif (ENABLE_KDB_TESTING) endif (TARGET)
Fix clang compile time error |version| "could" be used uninitialized here, not really, but the compiler doesn't understand the flow
*/ #include <stdio.h> +#include <assert.h> #include "ssl_locl.h" #include "packet_locl.h" #include <openssl/bio.h> @@ -903,7 +904,7 @@ int SSL_CTX_use_serverinfo_file(SSL_CTX *ctx, const char *file) int ret = 0; BIO *bin = NULL; size_t num_extensions = 0, contextoff = 0; - unsigned int version; + unsigned int version = 0; if (ctx == NULL || file == NULL) { SSLerr(SSL_F_SSL_CTX_USE_SERVERINFO_FILE, ERR_R_PASSED_NULL_PARAMETER); @@ -1009,6 +1010,8 @@ int SSL_CTX_use_serverinfo_file(SSL_CTX *ctx, const char *file) extension = NULL; } + assert(version != 0); + if (version != 0) ret = SSL_CTX_use_serverinfo_ex(ctx, version, serverinfo, serverinfo_length); end:
Histogram option for all graphs
@@ -477,10 +477,18 @@ void HudElements::graphs(){ } ImGui::PushStyleColor(ImGuiCol_FrameBg, ImVec4(0.0f, 0.0f, 0.0f, 0.0f)); ImGui::TableNextRow(); + if (!HUDElements.params->enabled[OVERLAY_PARAM_ENABLED_histogram]){ ImGui::PlotLines("", arr.data(), arr.size(), 0, NULL, HUDElements.min, HUDElements.max, ImVec2(ImGui::GetContentRegionAvailWidth() * 2.5, 50)); + } else { + ImGui::PlotHistogram("", arr.data(), + arr.size(), 0, + NULL, HUDElements.min, HUDElements.max, + ImVec2(ImGui::GetContentRegionAvailWidth() * 2.5, 50)); + } + ImGui::PopStyleColor(1); }
drivers/video: Add stop_capture function and ensure imgsensor_ops_s::stop_capture get called
@@ -694,6 +694,24 @@ static int start_capture(enum v4l2_buf_type type, return OK; } +static int stop_capture(enum v4l2_buf_type type) +{ + ASSERT(g_video_sensor_ops && g_video_data_ops); + + if (g_video_data_ops->stop_capture == NULL || + g_video_sensor_ops->stop_capture == NULL) + { + return -ENOTTY; + } + + g_video_data_ops->stop_capture(); + g_video_sensor_ops->stop_capture( + type == V4L2_BUF_TYPE_VIDEO_CAPTURE ? + IMGSENSOR_STREAM_TYPE_VIDEO : IMGSENSOR_STREAM_TYPE_STILL); + + return OK; +} + static void change_video_state(FAR video_mng_t *vmng, enum video_state_e next_state) { @@ -726,7 +744,7 @@ static void change_video_state(FAR video_mng_t *vmng, if ((current_state == VIDEO_STATE_CAPTURE) && (next_state != VIDEO_STATE_CAPTURE)) { - g_video_data_ops->stop_capture(); + stop_capture(V4L2_BUF_TYPE_VIDEO_CAPTURE); } } @@ -975,16 +993,20 @@ static void cleanup_scenes_parameter(void) static void cleanup_resources(FAR video_mng_t *vmng) { - /* clean up resource */ + /* If in capture, stop */ - if ((vmng->video_inf.state == VIDEO_STATE_CAPTURE) || - (vmng->still_inf.state == VIDEO_STATE_CAPTURE)) + if (vmng->video_inf.state == VIDEO_STATE_CAPTURE) { - /* If in capture, stop */ + stop_capture(V4L2_BUF_TYPE_VIDEO_CAPTURE); + } - g_video_data_ops->stop_capture(); + if (vmng->still_inf.state == VIDEO_STATE_CAPTURE) + { + stop_capture(V4L2_BUF_TYPE_STILL_CAPTURE); } + /* clean up resource */ + cleanup_streamresources(&vmng->video_inf); cleanup_streamresources(&vmng->still_inf); cleanup_scenes_parameter(); @@ -2025,7 +2047,7 @@ static int video_takepict_stop(FAR struct video_mng_s *vmng, bool halfpush) flags = enter_critical_section(); if (vmng->still_inf.state == VIDEO_STATE_CAPTURE) { - g_video_data_ops->stop_capture(); + stop_capture(V4L2_BUF_TYPE_STILL_CAPTURE); } leave_critical_section(flags); @@ -3412,7 +3434,7 @@ static int video_complete_capture(uint8_t err_code, uint32_t datasize) if (type_inf->remaining_capnum == 0) { - g_video_data_ops->stop_capture(); + stop_capture(buf_type); type_inf->state = VIDEO_STATE_STREAMOFF; /* If stop still stream, notify it to video stream */ @@ -3430,7 +3452,7 @@ static int video_complete_capture(uint8_t err_code, uint32_t datasize) container = video_framebuff_get_vacant_container(&type_inf->bufinf); if (!container) { - g_video_data_ops->stop_capture(); + stop_capture(buf_type); type_inf->state = VIDEO_STATE_STREAMON; } else
Adjust standards-version
@@ -6,7 +6,7 @@ Build-Depends: make (>= 4), debhelper (>= 9), libcurl4-openssl-dev (>= 7.55.1), libsodium-dev (>= 1.0) -Standards-Version: 3.9.8 +Standards-Version: 4.0.0 Package: oidc-agent Architecture: any
dma: make the compl status 2M
* this is where the DMA channel will write the address of the last completed * descriptor (a copy of CHANSTS register) */ -#define IOAT_DMA_COMPLSTATUS_SIZE BASE_PAGE_SIZE +#define IOAT_DMA_COMPLSTATUS_SIZE LARGE_PAGE_SIZE #define IOAT_DMA_COMPLSTATUS_ELEMENT_SIZE 64 #define IOAT_DMA_COMPLSTATUS_FLAGS VREGION_FLAGS_READ_WRITE
ins_igsl(): fix memory leak
@@ -1081,8 +1081,10 @@ ins_igsl (khash_t (igsl) * hash, uint32_t key, uint32_t value) { } k = kh_put (igsl, hash, key, &ret); - if (ret == -1) + if (ret == -1) { + list_remove_nodes (list); return -1; + } kh_val (hash, k) = list;
[FIX] Initialized the missed dumper structure of default engine.
@@ -1545,9 +1545,6 @@ create_instance(uint64_t interface, GET_SERVER_API get_server_api, .lock = PTHREAD_MUTEX_INITIALIZER }, .cache_lock = PTHREAD_MUTEX_INITIALIZER, - .stats = { - .lock = PTHREAD_MUTEX_INITIALIZER, - }, .config = { .use_cas = true, .verbose = 0, @@ -1567,11 +1564,18 @@ create_instance(uint64_t interface, GET_SERVER_API get_server_api, .max_btree_size = 50000, .prefix_delimiter = ':', }, + .stats = { + .lock = PTHREAD_MUTEX_INITIALIZER, + }, .scrubber = { .lock = PTHREAD_MUTEX_INITIALIZER, .enabled = true, .running = false, }, + .dumper = { + .lock = PTHREAD_MUTEX_INITIALIZER, + .running = false, + }, .info.engine_info = { .description = "Default engine v0.1", .num_features = 1,
Fix link to tutorial notebook in readme
@@ -35,7 +35,7 @@ head(prediction) ### Tutorials -CatBoost tutorial with base features demonstration and Caret demo. See [notebook](../tutorials/catboost_r_tutorial.ipynb). +CatBoost tutorial with base features demonstration and Caret demo. See [notebook](../tutorials/r_tutorial.ipynb). ### Maintaining the package
verbose installation tests
@@ -24,8 +24,8 @@ addons: script: - gem uninstall -x iodine - rake build - - find pkg/iodine-*.gem -exec gem install {} + + - find pkg/iodine-*.gem -exec gem install -V {} + - gem uninstall -x iodine - - CC=gcc find pkg/iodine-*.gem -exec gem install {} + + - CC=gcc find pkg/iodine-*.gem -exec gem install -V {} + - gem uninstall -x iodine - - CC=gcc-5 find pkg/iodine-*.gem -exec gem install {} + + - CC=gcc-5 find pkg/iodine-*.gem -exec gem install -V {} +
fix shared and tests prereqs
@@ -110,7 +110,7 @@ endif @echo "To install the library, you can run \"make PREFIX=/path/to/your/installation install\"." @echo -shared : +shared : libs netlib $(RELA) ifneq ($(NO_SHARED), 1) ifeq ($(OSNAME), $(filter $(OSNAME),Linux SunOS Android Haiku)) @$(MAKE) -C exports so @@ -134,7 +134,7 @@ ifeq ($(OSNAME), CYGWIN_NT) endif endif -tests : +tests : libs netlib $(RELA) shared ifeq ($(NOFORTRAN), $(filter 0,$(NOFORTRAN))) touch $(LIBNAME) ifndef NO_FBLAS
cups-browsed.c: Free the memory in correct order The 'temp' pointer has two allocated pointers inside, free them before freeing the main pointer.
@@ -3079,6 +3079,8 @@ void get_cluster_default_attributes(ipp_t** merged_attributes, temp->media_source, temp->media_type); ippSetCollection(*merged_attributes, &media_col_default, 0, current_media); + free(temp->media_source); + free(temp->media_type); free(temp); }
out_influxdb: add backslashes escaping. According to the new docs of the line protocol, multiple backslashes must be escaped.
@@ -36,6 +36,8 @@ static int influxdb_escape(char *out, const char *str, int size, bool quote) { char ch = str[i]; if (quote ? (ch == '"') : (isspace(ch) || ch == ',' || ch == '=')) { out[out_size++] = '\\'; + } else if (ch == '\\') { + out[out_size++] = '\\'; } out[out_size++] = ch; }
eliminate double check for index.html if index.html exists
// // Copyright 2018 Staysail Systems, Inc. <[email protected]> // Copyright 2018 Capitar IT Group BV <[email protected]> +// Copyright 2018 QXSoftware <[email protected]> // // This software is supplied under the terms of the MIT License, a // copy of which should be located in the distribution where this @@ -1460,11 +1461,11 @@ http_handle_dir(nni_aio *aio) sprintf(dst, "%s%s", NNG_PLATFORM_DIR_SEP, "index.html"); if (!nni_file_is_file(pn)) { pn[strlen(pn) - 1] = '\0'; // index.html -> index.htm - } if (!nni_file_is_file(pn)) { rv = NNG_ENOENT; } } + } if (rv == 0) { rv = nni_file_get(pn, &data, &size);