mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
whitespace fixes and documentation
This commit is contained in:
parent
6a1e745bb2
commit
0cebda19c8
10 changed files with 16 additions and 21 deletions
|
@ -18,7 +18,7 @@
|
|||
|
||||
#include "list.h"
|
||||
|
||||
#define IF_IRQ_MAX 3 /**< Maxmimal number of IRQs of an interface */
|
||||
#define IF_IRQ_MAX 3 /**< Maxmimal number of IRQs of an interface */
|
||||
|
||||
#ifndef SO_MARK
|
||||
#define SO_MARK 36 /**< Workaround: add missing constant for OPAL-RT Redhawk target */
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/** Linux kernel related procedures
|
||||
/** Linux kernel related functions.
|
||||
*
|
||||
* @file
|
||||
* @author Steffen Vogel <stvogel@eonerc.rwth-aachen.de>
|
||||
* @copyright 2014-2016, Institute for Automation of Complex Power Systems, EONERC
|
||||
* This file is part of S2SS. All Rights Reserved. Proprietary and confidential.
|
||||
|
|
|
@ -14,9 +14,9 @@
|
|||
#include <libconfig.h>
|
||||
|
||||
#ifdef __GNUC__
|
||||
#define INDENT int __attribute__ ((__cleanup__(log_outdent), unused)) _old_indent = log_indent(1);
|
||||
#define INDENT int __attribute__ ((__cleanup__(log_outdent), unused)) _old_indent = log_indent(1);
|
||||
#else
|
||||
#define INDENT ;
|
||||
#define INDENT ;
|
||||
#endif
|
||||
|
||||
/* The log level which is passed as first argument to print() */
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
/** Node type: File
|
||||
*
|
||||
* This file implements the file type for nodes.
|
||||
*
|
||||
* @author Steffen Vogel <stvogel@eonerc.rwth-aachen.de>
|
||||
* @copyright 2014-2016, Institute for Automation of Complex Power Systems, EONERC
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
/** Node type: GTFPGA (Xilinx ML507)
|
||||
*
|
||||
* This file implements the gtfpga subtype for nodes.
|
||||
*
|
||||
* @author Steffen Vogel <stvogel@eonerc.rwth-aachen.de>
|
||||
* @copyright 2015-2016, Steffen Vogel
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/** kernel related procedures.
|
||||
/** Linux kernel related functions.
|
||||
*
|
||||
* @author Steffen Vogel <stvogel@eonerc.rwth-aachen.de>
|
||||
* @copyright 2014-2016, Institute for Automation of Complex Power Systems, EONERC
|
||||
|
@ -124,6 +124,7 @@ int kernel_has_cmdline(const char *substr)
|
|||
|
||||
return strstr(cmd, substr) ? 0 : -1;
|
||||
}
|
||||
|
||||
int kernel_get_cacheline_size()
|
||||
{
|
||||
return sysconf(_SC_LEVEL1_ICACHE_LINESIZE);
|
||||
|
|
|
@ -1,12 +1,5 @@
|
|||
|
||||
/** Node type: OMA Next Generation Services Interface 10 (NGSI) (FIWARE context broker)
|
||||
*
|
||||
* This file implements the NGSI context interface. NGSI is RESTful HTTP is specified by
|
||||
* the Open Mobile Alliance (OMA).
|
||||
* It uses the standard operations of the NGSI 10 context information standard.
|
||||
*
|
||||
* @see https://forge.fiware.org/plugins/mediawiki/wiki/fiware/index.php/FI-WARE_NGSI-10_Open_RESTful_API_Specification
|
||||
* @see http://technical.openmobilealliance.org/Technical/Release_Program/docs/NGSI/V1_0-20120529-A/OMA-TS-NGSI_Context_Management-V1_0-20120529-A.pdf
|
||||
* @author Steffen Vogel <stvogel@eonerc.rwth-aachen.de>
|
||||
* @copyright 2014-2016, Institute for Automation of Complex Power Systems, EONERC
|
||||
* This file is part of S2SS. All Rights Reserved. Proprietary and confidential.
|
||||
|
|
|
@ -113,7 +113,6 @@ int node_stop(struct node *n)
|
|||
n->state = NODE_STOPPING;
|
||||
|
||||
info("Stopping node %s", node_name(n));
|
||||
|
||||
{ INDENT
|
||||
ret = n->_vt->close ? n->_vt->close(n) : -1;
|
||||
}
|
||||
|
|
|
@ -60,9 +60,14 @@ static void quit()
|
|||
|
||||
static void realtime_init()
|
||||
{ INDENT
|
||||
if (kernel_has_cmdline("isolcpus"))
|
||||
int ret;
|
||||
|
||||
ret = kernel_has_cmdline("isolcpus");
|
||||
if (ret)
|
||||
warn("You should reserve some cores for the server (see 'isolcpus')");
|
||||
if (kernel_is_rt())
|
||||
|
||||
ret = kernel_is_rt();
|
||||
if (ret)
|
||||
warn("We recommend to use an PREEMPT_RT patched kernel!");
|
||||
|
||||
/* Use FIFO scheduler with real time priority */
|
||||
|
|
|
@ -54,8 +54,7 @@ int main(int argc, char *argv[])
|
|||
int type = TYPE_MIXED;
|
||||
int values = 1;
|
||||
int limit = -1;
|
||||
|
||||
int counter = 0;
|
||||
int counter;
|
||||
|
||||
if (argc < 2) {
|
||||
usage(argv[0]);
|
||||
|
@ -124,6 +123,7 @@ check: if (optarg == endptr)
|
|||
|
||||
struct timespec start = time_now();
|
||||
|
||||
counter = 0;
|
||||
while (limit < 0 || counter < limit) {
|
||||
struct timespec now = time_now();
|
||||
double running = time_delta(&start, &now);
|
||||
|
|
Loading…
Add table
Reference in a new issue