]> rtime.felk.cvut.cz Git - frescor/fwp.git/log
frescor/fwp.git
13 years agoMerge branch 'master' of rtime.felk.cvut.cz:frescor/fwp master
Michal Sojka [Thu, 27 Jan 2011 10:27:38 +0000 (11:27 +0100)]
Merge branch 'master' of rtime.felk.cvut.cz:frescor/fwp

Conflicts:
fwp/mngr/fwp_mngr.c

13 years agoAdd help option
Michal Sojka [Tue, 11 Jan 2011 09:19:57 +0000 (10:19 +0100)]
Add help option

13 years agoAllow daemonizing FWP manager
Michal Sojka [Fri, 15 Oct 2010 06:15:02 +0000 (08:15 +0200)]
Allow daemonizing FWP manager

13 years agofrm: Handle utilization overflow
Michal Sojka [Fri, 21 May 2010 15:42:49 +0000 (17:42 +0200)]
frm: Handle utilization overflow

13 years agofwp_mgr: Log utilization when accepting/rejecting contracts
Michal Sojka [Fri, 21 May 2010 15:32:41 +0000 (17:32 +0200)]
fwp_mgr: Log utilization when accepting/rejecting contracts

14 years agoHandle errors correctly in fwp_send_async()
Michal Sojka [Sat, 28 Nov 2009 18:57:17 +0000 (19:57 +0100)]
Handle errors correctly in fwp_send_async()

14 years agoCreation of receive endpoint returns socket
Michal Sojka [Fri, 27 Nov 2009 07:40:52 +0000 (08:40 +0100)]
Creation of receive endpoint returns socket

We need this for ffmpeg integration

14 years agoDo not use connect() for UDP sockets
Michal Sojka [Thu, 26 Nov 2009 18:17:31 +0000 (19:17 +0100)]
Do not use connect() for UDP sockets

If connect() is used to set socket address, we get error when there is
nobody on the receiving side. This breaks our ffmpeg-based tests.

14 years agofwp-timing: Allow maximal delay up to 10 seconds
Michal Sojka [Wed, 18 Nov 2009 17:16:46 +0000 (18:16 +0100)]
fwp-timing: Allow maximal delay up to 10 seconds

14 years agofwp-timing learned -j (sending packets with jitter)
Michal Sojka [Thu, 12 Nov 2009 13:57:29 +0000 (14:57 +0100)]
fwp-timing learned -j (sending packets with jitter)

14 years agofwp-timing measures 95th and 99th percentile of communication delay
Michal Sojka [Thu, 12 Nov 2009 13:52:21 +0000 (14:52 +0100)]
fwp-timing measures 95th and 99th percentile of communication delay

14 years agoAllow bypassing FWP by setting FWP_BYPASS environment variable
Michal Sojka [Thu, 12 Nov 2009 13:16:14 +0000 (14:16 +0100)]
Allow bypassing FWP by setting FWP_BYPASS environment variable

This is done in order to be able to compare behavior of the same
application (namely fwp-timing) with and without FWP.

14 years agoProperly initialize newly allocated VRES
Michal Sojka [Thu, 12 Nov 2009 13:14:25 +0000 (14:14 +0100)]
Properly initialize newly allocated VRES

14 years agofwp-timing: Final version and a simple gnuplot script
Michal Sojka [Wed, 11 Nov 2009 15:41:34 +0000 (16:41 +0100)]
fwp-timing: Final version and a simple gnuplot script

14 years agoAlmost final version of fwp-timing and its running script
Michal Sojka [Wed, 11 Nov 2009 14:40:35 +0000 (15:40 +0100)]
Almost final version of fwp-timing and its running script

14 years agoResource manager gained parameters for setting wifi configuration
Michal Sojka [Wed, 11 Nov 2009 13:28:15 +0000 (14:28 +0100)]
Resource manager gained parameters for setting wifi configuration

... such as bitrate, modulatio used and whether short preamble is used.

14 years agofwp-timing: Added --quiet option
Michal Sojka [Tue, 10 Nov 2009 12:41:09 +0000 (13:41 +0100)]
fwp-timing: Added --quiet option

