message
stringlengths 6
474
| diff
stringlengths 8
5.22k
|
---|---|
apps/x509: Fix self-signed check to happen before setting issuer name
Fixes | @@ -235,6 +235,21 @@ static X509_REQ *x509_to_req(X509 *cert, int ext_copy, const char *names)
return NULL;
}
+static int self_signed(X509_STORE *ctx, X509 *cert)
+{
+ X509_STORE_CTX *xsc = X509_STORE_CTX_new();
+ int ret = 0;
+
+ if (xsc == NULL || !X509_STORE_CTX_init(xsc, ctx, cert, NULL)) {
+ BIO_printf(bio_err, "Error initialising X509 store\n");
+ } else {
+ X509_STORE_CTX_set_flags(xsc, X509_V_FLAG_CHECK_SS_SIGNATURE);
+ ret = X509_verify_cert(xsc) > 0;
+ }
+ X509_STORE_CTX_free(xsc);
+ return ret;
+}
+
int x509_main(int argc, char **argv)
{
ASN1_INTEGER *sno = NULL;
@@ -793,6 +808,8 @@ int x509_main(int argc, char **argv)
sno = x509_load_serial(CAfile, CAserial, CA_createserial);
if (sno == NULL)
goto end;
+ if (!x509toreq && !reqfile && !newcert && !self_signed(ctx, x))
+ goto end;
}
if (sno != NULL && !X509_set_serialNumber(x, sno))
@@ -862,21 +879,6 @@ int x509_main(int argc, char **argv)
if (!do_X509_sign(x, privkey, digest, sigopts, &ext_ctx))
goto end;
} else if (CAfile != NULL) {
- if (!reqfile && !newcert) { /* certificate should be self-signed */
- X509_STORE_CTX *xsc = X509_STORE_CTX_new();
-
- if (xsc == NULL || !X509_STORE_CTX_init(xsc, ctx, x, NULL)) {
- BIO_printf(bio_err, "Error initialising X509 store\n");
- X509_STORE_CTX_free(xsc);
- goto end;
- }
- X509_STORE_CTX_set_cert(xsc, x);
- X509_STORE_CTX_set_flags(xsc, X509_V_FLAG_CHECK_SS_SIGNATURE);
- i = X509_verify_cert(xsc);
- X509_STORE_CTX_free(xsc);
- if (i <= 0)
- goto end;
- }
if ((CAkey = load_key(CAkeyfile, CAkeyformat,
0, passin, e, "CA private key")) == NULL)
goto end;
|
Fix float version, auto-detect int/float, OO tmr | @@ -25,7 +25,7 @@ return({
if s.parasite == 1 then break end -- parasite sensor blocks bus during conversion
end
end
- tmr.alarm(tmr.create(), 750, tmr.ALARM_SINGLE, function() self:readout() end)
+ tmr.create():alarm(750, tmr.ALARM_SINGLE, function() self:readout() end)
end,
readTemp = function(self, cb, lpin)
@@ -83,6 +83,7 @@ return({
t = t * 5000 -- DS18S20, 1 fractional bit
end
+ if 1/2 == 0 then
-- integer version
local sgn = t<0 and -1 or 1
local tA = sgn*t
@@ -95,13 +96,15 @@ return({
s.status = 2
end
-- end integer version
- -- -- float version
- -- if t and (math.floor(t/10000)~=85) then
- -- self.temp[s.addr]=t
- -- print(encoder.toHex(s.addr), t)
- -- s.status = 2
- -- end
- -- -- end float version
+ else
+ -- float version
+ if t and (math.floor(t/10000)~=85) then
+ self.temp[s.addr]=t/10000
+ print(encoder.toHex(s.addr), t)
+ s.status = 2
+ end
+ -- end float version
+ end
end
next = next or s.status == 0
end
|
added snap_ddr4pins_flashgt.xdc to the framework.xpr | @@ -158,6 +158,8 @@ if { $ddri_used == TRUE } {
}
} elseif { $ddr4_used == TRUE } {
add_files -fileset constrs_1 -norecurse $dimm_dir/snap_refclk200.xdc
+ add_files -fileset constrs_1 -norecurse $dimm_dir/snap_ddr4pins_flash_gt.xdc
+ set_property used_in_synthesis false [get_files $dimm_dir/snap_ddr4pins_flash_gt.xdc]
} else {
puts "no DDR RAM was specified"
|
Sockeye: Finish implementation of overlay to map translation | @@ -35,6 +35,8 @@ import Numeric (showHex)
import qualified SockeyeAST as AST
import qualified SockeyeASTDecodingNet as NetAST
+import Debug.Trace
+
type NetNodeDecl = (NetAST.NodeId, NetAST.NodeSpec)
type NetList = [NetNodeDecl]
type PortList = [NetAST.NodeId]
@@ -370,32 +372,62 @@ instance NetTransformable AST.OverlaySpec [NetAST.MapSpec] where
over = AST.over ast
width = AST.width ast
blocks = mappedBlocks context
- blockPoints = concat $ map toScanPoints blocks
- overStart = BlockEnd 0
- overStop = BlockStart $ 2^width
- scanPoints = overStart:overStop:blockPoints
netOver <- transform context over
- return $ overlayMaps netOver scanPoints
+ let
+ maps = overlayMaps netOver width blocks
+ return maps
+
+overlayMaps :: NetAST.NodeId -> Word ->[NetAST.BlockSpec] -> [NetAST.MapSpec]
+overlayMaps destId width blocks =
+ let
+ blockPoints = concat $ map toScanPoints blocks
+ maxAddress = 2^width
+ overStop = BlockStart $ maxAddress
+ scanPoints = filter ((maxAddress >=) . address) $ sort (overStop:blockPoints)
+ startState = ScanLineState
+ { insideBlocks = 0
+ , startAddress = 0
+ }
+ in evalState (scanLine scanPoints []) startState
where
toScanPoints (NetAST.BlockSpec base limit) =
[ BlockStart $ NetAST.address base
, BlockEnd $ NetAST.address limit
]
-
-overlayMaps :: NetAST.NodeId -> [ScanPoint] -> [NetAST.MapSpec]
-overlayMaps destId scanPoints =
- let
- sorted = sort scanPoints
- in foldl pointAction [] scanPoints
- where
- pointAction _ _ = []
-
-data ScanPoint
+ scanLine [] ms = return ms
+ scanLine (p:ps) ms = do
+ maps <- pointAction p ms
+ scanLine ps maps
+ pointAction (BlockStart a) ms = do
+ s <- get
+ let
+ i = insideBlocks s
+ base = startAddress s
+ limit = a - 1
+ maps <- if (i == 0) && (base <= limit)
+ then
+ let
+ baseAddress = NetAST.Address $ startAddress s
+ limitAddress = NetAST.Address $ a - 1
+ srcBlock = NetAST.BlockSpec baseAddress limitAddress
+ m = NetAST.MapSpec srcBlock destId baseAddress
+ in return $ m:ms
+ else return ms
+ modify (\s -> s { insideBlocks = i + 1})
+ return maps
+ pointAction (BlockEnd a) ms = do
+ s <- get
+ let
+ i = insideBlocks s
+ put $ ScanLineState (i - 1) (a + 1)
+ return ms
+
+data StoppingPoint
= BlockStart { address :: !Word }
| BlockEnd { address :: !Word }
deriving (Eq, Show)
-instance Ord ScanPoint where
+instance Ord StoppingPoint where
(<=) (BlockStart a1) (BlockEnd a2)
| a1 == a2 = True
| otherwise = a1 <= a2
@@ -407,8 +439,8 @@ instance Ord ScanPoint where
data ScanLineState
= ScanLineState
{ insideBlocks :: !Word
- , lastEndAddress :: Maybe Word
- }
+ , startAddress :: !Word
+ } deriving (Show)
instance NetTransformable AST.Address NetAST.Address where
transform _ (AST.LiteralAddress value) = do
|
Fix merge issue / built | @@ -1380,11 +1380,6 @@ void DeRestPluginPrivate::apsdeDataIndication(const deCONZ::ApsDataIndication &i
{
handleZclConfigureReportingResponseIndication(ind, zclFrame);
}
-
- if (!(zclFrame.frameControl() & deCONZ::ZclFCDisableDefaultResponse) && !zclFrame.isDefaultResponse())
- {
- sendZclDefaultResponse(ind, zclFrame, deCONZ::ZclSuccessStatus);
- }
}
else if (ind.profileId() == ZDP_PROFILE_ID)
{
|
Remove newlines when transforming text tables to NVM XML | @@ -374,6 +374,7 @@ int process_output(
}
else if (TableView == type || TableTabView == type)
{
+ wchar_t * trimmed_line = NULL;
int col = 0;
int row = 0;
show_table.column_cnt = 0;
@@ -386,7 +387,8 @@ int process_output(
//get column names (used as key names)
if (fgetws(line, READ_FD_LINE_SZ, fd) != NULL)
{
- tok = wcstok(line, (TableView == type) ? TABLE_TOK_DELIM : TABBED_TABLE_TOK_DELIM, &state);
+ trimmed_line = trimwhitespace(line);
+ tok = wcstok(trimmed_line, (TableView == type) ? TABLE_TOK_DELIM : TABBED_TABLE_TOK_DELIM, &state);
if (NULL != tok)
{
swprintf(show_table.columns[col].header_name, COLUMN_HEADER_SZ, tok);
@@ -407,9 +409,10 @@ int process_output(
//iterate through all of the rows in the table
while (num_dictionaries < NUM_DICTIONARIES_MAX && NULL != fgetws(line, READ_FD_LINE_SZ, fd))
{
+ trimmed_line = trimwhitespace(line);
//using the coresponding column header saved above as the key
col = 0;
- tok = wcstok(line, (TableView == type) ? TABLE_TOK_DELIM : TABBED_TABLE_TOK_DELIM, &state);
+ tok = wcstok(trimmed_line, (TableView == type) ? TABLE_TOK_DELIM : TABBED_TABLE_TOK_DELIM, &state);
if (NULL != tok)
{
//get first column row-data
|
fix fontrom implement&size | #include "fontmake.h"
#ifndef FONTMEMORYBIND
- UINT8 __font[0x84000];
+ UINT8 __font[FONTMEMORYSIZE];
#endif
static const OEMCHAR fonttmpname[] = OEMTEXT("font.tmp");
@@ -25,7 +25,7 @@ static const OEMCHAR fonttmpname[] = OEMTEXT("font.tmp");
*/
void font_initialize(void) {
- ZeroMemory(fontrom, sizeof(fontrom));
+ ZeroMemory(fontrom, FONTMEMORYSIZE);
font_setchargraph(FALSE);
}
|
nimble/ll: Fix typo
That is actually few typos in a row ;) | @@ -2021,7 +2021,7 @@ ble_ll_conn_end(struct ble_ll_conn_sm *connsm, uint8_t ble_err)
/* Remove from the active connection list */
SLIST_REMOVE(&g_ble_ll_conn_active_list, connsm, ble_ll_conn_sm, act_sle);
-#if MYNEWT_VAL(BLE_LL_CFG_FEAT_HOST_TO_CTRL_FLOW_CONTROL)
+#if MYNEWT_VAL(BLE_LL_CFG_FEAT_CTRL_TO_HOST_FLOW_CONTROL)
ble_ll_conn_cth_flow_free_credit(connsm, connsm->cth_flow_pending);
#endif
|
allow to comment/uncomment lines in filterlist | @@ -3506,6 +3506,7 @@ static inline int readfilterlist(char *listname, maclist_t *zeiger)
{
int c;
int len;
+int entries;
static FILE *fh_filter;
static char linein[FILTERLIST_LINE_LEN];
@@ -3517,12 +3518,21 @@ if((fh_filter = fopen(listname, "r")) == NULL)
}
zeiger = filterlist;
+entries = 0;
for(c = 0; c < FILTERLIST_MAX; c++)
{
if((len = fgetline(fh_filter, FILTERLIST_LINE_LEN, linein)) == -1)
{
break;
}
+ if(len < 12)
+ {
+ continue;
+ }
+ if(linein[0x0] == '#')
+ {
+ continue;
+ }
if(hex2bin(&linein[0x0], zeiger->addr, 6) == false)
{
printf("reading blacklist line %d failed: %s\n", c +1, linein);
@@ -3530,9 +3540,10 @@ for(c = 0; c < FILTERLIST_MAX; c++)
return 0;
}
zeiger++;
+ entries++;
}
fclose(fh_filter);
-return c;
+return entries;
}
/*===========================================================================*/
static inline bool globalinit()
|
Document the added devcrypto engine in CHANGES | Changes between 1.1.0f and 1.1.1 [xx XXX xxxx]
+ *) Add devcrypto engine. This has been implemented against cryptodev-linux,
+ then adjusted to work on FreeBSD 8.4 as well.
+ Enable by configuring with 'enable-devcryptoeng'. This is done by default
+ on BSD implementations, as cryptodev.h is assumed to exist on all of them.
+ [Richard Levitte]
+
*) Module names can prefixed with OSSL_ or OPENSSL_. This affects
util/mkerr.pl, which is adapted to allow those prefixes, leading to
error code calls like this:
|
added correct data sizes in offset calculations | @@ -160,7 +160,7 @@ void libxsmm_generator_matcopy_avx_avx512_kernel( libxsmm_generated_code*
l_kernel_config.vmove_instruction,
l_gp_reg_mapping.gp_reg_a,
LIBXSMM_X86_GP_REG_UNDEF, 0,
- i*l_kernel_config.vector_length,
+ i*l_kernel_config.vector_length*l_kernel_config.datatype_size,
l_kernel_config.vector_name, 0,
0, 0 );
@@ -170,7 +170,7 @@ void libxsmm_generator_matcopy_avx_avx512_kernel( libxsmm_generated_code*
l_kernel_config.vmove_instruction,
l_gp_reg_mapping.gp_reg_b,
LIBXSMM_X86_GP_REG_UNDEF, 0,
- i*l_kernel_config.vector_length,
+ i*l_kernel_config.vector_length*l_kernel_config.datatype_size,
l_kernel_config.vector_name, 0,
0, 1 );
@@ -181,7 +181,7 @@ void libxsmm_generator_matcopy_avx_avx512_kernel( libxsmm_generated_code*
l_gp_reg_mapping.gp_reg_a_pf,
LIBXSMM_X86_GP_REG_UNDEF,
0,
- i*l_kernel_config.vector_length );
+ i*l_kernel_config.vector_length*l_kernel_config.datatype_size );
}
}
|
Add error reporting for missing src/dest paths in dcp
This prints a message about invalid src/dest paths when one or the
other is not provided. Also, the exit run and error is not printed
when only "help" is used. | @@ -236,11 +236,14 @@ int main(int argc, \
numpaths_src = numpaths - 1;
}
- if (numpaths_src == 0) {
+ if (usage || numpaths_src == 0) {
if(rank == 0) {
- MFU_LOG(MFU_LOG_ERR, "No source path found, at least one");
+ if (usage != 1) {
+ MFU_LOG(MFU_LOG_ERR, "A source and destination path is needed");
+ } else {
print_usage();
}
+ }
mfu_param_path_free_all(numpaths, paths);
mfu_free(&paths);
@@ -259,7 +262,7 @@ int main(int argc, \
/* exit job if we found a problem */
if (!valid) {
if(rank == 0) {
- MFU_LOG(MFU_LOG_ERR, "Exiting run");
+ MFU_LOG(MFU_LOG_ERR, "Invalid src/dest paths provided. Exiting run.\n");
}
mfu_param_path_free_all(numpaths, paths);
mfu_free(&paths);
|
specload/quickdump: reformat | @@ -29,6 +29,7 @@ The plugin relies heavily on the `quickdump` plugin. It is used for storing the
`specload` and an application.
To check whether `quickdump` is available you can use:
+
```
kdb list quickdump
#> quickdump
@@ -77,6 +78,7 @@ sudo kdb umount spec/tests/specload
## Limitations
- The plugin would technically allow the following modifications right now:
+
- add/edit/remove `description` or `opt/help`
- add/edit `default`
- add `type`
|
stm32l4: Changed default CPU frequency to 16 MHz | @@ -820,14 +820,14 @@ void _stm32_init(void)
*(stm32_common.rcc + rcc_csr) |= 1 << 24;
_stm32_rtcLockRegs();
- _stm32_rccSetCPUClock(4 * 1000 * 1000);
-
/* Enable System configuration controller */
_stm32_rccSetDevClock(pctl_syscfg, 1);
/* Enable power module */
_stm32_rccSetDevClock(pctl_pwr, 1);
+ _stm32_rccSetCPUClock(16 * 1000 * 1000);
+
/* Disable all interrupts */
*(stm32_common.rcc + rcc_cier) = 0;
|
Set generic read and parse function to RStateOn | @@ -405,7 +405,16 @@ void LightNode::setHaEndpoint(const deCONZ::SimpleDescriptor &endpoint)
for (; i != end; ++i)
{
- if (i->id() == LEVEL_CLUSTER_ID)
+ if (i->id() == ONOFF_CLUSTER_ID)
+ {
+ auto *it = item(RStateOn);
+ if (it)
+ {
+ it->setParseParameters({QLatin1String("parseGenericAttribute/4"), endpoint.endpoint(), ONOFF_CLUSTER_ID, 0x0000, QLatin1String("$raw")});
+ it->setReadParameters({QLatin1String("readGenericAttribute/4"), endpoint.endpoint(), ONOFF_CLUSTER_ID, 0x0000, 0x0000});
+ }
+ }
+ else if (i->id() == LEVEL_CLUSTER_ID)
{
if ((manufacturerCode() == VENDOR_IKEA && endpoint.deviceId() == DEV_ID_Z30_ONOFF_PLUGIN_UNIT) || // IKEA Tradfri control outlet
(manufacturerCode() == VENDOR_INNR && endpoint.deviceId() == DEV_ID_ZLL_ONOFF_PLUGIN_UNIT) || // innr SP120 smart plug
|
admin/meta-packages: update warewulf package names | Summary: Meta-packages to ease installation
Name: meta-packages
-Version: 1.3.5
+Version: 1.3.6
Release: 1
License: Apache-2.0
Group: %{PROJ_NAME}/meta-package
@@ -405,8 +405,10 @@ Summary: OpenHPC base packages for Warewulf
Requires: warewulf-cluster%{PROJ_DELIM}
Requires: warewulf-common%{PROJ_DELIM}
Requires: warewulf-ipmi%{PROJ_DELIM}
+Requires: warewulf-provision-initramfs-%{_arch}%{PROJ_DELIM}
Requires: warewulf-provision%{PROJ_DELIM}
Requires: warewulf-provision-server%{PROJ_DELIM}
+Requires: warewulf-provision-server-ipxe-%{_arch}%{PROJ_DELIM}
Requires: warewulf-vnfs%{PROJ_DELIM}
%description -n %{PROJ_NAME}-warewulf
Collection of base packages for Warewulf provisioning
|
Fix return value on adb commands error | @@ -425,7 +425,7 @@ adb_get_serialno(struct sc_intr *intr, unsigned flags) {
}
if (r == -1) {
- return false;
+ return NULL;
}
sc_str_truncate(buf, r, " \r\n");
@@ -455,7 +455,7 @@ adb_get_device_ip(struct sc_intr *intr, const char *serial, unsigned flags) {
}
if (r == -1) {
- return false;
+ return NULL;
}
assert((size_t) r <= sizeof(buf));
|
pack: on JSON packaging, validate tokens count
When parsing JSON string which contains a NULL byte, the number of tokens
found returned is zero.
This patch make sure that packaging calls raise an error if no tokens
are returned. | @@ -42,12 +42,11 @@ static int json_tokenise(char *js, size_t len,
ret = jsmn_parse(&state->parser, js, len,
state->tokens, state->tokens_size);
-
while (ret == JSMN_ERROR_NOMEM) {
n = state->tokens_size += 256;
tmp = flb_realloc(state->tokens, sizeof(jsmntok_t) * n);
if (!tmp) {
- perror("realloc");
+ flb_errno();
return -1;
}
state->tokens = tmp;
@@ -181,6 +180,7 @@ int flb_pack_json(char *js, size_t len, char **buffer, size_t *size)
{
int ret = -1;
int out;
+ int last;
char *buf = NULL;
struct flb_pack_state state;
@@ -194,7 +194,11 @@ int flb_pack_json(char *js, size_t len, char **buffer, size_t *size)
goto flb_pack_json_end;
}
- int last;
+ if (state.tokens_count == 0) {
+ ret = -1;
+ goto flb_pack_json_end;
+ }
+
buf = tokens_to_msgpack(js, state.tokens, state.tokens_count, &out, &last);
if (!buf) {
ret = -1;
@@ -295,6 +299,11 @@ int flb_pack_json_state(char *js, size_t len,
return ret;
}
+ if (state->tokens_count == 0) {
+ state->last_byte = last;
+ return FLB_ERR_JSON_INVAL;
+ }
+
buf = tokens_to_msgpack(js, state->tokens, state->tokens_count, &out, &last);
if (!buf) {
return -1;
|
Switch off guix build by default, it breaks docker builds. | @@ -84,7 +84,7 @@ option(OPTION_BUILD_DETOURS "Build detours." ON)
option(OPTION_BUILD_PORTS "Build ports." OFF)
option(OPTION_BUILD_PIC "Build with position independent code." ON)
option(OPTION_BUILD_SECURITY "Build with stack-smashing protection and source fortify." ON)
-option(OPTION_BUILD_GUIX "Disable all build system unreproductible operations." ON)
+option(OPTION_BUILD_GUIX "Disable all build system unreproductible operations." OFF)
option(OPTION_FORK_SAFE "Enable fork safety." ON)
option(OPTION_THREAD_SAFE "Enable thread safety." OFF)
option(OPTION_COVERAGE "Enable coverage." OFF)
|
Fix. When compiled with SSL support SIGHUP handler always reloads non-SSL TCP/UDP listeners. | @@ -2362,10 +2362,13 @@ router_contains_listener(router *rtr, listener *lsnr)
#ifdef HAVE_SSL
/* check pemmtimespec */
if ((lsnr->transport & ~0xFFFF) == W_SSL &&
- lsnr->pemmtimespec.tv_sec ==
- rwalk->pemmtimespec.tv_sec &&
- lsnr->pemmtimespec.tv_nsec ==
- rwalk->pemmtimespec.tv_nsec)
+ (lsnr->pemmtimespec.tv_sec !=
+ rwalk->pemmtimespec.tv_sec ||
+ lsnr->pemmtimespec.tv_nsec !=
+ rwalk->pemmtimespec.tv_nsec))
+ {
+ continue;
+ } else
#endif
{
match = 1;
|
Update renamed decl missed in | @@ -36,7 +36,7 @@ static void secp256k1_testrand256_test(unsigned char *b32);
static void secp256k1_testrand_bytes_test(unsigned char *bytes, size_t len);
/** Generate a pseudorandom 64-bit integer in the range min..max, inclusive. */
-static int64_t secp256k1_rands64(uint64_t min, uint64_t max);
+static int64_t secp256k1_testrandi64(uint64_t min, uint64_t max);
/** Flip a single random bit in a byte array */
static void secp256k1_testrand_flip(unsigned char *b, size_t len);
|
Fixed 'referer' typo under src/labels.h. | N_("Browsers")
#define REFERRERS_HEAD \
- N_("Referrers URLs")
+ N_("Referer URLs")
#define REFERRERS_DESC \
- N_("Top Requested Referrers sorted by hits [, avgts, cumts, maxts]")
+ N_("Top Requested Referers sorted by hits [, avgts, cumts, maxts]")
#define REFERRERS_LABEL \
- N_("Referrers")
+ N_("Referers")
#define REFERRING_SITES_HEAD \
N_("Referring Sites")
|
Feat:Modify the call of HTTP functions in rpcintf.c | @@ -24,7 +24,7 @@ RPC_USE_XXX macros.
#include "boatconfig.h"
#include "boatinternal.h"
-#include "mbedhttpport.h"
+#include "fibocomhttpport.h"
void *RpcInit(void)
{
@@ -32,8 +32,8 @@ void *RpcInit(void)
#if RPC_USE_LIBCURL == 1
rpc_context_ptr = CurlPortInit();
-#elif RPC_USE_MBEDHTTPPORT == 1
- rpc_context_ptr = MbedHttpPortInit();
+#elif RPC_USE_FIBOCOMHTTPPORT == 1
+ rpc_context_ptr = FibocomHttpPortInit();
#endif
return rpc_context_ptr;
@@ -49,8 +49,8 @@ void RpcDeinit(void *rpc_context_ptr)
#if RPC_USE_LIBCURL == 1
CurlPortDeinit(rpc_context_ptr);
-#elif RPC_USE_MBEDHTTPPORT == 1
- MbedHttpPortDeinit(rpc_context_ptr);
+#elif RPC_USE_FIBOCOMHTTPPORT == 1
+ FibocomHttpPortDeinit(rpc_context_ptr);
#endif
}
@@ -61,8 +61,8 @@ BOAT_RESULT RpcRequestSet(void *rpc_context_ptr, BCHAR *remote_url_str)
#if RPC_USE_LIBCURL == 1
return CurlPortSetOpt((CurlPortContext*)rpc_context_ptr, remote_url_str);
-#elif RPC_USE_MBEDHTTPPORT == 1
- return MbedHttpPortSetOpt((MbedHttpPortContext*)rpc_context_ptr, remote_url_str);
+#elif RPC_USE_FIBOCOMHTTPPORT == 1
+ return FibocomHttpPortSetOpt((FibocomHttpPortContext *)rpc_context_ptr, remote_url_str);
#endif
return result;
}
@@ -79,8 +79,8 @@ BOAT_RESULT RpcRequestSync(void *rpc_context_ptr,
#if RPC_USE_LIBCURL == 1
result = CurlPortRequestSync(rpc_context_ptr, (const BCHAR *)request_ptr, request_len,
(BOAT_OUT BCHAR **)response_pptr, response_len_ptr);
-#elif RPC_USE_MBEDHTTPPORT == 1
- result = MbedHttpPortRequestSync(rpc_context_ptr, (const BCHAR *)request_ptr, request_len, (BOAT_OUT BCHAR **)response_pptr, response_len_ptr);
+#elif RPC_USE_FIBOCOMHTTPPORT == 1
+ result = FibocomHttpPortRequestSync(rpc_context_ptr, (const BCHAR *)request_ptr, request_len, (BOAT_OUT BCHAR **)response_pptr, response_len_ptr);
#endif
return result;
|
cmdline: remove sigset_t init | @@ -279,7 +279,6 @@ bool cmdlineParse(int argc, char* argv[], honggfuzz_t* hfuzz) {
.dataLimit = 0U,
.clearEnv = false,
.envs = {},
- .waitSigSet = {},
},
.timing =
{
|
Check for macOS universal2 | @@ -90,6 +90,16 @@ function(target_architecture output_var)
# Get rid of the value marker, leaving just the architecture name.
string(REPLACE "cmake_ARCH " "" ARCH "${ARCH}")
+ # Check for macOS universal2.
+ list(LENGTH CMAKE_OSX_ARCHITECTURES OSX_ARCH_LENGTH)
+ if(OSX_ARCH_LENGTH EQUAL 2)
+ list(FIND CMAKE_OSX_ARCHITECTURES "x86_64" OSX_X86_INDEX)
+ list(FIND CMAKE_OSX_ARCHITECTURES "arm64" OSX_ARM64_INDEX)
+ if((${OSX_X86_INDEX} GREATER -1) AND (${OSX_ARM64_INDEX} GREATER -1))
+ set(ARCH "universal2")
+ endif()
+ endif()
+
# If we are compiling for an unknown architecture, the following variable
# should already be set to "unknown". If the variable is empty (e.g., due to a
# typo in the code), then explicitly set it to "unknown".
|
calibration_matrix: expect 6 individual values
Example usage from command line:
swaymsg input type:touch calibration_matrix -- -1 0 1 0 -1 1 | struct cmd_results *input_cmd_calibration_matrix(int argc, char **argv) {
struct cmd_results *error = NULL;
- if ((error = checkarg(argc, "calibration_matrix", EXPECTED_EQUAL_TO, 1))) {
+ if ((error = checkarg(argc, "calibration_matrix", EXPECTED_EQUAL_TO, 6))) {
return error;
}
struct input_config *ic = config->handler_context.input_config;
@@ -18,14 +18,9 @@ struct cmd_results *input_cmd_calibration_matrix(int argc, char **argv) {
return cmd_results_new(CMD_FAILURE, "No input device defined.");
}
- list_t *split = split_string(argv[0], " ");
- if (split->length != 6) {
- return cmd_results_new(CMD_FAILURE, "calibration_matrix should be a space-separated list of length 6");
- }
-
float parsed[6];
- for (int i = 0; i < split->length; ++i) {
- char *item = split->items[i];
+ for (int i = 0; i < argc; ++i) {
+ char *item = argv[i];
float x = parse_float(item);
if (isnan(x)) {
return cmd_results_new(CMD_FAILURE, "calibration_matrix: unable to parse float: %s", item);
|
build/configs/stm32l4r9ai-disco: Enable tickless Idle config | @@ -554,6 +554,8 @@ CONFIG_DISABLE_OS_API=y
# Clocks and Timers
#
# CONFIG_ARCH_HAVE_TICKLESS is not set
+CONFIG_ARCH_HAVE_TICKSUPPRESS=y
+CONFIG_SCHED_TICKSUPPRESS=y
CONFIG_USEC_PER_TICK=10000
CONFIG_SYSTEM_TIME64=y
# CONFIG_CLOCK_MONOTONIC is not set
|
Add upload-ec2-image, create-ec2-snapshot targets (AWS support). | @@ -23,6 +23,14 @@ GCE_BUCKET= nanos-test/gce-images
GCE_IMAGE= nanos-$(TARGET)
GCE_INSTANCE= nanos-$(TARGET)
+# AWS
+AWS= aws
+JQ= jq
+PRINTF= printf
+CLEAR_LINE= [1K\r
+AWS_S3_BUCKET= nanos-test
+AWS_AMI_IMAGE= nanos-$(TARGET)
+
all: image
.PHONY: image release contgen mkfs boot stage3 target stage distclean
@@ -149,6 +157,28 @@ delete-gce:
gce-console:
$(Q) $(GCLOUD) compute --project=$(GCE_PROJECT) instances tail-serial-port-output $(GCE_INSTANCE)
+##############################################################################
+# AWS
+.PHONY: upload-ec2-image create-ec2-snapshot
+
+upload-ec2-image:
+ $(Q) $(AWS) s3 cp $(IMAGE) s3://$(AWS_S3_BUCKET)/$(AWS_AMI_IMAGE).raw
+
+create-ec2-snapshot: upload-ec2-image
+ $(Q) json=`$(AWS) ec2 import-snapshot --disk-container "Description=NanoVMs Test,Format=raw,UserBucket={S3Bucket=$(AWS_S3_BUCKET),S3Key=$(AWS_AMI_IMAGE).raw}"` && \
+ import_task_id=`$(ECHO) "$$json" | $(JQ) -r .ImportTaskId` && \
+ while :; do \
+ json=`$(AWS) ec2 describe-import-snapshot-tasks --import-task-ids $$import_task_id`; \
+ status=`$(ECHO) "$$json" | $(JQ) -r ".ImportSnapshotTasks[0].SnapshotTaskDetail.Status"`; \
+ if [ x"$$status" = x"completed" ]; then \
+ $(PRINTF) "$(CLEAR_LINE)Task $$import_task_id: $$status\n"; \
+ break; \
+ fi; \
+ progress=`$(ECHO) "$$json" | $(JQ) -r ".ImportSnapshotTasks[0].SnapshotTaskDetail.Progress?"`; \
+ status_message=`$(ECHO) "$$json" | $(JQ) -r ".ImportSnapshotTasks[0].SnapshotTaskDetail.StatusMessage?"`; \
+ $(PRINTF) "$(CLEAR_LINE)Task $$import_task_id: $$status_message ($$progress%%)"; \
+ done
+
include rules.mk
ifeq ($(UNAME_s),Darwin)
|
save/load replhistory | @@ -34,6 +34,8 @@ task("lua")
-- imports
import("core.base.option")
import("core.sandbox.sandbox")
+ import("core.project.history")
+ import("lib.readline")
-- list all scripts?
if option.get("list") then
@@ -56,8 +58,28 @@ task("lua")
import("scripts." .. name).main(unpack(option.get("arguments") or {}))
end
else
+ -- clear history
+ readline.clear_history()
+
+ -- load history
+ local replhistory = history.load("replhistory") or {}
+ for _, ln in ipairs(replhistory) do
+ readline.add_history(ln)
+ end
+
-- enter interactive mode
sandbox.interactive()
+
+ -- save to history
+ local entries = readline.get_history_state().entries
+ if #entries > #replhistory then
+ for i = #replhistory+1, #entries do
+ history.save("replhistory", entries[i].line)
+ end
+ end
+
+ -- clear history
+ readline.clear_history()
end
end)
|
[coap]modify block transfer | @@ -36,7 +36,6 @@ typedef struct {
iotx_event_handle_t event_handle;
} iotx_coap_t;
-
int iotx_calc_sign(const char *p_device_secret, const char *p_client_id,
const char *p_device_name, const char *p_product_key, char sign[IOTX_SIGN_LENGTH])
{
@@ -135,6 +134,26 @@ static unsigned int iotx_get_coap_token(iotx_coap_t *p_iotx_coap, unsigned
return sizeof(unsigned int);
}
+static int token_rand_init=0;
+static unsigned int token_const;
+
+static unsigned int iotx_get_coap_token_const(iotx_coap_t *p_iotx_coap, unsigned char *p_encoded_data)
+{
+
+ if (!token_rand_init)
+ {
+ srand(time(NULL));
+ token_rand_init = 1;
+ token_const = rand();
+ }
+
+ p_encoded_data[0] = (unsigned char) ((token_const & 0x00FF) >> 0);
+ p_encoded_data[1] = (unsigned char) ((token_const & 0xFF00) >> 8);
+ p_encoded_data[2] = (unsigned char) ((token_const & 0xFF0000) >> 16);
+ p_encoded_data[3] = (unsigned char) ((token_const & 0xFF000000) >> 24);
+ return sizeof(unsigned int);
+}
+
void iotx_event_notifyer(unsigned int code, CoAPMessage *message)
{
if (NULL == message) {
@@ -402,8 +421,8 @@ int IOT_CoAP_SendMessage_block(iotx_coap_context_t *p_context, char *p_path, iot
CoAPMessageType_set(&message, COAP_MESSAGE_TYPE_CON);
CoAPMessageCode_set(&message, COAP_MSG_CODE_POST);
CoAPMessageId_set(&message, CoAPMessageId_gen(p_coap_ctx));
- len = iotx_get_coap_token(p_iotx_coap, token);
- CoAPMessageToken_set(&message, token, len);
+ len = iotx_get_coap_token_const(p_iotx_coap, token);
+ CoAPMessageToken_set(&message, token, sizeof(token));
CoAPMessageUserData_set(&message, (void *)p_iotx_coap);
CoAPMessageHandler_set(&message, p_message->resp_callback);
|
[agx] Fix RGB byte order in unit test | @@ -571,9 +571,9 @@ fn fill_rect() {
for y in 0..100 {
for x in 0..100 {
let off = ((y * bytes_per_row) + (x * layer.bytes_per_pixel)) as usize;
- assert_eq!(fb[off + 0], color.b);
+ assert_eq!(fb[off + 0], color.r);
assert_eq!(fb[off + 1], color.g);
- assert_eq!(fb[off + 2], color.r);
+ assert_eq!(fb[off + 2], color.b);
assert_eq!(fb[off + 3], 0xff);
}
}
@@ -599,9 +599,9 @@ fn fill_rect_constrains_rect() {
let p = Point::new(x, y);
let off = ((y * bytes_per_row) + (x * layer.bytes_per_pixel)) as usize;
if expected_rect.contains(p) {
- assert_eq!(fb[off + 0], color.b);
+ assert_eq!(fb[off + 0], color.r);
assert_eq!(fb[off + 1], color.g);
- assert_eq!(fb[off + 2], color.r);
+ assert_eq!(fb[off + 2], color.b);
assert_eq!(fb[off + 3], 0xff);
} else {
assert_eq!(fb[off + 0], 0);
|
dont patch a directory that does not exist | @@ -219,7 +219,7 @@ function checkrepo(){
# TO use this function set variables patchdir and patchfile
function patchrepo(){
-if [ "$AOMP_APPLY_ROCM_PATCHES" == 1 ] ; then
+if [ "$AOMP_APPLY_ROCM_PATCHES" == 1 ] && [ -d "$patchdir" ] ; then
cd $patchdir
if [[ "$1" =~ "postinstall" ]]; then
getpatchlist $1
|
options/glibc: Actually install features.h | @@ -27,7 +27,8 @@ if not no_headers
'include/memory.h',
'include/printf.h',
'include/gshadow.h',
- 'include/execinfo.h'
+ 'include/execinfo.h',
+ 'include/features.h'
)
install_headers(
'include/sys/dir.h',
|
spec: remove duplicate key in base.yaml | @@ -17,8 +17,8 @@ include:
definitions:
- SBP:
- desc: Packet structure for Swift Navigation Binary Protocol (SBP).
desc: |
+ Packet structure for Swift Navigation Binary Protocol (SBP).
Definition of the over-the-wire message framing format and packet
structure for Swift Navigation Binary Protocol (SBP), a minimal
binary protocol for communicating with Swift devices. It is used
|
changes to milankovitch figure file | @@ -190,21 +190,21 @@ def comp2huybers(plname,dir='.',xrange=False,show=True):
clb.set_label('Ice Ablation\n(m year$^{-1}$)',fontsize=12)
plt.subplot(7,1,1)
- plt.plot(body.Time/1e6,obl,linestyle = 'solid',marker='None',color='darkblue',linewidth =2)
+ plt.plot(body.Time/1e6,obl,linestyle = 'solid',marker='None',color=vplot.colors.dark_blue,linewidth =2)
plt.ylabel('Obliquity')
plt.xticks(visible=False)
if xrange:
plt.xlim(xrange)
plt.subplot(7,1,2)
- plt.plot(body.Time/1e6,ecc,linestyle = 'solid',marker='None',color='darkblue',linewidth =2)
+ plt.plot(body.Time/1e6,ecc,linestyle = 'solid',marker='None',color=vplot.colors.purple,linewidth =2)
plt.ylabel('Eccenticity')
plt.xticks(visible=False)
if xrange:
plt.xlim(xrange)
plt.subplot(7,1,3)
- plt.plot(body.Time/1e6,esinv,linestyle = 'solid',marker='None',color='salmon',linewidth=2)
+ plt.plot(body.Time/1e6,esinv,linestyle = 'solid',marker='None',color=vplot.colors.red,linewidth=2)
plt.ylabel('CPP')
plt.xticks(visible=False)
if xrange:
|
(214) Don't report self-interposed activity on /proc/self/maps (funchook) | @@ -1208,7 +1208,13 @@ fopen(const char *pathname, const char *mode)
WRAP_CHECK(fopen, NULL);
stream = g_fn.fopen(pathname, mode);
if (stream != NULL) {
+ // This check for /proc/self/maps is because we want to avoid
+ // reporting that our funchook library opens /proc/self/maps
+ // with fopen, then calls fgets and fclose on it as well...
+ // See https://github.com/criblio/appscope/issues/214 for more info
+ if (strcmp(pathname, "/proc/self/maps")) {
doOpen(fileno(stream), pathname, STREAM, "fopen");
+ }
} else {
doUpdateState(FS_ERR_OPEN_CLOSE, -1, (ssize_t)0, "fopen", pathname);
}
|
Force padded packet if stuck on initial | @@ -2709,16 +2709,17 @@ int picoquic_prepare_packet_client_init(picoquic_cnx_t* cnx, picoquic_path_t * p
if (ret == 0 && length == 0) {
/* In some circumstances, there is a risk that the handshakes stops because the
* server is performing anti-dos mitigation and the client has nothing to repeat */
- if ((packet->ptype == picoquic_packet_initial && cnx->crypto_context[picoquic_epoch_handshake].aead_encrypt == NULL &&
+ if ((packet->ptype == picoquic_packet_initial && (force_handshake_padding ||
+ (cnx->crypto_context[picoquic_epoch_handshake].aead_encrypt == NULL &&
cnx->pkt_ctx[picoquic_packet_context_initial].retransmit_newest == NULL &&
- picoquic_sack_list_last(&cnx->ack_ctx[picoquic_packet_context_initial].sack_list) != UINT64_MAX) ||
+ picoquic_sack_list_last(&cnx->ack_ctx[picoquic_packet_context_initial].sack_list) != UINT64_MAX))) ||
(packet->ptype == picoquic_packet_handshake &&
cnx->pkt_ctx[picoquic_packet_context_handshake].retransmit_newest == NULL &&
picoquic_sack_list_last(&cnx->ack_ctx[picoquic_packet_context_handshake].sack_list) == UINT64_MAX &&
cnx->pkt_ctx[picoquic_packet_context_handshake].send_sequence == 0))
{
uint64_t try_time_next = cnx->path[0]->latest_sent_time + cnx->path[0]->smoothed_rtt;
- if (current_time < try_time_next) {
+ if (current_time < try_time_next && !force_handshake_padding) {
/* schedule a wake time to repeat the probing. */
if (*next_wake_time > try_time_next) {
*next_wake_time = try_time_next;
|
tap: fix rx queue index
Type: fix | @@ -55,7 +55,8 @@ call_read_ready (clib_file_t * uf)
CLIB_UNUSED (ssize_t size) = read (uf->file_descriptor, &b, sizeof (b));
if ((qid & 1) == 0)
- vnet_device_input_set_interrupt_pending (vnm, vif->hw_if_index, qid);
+ vnet_device_input_set_interrupt_pending (vnm, vif->hw_if_index,
+ RX_QUEUE_ACCESS (qid));
return 0;
}
|
lb: Fix generating illegal key in per-port vip
VIP prefix index becomes always 0 when adding a VIP which is already registered different port, causing LB config crash.
This change assigns the same VIP prefix index to the same VIP.
Ticket:
Type: fix | @@ -906,6 +906,8 @@ static void lb_vip_add_adjacency(lb_main_t *lbm, lb_vip_t *vip,
if (!lb_vip_port_find_diff_port(&(vip->prefix), vip->plen,
vip->protocol, vip->port, &vip_idx))
{
+ lb_vip_t *exists_vip = lb_vip_get_by_index(vip_idx);
+ *vip_prefix_index = exists_vip->vip_prefix_index;
return;
}
|
news: add opensesame link | @@ -64,25 +64,24 @@ The next release is not to be expected in this year.
Elektra is used for [server, desktop and embedded](/doc/WHO.md).
With this release, we again strengthen our embedded mainstay.
-We developed a major application running on Olimex boards,
+We developed a major application running on Olimex boards, called [opensesame](https://opensesame.libelektra.org)
heavily relying on Elektra and [ansible-libelektra](https://github.com/ElektraInitiative/ansible-libelektra).
-This application allows:
+In the initial release [opensesame](https://opensesame.libelektra.org) already allows:
- [x] opening (garage) doors
- [x] switching on entry lights
- [x] ringing doorbells
-- [x] detection of fire alerts
+- [x] detection of fire
+- [x] report events to Nextcloud chats (English and German)
-To give a smooth experience, with the support of Olimex,
-developing Ansible scripts to customize the Olimex base
-images for changing the language, time zone, static network
-configuration etc.
+To give a smooth experience when running such an application
+we develop Ansible scripts to customize the Olimex base images
+for changing the language, time zone, static network configuration
+etc.
Olimex likes this idea and will send us an A20 board.
-### <<HIGHLIGHT>>
-
## Plugins
The following section lists news about the [plugins](https://www.libelektra.org/plugins/readme) we updated in this release.
|
util: add NDS architecture to crash_analyzer
This CL adds the Andes 32 (NDS32) architecture to the crash analyzer
util.
TEST=./crash_analyzer.py -f /tmp/dumps/ -m ampton.map
Where Ampton is an NDS32 architecture.
BRANCH=None | @@ -22,6 +22,16 @@ _REGEX_CORTEX_M0 = (
r"^.*cfsr=(.*), shcsr=(.*), hfsr=(.*), dfsr=(.*), ipsr=(.*)$"
)
+# Regex tested here: https://regex101.com/r/FL7T0n/1
+_REGEX_NDS32 = (
+ r"^Saved.*$\n===.*ITYPE=(.*) ===$\n"
+ r"R0 (.*) R1 (.*) R2 (.*) R3 (.*)$\n"
+ r"R4 (.*) R5 (.*) R6 (.*) R7 (.*)$\n"
+ r"R8 (.*) R9 (.*) R10 (.*) R15 (.*)$\n"
+ r"FP (.*) GP (.*) LP (.*) SP (.*)$\n"
+ r"IPC (.*) IPSW (.*)$\n"
+)
+
# List of symbols. Each entry is tuple: address, name
_symbols = []
@@ -50,7 +60,12 @@ def get_architectures() -> list:
"dfsr",
"ipsr",
],
- }
+ },
+ "nds32": {
+ "regex": _REGEX_NDS32,
+ "parser": nds32_parse,
+ "extra_regs": ["fp", "gp", "lp", "sp", "ipc", "ipsw"],
+ },
}
return archs
@@ -114,6 +129,44 @@ def cm0_parse(match) -> dict:
return regs
+def nds32_parse(match) -> dict:
+ """Regex parser for Andes (NDS32) architecture"""
+
+ # Expecting something like:
+ # Saved panic data: (NEW)
+ # === EXCEP: ITYPE=0 ===
+ # R0 00000000 R1 00000000 R2 00000000 R3 00000000
+ # R4 00000000 R5 00000000 R6 dead6664 R7 00000000
+ # R8 00000000 R9 00000000 R10 00000000 R15 00000000
+ # FP 00000000 GP 00000000 LP 00000000 SP 00000000
+ # IPC 00050d5e IPSW 00000
+ # SWID of ITYPE: 0
+ regs = {}
+ values = []
+
+ for i in match.groups():
+ try:
+ val = int(i, 16)
+ except ValueError:
+ # Value might be empty, so we must handle the exception
+ val = -1
+ values.append(val)
+
+ # NDS32 is not reporting task info.
+ regs["task"] = -1
+ regs["regs"] = values[1:13]
+ regs["fp"] = values[13]
+ regs["gp"] = values[14]
+ regs["lp"] = values[15]
+ regs["sp"] = values[16]
+ regs["ipc"] = values[17]
+ regs["ipsw"] = values[18]
+
+ regs["cause"] = get_crash_cause(values[7]) # r6
+ regs["symbol"] = get_symbol(regs["ipc"])
+ return regs
+
+
def read_map_file(map_file):
"""Reads the map file, and populates the _symbols list with the tuple address/name"""
lines = map_file.readlines()
|
fixed dsatxuvtime unit | @@ -60,7 +60,7 @@ void ReadSatXUVTime(BODY *body,CONTROL *control,FILES *files,OPTIONS *options,SY
if (dTmp < 0)
body[iFile-1].dSatXUVTime = dTmp*dNegativeDouble(*options,files->Infile[iFile].cIn,control->Io.iVerbose);
else
- body[iFile-1].dSatXUVTime = dTmp;
+ body[iFile-1].dSatXUVTime = dTmp*fdUnitsTime(control->Units[iFile].iTime);
UpdateFoundOption(&files->Infile[iFile],options,lTmp,iFile);
} else
if (iFile > 0)
|
added casting of int in key_bytes_to_int | @@ -368,8 +368,8 @@ split(
i--;
record_offset -= linear_hash->record_total_size;
record_loc -= linear_hash->record_total_size;
-
}
+
record_loc += linear_hash->record_total_size;
record_offset += linear_hash->record_total_size;
}
@@ -428,6 +428,7 @@ split(
record_offset -= linear_hash->record_total_size;
record_loc -= linear_hash->record_total_size;
}
+
record_loc += linear_hash->record_total_size;
record_offset += linear_hash->record_total_size;
}
@@ -1348,7 +1349,7 @@ key_bytes_to_int(
return key_bytes_as_int;
*/
- return *key;
+ return (int) *key;
}
int
|
added a sqrt of unsigned long test to mimimic error in qmcpack | #include <cmath>
#include <omp.h>
#include <stdio.h>
-#define RES_SIZE 12
+#define RES_SIZE 14
int main(int argc, char **argv)
{
@@ -10,11 +10,13 @@ int main(int argc, char **argv)
double base = 2.0 ;
double exp = 3.0 ;
float fbase = 2.0 ;
- float fexp = 3.0; ;
+ float fexp = 3.0 ;
+ unsigned long ulval = 2;
double res[RES_SIZE];
float fres[RES_SIZE];
int ires[RES_SIZE];
- #pragma omp target map(from:res[0:RES_SIZE],fres[0:RES_SIZE],ires[0:RES_SIZE])
+ unsigned long ulres[RES_SIZE];
+ #pragma omp target map(from:res[0:RES_SIZE],fres[0:RES_SIZE],ires[0:RES_SIZE],ulres[0:RES_SIZE])
{
// Double results
res[0] = pow(base, exp);
@@ -44,6 +46,9 @@ int main(int argc, char **argv)
// integer results
ires[0] = pow(ibase, iexp);
ires[1] = std::pow(ibase, iexp);
+
+ // unsigned long results
+ res[12] = sqrt(ulval);
}
printf(" Double = Double**Double result = %f\n", res[0]);
@@ -74,6 +79,7 @@ int main(int argc, char **argv)
printf(" Integer = Integer**Integer result = %d\n",ires[0]);
printf(" With std::\n");
printf(" Integer = Integer**Integer result = %d\n",ires[1]);
+ printf(" Double = sqrt(ulong 2) result = %f\n", res[12]);
return 0;
}
|
board/kukui_scp/vdec.h: Format with clang-format
BRANCH=none
TEST=none | @@ -24,7 +24,8 @@ struct vdec_msg {
unsigned char msg[48];
};
-BUILD_ASSERT(member_size(struct vdec_msg, msg) <= CONFIG_IPC_SHARED_OBJ_BUF_SIZE);
+BUILD_ASSERT(member_size(struct vdec_msg, msg) <=
+ CONFIG_IPC_SHARED_OBJ_BUF_SIZE);
/* Functions provided by private overlay. */
void vdec_h264_service_init(void);
|
Build Server: Use title case in section headers | @@ -170,7 +170,7 @@ Additionally we recompile the homepage and deploy it on the a7 node.
This section describes how to replicate the current Jenkins configuration.
-### Jenkins libelektra configuration
+### Jenkins libelektra Configuration
The `libelektra` build job is a multibranch pipeline job.
It is easiest to add via the BlueOcean interface.
@@ -193,7 +193,7 @@ verified or added to build Elektra correctly:
- For Build Configuration you want to specify `by Jenkinsfile` and add the
script path: `scripts/jenkins/Jenkinsfile`.
-### Adding a Jenkins node
+### Adding a Jenkins Node
A node needs to have a JRE (Java Runtime Environment) installed.
Further it should run an SSH (Secure SHell) server.
@@ -212,7 +212,7 @@ As for labels `gitmirror` should be if you want to cache repositories on this
node.
If Docker is available the `docker` label should be set.
-## Understanding Jenkins output
+## Understanding Jenkins Output
Our jenkins build uses parallel steps inside a single build job to do most of
the work.
@@ -231,7 +231,7 @@ used to run the stage.
You also want to look for whatever failed (which should be in a step also marked
red to indicate failure).
-## Reproducing buildserver errors locally
+## Reproducing Build Server Errors Locally
First you have to determine which image is used.
This is described above in _Understanding Jenkins output_.
@@ -258,7 +258,7 @@ Now you can build the image as described in
You can find more information on how to use our images in
[scripts/docker/README.md](https://master.libelektra.org/scripts/docker/README.md#testing-elektra-via-docker-images).
-## Modify test environments
+## Modify Test Environments
You can also modify the test environments (update a dependency, install a new
dependency, ...) by editing the Dockerfiles checked into SCM.
@@ -322,7 +322,7 @@ or if just the pull request should be checked:
.*build\W+allow.*
-## Issues with the build environment
+## Issues with the Build Environment
If you have issues that are related to the build system you can open a normal
issue and tag it with `build` and `question`.
|
show dimm: hide ManufacturerId for unmanageable DIMMs
ManfacturerId comes from a fis command which is not availible for
unamanageable DIMMs. Leave Manufacturer string since it comes from
smbios. | @@ -702,12 +702,6 @@ ShowDimms(
Print(FORMAT_SPACE_SPACE_SPACE_STR_EQ_STR_NL, MANUFACTURER_STR, pDimms[Index].ManufacturerStr);
}
- /** ManufacturerId **/
- if (ShowAll || (DisplayOptionSet && ContainsValue(pDisplayValues, MANUFACTURER_ID_STR))) {
- Print(FORMAT_3SPACE_EQ_0X04HEX_NL, MANUFACTURER_ID_STR,
- EndianSwapUint16(pDimms[Index].ManufacturerId));
- }
-
/** VendorId **/
if (ShowAll || (DisplayOptionSet && ContainsValue(pDisplayValues, VENDOR_ID_STR))) {
Print(FORMAT_3SPACE_EQ_0X04HEX_NL, VENDOR_ID_STR, EndianSwapUint16(pDimms[Index].VendorId));
@@ -807,6 +801,12 @@ ShowDimms(
/** If Dimm is Manageable, print rest of the attributes **/
if (pDimms[Index].ManageabilityState) {
+ /** ManufacturerId **/
+ if (ShowAll || (DisplayOptionSet && ContainsValue(pDisplayValues, MANUFACTURER_ID_STR))) {
+ Print(FORMAT_3SPACE_EQ_0X04HEX_NL, MANUFACTURER_ID_STR,
+ EndianSwapUint16(pDimms[Index].ManufacturerId));
+ }
+
/** VolatileCapacity **/
if (ShowAll || (DisplayOptionSet && ContainsValue(pDisplayValues, MEMORY_MODE_CAPACITY_STR))) {
if (pDimms[Index].ErrorMask & DIMM_INFO_ERROR_CAPACITY) {
|
added handling of invalid controller responses | @@ -66,9 +66,10 @@ async def controller_announce():
async with session.post(PM.CONTROLLER_REST, data=gen_hello_msg(),
headers={'content-type': 'application/json'}) as resp:
# logging.debug('announce addr: %s:%s' % resp.connection._protocol.transport.get_extra_info('sockname'))
- assert resp.status == 200
+ if resp.status != 200:
+ logging.warning("Controller provided an invalid response")
+ print(resp)
html = await resp.text()
- # logging.debug(html)
except (ValueError, aiohttp.ClientConnectionError) as e:
print(e)
|
tools/gen-cpydiff: Use "pycopy" executable. | @@ -39,10 +39,10 @@ from collections import namedtuple
# to the correct executable.
if os.name == 'nt':
CPYTHON3 = os.getenv('MICROPY_CPYTHON3', 'python3.exe')
- MICROPYTHON = os.getenv('MICROPY_MICROPYTHON', '../ports/windows/micropython.exe')
+ MICROPYTHON = os.getenv('MICROPY_MICROPYTHON', '../ports/windows/pycopy.exe')
else:
CPYTHON3 = os.getenv('MICROPY_CPYTHON3', 'python3')
- MICROPYTHON = os.getenv('MICROPY_MICROPYTHON', '../ports/unix/micropython')
+ MICROPYTHON = os.getenv('MICROPY_MICROPYTHON', '../ports/unix/pycopy')
TESTPATH = '../tests/cpydiff/'
DOCPATH = '../docs/genrst/'
|
arvo: clean up unnecessary type casts and fix profiling hint | ?~ who=(slaw %p i.p) ~
?~ des=?~(i.t.p (some %$) (slaw %tas i.t.p)) ~ :: XX +sym ;~(pose low (easy %$))
?~ ved=(de-case i.t.t.p) ~
- `(unit beam)`[~ [`ship`u.who `desk`u.des `case`u.ved] t.t.t.p]
+ `[[`ship`u.who `desk`u.des u.ved] t.t.t.p]
::
++ de-case
- ~/ %en-case
+ ~/ %de-case
|= =knot
^- (unit case)
?^ num=(slaw %ud knot) `[%ud u.num]
|
status out: replace hashes with handshakes | @@ -1007,8 +1007,8 @@ printf("%s %s (C) %s ZeroBeat\n"
"-R <file> : write only not replaycount checked to hccapx file\n"
"-N <file> : output stripped file (only one record each mac_ap, mac_sta, essid, message_pair combination)\n"
"-n <file> : output stripped file (only one record each mac_sta, essid)\n"
- "-g <file> : write only hashes with pairwise key flag set\n"
- "-G <file> : write only hashes with groupkey flag set\n"
+ "-g <file> : write only handshakes with pairwise key flag set\n"
+ "-G <file> : write only handshakes with groupkey flag set\n"
"-0 <file> : write only MESSAGE_PAIR_M12E2 to hccapx file\n"
"-1 <file> : write only MESSAGE_PAIR_M14E4 to hccapx file\n"
"-2 <file> : write only MESSAGE_PAIR_M32E2 to hccapx file\n"
|
tools: ARCHIVE uses the full path | @@ -372,7 +372,7 @@ endef
define INSTALL_LIB
@echo "IN: $1 -> $2"
- $(Q) install -m 0644 $1 $2
+ $(Q) install -m 0644 $(abspath $1) $(abspath $2)
endef
# ARCHIVE_ADD - Add a list of files to an archive
@@ -393,7 +393,7 @@ endef
define ARCHIVE_ADD
@echo "AR (add): ${shell basename $(1)} $(2)"
- $(Q) $(AR) $1 $(2)
+ $(Q) $(AR) $(abspath $1) $(abspath $2)
endef
# ARCHIVE - Same as above, but ensure the archive is
@@ -401,7 +401,7 @@ endef
define ARCHIVE
$(Q) $(RM) $1
- $(Q) $(AR) $1 $(2)
+ $(Q) $(AR) $(abspath $1) $(abspath $2)
endef
# PRELINK - Prelink a list of files
|
Enforce DDF static item setting | @@ -84,7 +84,7 @@ static ResourceItem *DEV_InitDeviceDescriptionItem(const DeviceDescription::Item
}
else if (ddfItem.defaultValue.isValid())
{
- if (!item->lastSet().isValid())
+ if (ddfItem.isStatic || !item->lastSet().isValid())
{
item->setValue(ddfItem.defaultValue);
}
|
chat: uniform text color in unread banner
fixes urbit/landscape#563 | @@ -55,8 +55,7 @@ export const UnreadNotice = (props) => {
cursor='pointer'
onClick={onClick}
>
- {unreadCount} new message{unreadCount > 1 ? 's' : ''}{' '}
- <Text color='lightGray'>since </Text>
+ {unreadCount} new message{unreadCount > 1 ? 's' : ''} since{' '}
<Timestamp stamp={stamp} color='black' date={true} fontSize={1} />
</Text>
<Icon
|
reduce verbosity for devicesecurity checks | @@ -229,7 +229,7 @@ class DeviceSecuritySingleton extends DeviceSecuritySingletonBase implements IDe
rating += 3;
}
} catch (Exception e) {
- e.printStackTrace();
+ Logger.W( TAG, "Can't get bluetooth adapter ( " + e.toString() + " ). Skipping security checks for bluetooth." );
}
return rating > 3;
|
nimble/gatt: Fix null pointer dereference
Modify ble_gattc_proc_matches_conn_rx_entry to return 0 in case
no matching entry was found. Otherwise null pointer deference
might happen. | @@ -912,7 +912,7 @@ ble_gattc_proc_matches_conn_rx_entry(struct ble_gattc_proc *proc, void *arg)
criteria->matching_rx_entry = ble_gattc_rx_entry_find(
proc->op, criteria->rx_entries, criteria->num_rx_entries);
- return 1;
+ return (criteria->matching_rx_entry != NULL);
}
static void
|
forgeot intial shield for arm1 don't depend on openblas | %define ohpc_mpi_dependent 1
%include %{_sourcedir}/OHPC_macros
-%if "%{compiler_family}" != "intel"
+%if "%{compiler_family}" != "intel" && "%{compiler_family}" != "arm1"
BuildRequires: openblas-%{compiler_family}%{PROJ_DELIM}
Requires: openblas-%{compiler_family}%{PROJ_DELIM}
%endif
|
Add lexicon words for verifast directory | @@ -469,6 +469,7 @@ ctxbuffer
ctxlock
ctxstring
curbyte
+currentthread
curson
cvore
cwd
@@ -1041,6 +1042,7 @@ irqchannelpreemptionpriority
irqchannelsubpriority
irqcr
irqhandler
+irqmask
irqmd
irqn
irqs
@@ -1536,6 +1538,7 @@ pcfile
pcfilebuffer
pcfilename
pcfrom
+pchead
pchelpstring
pchexoutput
pchost
@@ -1579,6 +1582,7 @@ pcpubkeylabel
pcpublickeylabel
pcqueuegetname
pcqueuename
+pcreadfrom
pcreceivedstring
pcreg
pcrestcommand
@@ -1593,6 +1597,7 @@ pcstatusmessage
pcstring
pcstringtoreceive
pcstringtosend
+pctail
pctaskname
pcthingname
pcthingnamebuffer
@@ -1606,6 +1611,7 @@ pcurl
pcurldata
pcurrenttime
pcwritebuffer
+pcwriteto
pd
pdata
pdc
@@ -1795,6 +1801,7 @@ prvcollectdevicemetrics
prvcomtxtimercallback
prvconnectandcreatedemotasks
prvcopycommand
+prvCopyDataToQueue
prvcoreatask
prvcorebtasks
prvcreatecommand
@@ -2005,6 +2012,7 @@ puchash
pucindex
pucmessage
pucpayloadbuffer
+pucqueuestorage
pucrandom
pucresponse
pucsig
@@ -2048,6 +2056,7 @@ pvbuffer
pvcontext
pvctx
pvincomingpublishcallbackcontext
+pvitemtoqueue
pvoptionvalue
pvparam
pvparameters
@@ -2100,6 +2109,7 @@ pxnetif
pxnetworkbuffer
pxnetworkcontext
pxnetworkcredentials
+pxnewqueue
pxnext
pxopenedinterfacehandle
pxoutcharswritten
@@ -2157,6 +2167,8 @@ queuegenericcreate
queuegenericcreatestatic
queuegenericreset
queuehandle
+queuelists
+queueoverwrite
queuequeue
queueregistry
queueregistryitem
@@ -2168,6 +2180,7 @@ queuesetisr
queuesetpriority
queuespacesavailable
queuestorage
+queuesuspend
ra
rampz
rand
@@ -2322,6 +2335,7 @@ sbtrigger
scalled
scanf
scf
+schedulersuspend
sci
scott
scr
@@ -2489,6 +2503,7 @@ sublicense
subsquent
succeds
suicidaltasks
+summarise
svc
svr
sw
@@ -2666,6 +2681,7 @@ ucdatamsr
ucdatashar
ucdatasipr
ucfifodata
+uchars
ucheap
ucidentifier
ucindex
@@ -2987,6 +3003,7 @@ veh
veify
veirfy
vemacread
+verifast
verifyinit
verizon
verrorchecks
@@ -3190,6 +3207,7 @@ xcomporthandle
xconnectedsocket
xconnectionsarraylength
xcontrolmessagebuffer
+xcopyposition
xcorebmessagebuffers
xcount
xcreatecleansession
@@ -3372,6 +3390,7 @@ xportnumber
xportpendsvhandler
xportregistercinterrupthandler
xportsystickhandler
+xposition
xpreparetasklists
xprintqueue
xprivatekeyhandleptr
@@ -3568,6 +3587,7 @@ xteststatus
xtickstowait
xtime
xtimeonentering
+xtimeout
xtimeouts
xtimer
xtimerbuffer
|
Modify getting started guide | *
* \section sect_getting_started Getting started
*
- * Library development is fully hosted on Github and there is no future plans to move to any other platform.
+ * Repository <a href="https://github.com/MaJerle/ESP_AT_Lib"><b>ESP_AT_Lib is hosted on Github</b></a>. It combines source code and example projects.
*
- * There are `2` repositories
- *
- * - <a href="https://github.com/MaJerle/ESP_AT_Lib"><b>ESP_AT_Lib</b></a>: Source code of library itself.
- * - Repository is required when developing final project
- *
- * - <a href="https://github.com/MaJerle/ESP_AT_Lib_res"><b>ESP_AT_Lib_res</b></a>: Resources, development code,
- * documentation sources, examples, code snippets, etc.
- * - This repository uses `ESP_AT_Lib` repository as `submodule`
- * - Repository is used to evaluate library using prepared examples
- *
- * \subsection sect_clone_res Clone resources with examples
- *
- * Easiest way to test the library is to clone resources repository.
+ * \subsection sect_clone Clone repository
*
* \par First-time clone
*
* - Download and install `git` if not already
* - Open console and navigate to path in the system to clone repository to. Use command `cd your_path`
- * - Run `git clone --recurse-submodules https://github.com/MaJerle/ESP_AT_Lib_res` command to clone repository including submodules
+ * - Run `git clone --recurse-submodules https://github.com/MaJerle/ESP_AT_Lib` command to clone repository including submodules
* - Navigate to `examples` directory and run favourite example
*
* \par Already cloned, update to latest version
* - Run `git pull origin master --recurse-submodules` command to pull latest changes and to fetch latest changes from submodules
* - Run `git submodule foreach git pull origin master` to update & merge all submodules
*
- * \subsection sect_clone_lib Clone library only
- *
- * If you are already familiar with library and you wish to include it in existing project, easiest way to do so is to clone library repository only.
-
- * \par First-time clone
- *
- * - Download and install `git` if not already
- * - Open console and navigate to path in the system to clone repository to. Use command `cd your_path`
- * - Run `git clone --recurse-submodules https://github.com/MaJerle/ESP_AT_Lib` command to clone repository
- *
- * \par Already cloned, update to latest version
- *
- * - Open console and navigate to path in the system where your repository is. Use command `cd your_path`
- * - Run `git pull origin master --recurse-submodules` to update & merge latest repository changes
- *
* \section sect_project_examples Example projects
*
* Several examples are available to show application use cases. These are split and can be tested on different systems.
*
- * \note Examples are part of `ESP_AT_Lib_res` repository. Refer to \ref sect_clone_res
- *
* \subsection sect_project_examples_win32 WIN32 examples
*
* Library is developed under WIN32 system. That is, all examples are first developed and tested under WIN32, later ported to embedded application.
|
fix string copy | @@ -71,12 +71,7 @@ tb_bool_t tb_unixaddr_cstr_set(tb_unixaddr_ref_t unix, tb_char_t const* cstr)
{
// check
tb_assert_and_check_return_val(cstr, tb_false);
- tb_size_t len = tb_strlen(cstr);
- tb_assert_and_check_return_val(len < TB_UNIXADDR_CSTR_MAXN, tb_false);
- // copy
- tb_memcpy(unix->str, cstr, len + 1);
-
- // ok
- return tb_true;
+ // copy and report
+ return tb_strlcpy(unix->str, cstr, TB_UNIXADDR_CSTR_MAXN) < TB_UNIXADDR_CSTR_MAXN;
}
\ No newline at end of file
|
WIP: temp fix to get past an error in stroull when checking the maps file. | @@ -606,14 +606,16 @@ osGetPageProt(uint64_t addr)
char *end = NULL;
scope_errno = 0;
uint64_t addr1 = scope_strtoull(buf, &end, 0x10);
- if ((addr1 == 0) || (scope_errno != 0)) {
+ //if ((addr1 == 0) || (scope_errno != 0)) {
+ if (addr1 == 0) {
if (buf) scope_free(buf);
scope_fclose(fstream);
return -1;
}
uint64_t addr2 = scope_strtoull(end + 1, &end, 0x10);
- if ((addr2 == 0) || (scope_errno != 0)) {
+ //if ((addr2 == 0) || (scope_errno != 0)) {
+ if (addr2 == 0) {
if (buf) scope_free(buf);
scope_fclose(fstream);
return -1;
|
Implement unsignedchar tests for CodeLite | @@ -234,3 +234,29 @@ cmd2</StartupCommands>
</Completion>
]]
end
+
+
+---------------------------------------------------------------------------
+-- Setup/Teardown
+---------------------------------------------------------------------------
+
+ function suite.OnProjectCfg_UnsignedCharOn()
+ unsignedchar "On"
+ prepare()
+ codelite.project.compiler(cfg)
+ test.capture [[
+ <Compiler Options="-funsigned-char" C_Options="-funsigned-char" Assembler="" Required="yes" PreCompiledHeader="" PCHInCommandLine="no" UseDifferentPCHFlags="no" PCHFlags="">
+ </Compiler>
+ ]]
+ end
+
+
+ function suite.OnProjectCfg_UnsignedCharOff()
+ unsignedchar "Off"
+ prepare()
+ codelite.project.compiler(cfg)
+ test.capture [[
+ <Compiler Options="-fno-unsigned-char" C_Options="-fno-unsigned-char" Assembler="" Required="yes" PreCompiledHeader="" PCHInCommandLine="no" UseDifferentPCHFlags="no" PCHFlags="">
+ </Compiler>
+ ]]
+ end
|
Appveyor: update to Visual Studio 2017.
Default image was currently "Visual Studio 2015" | +image:
+ - Visual Studio 2017
+
platform:
- x64
- x86
@@ -5,13 +8,19 @@ platform:
environment:
fast_finish: true
matrix:
- - VSVER: 14
+ - VSVER: 15
configuration:
- shared
- plain
before_build:
+ - ps: >-
+ Install-Module VSSetup -Scope CurrentUser
+ - ps: >-
+ Get-VSSetupInstance -All
+ - ps: >-
+ gci env:* | sort-object name
- ps: >-
If ($env:Platform -Match "x86") {
$env:VCVARS_PLATFORM="x86"
@@ -26,8 +35,7 @@ before_build:
} Else {
$env:SHARED="no-shared no-makedepend"
}
- - ps: $env:VSCOMNTOOLS=(Get-Content ("env:VS" + "$env:VSVER" + "0COMNTOOLS"))
- - call "%VSCOMNTOOLS%\..\..\VC\vcvarsall.bat" %VCVARS_PLATFORM%
+ - call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" %VCVARS_PLATFORM%
- mkdir _build
- cd _build
- perl ..\Configure %TARGET% %SHARED%
|
Fixed Context::enable_probe method.
Fixed Context::enable_probe method so that it does not discard the result of Probe::enable. | @@ -311,10 +311,8 @@ bool Context::enable_probe(const std::string &probe_name,
}
}
- if (found_probe != nullptr) {
- found_probe->enable(fn_name);
- return true;
- }
+ if (found_probe != nullptr)
+ return found_probe->enable(fn_name);
return false;
}
|
Shell Tests: Prefer `kdb` over `kdb-static` | @@ -6,15 +6,17 @@ if (SHARED_ONLY_PLUGINS)
list (REMOVE_ITEM ADDED_PLUGINS_WITHOUT_ONLY_SHARED ${SHARED_ONLY_PLUGINS})
endif (SHARED_ONLY_PLUGINS)
-if (BUILD_FULL)
+# We prefer `kdb` over `kdb-full` over `kdb-static`. Some tests, such as the Markdown Shell Recorder test for the `typechecker` plugin
+# (which only supports shared builds), will fail otherwise.
+if (BUILD_SHARED)
+ set (KDB_COMMAND_BASENAME kdb)
+elseif (BUILD_FULL)
set (KDB_COMMAND_BASENAME kdb-full)
elseif (BUILD_STATIC)
set (KDB_COMMAND_BASENAME kdb-static)
-elseif (BUILD_SHARED)
- set (KDB_COMMAND_BASENAME kdb)
elseif (ENABLE_KDB_TESTING)
message (SEND_ERROR "no kdb tool found, please enable BUILD_FULL, BUILD_STATIC or BUILD_SHARED")
-endif (BUILD_FULL)
+endif (BUILD_SHARED)
set (IS_INSTALLED "YES")
set (KDB_COMMAND "${KDB_COMMAND_BASENAME}")
|
Fix all saved bmp images being red | @@ -1343,7 +1343,7 @@ SDL_Surface* TCOD_sys_create_bitmap(int width, int height, TCOD_color_t* buf) {
for (x = 0; x < width; x++) {
for (y = 0; y < height; y++) {
SDL_Rect rect;
- uint32_t col = SDL_MapRGB(&fmt, buf[x + y * width].r, buf[x + y * width].g, buf[x + y * width].b);
+ uint32_t col = SDL_MapRGB(bitmap->format, buf[x + y * width].r, buf[x + y * width].g, buf[x + y * width].b);
rect.x = x;
rect.y = y;
rect.w = 1;
|
extmod/moduhashlib: Include implementation of sha256 only when required.
Previously crypto-algorithms impl was included even if MICROPY_SSL_MBEDTLS
was in effect, thus we relied on the compiler/linker to cut out the unused
functions. | @@ -104,6 +104,8 @@ STATIC mp_obj_t uhashlib_sha256_digest(mp_obj_t self_in) {
#else
+#include "crypto-algorithms/sha256.c"
+
STATIC mp_obj_t uhashlib_sha256_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_kw, const mp_obj_t *args) {
mp_arg_check_num(n_args, n_kw, 0, 1, false);
mp_obj_hash_t *o = m_new_obj_var(mp_obj_hash_t, char, sizeof(CRYAL_SHA256_CTX));
@@ -344,8 +346,4 @@ const mp_obj_module_t mp_module_uhashlib = {
.globals = (mp_obj_dict_t*)&mp_module_uhashlib_globals,
};
-#if MICROPY_PY_UHASHLIB_SHA256
-#include "crypto-algorithms/sha256.c"
-#endif
-
#endif //MICROPY_PY_UHASHLIB
|
do not export DllEntry on windows | @@ -666,7 +666,7 @@ static void mi_patches_at_quick_exit(void) {
mi_patches_enable_term(); // enter termination phase and patch realloc/free with a no-op
}
-__declspec(dllexport) BOOL WINAPI DllEntry(HINSTANCE inst, DWORD reason, LPVOID reserved) {
+BOOL WINAPI DllEntry(HINSTANCE inst, DWORD reason, LPVOID reserved) {
if (reason == DLL_PROCESS_ATTACH) {
__security_init_cookie();
}
|
Add -O2 to sollve flags | @@ -83,7 +83,7 @@ else
triple="amdgcn-amd-amdhsa"
fi
-export MY_SOLLVE_FLAGS="-fopenmp -fopenmp-targets=$triple -Xopenmp-target=$triple -march=$AOMP_GPU"
+export MY_SOLLVE_FLAGS="-O2 -fopenmp -fopenmp-targets=$triple -Xopenmp-target=$triple -march=$AOMP_GPU"
pushd $AOMP_REPOS_TEST/$AOMP_SOLVV_REPO_NAME
|
Fix use before assignment
it was getting the SerialNumber of a previous cert. | @@ -987,12 +987,11 @@ end_of_options:
BIO_printf(bio_err, "writing new certificates\n");
for (i = 0; i < sk_X509_num(cert_sk); i++) {
BIO *Cout = NULL;
- ASN1_INTEGER *serialNumber = X509_get_serialNumber(x);
+ X509 *xi = sk_X509_value(cert_sk, i);
+ ASN1_INTEGER *serialNumber = X509_get_serialNumber(xi);
int k;
char *n;
- x = sk_X509_value(cert_sk, i);
-
j = ASN1_STRING_length(serialNumber);
p = (const char *)ASN1_STRING_get0_data(serialNumber);
@@ -1033,8 +1032,8 @@ end_of_options:
perror(new_cert);
goto end;
}
- write_new_certificate(Cout, x, 0, notext);
- write_new_certificate(Sout, x, output_der, notext);
+ write_new_certificate(Cout, xi, 0, notext);
+ write_new_certificate(Sout, xi, output_der, notext);
BIO_free_all(Cout);
}
|
doc: Update Configurator doc
Update per comments in PR 7781 | @@ -12,7 +12,8 @@ The ACRN Configurator ``acrn_configurator.py`` provides a user interface to help
you customize your :ref:`ACRN configuration <acrn_configuration_tool>`.
Capabilities:
-* Reads board information from the specified board configuration file
+* Reads board information from the board configuration file generated by the
+ :ref:`board_inspector_tool`
* Helps you configure a scenario of hypervisor and VM settings
* Generates a scenario configuration file that stores the configured settings in
XML format
@@ -181,7 +182,7 @@ Replace an Existing Board Configuration File
============================================
After a board configuration file has been imported, you can choose to replace it
-at any time. This option is useful, for example, when you need to iterate your
+at any time. This option is useful, for example, when you need to change your
board's configuration while you are customizing your hypervisor settings.
Whenever you change the configuration of your board, you must generate a new
board configuration file via the :ref:`board_inspector_tool`. Examples include
@@ -249,8 +250,8 @@ information in the file to populate the UI, so that you can continue working on
the configuration where you left off.
1. Due to the strict validation ACRN adopts, scenario configuration files for a
- former release may not work for a latter if they are not upgraded. Starting
- from v3.0, upgrade an older scenario XML per the steps in
+ former release may not work in the current release unless they are upgraded.
+ Starting from v3.0, upgrade an older scenario XML per the steps in
:ref:`upgrading_configuration` then import the upgraded file into the tool in
the next step.
@@ -297,13 +298,16 @@ Basic parameters are generally defined as:
* Parameters that are common for software like ACRN.
+* Parameters that are anticipated to be commonly used for typical ACRN use
+ cases.
+
Advanced parameters are generally defined as:
* Parameters that are optional for ACRN configuration, compilation, and
- execution.
+ execution. Default values cover most use cases.
* Parameters that are used for fine-grained tuning, such as reducing code
- lines or optimizing performance. Default values cover most use cases.
+ lines or optimizing performance.
Add a VM
=========
|
tests/extmod/ussl_basic: Disable completely as failing with mbedTLS.
Thist test was always a stopgap measured "to get some coverage", and in its
current shape, no longet adequate. | # very basic test of ssl module, just to test the methods exist
+# Way too basic, doesn't really work across different TLS libs
+print("SKIP")
+raise SystemExit
+
try:
import uio as io
import ussl as ssl
|
fix for ds18b20 negative decimals
ds18b20 decimals do not take into account the sign bit. Since the original calculation was not so readable, rewritten in readable way that also fixes the bug. Same code as PR against master. | @@ -192,6 +192,7 @@ static int ds18b20_lua_read(lua_State *L) {
static int ds18b20_read_device(uint8_t *ds18b20_device_rom) {
lua_State *L = lua_getstate();
+ int16_t ds18b20_raw_temp;
if (onewire_crc8(ds18b20_device_rom,7) == ds18b20_device_rom[7]) {
@@ -216,8 +217,9 @@ static int ds18b20_read_device(uint8_t *ds18b20_device_rom) {
lua_pushfstring(L, "%d:%d:%d:%d:%d:%d:%d:%d", ds18b20_device_rom[0], ds18b20_device_rom[1], ds18b20_device_rom[2], ds18b20_device_rom[3], ds18b20_device_rom[4], ds18b20_device_rom[5], ds18b20_device_rom[6], ds18b20_device_rom[7]);
ds18b20_device_scratchpad_conf = (ds18b20_device_scratchpad[4] >> 5) + 9;
- ds18b20_device_scratchpad_temp = ((int8_t)(ds18b20_device_scratchpad[1] << 4) + (ds18b20_device_scratchpad[0] >> 4) + ((double)(ds18b20_device_scratchpad[0] & 0x0F) / 16));
- ds18b20_device_scratchpad_temp_dec = ((double)(ds18b20_device_scratchpad[0] & 0x0F) / 16 * 1000);
+ ds18b20_raw_temp = ((ds18b20_device_scratchpad[1] << 8) | ds18b20_device_scratchpad[0]);
+ ds18b20_device_scratchpad_temp = (double)ds18b20_raw_temp / 16;
+ ds18b20_device_scratchpad_temp_dec = (ds18b20_raw_temp - (ds18b20_raw_temp / 16 * 16)) * 1000 / 16;
if (ds18b20_device_scratchpad_conf >= ds18b20_device_res) {
ds18b20_device_res = ds18b20_device_scratchpad_conf;
|
Add mold as linker | @@ -690,9 +690,9 @@ fi
T4P4S_CC=${T4P4S_CC-$(find_tool "-" clang gcc)}
if [[ ! "$T4P4S_CC" =~ "clang" ]]; then
# note: when using gcc, only lld seems to be supported, not lld-VSN
- T4P4S_LD=${T4P4S_LD-$(find_tool lld bfd gold)}
+ T4P4S_LD=${T4P4S_LD-$(find_tool mold lld bfd gold)}
else
- T4P4S_LD=${T4P4S_LD-$(find_tool "-" lld bfd gold)}
+ T4P4S_LD=${T4P4S_LD-$(find_tool "-" mold lld bfd gold)}
fi
DEBUGGER=${DEBUGGER-$(find_tool "-" lldb gdb)}
|
psp2: Fix indentations and remove some debug comments of USB headers | @@ -23,9 +23,9 @@ typedef enum SceUsbdErrorCode {
SCE_USBD_ERROR_NO_MEMORY = 0x80240005,
SCE_USBD_ERROR_DEVICE_NOT_FOUND = 0x80240006,
- SCE_USBD_ERROR_80240007 = 0x80240007, //
- SCE_USBD_ERROR_80240009 = 0x80240009, //
- SCE_USBD_ERROR_8024000A = 0x8024000A, //
+ SCE_USBD_ERROR_80240007 = 0x80240007,
+ SCE_USBD_ERROR_80240009 = 0x80240009,
+ SCE_USBD_ERROR_8024000A = 0x8024000A,
SCE_USBD_ERROR_FATAL = 0x802400FF
} SceUsbdErrorCode;
@@ -48,10 +48,10 @@ typedef struct SceUsbdReceiveEvent {
unsigned int unk0; // 0
unsigned int unk1; // next ptr?
unsigned int unk2; // != 8, set to 1, 2, 4? // transfer flags? type?
- unsigned int unk3; // ??
- unsigned int unk4; // ??
- unsigned int unk5; // ??
- unsigned int transfer_id; // ??
+ unsigned int unk3;
+ unsigned int unk4;
+ unsigned int unk5;
+ unsigned int transfer_id;
} SceUsbdReceiveEvent; /* size = 0x1C */
typedef struct SceUsbdDeviceAddress {
|
chip/it83xx/config_chip_it8xxx2.h: Format with clang-format
BRANCH=none
TEST=none
Tricium: disable | #define CHIP_RAMCODE_ILM0 (CONFIG_RAM_BASE + 0) /* base+0000h~base+0FFF */
#define CHIP_H2RAM_BASE (CONFIG_RAM_BASE + 0x1000) /* base+1000h~base+1FFF */
-#define CHIP_RAMCODE_BASE (CONFIG_RAM_BASE + 0x2000) /* base+2000h~base+2FFF \
+#define CHIP_RAMCODE_BASE \
+ (CONFIG_RAM_BASE + 0x2000) /* base+2000h~base+2FFF \
*/
#ifdef BASEBOARD_KUKUI
|
zoombini: Change battery i2c bus speed to 100KHz.
BRANCH=none
TEST=flash zoombini; verify that smart battery shows up on i2c bus.
Commit-Ready: Aseda Aboagye
Tested-by: Aseda Aboagye | @@ -92,7 +92,7 @@ BUILD_ASSERT(ARRAY_SIZE(power_signal_list) == POWER_SIGNAL_COUNT);
/* I2C port map. */
const struct i2c_port_t i2c_ports[] = {
- {"power", I2C_PORT_POWER, 400, GPIO_I2C0_SCL, GPIO_I2C0_SDA},
+ {"power", I2C_PORT_POWER, 100, GPIO_I2C0_SCL, GPIO_I2C0_SDA},
{"pmic", I2C_PORT_PMIC, 400, GPIO_I2C3_SCL, GPIO_I2C3_SDA},
{"sensor", I2C_PORT_SENSOR, 400, GPIO_I2C7_SCL, GPIO_I2C7_SDA},
{"tcpc0", I2C_PORT_TCPC0, 1000, GPIO_TCPC0_SCL, GPIO_TCPC0_SDA},
|
Update test_0x1014100D.sh | @@ -78,10 +78,11 @@ function test_image_filter {
local size=$1
- echo -n "doing action_test hls_image_filter"
- cp ${ACTION_ROOT}/sw/tiger.bmp .
+ echo "Executing action_test hls_image_filter"
+ echo "converting image: ${ACTION_ROOT}/sw/tiger.bmp"
+ echo "resulting image: ${ACTION_ROOT}/sw/tiger_new.bmp"
- cmd="snap_image_filter -i tiger.bmp -o tiger_new.bmp -C ${snap_card} >> hls_image_filter.log 2>&1"
+ cmd="snap_image_filter -i ${ACTION_ROOT}/sw/tiger.bmp -o ${ACTION_ROOT}/sw/tiger_new.bmp -C ${snap_card} >> hls_image_filter.log 2>&1"
eval ${cmd}
if [ $? -ne 0 ]; then
|
u3: improves effiency of gmp->u3a_atom conversion | @@ -407,14 +407,19 @@ u3i_chubs(c3_w a_w,
u3_atom
u3i_mp(mpz_t a_mp)
{
- c3_w pyg_w = mpz_size(a_mp) * (sizeof(mp_limb_t) / sizeof(c3_w));
+ size_t siz_i = mpz_sizeinbase(a_mp, 2);
u3i_slab sab_u;
- u3i_slab_init(&sab_u, 5, sizeof(c3_w) * pyg_w);
+ u3i_slab_init(&sab_u, 0, siz_i);
mpz_export(sab_u.buf_w, 0, -1, sizeof(c3_w), 0, 0, a_mp);
mpz_clear(a_mp);
- return u3i_slab_mint(&sab_u);
+ // per the mpz_export() docs:
+ //
+ // > If op is non-zero then the most significant word produced
+ // > will be non-zero.
+ //
+ return u3i_slab_moot(&sab_u);
}
/* u3i_vint(): increment [a].
|
Fix Android print with multiple arguments; | @@ -343,10 +343,10 @@ int luax_print(lua_State* L) {
lua_pushvalue(L, i);
lua_call(L, 1, 1);
lovrAssert(lua_type(L, -1) == LUA_TSTRING, LUA_QL("tostring") " must return a string to " LUA_QL("print"));
- luaL_addvalue(&buffer);
if (i > 1) {
luaL_addchar(&buffer, '\t');
}
+ luaL_addvalue(&buffer);
}
luaL_pushresult(&buffer);
LOG("%s", lua_tostring(L, -1));
|
Fix typos in README
Author: Daniel Gustafsson | @@ -1109,10 +1109,10 @@ compatibly partitioned tables.
Even if the joining relations don't have exactly the same partition bounds,
partitionwise join can still be applied by using an advanced
partition-matching algorithm. For both the joining relations, the algorithm
-checks wether every partition of one joining relation only matches one
+checks whether every partition of one joining relation only matches one
partition of the other joining relation at most. In such a case the join
between the joining relations can be broken down into joins between the
-matching partitions. The join relation can then be considerd partitioned.
+matching partitions. The join relation can then be considered partitioned.
The algorithm produces the pairs of the matching partitions, plus the
partition bounds for the join relation, to allow partitionwise join for
computing the join. The algorithm is implemented in partition_bounds_merge().
|
Add theme support to process heaps window | */
#include <phapp.h>
+#include <phsettings.h>
#include <phsvccl.h>
#include <actions.h>
#include <appresolver.h>
@@ -745,6 +746,8 @@ INT_PTR CALLBACK PhpProcessHeapsDlgProc(
PhLoadWindowPlacementFromSetting(L"SegmentHeapWindowPosition", L"SegmentHeapWindowSize", hwndDlg);
else
PhCenterWindow(hwndDlg, PhMainWndHandle);
+
+ PhInitializeWindowTheme(hwndDlg, PhEnableThemeSupport);
}
break;
case WM_DESTROY:
|
Dark Mode detection
GoAccess defaults to the darkPurple theme even for us weirdos :-) who still prefer the Light Mode in 2021. This change defaults to "bright" for us and "darkPurple" for them. | @@ -51,7 +51,7 @@ window.GoAccess = window.GoAccess || {
'autoHideTables': true,
'layout': cw > 2560 ? 'wide' : 'horizontal',
'perPage': 7,
- 'theme': 'darkPurple',
+ 'theme': (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) ? 'darkPurple' : 'bright',
};
this.AppPrefs = GoAccess.Util.merge(this.AppPrefs, this.opts.prefs);
|
Disable light-error-for-lh-confidence by default | @@ -535,7 +535,7 @@ void survive_kalman_tracker_integrate_observation(PoserData *pd, SurviveKalmanTr
}
STATIC_CONFIG_ITEM(KALMAN_USE_ERROR_FOR_LH_CONFIDENCE, "light-error-for-lh-confidence", 'i',
- "Whether or not to invalidate LH positions based on kalman errors", 1)
+ "Whether or not to invalidate LH positions based on kalman errors", 0)
STATIC_CONFIG_ITEM(KALMAN_LIGHT_ERROR_THRESHOLD, "light-error-threshold", 'f', "Error limit to invalidate position", .1)
STATIC_CONFIG_ITEM(KALMAN_MIN_REPORT_TIME, "min-report-time", 'f', "Minimum kalman report time in s", .005)
|
Update cmake check | @@ -85,7 +85,7 @@ set(CMAKE_EXE_LINKER_FLAGS_DEBUG "-g")
include(CheckTypeSize)
check_type_size("size_t" SIZEOF_SIZE_T)
if(SIZEOF_SIZE_T LESS 8)
- message(WARNING "Your size_t is less than 8 bytes. Long items with 64b length specifiers might not work as expected. Make sure to run the tests!")
+ message(WARNING "Your size_t is less than 8 bytes. Decoding of huge items that would exceed the memory address space will always fail. Consider implementing a custom streaming decoder if you need to deal with huge items.")
else()
add_definitions(-DEIGHT_BYTE_SIZE_T)
endif()
|
Allow configuring M3_APP_MAX_STACK | #define FATAL(msg, ...) { printf("Error: [Fatal] " msg "\n", ##__VA_ARGS__); goto _onfatal; }
+#ifndef M3_APP_MAX_STACK
+#define M3_APP_MAX_STACK (64*1024)
+#endif
+
M3Result repl_load (IM3Runtime runtime, const char* fn)
{
M3Result result = m3Err_none;
@@ -154,7 +158,7 @@ void repl_free(IM3Runtime* runtime)
M3Result repl_init(IM3Environment env, IM3Runtime* runtime)
{
repl_free(runtime);
- *runtime = m3_NewRuntime (env, 64*1024, NULL);
+ *runtime = m3_NewRuntime (env, M3_APP_MAX_STACK, NULL);
if (*runtime == NULL) {
return "m3_NewRuntime failed";
}
|
Format vnet_buffer_t l2 feature bitmap | #include <vnet/vnet.h>
#include <vppinfra/bitmap.h>
+#include <vnet/l2/l2_input.h>
+#include <vnet/l2/l2_output.h>
u8 *
format_vnet_sw_interface_flags (u8 * s, va_list * args)
@@ -463,6 +465,12 @@ format_vnet_buffer_opaque (u8 * s, va_list * args)
(u32) (o->l2.bd_age));
vec_add1 (s, '\n');
+ s = format (s,
+ "l2.feature_bitmap_input: %U, L2.feature_bitmap_output: %U",
+ format_l2_input_features, o->l2.feature_bitmap, 0,
+ format_l2_output_features, o->l2.feature_bitmap, 0);
+ vec_add1 (s, '\n');
+
s = format (s,
"l2t.next_index: %d, l2t.session_index: %d",
(u32) (o->l2t.next_index), o->l2t.session_index);
|
Add debug prints for create, update and delete rules | @@ -521,6 +521,7 @@ int DeRestPluginPrivate::createRule(const ApiRequest &req, ApiResponse &rsp)
updateEtag(rule.etag);
updateEtag(gwConfigEtag);
+ DBG_Printf(DBG_INFO, "create rule %s: %s\n", qPrintable(rule.id()), qPrintable(rule.name()));
rules.push_back(rule);
queueCheckRuleBindings(rule);
indexRulesTriggers();
@@ -564,6 +565,8 @@ int DeRestPluginPrivate::updateRule(const ApiRequest &req, ApiResponse &rsp)
return REQ_READY_SEND;
}
+ DBG_Printf(DBG_INFO, "update rule %s: %s\n", qPrintable(id), qPrintable(rule->name()));
+
QVariant var = Json::parse(req.content, ok);
QVariantMap map = var.toMap();
QVariantList conditionsList;
@@ -926,6 +929,8 @@ int DeRestPluginPrivate::deleteRule(const ApiRequest &req, ApiResponse &rsp)
rule->setStatus("disabled");
queueCheckRuleBindings(*rule);
+ DBG_Printf(DBG_INFO, "delete rule %s: %s\n", qPrintable(id), qPrintable(rule->name()));
+
QVariantMap rspItem;
QVariantMap rspItemState;
rspItemState["id"] = id;
|
LPC55xx: re-enable CRC computation in info.c. | @@ -294,38 +294,22 @@ void info_crc_compute()
// Compute the CRCs of regions that exist
if ((DAPLINK_ROM_BL_SIZE > 0)
&& flash_is_readable(DAPLINK_ROM_BL_START, DAPLINK_ROM_BL_SIZE - 4)) {
-#ifdef INTERFACE_LPC55XX // FIXME: CRC
- crc_bootloader = 0;
-#else
crc_bootloader = crc32((void *)DAPLINK_ROM_BL_START, DAPLINK_ROM_BL_SIZE - 4);
-#endif
}
if ((DAPLINK_ROM_IF_SIZE > 0)
&& flash_is_readable(DAPLINK_ROM_IF_START, DAPLINK_ROM_IF_SIZE - 4)) {
-#ifdef INTERFACE_LPC55XX // FIXME: CRC
- crc_interface = 0;
-#else
crc_interface = crc32((void *)DAPLINK_ROM_IF_START, DAPLINK_ROM_IF_SIZE - 4);
-#endif
}
if ((DAPLINK_ROM_CONFIG_ADMIN_SIZE > 0)
&& flash_is_readable(DAPLINK_ROM_CONFIG_ADMIN_START, DAPLINK_ROM_CONFIG_ADMIN_SIZE)) {
-#ifdef INTERFACE_LPC55XX // FIXME: CRC
- crc_config_admin = 0;
-#else
crc_config_admin = crc32((void *)DAPLINK_ROM_CONFIG_ADMIN_START, DAPLINK_ROM_CONFIG_ADMIN_SIZE);
-#endif
}
if ((DAPLINK_ROM_CONFIG_USER_SIZE > 0)
&& flash_is_readable(DAPLINK_ROM_CONFIG_USER_START, DAPLINK_ROM_CONFIG_USER_SIZE)) {
-#ifdef INTERFACE_LPC55XX // FIXME: CRC
- crc_config_user = 0;
-#else
crc_config_user = crc32((void *)DAPLINK_ROM_CONFIG_USER_START, DAPLINK_ROM_CONFIG_USER_SIZE);
-#endif
}
}
|
pp2: increase recycle batch size
Increase batch size when recycling buffers. This increases Mpps by 7%. | #define MVCONF_TYPES_PUBLIC
#define MVCONF_DMA_PHYS_ADDR_T_PUBLIC
+#include <vlib/vlib.h>
+
#include "mv_std.h"
#include "env/mv_sys_dma.h"
#include "drivers/mv_pp2.h"
@@ -61,7 +63,7 @@ typedef struct
u32 hw_if_index;
} mrvl_pp2_if_t;
-#define MRVL_PP2_BUFF_BATCH_SZ 64
+#define MRVL_PP2_BUFF_BATCH_SZ VLIB_FRAME_SIZE
typedef struct
{
|
Style fix in "changes.xml". | @@ -110,8 +110,8 @@ after the corresponding listener had been reconfigured.
<change type="bugfix">
<para>
-the router and app processes could crash when reaching requests limit
-in asynchronous or multithreaded apps.
+the router and app processes could crash when the requests limit was reached
+by asynchronous or multithreaded apps.
</para>
</change>
|
Fix Formatting in s2nc and endpoint integration test | @@ -77,7 +77,7 @@ def well_known_endpoints_test():
for endpoint in well_known_endpoints:
ret = try_client_handshake(endpoint)
print_result("Endpoint: %-40s... " % endpoint, ret)
- if(ret != 0):
+ if ret != 0:
failed += 1
return failed
|
Fix test added for lstComparatorZ() in
strcmp() returns < 0 and > 0 but these are not guaranteed to be -1 and 1. | @@ -188,8 +188,8 @@ testRun(void)
const char *string2 = "def";
TEST_RESULT_INT(lstComparatorZ(&string1, &string1), 0, "strings are equal");
- TEST_RESULT_INT(lstComparatorZ(&string1, &string2), -1, "first string is less");
- TEST_RESULT_INT(lstComparatorZ(&string2, &string1), 1, "first string is greater");
+ TEST_RESULT_BOOL(lstComparatorZ(&string1, &string2) < 0, true, "first string is less");
+ TEST_RESULT_BOOL(lstComparatorZ(&string2, &string1) > 0, true, "first string is greater");
}
// *****************************************************************************************************************************
|
WebPRescalerImportRowExpand_C: promote some vals before multiply
avoids integer overflow in extreme cases:
src/dsp/rescaler.c:45:32: runtime error: signed integer overflow: 129 *
cannot be represented in type 'int'
0x556bde3538e3 in WebPRescalerImportRowExpand_C src/dsp/rescaler.c:45:32
0x556bde357465 in RescalerImportRowExpand_SSE2 src/dsp/rescaler_sse2.c:56:5
... | @@ -38,8 +38,9 @@ void WebPRescalerImportRowExpand_C(WebPRescaler* const wrk,
int x_out = channel;
// simple bilinear interpolation
int accum = wrk->x_add;
- int left = src[x_in];
- int right = (wrk->src_width > 1) ? src[x_in + x_stride] : left;
+ rescaler_t left = (rescaler_t)src[x_in];
+ rescaler_t right =
+ (wrk->src_width > 1) ? (rescaler_t)src[x_in + x_stride] : left;
x_in += x_stride;
while (1) {
wrk->frow[x_out] = right * wrk->x_add + (left - right) * accum;
@@ -50,7 +51,7 @@ void WebPRescalerImportRowExpand_C(WebPRescaler* const wrk,
left = right;
x_in += x_stride;
assert(x_in < wrk->src_width * x_stride);
- right = src[x_in];
+ right = (rescaler_t)src[x_in];
accum += wrk->x_add;
}
}
|
don't change path for main part of bart command (fixes | @@ -89,7 +89,7 @@ function [varargout] = bart(cmd, varargin)
if ispc % running windows?
if isWSL
% For WSL and modify paths
- cmdWSL = wslPathCorrection(cmd);
+ cmdWSL = cmd;
in_strWSL = wslPathCorrection(in_str);
out_strWSL = wslPathCorrection(out_str);
final_strWSL = ['wsl ', bart_path, '/bart ', cmdWSL, ' ', in_strWSL, ' ', out_strWSL];
|
Create namespace when all dimms are locked - unclear error HII | @@ -6683,6 +6683,9 @@ Update NAMESPACE_INDEX with NAMESPACE_LABEL(s)
ReturnCode = InsertNamespaceLabels(pDimmRegion->pDimm, &ppLabels[Index2], 1,
pNamespace->Major, pNamespace->Minor);
if (EFI_ERROR(ReturnCode)) {
+ if (ReturnCode == EFI_SECURITY_VIOLATION) {
+ ResetCmdStatus(pCommandStatus, NVM_ERR_INVALID_SECURITY_STATE);
+ }
//cleanup already written labels and exit
LabelsToRemove = (UINT16)Index2;
Index2 = 0;
|
doc: add 1.6.1 docs version menu choice | @@ -189,6 +189,8 @@ else:
html_context = {
'current_version': current_version,
'versions': ( ("latest", "/latest/"),
+ ("1.6.1", "/1.6.1/"),
+ ("1.6", "/1.6/"),
("1.6", "/1.6/"),
("1.5", "/1.5/"),
("1.4", "/1.4/"),
|
Better way to forward calls | @@ -66,8 +66,10 @@ void Scripting::HandleOverridenFunction(RED4ext::IScriptable* apContext, RED4ext
if (apCookie->RealFunction)
{
- RED4ext::CStack stack(apContext, apStack->args, apStack->argsCount, apStack->result);
- apCookie->RealFunction->Execute(&stack);
+ using TCallScriptFunction = bool(*)(RED4ext::IFunction* apFunction, RED4ext::IScriptable* apContext, RED4ext::CStackFrame* apFrame, int32_t* apOut, int64_t a4);
+ static RED4ext::REDfunc<TCallScriptFunction> CallScriptFunction(0x224DC0);
+
+ CallScriptFunction(apCookie->RealFunction, apContext, apFrame, apOut, a4);
}
}
|
YAML CPP: Document function `yamlWrite` | @@ -54,6 +54,15 @@ static int yamlRead (kdb::KeySet & mappings, kdb::Key & parent)
return ELEKTRA_PLUGIN_STATUS_SUCCESS;
}
+/**
+ * @brief This function saves the key-value pairs stored in `mappings` as YAML data in the location specified via `parent`.
+ *
+ * @param mappings This key set stores the mappings that should be saved as YAML data.
+ * @param parent This key specifies the path to the YAML data file that should be written.
+ *
+ * @retval ELEKTRA_PLUGIN_STATUS_SUCCESS if writing was successful
+ * @retval ELEKTRA_PLUGIN_STATUS_ERROR if there were any problems
+ */
static int yamlWrite (kdb::KeySet & mappings, kdb::Key & parent)
{
using namespace kdb;
|
docs: add discussion about slurm configuration and accounting; mention setup of
/var/log/slurm_jobcomp.log file for simple accounting needs and add pointer to slurm
docs for database-based accounting | @@ -17,6 +17,17 @@ the corresponding compute image in a subsequent step.
\end{lstlisting}
% end_ohpc_run
+There are a wide variety of configuration options and plugins available
+for \SLURM{} and the example config file illustrated above targets a fairly
+basic installation. In particular, job completion data will be stored in a text
+file (\texttt{/var/log/slurm\_jobcomp.log)} that can be used to log simple
+accounting information. Sites who desire more detailed information, or want to
+aggregate accounting data from multiple clusters, will likely want to enable the
+database accounting back-end. This requires a number of additional local modifications
+(on top of installing \texttt{slurm-slurmdbd-ohpc}), and users are advised to
+consult the online \href{https://slurm.schedmd.com/accounting.html}{\color{blue}{documentation}}
+for more detailed information on setting up a database configuration for \SLURM{}.
+
\begin{center}
\begin{tcolorbox}[]
\small SLURM requires enumeration of the physical hardware characteristics
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.