message
stringlengths
6
474
diff
stringlengths
8
5.22k
actions UPDATE remove redundant step
@@ -80,12 +80,6 @@ jobs: TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }} if: ${{ matrix.config.name == 'Coverity' }} - - name: Deps-coverity-perm-fix - run: | - chmod go-w $HOME - sudo chmod -R go-w /usr/share - if: ${{ matrix.config.name == 'Coverity' }} - - name: Configure shell: bash working-directory: ${{ github.workspace }}
SOVERSION bump to version 7.6.7
@@ -72,7 +72,7 @@ set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_ # with backward compatible change and micro version is connected with any internal change of the library. set(SYSREPO_MAJOR_SOVERSION 7) set(SYSREPO_MINOR_SOVERSION 6) -set(SYSREPO_MICRO_SOVERSION 6) +set(SYSREPO_MICRO_SOVERSION 7) set(SYSREPO_SOVERSION_FULL ${SYSREPO_MAJOR_SOVERSION}.${SYSREPO_MINOR_SOVERSION}.${SYSREPO_MICRO_SOVERSION}) set(SYSREPO_SOVERSION ${SYSREPO_MAJOR_SOVERSION})
simplify proc/thrd exit checks
@@ -924,6 +924,8 @@ NTSTATUS KphCidPopulate( } else { + LARGE_INTEGER timeout; + // // Check if we should track this process during population. // Ultimately here we're ensuring the process isn't already exited. @@ -942,28 +944,18 @@ NTSTATUS KphCidPopulate( continue; } - status = PsAcquireProcessExitSynchronization(processObject); - if (!NT_SUCCESS(status)) - { - KphTracePrint(TRACE_LEVEL_WARNING, - TRACKING, - "PsAcquireProcessExitSynchronization failed: %!STATUS!", - status); - - - ObDereferenceObject(processObject); - continue; - } - - status = PsGetProcessExitStatus(processObject); - - PsReleaseProcessExitSynchronization(processObject); - - if (status != STATUS_PENDING) + timeout.QuadPart = 0; + status = KeWaitForSingleObject(processObject, + Executive, + KernelMode, + FALSE, + &timeout); + if (status != STATUS_TIMEOUT) { KphTracePrint(TRACE_LEVEL_WARNING, TRACKING, - "PsGetProcessExitStatus reported: %!STATUS!", + "KeWaitForSingleObject(processObject) " + "reported: %!STATUS!", status); ObDereferenceObject(processObject); @@ -1015,13 +1007,11 @@ NTSTATUS KphCidPopulate( continue; } - status = KphGetThreadExitStatus(threadObject); - if (status != STATUS_PENDING) + if (PsIsThreadTerminating(threadObject)) { KphTracePrint(TRACE_LEVEL_WARNING, TRACKING, - "KphGetThreadExitStatus reported: %!STATUS!", - status); + "PsIsThreadTerminating reported: TRUE"); ObDereferenceObject(threadObject); continue;
api/show_mnemonic: add docs
@@ -26,6 +26,10 @@ use bitbox02::keystore; const NUM_RANDOM_WORDS: u8 = 5; +/// Return 5 words from the BIP39 wordlist, 4 of which are random, and +/// one of them is provided `word`. Returns the position of `word` in +/// the list of words, and the lis of words. This is used to test if +/// the user wrote down the seed words properly. fn create_random_unique_words(word: &str, length: u8) -> (u8, Vec<zeroize::Zeroizing<String>>) { fn rand16() -> u16 { let mut rand = [0u8; 32]; @@ -62,6 +66,10 @@ fn create_random_unique_words(word: &str, length: u8) -> (u8, Vec<zeroize::Zeroi (index_word, result) } +/// Handle the ShowMnemonic API call. This shows the seed encoded as +/// 12/18/24 BIP39 English words. Afterwards, for each word, the user +/// is asked to pick the right word among 5 words, to check if they +/// wrote it down correctly. pub async fn process() -> Result<Response, Error> { unlock::unlock_keystore("Unlock device", unlock::CanCancel::Yes).await?;
doc: link to blob repo
-# SVG Conversion +# Rendered Images + +Rendered images and logos can be found in https://github.com/ElektraInitiative/blobs + +## SVG Conversion https://github.com/shakiba/svgexport svgexport circle_with_shadows_and_background.svg circle.png 400:400 +
updated link to azure wiki page
@@ -131,7 +131,7 @@ For details on configuring multiple providers see the [Wiki](https://github.com/ See the [Wiki](https://github.com/zmartzone/mod_auth_openidc/wiki) for configuration docs for other OpenID Connect Providers: - [GLUU Server](https://github.com/zmartzone/mod_auth_openidc/wiki/Gluu-Server) - [Keycloak](https://github.com/zmartzone/mod_auth_openidc/wiki/Keycloak) -- [Azure AD](https://github.com/zmartzone/mod_auth_openidc/wiki/Azure-OAuth2.0-and-OpenID) +- [Azure AD](https://github.com/zmartzone/mod_auth_openidc/wiki/Azure-Active-Directory-Authentication) - [Sign in with Apple](https://github.com/zmartzone/mod_auth_openidc/wiki/Sign-in-with-Apple) - [Curity Identity Server](https://github.com/zmartzone/mod_auth_openidc/wiki/Curity-Identity-Server) - [LemonLDAP::NG](https://github.com/zmartzone/mod_auth_openidc/wiki/LemonLDAP::NG)
platform: Add fields for OpenCAPI platform data Add a platform_ocapi struct to store platform-specific values for resetting OpenCAPI devices via I2C and for setting up the ODL PHY. A later patch will add this to the relevant platforms.
@@ -44,6 +44,17 @@ struct bmc_platform { uint32_t ipmi_oem_pnor_access_status; }; +/* OpenCAPI platform-specific I2C information */ +struct platform_ocapi { + uint8_t i2c_engine; /* I2C engine number */ + uint8_t i2c_port; /* I2C port number */ + uint32_t i2c_offset[3]; /* Offsets on I2C device */ + uint8_t i2c_odl0_data[3]; /* Data to reset ODL0 */ + uint8_t i2c_odl1_data[3]; /* Data to reset ODL1 */ + bool odl_phy_swap; /* Swap ODL1 to use brick 2 rather than + * brick 1 lanes */ +}; + /* * Each platform can provide a set of hooks * that can affect the generic code @@ -58,6 +69,9 @@ struct platform { */ const struct bmc_platform *bmc; + /* OpenCAPI platform-specific I2C information */ + const struct platform_ocapi *ocapi; + /* * Probe platform, return true on a match, called before * any allocation has been performed outside of the heap
Makefile cleanup replace "=" with "?=", if variable is defined, don't redefine. replace POSTLD with OBJCOPY fix the variable LD assignment
@@ -70,11 +70,11 @@ INCLUDE_PATH += bsp/include INCLUDE_PATH += bsp/$(PLATFORM)/include/bsp INCLUDE_PATH += boot/include -CC = gcc -AS = as -AR = ar -LD = gcc -POSTLD = objcopy +CC ?= gcc +AS ?= as +AR ?= ar +LD ?= ld +OBJCOPY ?= objcopy D_SRCS += $(wildcard debug/*.c) C_SRCS += boot/acpi.c @@ -187,14 +187,14 @@ install: efi endif $(HV_OBJDIR)/$(HV_FILE).32.out: $(HV_OBJDIR)/$(HV_FILE).out - $(POSTLD) -S --section-alignment=0x1000 -O elf32-i386 $< $@ + $(OBJCOPY) -S --section-alignment=0x1000 -O elf32-i386 $< $@ $(HV_OBJDIR)/$(HV_FILE).bin: $(HV_OBJDIR)/$(HV_FILE).out - $(POSTLD) -O binary $< $(HV_OBJDIR)/$(HV_FILE).bin + $(OBJCOPY) -O binary $< $(HV_OBJDIR)/$(HV_FILE).bin $(HV_OBJDIR)/$(HV_FILE).out: $(C_OBJS) $(S_OBJS) $(CC) -E -x c $(patsubst %, -I%, $(INCLUDE_PATH)) $(ARCH_LDSCRIPT_IN) | grep -v '^#' > $(ARCH_LDSCRIPT) - $(LD) -Wl,-Map=$(HV_OBJDIR)/$(HV_FILE).map -o $@ $(LDFLAGS) $(ARCH_LDFLAGS) -T$(ARCH_LDSCRIPT) $^ + $(CC) -Wl,-Map=$(HV_OBJDIR)/$(HV_FILE).map -o $@ $(LDFLAGS) $(ARCH_LDFLAGS) -T$(ARCH_LDSCRIPT) $^ .PHONY: clean clean:
docs: include geopm metapckage for oneapi
@@ -54,6 +54,7 @@ for \texttt{/opt/intel} that is mounted on desired compute nodes. \begin{lstlisting}[language=bash,keywords={},upquote=true,keepspaces] # Install 3rd party libraries/tools meta-packages built with Intel toolchain [sms](*\#*) (*\install*) ohpc-intel-serial-libs +[sms](*\#*) (*\install*) ohpc-intel-geopm [sms](*\#*) (*\install*) ohpc-intel-io-libs [sms](*\#*) (*\install*) ohpc-intel-perf-tools [sms](*\#*) (*\install*) ohpc-intel-python3-libs
[numerics] one more spelling unkown -> unknown
@@ -62,7 +62,7 @@ void frictionContact_test_gams_opts(SN_GAMSparams* GP, int solverId) } else { - fprintf(stderr, "frictionContact_test_gams_opts :: ERROR unkown solverId = %d e.g. solver named %s", solverId, solver_options_id_to_name(solverId)); + fprintf(stderr, "frictionContact_test_gams_opts :: ERROR unknown solverId = %d e.g. solver named %s", solverId, solver_options_id_to_name(solverId)); } add_GAMS_opt_int(GP, "minor_iteration_limit", 100000, GAMS_OPT_SOLVER); add_GAMS_opt_int(GP, "major_iteration_limit", 20, GAMS_OPT_SOLVER);
build: using generic 'liquid_float_complex' type for bilinear_nd
@@ -2423,13 +2423,13 @@ void bilinear_zpkf(liquid_float_complex * _za, // _m : bilateral warping factor // _bd : output digital filter numerator, [size: _b_order+1] // _ad : output digital filter numerator, [size: _a_order+1] -void bilinear_nd(float complex * _b, +void bilinear_nd(liquid_float_complex * _b, unsigned int _b_order, - float complex * _a, + liquid_float_complex * _a, unsigned int _a_order, float _m, - float complex * _bd, - float complex * _ad); + liquid_float_complex * _bd, + liquid_float_complex * _ad); // digital z/p/k low-pass to high-pass // _zd : digital zeros (low-pass prototype), [length: _n]
OcAppleDiskImageLib: Avoid MSVC warning about unaligned addressof result
@@ -213,7 +213,7 @@ InternalConstructDmgDevicePath ( DevPath->Size.Length = FileSize; SetDevicePathNodeLength (&DevPath->Size, sizeof (DevPath->Size)); CopyGuid ( - &DevPath->Size.Vendor.Guid, + (VOID *)&DevPath->Size.Vendor.Guid, &gAppleDiskImageProtocolGuid );
VERSION bump to version 1.4.120
@@ -46,7 +46,7 @@ endif() # micro version is changed with a set of small changes or bugfixes anywhere in the project. set(SYSREPO_MAJOR_VERSION 1) set(SYSREPO_MINOR_VERSION 4) -set(SYSREPO_MICRO_VERSION 119) +set(SYSREPO_MICRO_VERSION 120) set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_MICRO_VERSION}) # Version of the library
doc: enumerate in FAQ
@@ -99,8 +99,8 @@ result is GPL. ## How Can I Advertise Elektra? -If questions about configuration come up, point users to https://www.libelektra.org -Display the SVG logos found at https://master.libelektra.org/doc/images/logo -and already rastered logos at https://github.com/ElektraInitiative/blobs/tree/master/images/logos -Distribute the flyer found at https://github.com/ElektraInitiative/blobs/raw/master/flyers/flyer.odt -And of course: talk about it! +- If questions about configuration come up, point users to https://www.libelektra.org +- Display the SVG logos found at https://master.libelektra.org/doc/images/logo +- and already rastered logos at https://github.com/ElektraInitiative/blobs/tree/master/images/logos +- Distribute the flyer found at https://github.com/ElektraInitiative/blobs/raw/master/flyers/flyer.odt +- And of course: talk about it!
Add documentation on grpc essential plugins Add documentation explaining how to install grpc-cpp-plugin, which is essential for generating C++ Class implementation for protobuf.
@@ -32,8 +32,8 @@ Let us look in detail at the points above. The C++ binding for gRPC uses Service and Message classes to implement RPC stubs. Although the Service and Message classes can be written by hand, the *Protocol buffer* compiler provides a convenient specification language, as well as automated C++ code generation for these classes. TizenRT has ported *Protocol buffer* under `external/protobuf` folder, so it is highly recommended to use this external module to generate the aforestated classes. -Accordingly, please include `CONFIG_PROTOBUF` in your TizenRT build configuration as well. -You can refer to `external/protobuf/Kconfig` for details of this configuration. +Accordingly, please include `CONFIG_PROTOBUF` in your TizenRT build configuration as well. You can refer to `external/protobuf/Kconfig` for details of this configuration. In order to generate stub code from `protobuf` specifications, `gRPC` features a set of plugins, one for each programming language. TizenRT requires the `grpc-cpp-plugin` to convert `.proto` files into C++ implementation of Message and Service classes. For this purpose, additional plugins must be installed on the host build environment (your Linux machine or VM). To do so, clone the `gRPC v1.9x` branch on Github, and follow the installation steps described therein. + In the following subsection, we describe in detail how to include the `protoc` compilation command in TizenRT's application-level `Makefile`. @@ -54,7 +54,7 @@ $(CXXSRCS): %$(GENCXXEXT): %$(PROTOEXT) $(CXXSRCS2): %$(SERVICECXXEXT): %$(PROTOEXT) protoc -I . --grpc_out=. --plugin=protoc-gen-grpc=`which grpc_cpp_plugin` $< ``` -After the `protoc` step shown above, the Message class and Service class sources are compiled to generate object files of type `.pb.o` and `.grpc.pb.o` respectively. +The `protoc` step above uses the `grpc_cpp_plugin` that comes with the `gRPC` installation on your host build machine. After the `protoc` step shown above, the Message class and Service class sources are compiled to generate object files of type `.pb.o` and `.grpc.pb.o` respectively. These object files are combined together with the main application source file under the static library `os/build/libraries/libapps.a`. Additionally, applications using gRPC need to be run through an `ASYNC` task from TASH, given their memory consumption. Accordingly, you need
[numerics] adapt to the new structure Convex QP
@@ -139,7 +139,8 @@ void fc3d_Panagiotopoulos_FixedPoint(FrictionContactProblem* problem, double *re tangent_cqp->M = splitted_problem->M_tt; tangent_cqp->q = (double *) malloc(2* nc * sizeof(double)); tangent_cqp->ProjectionOnC = &Projection_ConvexQP_FC3D_Disk; - + tangent_cqp->A=NULL; + tangent_cqp->b= NULL; FrictionContactProblem_as_ConvexQP *fc3d_as_cqp= (FrictionContactProblem_as_ConvexQP*)malloc(sizeof(FrictionContactProblem_as_ConvexQP)); tangent_cqp->env = fc3d_as_cqp ; tangent_cqp->size = nc*2;
Reorder two nbtree.h function prototypes. Make the function prototype order consistent with the definition order in nbtpage.c.
@@ -776,10 +776,10 @@ extern Buffer _bt_relandgetbuf(Relation rel, Buffer obuf, extern void _bt_relbuf(Relation rel, Buffer buf); extern void _bt_pageinit(Page page, Size size); extern bool _bt_page_recyclable(Page page); -extern void _bt_delitems_delete(Relation rel, Buffer buf, - OffsetNumber *itemnos, int nitems, Relation heapRel); extern void _bt_delitems_vacuum(Relation rel, Buffer buf, OffsetNumber *deletable, int ndeletable); +extern void _bt_delitems_delete(Relation rel, Buffer buf, + OffsetNumber *itemnos, int nitems, Relation heapRel); extern int _bt_pagedel(Relation rel, Buffer buf); /*
Keep all API info in Api module This includes the additional grouping of functions and types.
@@ -37,28 +37,7 @@ Portability : ForeignFunctionInterface, GeneralizedNewtypeDeriving The core Lua types, including mappings of Lua types to Haskell. -} -module Foreign.Lua.Api.Types - ( GCCONTROL (..) - , LTYPE (..) - , fromLuaType - , toLuaType - , LuaState (..) - -- Function type synonymes - , LuaAlloc - , LuaCFunction - , LuaReader - , LuaWriter - -- Numbers - , LuaInteger - , LuaNumber - , LuaRelation (..) - , fromLuaRelation - , LuaStatus (..) - , toLuaStatus - , StackIndex (..) - , NumArgs (..) - , NumResults (..) - ) where +module Foreign.Lua.Api.Types where import Data.Int import Foreign.C
pull-hook: leave quietly, do not crash if we have already left
^+ tr-core ?- -.action %add (tr-add +.action) - %remove tr-remove:(tr-abed resource.action) + :: + %remove + ?. (~(has by tracking) resource.action) + tr-core + tr-remove:(tr-abed resource.action) == :: ++ tr-cleanup
* Fixed typo in ejdb2_node CMakeLists.txt
@@ -78,6 +78,6 @@ add_custom_target(yarn ALL if (BUILD_TESTS) add_test(NAME ejdb2node - COMMAND ${YARN_EXEC} run tests + COMMAND ${YARN_EXEC} run test WORKING_DIRECTORY ${NODE_PUB_DIR}) endif()
Add const to WriteHeaders args to match new interface. Resolves
@@ -2584,9 +2584,9 @@ class AVTGeneratorPlugin : public PluginBase h << "" << Endl; h << " virtual void OpenFile(const std::string &, int nb);" << Endl; h << " virtual void WriteHeaders(const avtDatabaseMetaData *," << Endl; - h << " std::vector<std::string> &, " << Endl; - h << " std::vector<std::string> &," << Endl; - h << " std::vector<std::string> &);" << Endl; + h << " const std::vector<std::string> &," << Endl; + h << " const std::vector<std::string> &," << Endl; + h << " const std::vector<std::string> &);" << Endl; h << " virtual void WriteChunk(vtkDataSet *, int);" << Endl; h << " virtual void CloseFile(void);" << Endl; h << "};" << Endl; @@ -2661,8 +2661,9 @@ class AVTGeneratorPlugin : public PluginBase c << "" << Endl; c << "void" << Endl; c << "avt"<<name<<"Writer::WriteHeaders(const avtDatabaseMetaData *md," << Endl; - c << " vector<string> &scalars, vector<string> &vectors," << Endl; - c << " vector<string> &materials)" << Endl; + c << " const vector<string> &scalars," << Endl; + c << " const vector<string> &vectors," << Endl; + c << " const vector<string> &materials)" << Endl; c << "{" << Endl; c << " // WRITE OUT HEADER INFO" << Endl; c << "}" << Endl;
Update suite0009 assert again.
(= (string my-port) (get comparison 3)) (= remote-ip (get comparison 0)) (= (string remote-port) (get comparison 1))) - (string/format "localname should match peername: ln=%j, pn=%j" ln pn))) + (string/format "localname should match peername: msg=%j, buf=%j" msg buf))) # Test on both server and client (defn names-handler
decisions: fix spelling
## Problem -Our manpages are written as markdown in doc/help and then converted to roff and stored in doc/man. +Our manpages are written as Markdown in doc/help and then converted to roff and stored in doc/man. Storing generated files is annoying, as it requires: - developers to always update generated files if the sources are changed
vell: Update fan table version 4 BRANCH=none TEST=Thermal team verified thermal policy is expected. Tested-by: Devin Lu
@@ -45,13 +45,13 @@ static const struct fan_step fan_table[] = { /* level 1 */ .on = { 50, 60, 50, 49, -1 }, .off = { 47, 99, 47, 46, -1 }, - .rpm = { 3600 }, + .rpm = { 3100 }, }, { /* level 2 */ .on = { 53, 60, 53, 52, -1 }, .off = { 49, 99, 49, 48, -1 }, - .rpm = { 4100 }, + .rpm = { 3850 }, }, { /* level 3 */
Log unprotected packet number when it is ignored
@@ -3425,6 +3425,12 @@ static int conn_recv_pkt(ngtcp2_conn *conn, const uint8_t *pkt, size_t pktlen, conn->final_hs_tx_offset && (!conn->server || (conn->acktr.flags & NGTCP2_ACKTR_FLAG_ACK_FINISHED_ACK))) { + ngtcp2_log_info( + &conn->log, NGTCP2_LOG_EVENT_CON, + "unprotected packet %" PRIu64 + " is ignored because handshake has finished", + ngtcp2_pkt_adjust_pkt_num(conn->max_rx_pkt_num, hd.pkt_num, 32)); + return 0; } break;
tests: runtime: in_proc: modify absent process name(#4274)
@@ -191,7 +191,7 @@ void flb_test_in_proc_absent_process(void) in_ffd = flb_input(ctx, (char *) "proc", NULL); TEST_CHECK(in_ffd >= 0); flb_input_set(ctx, in_ffd, "tag", "test", - "interval_sec", "1", "proc_name", "", + "interval_sec", "1", "proc_name", "-", "alert", "true", "mem", "on", "fd", "on", NULL); out_ffd = flb_output(ctx, (char *) "lib", &cb);
Removed print statement from LogBodyAtmEsc.
@@ -2223,8 +2223,6 @@ void LogBodyAtmEsc(BODY *body,CONTROL *control,OUTPUT *output,SYSTEM *system,UPD for (iOut=OUTSTARTATMESC;iOut<OUTENDATMESC;iOut++) { if (output[iOut].iNum > 0) { - printf("%d\n",iOut); - fflush(stdout); WriteLogEntry(body,control,&output[iOut],system,update,fnWrite[iOut],fp,iBody); } }
Parentheses fix.
@@ -255,7 +255,7 @@ static TCOD_Error xterm_recommended_console_size( fprintf(stdout, "\x1b[6n"); fflush(stdout); while (!SDL_TICKS_PASSED(SDL_GetTicks(), start_time + 100)) { - if (SDL_TICKS_PASSED(g_got_size_timestamp, start_time) { + if (SDL_TICKS_PASSED(g_got_size_timestamp, start_time)) { *columns = g_got_columns; *rows = g_got_rows; return TCOD_E_OK;
process: use correct cmake function
@@ -18,5 +18,5 @@ if (PLUGINPROCESS_FOUND) LINK_ELEKTRA elektra-pluginprocess elektra-invoke) else (PLUGINPROCESS_FOUND) - exclude_plugin (process "${PLUGINPROCESS_NOTFOUND_INFO}, pluginprocess library excluded, thus also excluding the process plugin") + remove_plugin (process "${PLUGINPROCESS_NOTFOUND_INFO}, pluginprocess library excluded, thus also excluding the process plugin") endif (PLUGINPROCESS_FOUND)
[apps] :art: Prevent clang-format from touchting the test_macros.h assembly header
#ifndef __TEST_MACROS_SCALAR_H #define __TEST_MACROS_SCALAR_H +// clang-format off #----------------------------------------------------------------------- # Helper macros @@ -1346,4 +1347,6 @@ pass: \ #define TEST_DATA +// clang-format on + #endif
Fixed register encoding
@@ -132,6 +132,7 @@ struct ZydisRegisterMapItem static const struct ZydisRegisterMapItem registerMap[] = { + { ZYDIS_REGCLASS_INVALID , ZYDIS_REGISTER_NONE , ZYDIS_REGISTER_NONE , 0 , 0 }, { ZYDIS_REGCLASS_GPR8 , ZYDIS_REGISTER_AL , ZYDIS_REGISTER_R15B , 8 , 8 }, { ZYDIS_REGCLASS_GPR16 , ZYDIS_REGISTER_AX , ZYDIS_REGISTER_R15W , 16 , 16 }, { ZYDIS_REGCLASS_GPR32 , ZYDIS_REGISTER_EAX , ZYDIS_REGISTER_R15D , 32 , 32 },
blocklevel: smart_write: Tidy local variable declarations Group them by use (and name). It's not reverse christmas tree, but it's a bit easier on the eye.
@@ -506,15 +506,18 @@ out: int blocklevel_smart_write(struct blocklevel_device *bl, uint64_t pos, const void *buf, uint64_t len) { + void *ecc_buf = NULL; + uint64_t ecc_start; + int ecc_protection; + + void *erase_buf = NULL; uint32_t erase_size; + const void *write_buf = buf; uint64_t write_len; uint64_t write_pos; - void *ecc_buf = NULL; - uint64_t ecc_start; - void *erase_buf; + int rc = 0; - int ecc_protection; if (!buf || !bl) { errno = EINVAL;
forward-ports /=host= scry to %rver
:: +scry: request a path in the urbit namespace :: ++ scry - |= * + |= [fur=(unit (set monk)) ren=@tas why=shop syd=desk lot=coin tyl=path] + ^- (unit (unit cage)) + ?. ?=(%& -.why) + ~ + =* who p.why + ?. ?=(%$ ren) + [~ ~] + ?. ?=(%$ -.lot) + [~ ~] + ?. ?=(%host syd) + [~ ~] + %- (lift (lift |=(a=hart:eyre [%hart !>(a)]))) + ^- (unit (unit hart:eyre)) + ?. =(our who) + ?. =([%da now] p.lot) + [~ ~] + ~& [%r %scry-foreign-host who] + ~ + =. p.lot ?.(=([%da now] p.lot) p.lot [%tas %real]) + ?+ p.lot [~ ~] + :: + [%tas %fake] + ``[& [~ 8.443] %& /localhost] + :: + [%tas %real] + =* domains domains.server-state.ax + =* ports ports.server-state.ax + =/ =host:eyre [%& ?^(domains n.domains /localhost)] + =/ secure=? &(?=(^ secure.ports) !?=(hoke:eyre host)) + =/ port=(unit @ud) + ?. secure + ?:(=(80 insecure.ports) ~ `insecure.ports) + ?> ?=(^ secure.ports) + ?:(=(443 u.secure.ports) ~ secure.ports) + ``[secure port host] + == --
ignore more warnings if option --ignore_warning is selected
@@ -4667,13 +4667,11 @@ if((fd_socket = socket(AF_PACKET, SOCK_RAW, htons(ETH_P_ALL))) < 0) return false; } - - memset(&ifr_old, 0, sizeof(ifr)); strncpy(ifr_old.ifr_name, interfacename, IFNAMSIZ -1); if(ioctl(fd_socket, SIOCGIFFLAGS, &ifr_old) < 0) { - perror("failed to save current interface flags"); + perror("failed to get current interface flags"); return false; } @@ -4693,8 +4691,11 @@ strncpy( ifr.ifr_name, interfacename, IFNAMSIZ -1); if(ioctl(fd_socket, SIOCSIFFLAGS, &ifr) < 0) { perror("failed to set interface down"); + if(ignorewarningflag == false) + { return false; } + } memset(&iwr, 0, sizeof(iwr)); strncpy( iwr.ifr_name, interfacename, IFNAMSIZ -1); @@ -4733,29 +4734,28 @@ ifr.ifr_flags = IFF_UP; if(ioctl(fd_socket, SIOCSIFFLAGS, &ifr) < 0) { perror("failed to set interface up"); + if(ignorewarningflag == false) + { return false; } + } + memset(&ifr, 0, sizeof(ifr)); strncpy( ifr.ifr_name, interfacename, IFNAMSIZ -1); if(ioctl(fd_socket, SIOCGIFFLAGS, &ifr) < 0) { perror("failed to get interface flags"); - return false; - } - if(ignorewarningflag == false) { - if((ifr.ifr_flags & (IFF_UP | IFF_RUNNING | IFF_BROADCAST)) != (IFF_UP | IFF_RUNNING | IFF_BROADCAST)) - { - fprintf(stderr, "interface is not up\n"); return false; } } -else + +if((ifr.ifr_flags & (IFF_UP | IFF_RUNNING | IFF_BROADCAST)) != (IFF_UP | IFF_RUNNING | IFF_BROADCAST)) { - if((ifr.ifr_flags & (IFF_UP | IFF_BROADCAST)) != (IFF_UP | IFF_BROADCAST)) + fprintf(stderr, "interface may not be operational\n"); + if(ignorewarningflag == false) { - fprintf(stderr, "interface is not up\n"); return false; } } @@ -5468,6 +5468,11 @@ if(testinterface() == false) exit(EXIT_FAILURE); } +if(ignorewarningflag == true) + { + printf("warnings are ignored - do not report issues!\n"); + } + printf("initialization...\n"); if(opensocket() == false) {
maven: use
@@ -9,7 +9,7 @@ if ! command -v mvn; then exit 0 fi -if ! test -f /usr/share/java/libelektra4j.jar; then +if ! test -f @CMAKE_INSTALL_PREFIX@/share/java/libelektra4j.jar; then echo "libelektra4j.jar not installed, will skip" exit 0 fi @@ -23,8 +23,8 @@ echo "Testing build with mvn" cd "$EXTERNAL_FOLDER" mvn org.apache.maven.plugins:maven-install-plugin:install-file \ - -Dfile=/usr/share/java/libelektra4j.jar \ - -DpomFile=/usr/share/java/libelektra4j.pom.xml + -Dfile=@CMAKE_INSTALL_PREFIX@/share/java/libelektra4j.jar \ + -DpomFile=@CMAKE_INSTALL_PREFIX@/share/java/libelektra4j.pom.xml mvn clean package test
add wire to +coup-ping-send sample
:: +coup-ping-send: handle ames ack :: ++ coup-ping-send - |= error=(unit tang) + |= [=wire error=(unit tang)] ^- [(list move) _app-core] :: + ?> =(/send-ping wire) %- (print-error "ping: coup" error) set-timer :: +wake: handle timer firing
added replaycount measurement (similar to EAPOLTIME measurement)
@@ -1785,6 +1785,7 @@ for(zeiger = messagelist; zeiger < messagelist +MESSAGELIST_MAX; zeiger++) { if(zeiger->rc >= rc) rcgap = zeiger->rc -rc; else rcgap = rc -zeiger->rc; + if(rcgap > rcgapmax) rcgapmax = rcgap; if(rcgap > ncvalue) continue; if(memcmp(zeiger->client, macclient, 6) != 0) continue; if(memcmp(zeiger->ap, macap, 6) != 0) continue; @@ -1803,6 +1804,11 @@ for(zeiger = messagelist; zeiger < messagelist +MESSAGELIST_MAX; zeiger++) if(eaptimestamp > zeiger->timestamp) eaptimegap = eaptimestamp -zeiger->timestamp; else eaptimegap = zeiger->timestamp -eaptimestamp; mpfield = ST_M14E4; + if(myaktreplaycount > 0) + { + if(zeiger->rc == myaktreplaycount) continue; + } + if(rcgap > rcgapmax) rcgapmax = rcgap; if(eaptimegap > eaptimegapmax) eaptimegapmax = eaptimegap; if(eaptimegap <= eapoltimeoutvalue) addhandshake(eaptimegap, rcgap, messagelist +MESSAGELIST_MAX, zeiger, keyver, mpfield); } @@ -1865,6 +1871,11 @@ for(zeiger = messagelist; zeiger < messagelist +MESSAGELIST_MAX; zeiger++) if(eaptimestamp > zeiger->timestamp) eaptimegap = eaptimestamp -zeiger->timestamp; else eaptimegap = zeiger->timestamp -eaptimestamp; mpfield = ST_M32E2; + if(myaktreplaycount > 0) + { + if(zeiger->rc == myaktreplaycount) continue; + } + if(rcgap > rcgapmax) rcgapmax = rcgap; if(eaptimegap > eaptimegapmax) eaptimegapmax = eaptimegap; if(eaptimegap <= eapoltimeoutvalue) addhandshake(eaptimegap, rcgap, zeiger, messagelist +MESSAGELIST_MAX, keyver, mpfield); } @@ -1960,7 +1971,9 @@ for(zeiger = messagelist; zeiger < messagelist +MESSAGELIST_MAX; zeiger++) eaptimegap = 0; mpfield |= ST_APLESS; } + if(rcgap != 0) continue; } + if(rcgap > rcgapmax) rcgapmax = rcgap; if(eaptimegap > eaptimegapmax) eaptimegapmax = eaptimegap; if(eaptimegap <= eapoltimeoutvalue) addhandshake(eaptimegap, rcgap, messagelist +MESSAGELIST_MAX, zeiger, keyver, mpfield); }
Make function unique with prefix
@@ -130,7 +130,7 @@ espi_conn_manual_tcp_read_data(esp_conn_p conn, size_t len) { * \return Connection current validation ID */ uint8_t -conn_get_val_id(esp_conn_p conn) { +espi_conn_get_val_id(esp_conn_p conn) { uint8_t val_id; esp_core_lock(); val_id = conn->val_id; @@ -177,7 +177,7 @@ conn_send(esp_conn_p conn, const esp_ip_t* const ip, esp_port_t port, const void ESP_MSG_VAR_REF(msg).msg.conn_send.remote_ip = ip; ESP_MSG_VAR_REF(msg).msg.conn_send.remote_port = port; ESP_MSG_VAR_REF(msg).msg.conn_send.fau = fau; - ESP_MSG_VAR_REF(msg).msg.conn_send.val_id = conn_get_val_id(conn); + ESP_MSG_VAR_REF(msg).msg.conn_send.val_id = espi_conn_get_val_id(conn); return espi_send_msg_to_producer_mbox(&ESP_MSG_VAR_REF(msg), espi_initiate_cmd, 60000); } @@ -273,7 +273,7 @@ esp_conn_close(esp_conn_p conn, const uint32_t blocking) { ESP_MSG_VAR_ALLOC(msg); ESP_MSG_VAR_REF(msg).cmd_def = ESP_CMD_TCPIP_CIPCLOSE; ESP_MSG_VAR_REF(msg).msg.conn_close.conn = conn; - ESP_MSG_VAR_REF(msg).msg.conn_close.val_id = conn_get_val_id(conn); + ESP_MSG_VAR_REF(msg).msg.conn_close.val_id = espi_conn_get_val_id(conn); flush_buff(conn); /* First flush buffer */ res = espi_send_msg_to_producer_mbox(&ESP_MSG_VAR_REF(msg), espi_initiate_cmd, 1000);
freertos: Update the docuementation of the ulBitsToClearOnEntry parameter in xTaskGenericNotifyWait() function. Closes The description of how the xTaskGenericNotifyWait parameter is handled in the xTaskGenericNotifyWait() function was inaccurate. In this commit, the description was updated to match the implementation of xTaskGenericNotifyWait().
@@ -2656,12 +2656,13 @@ BaseType_t xTaskGenericNotifyFromISR( TaskHandle_t xTaskToNotify, * not have this parameter and always waits for notifications on index 0. * * @param ulBitsToClearOnEntry Bits that are set in ulBitsToClearOnEntry value - * will be cleared in the calling task's notification value before the task - * checks to see if any notifications are pending, and optionally blocks if no - * notifications are pending. Setting ulBitsToClearOnEntry to ULONG_MAX (if - * limits.h is included) or 0xffffffffUL (if limits.h is not included) will have - * the effect of resetting the task's notification value to 0. Setting - * ulBitsToClearOnEntry to 0 will leave the task's notification value unchanged. + * will be cleared in the calling task's notification value before the task is + * marked as waiting for a new notification (provided a notification is not + * already pending). Optionally blocks if no notifications are pending. Setting + * ulBitsToClearOnEntry to ULONG_MAX (if limits.h is included) or 0xffffffffUL + * (if limits.h is not included) will have the effect of resetting the task's + * notification value to 0. Setting ulBitsToClearOnEntry to 0 will leave the + * task's notification value unchanged. * * @param ulBitsToClearOnExit If a notification is pending or received before * the calling task exits the xTaskNotifyWait() function then the task's
pgindent worker.c. This is a leftover from commit Changing this separately because this file is being modified for upcoming patch logical replication of 2PC. Author: Peter Smith Discussion:
@@ -752,10 +752,10 @@ apply_handle_stream_start(StringInfo s) /* * Start a transaction on stream start, this transaction will be committed - * on the stream stop unless it is a tablesync worker in which case it will - * be committed after processing all the messages. We need the transaction - * for handling the buffile, used for serializing the streaming data and - * subxact info. + * on the stream stop unless it is a tablesync worker in which case it + * will be committed after processing all the messages. We need the + * transaction for handling the buffile, used for serializing the + * streaming data and subxact info. */ ensure_transaction();
chat-cli: our-self with bowl set We were calling it directly, rather than through the (initialized) tc core, causing the bowl in its context to be the *bowl, resulting in [~zod /] audience.
^- (quip card _this) :- [connect:tc]~ %_ this - audience [[our-self /] ~ ~] + audience [[our-self:tc /] ~ ~] settings (sy %showtime %notify ~) width 80 ==
Zero history buffers
@@ -256,31 +256,31 @@ BOOLEAN PhProcessProviderInitialization( PhInterruptsProcessInformation->UniqueProcessId = INTERRUPTS_PROCESS_ID; PhInterruptsProcessInformation->InheritedFromUniqueProcessId = SYSTEM_IDLE_PROCESS_ID; - PhCpuInformation = PhAllocate( + PhCpuInformation = PhAllocateZero( sizeof(SYSTEM_PROCESSOR_PERFORMANCE_INFORMATION) * PhSystemProcessorInformation.NumberOfProcessors ); - PhCpuIdleCycleTime = PhAllocate( + PhCpuIdleCycleTime = PhAllocateZero( sizeof(LARGE_INTEGER) * PhSystemProcessorInformation.NumberOfProcessors ); - PhCpuSystemCycleTime = PhAllocate( + PhCpuSystemCycleTime = PhAllocateZero( sizeof(LARGE_INTEGER) * PhSystemProcessorInformation.NumberOfProcessors ); - usageBuffer = PhAllocate( + usageBuffer = PhAllocateZero( sizeof(FLOAT) * PhSystemProcessorInformation.NumberOfProcessors * 2 ); - deltaBuffer = PhAllocate( + deltaBuffer = PhAllocateZero( sizeof(PH_UINT64_DELTA) * PhSystemProcessorInformation.NumberOfProcessors * 3 // 4 for PhCpusIdleCycleDelta ); - historyBuffer = PhAllocate( + historyBuffer = PhAllocateZero( sizeof(PH_CIRCULAR_BUFFER_FLOAT) * PhSystemProcessorInformation.NumberOfProcessors * 2 @@ -297,8 +297,6 @@ BOOLEAN PhProcessProviderInitialization( PhCpusKernelHistory = historyBuffer; PhCpusUserHistory = PhCpusKernelHistory + PhSystemProcessorInformation.NumberOfProcessors; - memset(deltaBuffer, 0, sizeof(PH_UINT64_DELTA) * PhSystemProcessorInformation.NumberOfProcessors); - return TRUE; } @@ -1452,7 +1450,7 @@ FORCEINLINE VOID PhpUpdateDynamicInfoProcessItem( } else { - ProcessItem->PriorityClass = 0; + ProcessItem->PriorityClass = PROCESS_PRIORITY_CLASS_UNKNOWN; } ProcessItem->KernelTime = Process->KernelTime;
delete goal: check for sequence number as well
@@ -1413,7 +1413,10 @@ RetrieveGoalConfigsFromPlatformConfigData( goto FinishError; } - if (NULL == pPcdConfHeader || pPcdConfHeader->ConfInputStartOffset == 0 || pPcdConfHeader->ConfInputDataSize == 0) { + pPcdConfInput = GET_NVDIMM_PLATFORM_CONFIG_INPUT(pPcdConfHeader); + pPcdConfOutput = GET_NVDIMM_PLATFORM_CONFIG_OUTPUT(pPcdConfHeader); + + if (NULL == pPcdConfHeader || pPcdConfHeader->ConfInputStartOffset == 0 || pPcdConfHeader->ConfInputDataSize == 0 || pPcdConfInput->SequenceNumber == pPcdConfOutput->SequenceNumber) { pDimm->GoalConfigStatus = GOAL_CONFIG_STATUS_NO_GOAL_OR_SUCCESS; pDimm->RegionsGoalConfig = FALSE; pDimm->PcdSynced = TRUE; @@ -1422,8 +1425,6 @@ RetrieveGoalConfigsFromPlatformConfigData( continue; } - pPcdConfInput = GET_NVDIMM_PLATFORM_CONFIG_INPUT(pPcdConfHeader); - PcdInputValid = FALSE; if (pPcdConfInput->Header.Signature != NVDIMM_CONFIGURATION_INPUT_SIG) { NVDIMM_DBG("Incorrect signature of the DIMM Config Input table"); @@ -1527,7 +1528,6 @@ RetrieveGoalConfigsFromPlatformConfigData( /** Unknown status as default **/ pDimm->GoalConfigStatus = GOAL_CONFIG_STATUS_UNKNOWN; - pPcdConfOutput = GET_NVDIMM_PLATFORM_CONFIG_OUTPUT(pPcdConfHeader); if (pPcdConfHeader->ConfOutputStartOffset == 0 || pPcdConfHeader->ConfOutputDataSize == 0 || pPcdConfInput->SequenceNumber != pPcdConfOutput->SequenceNumber) {
nimble/ll: Fix missing rfclk restart when not ending sync event
@@ -999,6 +999,10 @@ ble_ll_sync_rx_pkt_in(struct os_mbuf *rxpdu, struct ble_mbuf_hdr *hdr) */ if (!sm->flags) { ble_ll_scan_chk_resume(); + +#ifdef BLE_XCVR_RFCLK + ble_ll_sched_rfclk_chk_restart(); +#endif return; } @@ -1044,6 +1048,10 @@ ble_ll_sync_rx_pkt_in(struct os_mbuf *rxpdu, struct ble_mbuf_hdr *hdr) /* if chain was scheduled we don't end event yet */ /* TODO should we check resume only if offset is high? */ ble_ll_scan_chk_resume(); + +#ifdef BLE_XCVR_RFCLK + ble_ll_sched_rfclk_chk_restart(); +#endif return; }
Fix install target after previous change broke the install target because system/box86.conf should now be taken from the build directory, sorry for that.
@@ -501,7 +501,7 @@ if(NOT _x86 AND NOT _x86_64) install(TARGETS ${BOX86} RUNTIME DESTINATION bin) configure_file(system/box86.conf.cmake system/box86.conf) - install(FILES ${CMAKE_SOURCE_DIR}/system/box86.conf DESTINATION /etc/binfmt.d/) + install(FILES ${CMAKE_BINARY_DIR}/system/box86.conf DESTINATION /etc/binfmt.d/) install(FILES ${CMAKE_SOURCE_DIR}/x86lib/libstdc++.so.6 DESTINATION /usr/lib/i386-linux-gnu/) install(FILES ${CMAKE_SOURCE_DIR}/x86lib/libstdc++.so.5 DESTINATION /usr/lib/i386-linux-gnu/) install(FILES ${CMAKE_SOURCE_DIR}/x86lib/libgcc_s.so.1 DESTINATION /usr/lib/i386-linux-gnu/)
VERSION bump to version 2.0.185
@@ -61,7 +61,7 @@ set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}) # set version of the project set(LIBYANG_MAJOR_VERSION 2) set(LIBYANG_MINOR_VERSION 0) -set(LIBYANG_MICRO_VERSION 184) +set(LIBYANG_MICRO_VERSION 185) set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_MICRO_VERSION}) # set version of the library set(LIBYANG_MAJOR_SOVERSION 2)
crash: fix unsigned div-by-zero crash The bug was introduced in chromium:1834603 TEST=ensure crash udivzero is triggered BRANCH=none
@@ -324,7 +324,7 @@ static int command_crash(int argc, char **argv) volatile int zero = 0; cflush(); - ccprintf("%08x", 1 / zero); + ccprintf("%08x", 1U / zero); #ifdef CONFIG_CMD_STACKOVERFLOW } else if (!strcasecmp(argv[1], "stack")) { stack_overflow_recurse(1);
pci_bar_init(): fix unaligned parameter for map()
@@ -133,7 +133,8 @@ void pci_bar_init(pci_dev dev, struct pci_bar *b, int bar, bytes offset, bytes l bytes len = pad(length, PAGESIZE); b->vaddr = allocate(virtual_page, len); pci_debug("%s: %p[0x%x] -> 0x%lx[0x%lx]+0x%x\n", __func__, b->vaddr, len, b->addr, b->size, offset); - map(u64_from_pointer(b->vaddr), b->addr + offset, len, PAGE_DEV_FLAGS, pages); + map(u64_from_pointer(b->vaddr), b->addr, len, PAGE_DEV_FLAGS, pages); + b->vaddr += offset; } }
upstream: only reset the IO timeout counter if the connection is valid
@@ -672,6 +672,7 @@ struct flb_connection *flb_upstream_conn_get(struct flb_upstream *u) conn->net_error = -1; err = flb_socket_error(conn->fd); + if (!FLB_EINPROGRESS(err) && err != 0) { flb_debug("[upstream] KA connection #%i is in a failed state " "to: %s:%i, cleaning up", @@ -706,7 +707,9 @@ struct flb_connection *flb_upstream_conn_get(struct flb_upstream *u) conn = create_conn(u); } + if (conn != NULL) { flb_connection_reset_io_timeout(conn); + } return conn; }
Updated logo display code (more generic)
#include "kdebug.h" #if (ENABLE_LOGO != 0) +#define LOGO_SIZE 64 + #include "libres.h" #endif @@ -490,7 +492,7 @@ void _vint_callback() // palette fading processing if (vintp & PROCESS_PALETTE_FADING) { - if (!VDP_doFadingStep(FALSE)) vintp &= ~PROCESS_PALETTE_FADING; + if (!VDP_doFadingStep()) vintp &= ~PROCESS_PALETTE_FADING; } VIntProcess = vintp; @@ -568,7 +570,7 @@ void _start_entry() #if (ENABLE_LOGO != 0) { - Bitmap *logo = unpackBitmap(&logo_lib, NULL); + Bitmap *logo = unpackBitmap(&sgdk_logo, NULL); // correctly unpacked if (logo) @@ -580,10 +582,10 @@ void _start_entry() #if (ZOOMING_LOGO != 0) // init fade in to 30 step - if (VDP_initFading(logo_pal->index, logo_pal->index + (logo_pal->length - 1), palette_black, logo_pal->data, 30, FALSE)) + if (VDP_initFading(0, logo_pal->length - 1, palette_black, logo_pal->data, 30)) { // prepare zoom - u16 size = 256; + u16 size = LOGO_SIZE; // while zoom not completed while(size > 0) @@ -594,19 +596,19 @@ void _start_entry() else size = 0; // get new size - const u32 w = 256 - size; + const u32 w = LOGO_SIZE - size; // adjust palette for fade - VDP_doFadingStep(FALSE); + VDP_doFadingStep(); // zoom logo - BMP_loadAndScaleBitmap(logo, 64 + ((256 - w) >> 2), (256 - w) >> 1, w >> 1, w >> 1, FALSE); + BMP_loadAndScaleBitmap(logo, 128 - (w >> 1), 80 - (w >> 1), w, w, FALSE); // flip to screen BMP_flip(FALSE); } // while fade not completed - while(VDP_doFadingStep(TRUE)); + while(VDP_doFadingStep()); } // wait 1 second @@ -616,19 +618,19 @@ void _start_entry() VDP_setPalette(PAL0, palette_black); // don't load the palette immediatly - BMP_loadBitmap(logo, 64, 0, FALSE); + BMP_loadBitmap(logo, 128 - (LOGO_SIZE / 2), 80 - (LOGO_SIZE / 2), FALSE); // flip BMP_flip(0); // fade in logo - VDP_fade((PAL0 << 4) + logo_pal->index, (PAL0 << 4) + (logo_pal->index + (logo_pal->length - 1)), palette_black, logo_pal->data, 30, FALSE); + VDP_fade((PAL0 << 4), (PAL0 << 4) + (logo_pal->length - 1), palette_black, logo_pal->data, 30, FALSE); // wait 1.5 second waitTick(TICKPERSECOND * 1.5); #endif - // fade out logo - VDP_fadePalOut(PAL0, 20, 0); + VDP_fadeOutPal(PAL0, 20, FALSE); + // wait 0.5 second waitTick(TICKPERSECOND * 0.5);
BugID:16944965: Update Config.in according to usb changes
## --- Generated Automatically --- source "kernel/bus/mbmaster/Config.in" -source "kernel/bus/usb/usb_device/Config.in" -source "kernel/bus/usb/usb_host/Config.in" +source "kernel/bus/usb/Config.in" source "kernel/cli/Config.in" source "kernel/cplusplus/Config.in" source "kernel/debug/Config.in"
tim clk config fix
@@ -208,28 +208,19 @@ static void timer_init(struct rt_hwtimer_device *timer, rt_uint32_t state) stm32_tim_pclkx_doubler_get(&pclk1_doubler, &pclk2_doubler); /* time init */ -#if defined(SOC_SERIES_STM32F2) || defined(SOC_SERIES_STM32F4) || defined(SOC_SERIES_STM32F7) - if (tim->Instance == TIM9 || tim->Instance == TIM10 || tim->Instance == TIM11) -#elif defined(SOC_SERIES_STM32L4) - if (tim->Instance == TIM15 || tim->Instance == TIM16 || tim->Instance == TIM17) -#elif defined(SOC_SERIES_STM32WB) - if (tim->Instance == TIM16 || tim->Instance == TIM17) -#elif defined(SOC_SERIES_STM32MP1) - if(tim->Instance == TIM14 || tim->Instance == TIM16 || tim->Instance == TIM17) -#elif defined(SOC_SERIES_STM32F1) || defined(SOC_SERIES_STM32F0) || defined(SOC_SERIES_STM32G0) || defined(SOC_SERIES_STM32H7) - if (0) -#else -#error "This driver has not supported this series yet!" -#endif + /* Some series may only have APBPERIPH_BASE, don't have HAL_RCC_GetPCLK2Freq */ +#if defined(APBPERIPH_BASE) + prescaler_value = (uint32_t)(HAL_RCC_GetPCLK1Freq() * pclk1_doubler / 10000) - 1; +#elif defined(APB1PERIPH_BASE) || defined(APB2PERIPH_BASE) + if ((rt_uint32_t)htim->Instance >= APB2PERIPH_BASE) { -#if !(defined(SOC_SERIES_STM32F0) || defined(SOC_SERIES_STM32G0)) prescaler_value = (uint32_t)(HAL_RCC_GetPCLK2Freq() * pclk2_doubler / 10000) - 1; -#endif } else { prescaler_value = (uint32_t)(HAL_RCC_GetPCLK1Freq() * pclk1_doubler / 10000) - 1; } +#endif tim->Init.Period = 10000 - 1; tim->Init.Prescaler = prescaler_value; tim->Init.ClockDivision = TIM_CLOCKDIVISION_DIV1;
mtd/progmem: fix incorrect calculation on page offset Upper MTD layer passes as parameter block numbers that are based on erasesize, not blocksize. So, we need to convert it.
@@ -169,12 +169,15 @@ static int32_t progmem_log2(uint32_t num) static int progmem_erase(FAR struct mtd_dev_s *dev, off_t startblock, size_t nblocks) { + int page; ssize_t result; + FAR struct progmem_dev_s *priv = (FAR struct progmem_dev_s *)dev; - /* Erase the specified blocks and return status (OK or a negated errno) */ + /* Erase the specified blocks and return status (OK or a negated errno) */ while (nblocks > 0) { - result = up_progmem_erasepage(startblock); + page = startblock << (priv->blkshift - priv->pgshift); + result = up_progmem_erasepage(page); if (result < 0) { return (int)result; }
Fix race introduced from commit
@@ -1179,8 +1179,6 @@ VOID PhpProcessQueryStage1( { Data->PackageFullName = PhGetProcessPackageFullName(processHandleLimited); } - - PhpQueueProcessQueryStage2(processItem); } VOID PhpProcessQueryStage2( @@ -1323,6 +1321,9 @@ VOID PhpFillProcessItemStage1( processItem->IsImmersive = Data->IsImmersive; PhSwapReference(&processItem->Record->CommandLine, processItem->CommandLine); + + // Note: Queue stage 2 processing after filling stage1 process data. + PhpQueueProcessQueryStage2(processItem); } VOID PhpFillProcessItemStage2(
upgrade all mpi families
@@ -105,7 +105,7 @@ modules environment to make it the default. ohpc-gnu8-python-libs \ ohpc-gnu8-runtimes \ ohpc-gnu8-serial \ - ohpc-gnu8-openmpi3-parallel-libs + ohpc-gnu8-parallel-libs # Update default environment [sms](*\#*) (*\remove*) lmod-defaults-gnu7-openmpi3-ohpc
fix(lodepng): fix NULL pointer access
@@ -5754,7 +5754,7 @@ static unsigned preProcessScanlines(unsigned char** out, size_t* outsize, const adam7 = (unsigned char*)lodepng_malloc(passstart[7]); if(!adam7 && passstart[7]) error = 83; /*alloc fail*/ - if(!error) { + if(!error && adam7) { unsigned i; Adam7_interlace(adam7, in, w, h, bpp);
ci inline apt-get commands
@@ -75,7 +75,8 @@ jobs: # publicly in your project's package repository, so it is vital that # no secrets are present in the container state or logs. install: | - ./scripts/install-prerequisites.sh + apt-get update -y + apt-get install -y gcc python3 libpng-dev ruby-full gcovr cmake # Produce a binary artifact and place it in the mounted volume run: |
Change PXF automation test group to pipeline parameter
@@ -2619,6 +2619,7 @@ jobs: passed: - gate_compile_end +## PXF Regression Test Start - name: regression_tests_pxf_hdp_rpm plan: - aggregate: @@ -2634,12 +2635,11 @@ jobs: - get: pxf_automation_src trigger: true - get: centos-gpdb-dev-6 - - aggregate: - task: regression_tests_pxf file: gpdb_src/concourse/tasks/regression_tests_pxf.yml image: centos-gpdb-dev-6 params: - GROUP: gpdb + GROUP: {{pxf_automation_test_group}} HADOOP_CLIENT: HDP TARGET_OS: centos TARGET_OS_VERSION: 6 @@ -2659,12 +2659,11 @@ jobs: - get: pxf_automation_src trigger: true - get: centos-gpdb-dev-6 - - aggregate: - task: regression_tests_pxf file: gpdb_src/concourse/tasks/regression_tests_pxf.yml image: centos-gpdb-dev-6 params: - GROUP: gpdb + GROUP: {{pxf_automation_test_group}} HADOOP_CLIENT: TAR TARGET_OS: centos TARGET_OS_VERSION: 6 @@ -2688,7 +2687,7 @@ jobs: file: gpdb_src/concourse/tasks/regression_tests_pxf.yml image: centos-gpdb-dev-6 params: - GROUP: gpdb + GROUP: {{pxf_automation_test_group}} HADOOP_CLIENT: CDH TARGET_OS: centos TARGET_OS_VERSION: 6 @@ -2712,10 +2711,11 @@ jobs: file: gpdb_src/concourse/tasks/regression_tests_pxf.yml image: centos-gpdb-dev-6 params: - GROUP: gpdb + GROUP: {{pxf_automation_test_group}} HADOOP_CLIENT: TAR TARGET_OS: centos TARGET_OS_VERSION: 6 +## PXF Regression Tests End - name: regression_tests_gphdfs_centos plan:
pyocf: Add argtype/restype for ocf_volume_create
@@ -917,3 +917,5 @@ lib.ocf_mngt_add_partition_to_cache.argtypes = [ ] lib.ocf_mngt_cache_io_classes_configure.restype = c_int lib.ocf_mngt_cache_io_classes_configure.argtypes = [c_void_p, c_void_p] +lib.ocf_volume_create.restype = c_int +lib.ocf_volume_create.argtypes = [c_void_p, c_void_p, c_void_p]
doc: remove part of sentence Alternative: suggest to use scripts/dev/run_env
@@ -38,7 +38,6 @@ libelektra.jar), e.g.: export CLASSPATH=".:/usr/share/java/libelektra4j.jar:/usr/share/java/jna.jar" ``` -Or, if you want to use Elektra from cmake's build directory, use ` Then you can compile and run [HelloElektra](HelloElektra.java):
language-server: retain state on reload
easy-print=language-server-easy-print, rune-snippet=language-server-rune-snippet, build=language-server-build, - default-agent + default-agent, verb |% +$ card card:agent:gall +$ lsp-req == -- ^- agent:gall +%+ verb | =| state-zero =* state - =< |= old-state=vase ^- (quip card _this) ~& > %lsp-upgrade - [~ this(state *state-zero)] + [~ this(state !<(state-zero old-state))] :: ++ on-poke ^+ on-poke:*agent:gall ^- =tape %- zing %+ join "\0a" - %+ scag 20 - (~(win re ~(duck easy-print detail.i.u.p.tab-list)) 2 80) + %+ scag 40 + (~(win re ~(duck easy-print detail.i.u.p.tab-list)) 0 140) :: ++ sync-buf |= [buf=wall changes=(list change:lsp-sur)]
Show hex value of packet type
@@ -92,7 +92,7 @@ std::string strpkttype_long(uint8_t type) { case NGTCP2_PKT_PUBLIC_RESET: return "Public Reset"; default: - return "UNKNOWN (0x" + util::format_hex(type) + ")"; + return "UNKNOWN"; } } } // namespace @@ -107,7 +107,7 @@ std::string strpkttype_short(uint8_t type) { case NGTCP2_PKT_03: return "Short 03"; default: - return "UNKNOWN (0x" + util::format_hex(type) + ")"; + return "UNKNOWN"; } } } // namespace @@ -208,17 +208,18 @@ void print_indent() { fprintf(outfile, " "); } namespace { void print_pkt_long(ngtcp2_dir dir, const ngtcp2_pkt_hd *hd) { - fprintf(outfile, "%s%s%s CID=0x%016" PRIx64 " PKN=%" PRIu64 " V=0x%08x\n", + fprintf(outfile, + "%s%s%s(0x%02x) CID=0x%016" PRIx64 " PKN=%" PRIu64 " V=0x%08x\n", pkt_ansi_esc(dir), strpkttype_long(hd->type).c_str(), ansi_escend(), - hd->conn_id, hd->pkt_num, hd->version); + hd->type, hd->conn_id, hd->pkt_num, hd->version); } } // namespace namespace { void print_pkt_short(ngtcp2_dir dir, const ngtcp2_pkt_hd *hd) { - fprintf(outfile, "%s%s%s CID=0x%016" PRIx64 " PKN=%" PRIu64 "\n", + fprintf(outfile, "%s%s%s(0x%02x) CID=0x%016" PRIx64 " PKN=%" PRIu64 "\n", pkt_ansi_esc(dir), strpkttype_short(hd->type).c_str(), ansi_escend(), - hd->conn_id, hd->pkt_num); + hd->type, hd->conn_id, hd->pkt_num); } } // namespace
converting iron and zinc cores to lead bug In the current release candidate, this happens: ``` > ^?(^|(add)) wrap-gold ford: %slim failed: ford: %ride failed to compute type: ``` This is a jet mismatch from `+wrap`, I believe: You should be able to convert iron and zinc cores to lead.
if ( c3n == u3r_trel(pq_sut, &ppq_sut, &qpq_sut, &rpq_sut) ) { return u3m_bail(c3__fail); } - else if ( c3__gold != rpq_sut ) { - return u3m_error("wrap-gold"); + else if ( (c3__gold != rpq_sut) && + (c3__lead != yoz) ) { + return u3m_error("wrap-metal"); } else { return u3nt(c3__core,
libhfuzz: don't use 128MiB data segment vars, use malloc()
@@ -29,8 +29,6 @@ __attribute__((weak)) size_t LLVMFuzzerMutate( return 0; } -static uint8_t buf[_HF_INPUT_MAX_SIZE] = {0}; - static const uint8_t* inputFile = NULL; __attribute__((constructor)) static void initializePersistent(void) { if (fcntl(_HF_INPUT_FD, F_GETFD) == -1 && errno == EBADFD) { @@ -104,7 +102,8 @@ static int HonggfuzzRunFromFile(int argc, char** argv) { LOG_I("Accepting input from '%s'", fname); LOG_I("Usage for fuzzing: honggfuzz -P [flags] -- %s", argv[0]); - ssize_t len = files_readFromFd(in_fd, buf, sizeof(buf)); + uint8_t* buf = (uint8_t*)util_Malloc(_HF_INPUT_MAX_SIZE); + ssize_t len = files_readFromFd(in_fd, buf, _HF_INPUT_MAX_SIZE); if (len < 0) { LOG_E("Couldn't read data from stdin: %s", strerror(errno)); return -1; @@ -118,8 +117,7 @@ int HonggfuzzMain(int argc, char** argv) { if (LLVMFuzzerInitialize) { LLVMFuzzerInitialize(&argc, &argv); } - - if (LLVMFuzzerTestOneInput == NULL) { + if (!LLVMFuzzerTestOneInput) { LOG_F( "Define 'int LLVMFuzzerTestOneInput(uint8_t * buf, size_t len)' in your " "code to make it work");
base-dev: initial `mime:grab` impl for story mark
++ grab |% :: convert from ++ noun (map tako:clay ,[title=@t body=@t]) :: clam from %noun - ++ mime |=([p=mite q=octs] q.q) :: retrieve form %mime + ++ mime :: retrieve form %mime + |= [p=mite q=octs] + ^- (map tako:clay [title=@t body=@t]) + =/ commit-parser + ;~ sfix :: throw away the trailing newline + ;~ pfix (jest 'commit: ') :: throw away leading literal 'commit' + (cook @uv ;~(pfix (jest '0v') viz:ag)) :: parse a @uv + == + :: + (just '\0a') :: parse trailing newline + == + :: + =/ title-parser + ;~ sfix :: throw away trailing newlines + (cook crip (star prn)) :: parse any number of ascii characters, turn into cord + (jest '\0a\0a') :: parse two newlines + == + :: + =/ body-parser + ;~ sfix :: parse the following and discard terminator + %- star :: parse 0 or more of the following + %+ cook crip :: convert to cord + ;~ less (jest '---\0a') :: exclude '---' from the following parse + ;~(sfix (star prn) (just '\0a')) :: parse 0 or more prn chars then discard literal newline + == + :: + (jest '---\0a') :: parse the terminator + == + :: + =/ story-parser + %- star :: parse any number of the chapters + ;~ plug :: parse chapter: a commit, followed by a title, followed by a body + commit-parser + title-parser + body-parser + == + :: + =/ story-text `@t`q.q + =/ parsed-story `(list [@uv @t wain])`(rash story-text story-parser) + %- ~(gas by *(map tako:clay [title=@t body=@t])) + %+ turn parsed-story + |= [tak=tako:clay title=@t body=wain] + [tak title (of-wain:format body)] -- --
AIX: correct DSOFLAGS and LDFLAGS for shared library support.
@@ -44,6 +44,15 @@ AS_IF([test x$enable_shared != xno], [ DSO="\$(CC)" DSOXX="\$(CXX)" DSOFLAGS="$DSOFLAGS -Wl,-no_warn_inits -dynamiclib -single_module -lc" + ], [aix*], [ + LIBCUPS="lib$cupsbase.so.2" + AS_IF([test "x$cupsimagebase" != x], [ + LIBCUPSIMAGE="lib$cupsimagebase.so.2" + ]) + DSO="\$(CC)" + DSOXX="\$(CXX)" + DSOFLAGS="$DSOFLAGS -Wl,-G -o \`basename \$@\` + LDFLAGS="$LDFLAGS $TLSFLAGS -liconv -lz -lm" ], [*], [ AC_MSG_NOTICE([Warning: Shared libraries may not work, trying -shared option.]) LIBCUPS="lib$cupsbase.so.2"
nvbios: Add 0x9e init opcode Seen on Pascal+.
@@ -708,6 +708,11 @@ void printscript (uint16_t soff) { printf ("I2C_IF_LONG\tI2C[0x%02x][0x%02x][0x%02x:0x%02x] & 0x%02x == 0x%02x\n", bios->data[soff+1], bios->data[soff+2], bios->data[soff+4], bios->data[soff+3], bios->data[soff+5], bios->data[soff+6]); soff += 7; break; + case 0x9e: + printcmd (soff, 1); + printf ("UNK9E\n"); + soff++; + break; case 0xa9: printcmd (soff, 2); printf ("GPIO_NE\n");
Don't try to do both clang and GCC on Linux for now...
@@ -13,9 +13,6 @@ matrix: include: # Linux-specific build stuff - os: linux - compiler: - - clang - - gcc before_install: - sudo apt-get -qq update - sudo apt-get install -y avahi-daemon avahi-utils libavahi-client-dev libgnutls28-dev libjpeg-dev libnss-mdns libpng-dev zlib1g-dev
OcAppleImageVerificationLib: Fix a memory leak
@@ -614,6 +614,7 @@ VerifyApplePeImageSignature ( SignatureContext = AllocateZeroPool (sizeof (APPLE_SIGNATURE_CONTEXT)); if (SignatureContext == NULL) { DEBUG ((DEBUG_WARN, "Signature context allocation failure\n")); + FreePool (Context); return EFI_OUT_OF_RESOURCES; }
Prevent signal interaction with exit sequence
@@ -3294,7 +3294,7 @@ static void fio_worker_startup(void) { } } -/* TODO: fixme */ +/* performs all clean-up / shutdown requirements except for the exit sequence */ static void fio_worker_cleanup(void) { /* switch to winding down */ if (fio_data->is_worker) @@ -3323,6 +3323,7 @@ static void fio_worker_cleanup(void) { ; } fio_defer_perform(); + fio_signal_handler_reset(); if (fio_data->parent == getpid()) { FIO_LOG_STATE("\n --- Shutdown Complete ---\n"); } else { @@ -3443,7 +3444,6 @@ void fio_start FIO_IGNORE_MACRO(struct fio_start_args args) { } fio_worker_startup(); fio_worker_cleanup(); - fio_signal_handler_reset(); } /* *****************************************************************************
[core] run plugin cleanup hooks in reverse run plugin cleanup hooks in reverse to balance ctor/dtor-like plugin behaviors
@@ -414,13 +414,19 @@ static void plugins_call_cleanup(server * const srv) { } } -/** - * - * - call init function of all plugins to init the plugin-internals - * - added each plugin that supports has callback to the corresponding slot - * - * - is only called once. - */ +__attribute_cold__ +static void plugins_call_init_reverse(server *srv, const uint32_t offset) { + if (0 == offset) return; + plugin_fn_data *a = (plugin_fn_data *) + (((uintptr_t)srv->plugin_slots) + offset); + plugin_fn_data *b = a; + while (b->fn) ++b; + for (; a < --b; ++a) { /* swap to reverse list */ + plugin_fn_data tmp = *a; + *a = *b; + *b = tmp; + } +} __attribute_cold__ static void plugins_call_init_slot(server *srv, handler_t(*fn)(), void *data, const uint32_t offset) { @@ -561,6 +567,10 @@ handler_t plugins_call_init(server *srv) { offsets[PLUGIN_FUNC_WORKER_INIT]); } + /* reverse cleanup lists to balance ctor/dtor-like plugin behaviors */ + plugins_call_init_reverse(srv,offsets[PLUGIN_FUNC_HANDLE_REQUEST_RESET]); + plugins_call_init_reverse(srv,offsets[PLUGIN_FUNC_HANDLE_CONNECTION_CLOSE]); + return HANDLER_GO_ON; }
sysrepocfg BUGFIX do not check ext deps when parsing files Sysrepo will check all dependencies when an actual operation is executed. Fixes
@@ -272,7 +272,7 @@ op_import(sr_session_ctx_t *sess, const char *file_path, const char *module_name struct lyd_node *data; int r, flags; - flags = LYD_OPT_CONFIG | (not_strict ? 0 : LYD_OPT_STRICT); + flags = LYD_OPT_CONFIG | LYD_OPT_NOEXTDEPS | (not_strict ? 0 : LYD_OPT_STRICT); if (step_load_data(sess, file_path, format, flags, &data)) { return EXIT_FAILURE; } @@ -345,8 +345,8 @@ op_edit(sr_session_ctx_t *sess, const char *file_path, const char *editor, const struct lyd_node *data; if (file_path) { - /* just apply an edit form a file */ - flags = LYD_OPT_EDIT | (not_strict ? 0 : LYD_OPT_STRICT); + /* just apply an edit from a file */ + flags = LYD_OPT_EDIT | LYD_OPT_NOEXTDEPS | (not_strict ? 0 : LYD_OPT_STRICT); if (step_load_data(sess, file_path, format, flags, &data)) { return EXIT_FAILURE; } @@ -425,7 +425,7 @@ op_rpc(sr_session_ctx_t *sess, const char *file_path, const char *editor, LYD_FO } /* load the file */ - flags = LYD_OPT_RPC | (not_strict ? 0 : LYD_OPT_STRICT); + flags = LYD_OPT_RPC | LYD_OPT_NOEXTDEPS | (not_strict ? 0 : LYD_OPT_STRICT); if (step_load_data(sess, file_path, format, flags, &input)) { return EXIT_FAILURE; } @@ -474,7 +474,7 @@ op_notif(sr_session_ctx_t *sess, const char *file_path, const char *editor, LYD_ } /* load the file */ - flags = LYD_OPT_NOTIF | (not_strict ? 0 : LYD_OPT_STRICT); + flags = LYD_OPT_NOTIF | LYD_OPT_NOEXTDEPS | (not_strict ? 0 : LYD_OPT_STRICT); if (step_load_data(sess, file_path, format, flags, &notif)) { return EXIT_FAILURE; } @@ -499,7 +499,7 @@ op_copy(sr_session_ctx_t *sess, const char *file_path, sr_datastore_t source_ds, if (file_path) { /* load the file */ - flags = LYD_OPT_CONFIG | (not_strict ? 0 : LYD_OPT_STRICT); + flags = LYD_OPT_CONFIG | LYD_OPT_NOEXTDEPS | (not_strict ? 0 : LYD_OPT_STRICT); if (step_load_data(sess, file_path, format, flags, &data)) { return EXIT_FAILURE; }
Additional improvements for PDB parsing
@@ -321,7 +321,8 @@ static void pe_parse_debug_directory( if (!struct_fits_in_pe(pe, pdb20, CV_INFO_PDB20)) break; - pdb_str_len = strnlen((char *)(pdb20->PdbFileName), MAX_PATH * sizeof(char)); + pdb_str_len = strnlen((char *)(pdb20->PdbFileName), + yr_min(available_space(pe, pdb20->PdbFileName), MAX_PATH * sizeof(char))); if (pdb_str_len && pdb_str_len < MAX_PATH) { @@ -337,7 +338,8 @@ static void pe_parse_debug_directory( if (!struct_fits_in_pe(pe, pdb70, CV_INFO_PDB70)) break; - pdb_str_len = strnlen((char *)(pdb70->PdbFileName), MAX_PATH * sizeof(char)); + pdb_str_len = strnlen((char *)(pdb70->PdbFileName), + yr_min(available_space(pe, pdb70->PdbFileName), MAX_PATH * sizeof(char))); if (pdb_str_len && pdb_str_len < MAX_PATH) {
Fix stale variables calling drawbar() will re-count the number of clients and will count the width of the tags and stuff so it is up to date.
@@ -2998,7 +2998,7 @@ dragmouse(const Arg *arg) int prev_slot = -1; int tempanim = animated; animated = 0; - tagwidth = gettagwidth(); + drawbar(c->mon); do { XMaskEvent(dpy, MOUSEMASK|ExposureMask|SubstructureRedirectMask, &ev); switch(ev.type) {
Solve minor bug in logs for pretty format.
@@ -196,6 +196,14 @@ static size_t log_policy_format_text_serialize_impl(log_policy policy, const log const char * format = log_policy_format_text_serialize_impl_format(log_impl_level(impl), text_data->flags); + #if (LOG_POLICY_FORMAT_PRETTY == 1) + { + length = snprintf(buffer, size, format, + log_level_to_string(log_record_level(record)), + log_record_message(record)); + } + #else + { if (log_impl_level(impl) == LOG_LEVEL_DEBUG) { length = snprintf(buffer, size, format, @@ -215,6 +223,8 @@ static size_t log_policy_format_text_serialize_impl(log_policy policy, const log log_level_to_string(log_record_level(record)), log_record_message(record)); } + } + #endif if (length <= 0) {
reduce size of test to make it finish more quickly
@@ -5,7 +5,7 @@ int main() { // atomic_vs_reduction.c: This test shows how much faster reductions are than atomic operations // int main_rc = 0; - int N = 500001; + int N = 5001; double expect = (double) (((double)N-1)*(double)N)/2.0; double a = 0.0;
pkg/container-utils/docker: Fix bad state The correct variable to use is State instead of Status. It was causing to always have the State as "unknown", causing "./local-gadget list-containers" not to show any docker containers. Fixes: ("Replace `PidFromContainerID` for `GetContainerDetails`, providing more details")
@@ -214,7 +214,7 @@ func DockerContainerToContainerData(container *dockertypes.Container) *runtimecl return &runtimeclient.ContainerData{ ID: container.ID, Name: strings.TrimPrefix(container.Names[0], "/"), - State: containerStatusStateToRuntimeClientState(container.Status), + State: containerStatusStateToRuntimeClientState(container.State), Runtime: Name, } }
example/wifi_maanger: fix an overflow issue of an input parameter it make crash when ssid or password is more than 32 or 64 at wm_softap_start()
@@ -575,6 +575,11 @@ void wm_softap_start(void *arg) WM_TEST_LOG_START; wifi_manager_result_e res = WIFI_MANAGER_SUCCESS; struct options *ap_info = (struct options *)arg; + if (strlen(ap_info->ssid) >= 32 || strlen(ap_info->password) >= 64) { + printf("Param Error\n"); + WM_TEST_LOG_END; + return; + } wifi_manager_softap_config_s ap_config; strcpy(ap_config.ssid, ap_info->ssid); ap_config.ssid[strlen(ap_info->ssid)] = '\0';
Fixing libusb busy error Detaching all kernels before attempting to claim the usb
@@ -188,6 +188,7 @@ class Panda(object): self.bootstub = device.getProductID() == 0xddee self.legacy = (device.getbcdDevice() != 0x2300) self._handle = device.open() + self._handle.setAutoDetachKernelDriver(True) if claim: self._handle.claimInterface(0) #self._handle.setInterfaceAltSetting(0, 0) #Issue in USB stack
Add Micropython feature and a short example
@@ -35,6 +35,7 @@ LittlevGL provides everything you need to create a Graphical User Interface (GUI * **OS, External memory and GPU** supported but not required * **Single frame buffer** operation even with advances graphical effects * **Written in C** for maximal compatibility +* **Micropython Binding** exposes [LittlevGL API in Micropython](https://blog.littlevgl.com/2019-02-20/micropython-bindings) * **Simulator** to develop on PC without embedded hardware * **Tutorials, examples, themes** for rapid development * **Documentation** and API references online @@ -177,6 +178,22 @@ lv_btn_set_ink_out_time(btn, 300); ![Simple button with LittelvGL](https://littlevgl.com/github/btn3.gif) +#### Use LittlevGL from Micropython +```python + +# Create a Button and a Label + +scr = lv.obj() +btn = lv.btn(scr) +btn.align(lv.scr_act(), lv.ALIGN.CENTER, 0, 0) +label = lv.label(btn) +label.set_text("Button") + +# Load the screen + +lv.scr_load(scr) +``` + Check out the [Documentation](https://docs.littlevgl.com/) for more! ### Contributing
Comment out DAP_FW_Vers string in DAP.c to prevent warning. This global is unused in DAPLink because we report the DAPLink version for DAP_ID_FW_VER instead of CMSIS-DAP version.
volatile uint8_t DAP_TransferAbort; // Transfer Abort Flag -static const char DAP_FW_Ver [] = DAP_FW_VER; +// static const char DAP_FW_Ver [] = DAP_FW_VER; #if TARGET_DEVICE_FIXED static const char TargetDeviceVendor [] = TARGET_DEVICE_VENDOR;
usdt: fix argument passing on python3 This fixes the following error: $: ./tplist -v -v -l /usr/lib64/dri/i965_dri.so argument 1: <class 'TypeError'>: wrong type
@@ -130,7 +130,7 @@ class USDT(object): raise USDTException("USDT failed to instrument PID %d" % pid) elif path: self.path = path - self.context = lib.bcc_usdt_new_frompath(path) + self.context = lib.bcc_usdt_new_frompath(path.encode('ascii')) if self.context == None: raise USDTException("USDT failed to instrument path %s" % path) else:
sys/console: fix console compatibility The previous fix introduced a regression in handling CR/LF characters. When CR/LF was used, the LF character was added to the buffer and handled by the shell resulting in "Unrecognized command" error.
@@ -385,6 +385,7 @@ console_handle_char(uint8_t byte) static struct os_event *ev; static struct console_input *input; + static char prev_endl = '\0'; if (!avail_queue || !lines_queue) { return 0; @@ -473,10 +474,15 @@ console_handle_char(uint8_t byte) case ESC: esc_state |= ESC_ESC; break; - default: - insert_char(&input->line[cur], byte, end); - /* Falls through. */ case '\r': + /* Falls through. */ + case '\n': + if (byte == '\n' && prev_endl == '\r') { + /* handle double end line chars */ + prev_endl = byte; + break; + } + prev_endl = byte; input->line[cur + end] = '\0'; console_out('\r'); console_out('\n'); @@ -500,6 +506,9 @@ console_handle_char(uint8_t byte) console_non_blocking_mode(); } break; + default: + insert_char(&input->line[cur], byte, end); + break; } return 0;
Clean log file when using the "-c" option.
@@ -622,6 +622,10 @@ main(int argc, // I - Number of command-line arguments } } + // Clean the log if necessary + if (clean && log && strcmp(log, "-") && strcmp(log, "syslog")) + unlink(log); + // Initialize the system and any printers... system = papplSystemCreate(soptions, name ? name : "Test System", port, "_print,_universal", spool, log, level, auth, tls_only); papplSystemAddListeners(system, NULL);
Factorize frame swap
@@ -70,20 +70,11 @@ video_buffer_destroy(struct video_buffer *vb) { av_frame_free(&vb->producer_frame); } -static void -video_buffer_swap_producer_frame(struct video_buffer *vb) { - sc_mutex_assert(&vb->mutex); - AVFrame *tmp = vb->producer_frame; - vb->producer_frame = vb->pending_frame; - vb->pending_frame = tmp; -} - -static void -video_buffer_swap_consumer_frame(struct video_buffer *vb) { - sc_mutex_assert(&vb->mutex); - AVFrame *tmp = vb->consumer_frame; - vb->consumer_frame = vb->pending_frame; - vb->pending_frame = tmp; +static inline void +swap_frames(AVFrame **lhs, AVFrame **rhs) { + AVFrame *tmp = *lhs; + *lhs = *rhs; + *rhs = tmp; } void @@ -109,7 +100,7 @@ video_buffer_producer_offer_frame(struct video_buffer *vb) { } } - video_buffer_swap_producer_frame(vb); + swap_frames(&vb->producer_frame, &vb->pending_frame); bool skipped = !vb->pending_frame_consumed; vb->pending_frame_consumed = false; @@ -130,7 +121,7 @@ video_buffer_consumer_take_frame(struct video_buffer *vb) { assert(!vb->pending_frame_consumed); vb->pending_frame_consumed = true; - video_buffer_swap_consumer_frame(vb); + swap_frames(&vb->consumer_frame, &vb->pending_frame); if (vb->wait_consumer) { // unblock video_buffer_offer_decoded_frame()
ItemsName not used
#include "PriorityQueue.h" -#define PriorityQueue_Implementation(QueueType, ItemType, ItemsName) \ +#define PriorityQueue_Implementation(QueueType, ItemType) \ QueueType##_Push_Feedback QueueType##_Push(QueueType *queue, ItemType item) \ { \ QueueType##_Push_Feedback feedback = {0}; \ @@ -65,5 +65,5 @@ ItemType QueueType##_Pop(QueueType *queue) return returnedItem; \ } -PriorityQueue_Implementation(ConceptQueue, Concept, concepts) -PriorityQueue_Implementation(EventQueue, Event, events) +PriorityQueue_Implementation(ConceptQueue, Concept) +PriorityQueue_Implementation(EventQueue, Event)
Add toplevel rules for config and model
# subdirs += software +hardware_subdirs += hardware all: $(subdirs) @@ -33,8 +34,16 @@ test install uninstall: fi \ done +# Model build and config +config model image: + @for dir in $(hardware_subdirs); do \ + if [ -d $$dir ]; then \ + $(MAKE) -C $$dir $@ || exit 1; \ + fi \ + done + clean: - @for dir in $(subdirs); do \ + @for dir in $(subdirs) $(hardware_subdirs); do \ if [ -d $$dir ]; then \ $(MAKE) -C $$dir $@ || exit 1; \ fi \
Update NFSUndercover.GenericFix.ini
@@ -5,7 +5,6 @@ ResDetect = 1 Scaling = 0 // Adjusts FOV scaling to be proportionally correct. [MISC] -Scaling = 0 // Adjusts FOV scaling to be proportionally correct. SkipIntro = 0 // Skips FMVs that play when you launch the game. WindowedMode = 0 // Enables windowed mode. (1 = Borderless | 2 = Border) CustomUserFilesDirectoryInGameDir = 0 // User files will be stored in a specified directory (for example: "save"). Use '0' to disable.
OpenCoreNvram: Do not overwrite present variables
@@ -42,6 +42,7 @@ OcLoadNvramSupport ( OC_ASSOC *VariableMap; UINT8 *VariableData; UINT32 VariableSize; + UINTN OriginalVariableSize; for (GuidIndex = 0; GuidIndex < Config->Nvram.Block.Count; ++GuidIndex) { // @@ -109,6 +110,24 @@ OcLoadNvramSupport ( continue; } + OriginalVariableSize = 0; + Status = gRT->GetVariable ( + UnicodeVariableName, + &VariableGuid, + NULL, + &OriginalVariableSize, + NULL + ); + + DEBUG (( + DEBUG_INFO, + "OC: Getting NVRAM %g:%a - %r (will skip on too small)\n", + &VariableGuid, + AsciiVariableGuid, + Status + )); + + if (Status != EFI_BUFFER_TOO_SMALL) { Status = gRT->SetVariable ( UnicodeVariableName, &VariableGuid, @@ -123,6 +142,7 @@ OcLoadNvramSupport ( AsciiVariableGuid, Status )); + } FreePool (UnicodeVariableName); }
Make PH_IMAGE_RESOURCE_ENTRY.Data return a VA instead of a RVA PIMAGE_RESOURCE_DATA_ENTRY return a RVA per the PE-COFF specification, so we need to convert it into a VA before using it.
@@ -1688,7 +1688,7 @@ NTSTATUS PhGetMappedImageResources( Resources->ResourceEntries[resourceIndex].Type = NAME_FROM_RESOURCE_ENTRY(resourceDirectory, resourceType); Resources->ResourceEntries[resourceIndex].Name = NAME_FROM_RESOURCE_ENTRY(resourceDirectory, resourceName); Resources->ResourceEntries[resourceIndex].Language = NAME_FROM_RESOURCE_ENTRY(resourceDirectory, resourceLanguage); - Resources->ResourceEntries[resourceIndex].Data = PTR_ADD_OFFSET(MappedImage->ViewBase, resourceData->OffsetToData); + Resources->ResourceEntries[resourceIndex].Data = PhMappedImageRvaToVa(MappedImage, resourceData->OffsetToData, NULL); Resources->ResourceEntries[resourceIndex++].Size = resourceData->Size; } }
CCode: Add documentation for `setDefaultConfig`
@@ -54,6 +54,11 @@ inline int elektraHexcodeConvFromHex (char character) using namespace ckdb; extern "C" { +/** + * @brief This function sets default values for the encoding and decoding character mapping. + * + * @param mapping This parameter stores the encoding and decoding table this function fills with default values. + */ void setDefaultConfig (CCodeData * mapping) { mapping->encode['\b'_uc] = 'b'_uc;
[CMSIS-Build] Documentation: add cprj asflags "use" field description.
@@ -977,6 +977,12 @@ are 'removed' on a lower level (component, group, file). <td>xs:string</td> <td>required</td> </tr> + <tr> + <td>use</td> + <td>selects legacy assembler to be invoked in place of the default assembler for a given tool-chain. Currently supported values: armasm (AC6), gas (GCC)</td> + <td>xs:string</td> + <td>optional</td> + </tr> </table> \delim @@ -1395,6 +1401,12 @@ component. This flag can also be added to file groups and individual files withi <td>xs:string</td> <td>required</td> </tr> + <tr> + <td>use</td> + <td>selects legacy assembler to be invoked in place of the default assembler for a given tool-chain. Currently supported values: armasm (AC6), gas (GCC)</td> + <td>xs:string</td> + <td>optional</td> + </tr> </table> \delim
Travis: Add a Windows MSVC 2017 compilation test
@@ -73,3 +73,19 @@ matrix: - mkdir build && cd build - CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++ cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_BUILD_WITH_INSTALL_RPATH=on - ninja -v + + # Windows MSVC 2017 + - os: windows + compiler: msvc + env: + - MATRIX_EVAL="CC=cl.exe && CXX=cl.exe" + before_install: + - eval "${MATRIX_EVAL}" + install: + - choco install ninja + script: + - mkdir build && cd build + - cmd.exe /C '"C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" amd64 && + cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release && + ninja -v' + - ctest -V
fib: fix coverity 253539 Add an ASSERT so coverity is aware of the assumption taken, without incurring any penalty in release build. Type: fix
@@ -592,6 +592,7 @@ load_balance_fill_buckets_sticky (load_balance_t *lb, { /* fill the bucks from the next up path */ load_balance_set_bucket_i(lb, bucket++, buckets, &fwding_paths[fpath].path_dpo); + ASSERT(vec_len(fwding_paths) > 0); fpath = (fpath + 1) % vec_len(fwding_paths); } }
libc/stdio: Minor comments fix
@@ -219,7 +219,7 @@ errout: } /**************************************************************************** - * Name: getdelim() + * Name: getline() * * Description: * The getline() function will be equivalent to the getdelim() function
Fix merge, correct branch for carto-libs
[submodule "libs-carto"] path = libs-carto url = https://github.com/cartodb/mobile-carto-libs - branch = feature/sgre + branch = feature/globe [submodule "libs-external"] path = libs-external url = https://github.com/cartodb/mobile-external-libs
Improve code in ChangeConditions
@@ -442,15 +442,17 @@ bool CLR_DBG_Debugger::Monitor_Ping(WP_Message *msg) fStopOnBoot = (cmdReply != NULL) && (cmdReply->Flags & Monitor_Ping_c_Ping_DbgFlag_Stop); } - Events_WaitForEvents(0, 50); - if (CLR_EE_DBG_IS_MASK(StateInitialize, StateMask)) { if (fStopOnBoot) + { CLR_EE_DBG_SET(Stopped); + } else + { CLR_EE_DBG_CLR(Stopped); } + } return true; } @@ -1271,30 +1273,27 @@ bool CLR_DBG_Debugger::Debugging_Execution_ChangeConditions(WP_Message *msg) (CLR_DBG_Commands::Debugging_Execution_ChangeConditions *)msg->m_payload; // save current value - int32_t conditionsCopy = g_CLR_RT_ExecutionEngine.m_iDebugger_Conditions; + int32_t newConditions = g_CLR_RT_ExecutionEngine.m_iDebugger_Conditions; // apply received flags - conditionsCopy |= cmd->FlagsToSet; - conditionsCopy &= ~cmd->FlagsToReset; + newConditions |= cmd->FlagsToSet; + newConditions &= ~cmd->FlagsToReset; // send confirmation reply if ((msg->m_header.m_flags & WP_Flags_c_NonCritical) == 0) { CLR_DBG_Commands::Debugging_Execution_ChangeConditions::Reply cmdReply; - cmdReply.CurrentState = conditionsCopy; + cmdReply.CurrentState = (CLR_UINT32)newConditions; WP_ReplyToCommand(msg, true, false, &cmdReply, sizeof(cmdReply)); } - // if there is anything to change, need to wait and apply the changes - if (conditionsCopy) + // if there is anything to change, apply the changes + if (cmd->FlagsToSet || cmd->FlagsToReset) { - Events_WaitForEvents(0, 50); - - // set & reset new conditions - g_CLR_RT_ExecutionEngine.m_iDebugger_Conditions |= cmd->FlagsToSet; - g_CLR_RT_ExecutionEngine.m_iDebugger_Conditions &= ~cmd->FlagsToReset; + // update conditions + g_CLR_RT_ExecutionEngine.m_iDebugger_Conditions = newConditions; } return true;
remove ~&pure-mint from mint (prelude to jet decapitation)
~/ %mint |= {gol/type gen/hoon} ^- {p/type q/nock} - ~& %pure-mint + ::~& %pure-mint |^ ^- {p/type q/nock} ?: ?&(=(%void sut) !?=({$dbug *} gen)) ?. |(!vet ?=({$lost *} gen) ?=({$zpzp *} gen))
[parallel-smoke] - Introduce logic to check for necessary package. If package is not found on the system, proceed with the sequential version of the check_smoke.sh script.
@@ -91,10 +91,6 @@ script_dir=$(dirname "$0") pushd $script_dir path=$(pwd) -# Clean all testing directories, except in parallel build -if [ "$AOMP_PARALLEL_SMOKE" != 1 ]; then - make clean -fi cleanup export OMP_TARGET_OFFLOAD=${OMP_TARGET_OFFLOAD:-MANDATORY} @@ -126,6 +122,8 @@ fi # ---------- Begin parallel logic ---------- if [ "$AOMP_PARALLEL_SMOKE" == 1 ]; then + sem --help > /dev/null + if [ $? -eq 0 ]; then COMP_THREADS=1 MAX_THREADS=16 if [ ! -z `which "getconf"` ]; then @@ -200,9 +198,17 @@ done sem --wait --id def_sem gatherdata exit + else + echo + echo "Warning: Parallel smoke requested, but the parallel package needed is not installed. Continuing with sequential version..." + echo + fi fi # ---------- End parallel logic ---------- +# Clean all testing directories +make clean + # Loop over all directories and make run / make check depending on directory name for directory in ./*/; do pushd $directory > /dev/null
Avoid re-compilation in ASE due to work directory. I updated the rules to build the work directory but accidentially introduced a true dependence that caused unnecessary rebuilding.
@@ -528,7 +528,7 @@ $(WORK): fi ## VCS base Quartus Verilog libraries -$(WORK)/synopsys_sim_quartus_verilog.setup: $(WORK) +$(WORK)/synopsys_sim_quartus_verilog.setup: | $(WORK) mkdir -p $(WORK)/verilog_libs ifeq ($(GLS_SIM), 1) @# Generate the Quartus family-dependent simulation library list @@ -541,7 +541,7 @@ else endif ## Questasim base Quartus Verilog libraries -$(WORK)/quartus_msim_verilog_libs: $(WORK) +$(WORK)/quartus_msim_verilog_libs: | $(WORK) mkdir -p $(WORK)/verilog_libs ifeq ($(GLS_SIM), 1) @# Generate the Quartus family-dependent simulation library list