14 years agofwp-timing: Added histogram and statistics
Michal Sojka [Tue, 10 Nov 2009 12:31:06 +0000 (13:31 +0100)]
fwp-timing: Added histogram and statistics

14 years agoRemoved unneeded functions from fwp_utils.h
Michal Sojka [Tue, 10 Nov 2009 11:27:15 +0000 (12:27 +0100)]
Removed unneeded functions from fwp_utils.h

This was done to increase readability of the code when searching for
problems.

14 years agofwp-timing: Added -v option (verbose)
Michal Sojka [Tue, 10 Nov 2009 10:57:47 +0000 (11:57 +0100)]
fwp-timing: Added -v option (verbose)

14 years agofwp-timing: Added -c flag to specify the number of messages to be sent
Michal Sojka [Tue, 10 Nov 2009 10:50:28 +0000 (11:50 +0100)]
fwp-timing: Added -c flag to specify the number of messages to be sent

14 years agoRemoved .top*
Michal Sojka [Tue, 10 Nov 2009 10:40:08 +0000 (11:40 +0100)]
Removed .top*

14 years agoAllow fwp-timing to generate several streams simultaneously
Michal Sojka [Tue, 10 Nov 2009 10:37:58 +0000 (11:37 +0100)]
Allow fwp-timing to generate several streams simultaneously

Signed-off-by: Michal Sojka <sojkam1@fel.cvut.cz>
14 years agoDo not use preallocated memory for VRESes
Michal Sojka [Tue, 10 Nov 2009 10:35:33 +0000 (11:35 +0100)]
Do not use preallocated memory for VRESes

This was unnecessarily limiting. VRES creation in FWP in not meant to be
hard real-time, so one more malloc() doesn't hurt us.

14 years agoFix allocator error reporting
Michal Sojka [Tue, 10 Nov 2009 10:00:03 +0000 (11:00 +0100)]
Fix allocator error reporting

14 years agoMerge branch 'master' of frsh-forb.git.sourceforge.net:/gitroot/frsh-forb/fwp
Michal Sojka [Tue, 10 Nov 2009 08:32:37 +0000 (09:32 +0100)]
Merge branch 'master' of frsh-forb.git.sourceforge.net:/gitroot/frsh-forb/fwp

14 years agoRemoved unused fwp_vres_get_id()
Michal Sojka [Tue, 10 Nov 2009 08:30:08 +0000 (09:30 +0100)]
Removed unused fwp_vres_get_id()

14 years agoFix uninitialized variable
Michal Sojka [Mon, 9 Nov 2009 15:34:57 +0000 (16:34 +0100)]
Fix uninitialized variable

14 years agoSet correctly source address for sent packets (if specified in contract)
Michal Sojka [Mon, 9 Nov 2009 15:34:09 +0000 (16:34 +0100)]
Set correctly source address for sent packets (if specified in contract)

14 years agoCompile tests/ by default
Michal Sojka [Mon, 9 Nov 2009 15:17:14 +0000 (16:17 +0100)]
Compile tests/ by default

14 years agoFixed const qualifiers
Michal Sojka [Fri, 6 Nov 2009 14:10:30 +0000 (15:10 +0100)]
Fixed const qualifiers

14 years agoImplemented synchronous and asynchronous sending
Michal Sojka [Fri, 6 Nov 2009 14:02:15 +0000 (15:02 +0100)]
Implemented synchronous and asynchronous sending

The main goal of this big change is to avoid delays caused by CPU
scheduler when rescheduling from application thread to VRES TX thread.
According to our fwp-timing.c experiment, these delays can by even
several milliseconds long.

Now, whenever VRES capacity allows, send operation is invoked directly
from application thread. Only if the budget is insufficient, the
message can be queued for sending later by VRES thread, provided that
asynchronous send was requested. In case of synchronous send, the
application thread is blocked until the budget is replenished.

Besides the above change, the code was cleaned up a lot.

Signed-off-by: Michal Sojka <sojkam1@fel.cvut.cz>
14 years agoRemoved FWP_VF_CHANGED flag
Michal Sojka [Thu, 5 Nov 2009 14:59:48 +0000 (15:59 +0100)]
Removed FWP_VF_CHANGED flag

This flag is not necessary and was really used only for printing
debugging messages, which can be done in a more simple way.

14 years agoRemoved "descriptor" types
Michal Sojka [Tue, 3 Nov 2009 11:52:01 +0000 (12:52 +0100)]
Removed "descriptor" types

These types (fwp_endpoint_d_t, fwp_vres_d_t). These types only made things
more complicated than it was necessary. Now all functions use the "real"
types for their parameters.

14 years agoRemove unused flags parameter of fwp_send()
Michal Sojka [Mon, 2 Nov 2009 15:03:01 +0000 (16:03 +0100)]
Remove unused flags parameter of fwp_send()

14 years agoRemoved unused id field from vres_params
Michal Sojka [Mon, 2 Nov 2009 09:57:56 +0000 (10:57 +0100)]
Removed unused id field from vres_params

14 years agoAdded application to measure FWP timing properites
Michal Sojka [Tue, 27 Oct 2009 15:28:09 +0000 (16:28 +0100)]
Added application to measure FWP timing properites

TODO: It is necessary to implement synchronous sending in FWP. Without
this it is possible that FWP vres slows down due to scheduling latencies
and we then measure constantly higher delays.

Signed-off-by: Michal Sojka <sojkam1@fel.cvut.cz>
14 years agoAdded missing initialization of ancillary data
Michal Sojka [Tue, 27 Oct 2009 15:23:10 +0000 (16:23 +0100)]
Added missing initialization of ancillary data

14 years agoAdded fwp block accessors
Michal Sojka [Tue, 27 Oct 2009 15:21:20 +0000 (16:21 +0100)]
Added fwp block accessors

14 years agoRework fwp_send() to obey src parameter
Michal Sojka [Mon, 26 Oct 2009 16:38:08 +0000 (17:38 +0100)]
Rework fwp_send() to obey src parameter

I had to replace send() by sendmsg() in order to specify control message
which is the only way to specify source interface.

14 years agoIntroduce src parameter in FWP contracts
Michal Sojka [Mon, 26 Oct 2009 16:23:31 +0000 (17:23 +0100)]
Introduce src parameter in FWP contracts

If set, this parameter will be used to force the packets to be sent through
a specific interface given by IPv4 address of the interface.

14 years agostruct fwp_endpoint_attr documentation changes
Michal Sojka [Mon, 26 Oct 2009 15:53:06 +0000 (16:53 +0100)]
struct fwp_endpoint_attr documentation changes

14 years agoUse endpoint attributes only if it has correct size
Michal Sojka [Mon, 26 Oct 2009 15:51:03 +0000 (16:51 +0100)]
Use endpoint attributes only if it has correct size

14 years agoUpdated to change in deadline miss notification
Michal Sojka [Mon, 19 Oct 2009 13:34:59 +0000 (15:34 +0200)]
Updated to change in deadline miss notification

14 years agoFix FWP manager Makefile changed in the last commit
Michal Sojka [Mon, 24 Aug 2009 13:36:37 +0000 (15:36 +0200)]
Fix FWP manager Makefile changed in the last commit

14 years agoFWP manager renamed to frm_fwp
Michal Sojka [Mon, 24 Aug 2009 09:24:50 +0000 (11:24 +0200)]
FWP manager renamed to frm_fwp

This is to match the naming convention used by all other managers.

14 years agowme_test: Send timing reworked
Michal Sojka [Thu, 13 Aug 2009 15:37:25 +0000 (17:37 +0200)]
wme_test: Send timing reworked

The new implementation allows delays > 1 second and skip packets when
the program is stopped for some time (suspend to *, or Ctrl-S when
there is some debugging output in TX path).

14 years agoFixed broken budgeting algorithm
Michal Sojka [Thu, 13 Aug 2009 15:29:34 +0000 (17:29 +0200)]
Fixed broken budgeting algorithm

The problems of the previous implementation were:

1) Messages were almost always delayed event if it was not necessary.
   The reason was that the budget was replenished only at the
   multiples of period since the VRES thread started. Even if no
   message was sent for several periods, the budget was not
   replenished immediately when a new message arrived, but the code
   wait for the next period.
2) It was possible to send more bytes then the VRES should allow. If
   the message was too large, the code just wait for the new replenish
   and then sent the message. At the next replenish instant, the
   budget was fully replenished again another oversized message could
   be sent again.

The new algorithm should solve all the above points.

14 years agoRESCHED flag renamed to CHANGED
Michal Sojka [Thu, 13 Aug 2009 15:29:13 +0000 (17:29 +0200)]
RESCHED flag renamed to CHANGED

This better represents the meaning of the flag.

14 years agoUse more descriptive error numbers
Michal Sojka [Thu, 13 Aug 2009 13:19:01 +0000 (15:19 +0200)]
Use more descriptive error numbers

14 years agoFix VRES flag values
Michal Sojka [Thu, 13 Aug 2009 13:10:09 +0000 (15:10 +0200)]
Fix VRES flag values

VRES flags are treated as bit numbers but was incorrectly defined as bit
masks.

14 years agowme_test: recv_packet_fwp returns correct value
Michal Sojka [Thu, 13 Aug 2009 11:36:27 +0000 (13:36 +0200)]
wme_test: recv_packet_fwp returns correct value

14 years agowme_test: Document -G switch
Michal Sojka [Thu, 13 Aug 2009 11:33:38 +0000 (13:33 +0200)]
wme_test: Document -G switch

14 years agowme_test: Added -l switch to select logging levels
Michal Sojka [Thu, 13 Aug 2009 11:31:49 +0000 (13:31 +0200)]
wme_test: Added -l switch to select logging levels

Works only when compiled with uLUt

14 years agoFix error reporting of fwp_fna functions
Michal Sojka [Thu, 13 Aug 2009 11:02:03 +0000 (13:02 +0200)]
Fix error reporting of fwp_fna functions

Return value of several functions was stored in a variable of unsigned
type size_t and later was checked to be less then zero, which was always
true. Now, we use signed type ssize_t for this cases.

14 years agoConvert debug messages to uLUt and fix #include dependencies
Michal Sojka [Thu, 13 Aug 2009 10:59:16 +0000 (12:59 +0200)]
Convert debug messages to uLUt and fix #include dependencies

14 years agowme_test: fixed termination under FRSH
Michal Sojka [Thu, 13 Aug 2009 09:02:25 +0000 (11:02 +0200)]
wme_test: fixed termination under FRSH

14 years agoRemove obsolete comment
Michal Sojka [Thu, 13 Aug 2009 09:01:17 +0000 (11:01 +0200)]
Remove obsolete comment

14 years agoAdded check for NULL arguments to avoid segfaults
Michal Sojka [Thu, 13 Aug 2009 09:01:00 +0000 (11:01 +0200)]
Added check for NULL arguments to avoid segfaults

14 years agoMake FWP not to eat EINTR error
Michal Sojka [Thu, 13 Aug 2009 08:57:06 +0000 (10:57 +0200)]
Make FWP not to eat EINTR error

Without returning EINTR, it is not possible to correctly terminate FRSH
applications such as wclient.

14 years agowme_test: Use send_async() which is implemented by FWP
Michal Sojka [Wed, 12 Aug 2009 16:26:54 +0000 (18:26 +0200)]
wme_test: Use send_async() which is implemented by FWP

14 years agowme_test: GUI may be enabled in both FRSH/non-FRSH version by -G switch
Michal Sojka [Wed, 12 Aug 2009 16:02:00 +0000 (18:02 +0200)]
wme_test: GUI may be enabled in both FRSH/non-FRSH version by -G switch

14 years agowme_test: Make it work with ncurses TUI
Michal Sojka [Wed, 12 Aug 2009 15:21:58 +0000 (17:21 +0200)]
wme_test: Make it work with ncurses TUI

There are still some problems with FRSH code

14 years agowme_test is compiled by default with FRSH
Michal Sojka [Tue, 11 Aug 2009 16:38:01 +0000 (18:38 +0200)]
wme_test is compiled by default with FRSH

14 years agoCatch missing contract parameters in allocator
Michal Sojka [Mon, 10 Aug 2009 16:17:06 +0000 (18:17 +0200)]
Catch missing contract parameters in allocator

14 years agoWhitespace fixes
Michal Sojka [Mon, 10 Aug 2009 16:15:41 +0000 (18:15 +0200)]
Whitespace fixes

14 years agoReject contracts with zero period and budget
Michal Sojka [Mon, 10 Aug 2009 14:46:58 +0000 (16:46 +0200)]
Reject contracts with zero period and budget

14 years agoMake wme_test compilable with FRSH and FWP
Michal Sojka [Thu, 6 Aug 2009 16:19:41 +0000 (18:19 +0200)]
Make wme_test compilable with FRSH and FWP

14 years agowme_test: Added missing \n in help message
Michal Sojka [Mon, 3 Aug 2009 16:38:59 +0000 (18:38 +0200)]
wme_test: Added missing \n in help message

14 years agowme_test: Get rid of type related warnings on 64 bit systems
Michal Sojka [Mon, 3 Aug 2009 16:26:19 +0000 (18:26 +0200)]
wme_test: Get rid of type related warnings on 64 bit systems

14 years agowme_test: Make the message format independent of 32/64 bit architecture
Michal Sojka [Mon, 3 Aug 2009 09:30:06 +0000 (11:30 +0200)]
wme_test: Make the message format independent of 32/64 bit architecture

When wclient and wserver were run on different architectures
(32/64-bit), the message format was different on each machine and the
results were wrong.

14 years agowme_test: update status every second when compiled without FWP
Michal Sojka [Mon, 3 Aug 2009 09:31:11 +0000 (11:31 +0200)]
wme_test: update status every second when compiled without FWP

Statistics displays number of messages per second, so when they are
displayed faster, the numbers are not correct.

14 years agowme_test: Do not print EINTR errors
Michal Sojka [Mon, 3 Aug 2009 09:30:39 +0000 (11:30 +0200)]
wme_test: Do not print EINTR errors

14 years agowme_test: Added missing declaration when compiled without FWP
Michal Sojka [Fri, 24 Jul 2009 16:06:29 +0000 (18:06 +0200)]
wme_test: Added missing declaration when compiled without FWP

14 years agoSupressed a warning
Michal Sojka [Thu, 28 May 2009 03:52:33 +0000 (05:52 +0200)]
Supressed a warning

14 years agoFix fra warning
Michal Sojka [Wed, 27 May 2009 22:23:52 +0000 (00:23 +0200)]
Fix fra warning

<2>fra: change_vres callback did not change the perceived vres!

14 years agoMerge branch 'master' of molnam1@rtime.felk.cvut.cz:/var/git/frescor/fwp
Martin Molnar [Wed, 27 May 2009 21:56:09 +0000 (23:56 +0200)]
Merge branch 'master' of molnam1@rtime.felk.cvut.cz:/var/git/frescor/fwp

Conflicts:

fwp/lib/frsh_fwp/fwp_fra.c

14 years agoUpdated logging in allocator
Michal Sojka [Wed, 27 May 2009 14:13:24 +0000 (16:13 +0200)]
Updated logging in allocator

14 years agoBetter logging in admission test
Michal Sojka [Wed, 27 May 2009 13:59:42 +0000 (15:59 +0200)]
Better logging in admission test

14 years agoMerge branch 'master' of molnam1@rtime.felk.cvut.cz:/var/git/frescor/fwp
Martin Molnar [Wed, 27 May 2009 11:26:14 +0000 (13:26 +0200)]
Merge branch 'master' of molnam1@rtime.felk.cvut.cz:/var/git/frescor/fwp

14 years agoAdd support for changing fwp vres
Martin Molnar [Wed, 27 May 2009 11:24:44 +0000 (13:24 +0200)]
Add support for changing fwp vres
Signed-off-by: Martin <molnam1@fel.cvut.cz>
14 years agoAdmission test updated to support cancelation
Michal Sojka [Wed, 27 May 2009 11:00:57 +0000 (13:00 +0200)]
Admission test updated to support cancelation

14 years agoThe logging updated to allow full loglevels control.
Pavel Pisa [Tue, 26 May 2009 04:09:03 +0000 (06:09 +0200)]
The logging updated to allow full loglevels control.

uLUt update to actual version is required.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
14 years agofwp_endpoint_create returns socket descriptor
Martin Molnar [Mon, 25 May 2009 10:21:25 +0000 (12:21 +0200)]
fwp_endpoint_create returns socket descriptor
if successfull otherwise negative value.

Signed-off-by: Martin <molnam1@fel.cvut.cz>
14 years agoMerge branch 'master' of molnam1@rtime.felk.cvut.cz:/var/git/frescor/fwp
Martin Molnar [Sun, 24 May 2009 20:17:04 +0000 (22:17 +0200)]
Merge branch 'master' of molnam1@rtime.felk.cvut.cz:/var/git/frescor/fwp

14 years agoChange number of message in queue from 32 to 2048.
Martin Molnar [Sun, 24 May 2009 20:16:52 +0000 (22:16 +0200)]
Change number of message in queue from 32 to 2048.

The previous value caused that streamer has frozen
after while.
Signed-off-by: Martin <molnam1@fel.cvut.cz>
14 years agoAdd a name displayed by frm_gui to the manager
Michal Sojka [Wed, 20 May 2009 23:09:56 +0000 (01:09 +0200)]
Add a name displayed by frm_gui to the manager

14 years agoUpdated forb initialization in manager
Michal Sojka [Sun, 17 May 2009 05:27:21 +0000 (07:27 +0200)]
Updated forb initialization in manager

14 years agoRemoved extraordinary use of inline keyword in functions declarations.
Pavel Pisa [Thu, 14 May 2009 00:19:34 +0000 (02:19 +0200)]
Removed extraordinary use of inline keyword in functions declarations.

The use of inline for functions implemented in C source
file and included in library breaks C99/GNU99 build with
FFMpeg library.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
15 years agomanager: replaced fres_sa_scenario_for_each_contract to skip contracts to be canceled
Michal Sojka [Thu, 23 Apr 2009 11:13:23 +0000 (13:13 +0200)]
manager: replaced fres_sa_scenario_for_each_contract to skip contracts to be canceled

15 years agoBitrate increased to 54 Mbps, lowered mimimum deadline.
Michal Sojka [Wed, 11 Feb 2009 08:15:02 +0000 (09:15 +0100)]
Bitrate increased to 54 Mbps, lowered mimimum deadline.

15 years agoBitrate increased to 22 Mbps, added utilization export for GUI
Michal Sojka [Wed, 11 Feb 2009 07:57:41 +0000 (08:57 +0100)]
Bitrate increased to 22 Mbps, added utilization export for GUI

15 years agofwp_vres: budget is now full by default.
Martin Molnar [Mon, 15 Dec 2008 21:16:50 +0000 (22:16 +0100)]
fwp_vres: budget is now full by default.

15 years agoBug fix in vres tx thread. Fixed budgeting.
Martin Molnar [Sun, 14 Dec 2008 15:04:11 +0000 (16:04 +0100)]
Bug fix in vres tx thread. Fixed budgeting.

15 years agoUpdated to the changed prototype of fra_register()
Michal Sojka [Fri, 12 Dec 2008 16:39:09 +0000 (17:39 +0100)]
Updated to the changed prototype of fra_register()

15 years agoFixed budget conversion in FRA
Michal Sojka [Wed, 10 Dec 2008 10:37:54 +0000 (11:37 +0100)]
Fixed budget conversion in FRA

15 years agofwpmngr displays budgets in bytes
Michal Sojka [Wed, 10 Dec 2008 09:33:50 +0000 (10:33 +0100)]
fwpmngr displays budgets in bytes

15 years agoCommented out error output message when set_setscheduler call fails
Martin [Fri, 28 Nov 2008 13:07:55 +0000 (14:07 +0100)]
Commented out error output message when set_setscheduler call fails

15 years agoUndo previous fix
Martin Molnar [Mon, 24 Nov 2008 22:14:55 +0000 (23:14 +0100)]
Undo previous fix

15 years agoFIx: fwp_fna_receive_endpoint_created -returning receive port
Martin Molnar [Mon, 24 Nov 2008 20:46:47 +0000 (21:46 +0100)]
FIx: fwp_fna_receive_endpoint_created -returning receive port