#
7fe55e91 |
| 20-Oct-2023 |
Patrick Williams <patrick@stwcx.xyz> |
clang-format: copy latest and re-format
clang-format-17 has some backwards incompatible changes that require additional settings for best compatibility and re-running the formatter. Copy the latest
clang-format: copy latest and re-format
clang-format-17 has some backwards incompatible changes that require additional settings for best compatibility and re-running the formatter. Copy the latest .clang-format from the docs repository and reformat the repository.
Change-Id: Ic2c9732543fc02a10df820078faa767638b179b5 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
#
c5fe26a6 |
| 10-May-2023 |
Patrick Williams <patrick@stwcx.xyz> |
clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require additional settings for best compatibility and re-running the formatter. Copy the latest
clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require additional settings for best compatibility and re-running the formatter. Copy the latest .clang-format from the docs repository and reformat the repository.
Change-Id: I7801712fe34e10fec586d1e962afebd9ebcce46c Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
#
413a4857 |
| 22-Jul-2022 |
Patrick Williams <patrick@stwcx.xyz> |
sdbusplus: use shorter type aliases
The sdbusplus headers provide shortened aliases for many types. Switch to using them to provide better code clarity and shorter lines. Possible replacements are
sdbusplus: use shorter type aliases
The sdbusplus headers provide shortened aliases for many types. Switch to using them to provide better code clarity and shorter lines. Possible replacements are for: * bus_t * exception_t * manager_t * match_t * message_t * object_t * slot_t
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I6a559082fed34ae62b648345ead793436d2d03f6
show more ...
|
#
3fe976cc |
| 20-Jun-2022 |
George Liu <liuxiwei@inspur.com> |
Update clang-format
Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: I58738190d06bf216a13048d768aa4054d820d2e8
|
#
26dc0bcb |
| 16-Jun-2022 |
Patrick Williams <patrick@stwcx.xyz> |
remove std::experimental usage
All of the std::experimental usages in this repository have a well supported counterpart in std as of C++17. Switch to use them.
Signed-off-by: Patrick Williams <pat
remove std::experimental usage
All of the std::experimental usages in this repository have a well supported counterpart in std as of C++17. Switch to use them.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I4cdf5cd27053ce85c7f70c215ee9456f96f79f42
show more ...
|
#
98d6462a |
| 24-May-2022 |
Lei YU <yulei.sh@bytedance.com> |
propertywatch: Add ignore_start_callback config
Add an optional `ignore_start_callback` config to indicate if the callback shall be ignored on start.
By default the callbacks in property watch are
propertywatch: Add ignore_start_callback config
Add an optional `ignore_start_callback` config to indicate if the callback shall be ignored on start.
By default the callbacks in property watch are called on start. There are cases where we do not want such behavior and only expect callbacks on property changes.
Add the `ignore_start_callback` so that we could config a watch to not trigger the start callback.
Tested: Verify the callback is not called if the watch config has `ignore_start_callback: true`
Signed-off-by: Lei YU <yulei.sh@bytedance.com> Change-Id: I7e5887cc8b0d0775d9b3d689f1511250667aaa5b
show more ...
|
#
764adb5e |
| 02-Sep-2021 |
Patrick Williams <patrick@stwcx.xyz> |
exception: switch to public sdbus exception SdBusError was intended to be a private error type inside sdbusplus. Switch all catch locations to use the general sdbusplus::exception type.
exception: switch to public sdbus exception SdBusError was intended to be a private error type inside sdbusplus. Switch all catch locations to use the general sdbusplus::exception type. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: If98df395e3717aa119e192457220e31ce3ea4fe7
show more ...
|
#
ae4c95c6 |
| 16-May-2020 |
Andrew Geissler <geissonator@yahoo.com> |
string: ensure string included Latest upstream yocto appears to have removed a free include of string. This is causing compile failures for files which do not include it properly.
string: ensure string included Latest upstream yocto appears to have removed a free include of string. This is causing compile failures for files which do not include it properly. Signed-off-by: Andrew Geissler <geissonator@yahoo.com> Change-Id: Ie93f251b00db4d4a543b361262fad2201923e2c5
show more ...
|
#
34ef1e52 |
| 13-May-2020 |
Patrick Williams <patrick@stwcx.xyz> |
sdbusplus: remove deprecated variant_ns Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I6a3e7bb043371841838d241f2c4a9579d6ead4cb
|
#
efe0158c |
| 09-Sep-2019 |
Matthew Barth <msbarth@us.ibm.com> |
Create Filters class to store filter functions Enhanced the generated code to now store the filter functions within an array contained in a struct similar to other configured parameters.
Create Filters class to store filter functions Enhanced the generated code to now store the filter functions within an array contained in a struct similar to other configured parameters. This allows the generated property watches to use an index within that array to access a pointer to a Filters class containing a given set of filter functions. The set of filter functions would then be applied against all the properties being watched. Tested: Generated code provides structure needed to access filter functions Filter functions filter property values that fail the filter(s) Change-Id: I8f1f882704de521f2ab393530ad7ef096314975d Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
show more ...
|
#
ae786ef6 |
| 04-Sep-2019 |
Matthew Barth <msbarth@us.ibm.com> |
Add filters option to property watch class Each property changed signal calls a defined callback, an optional set of filters can be defined to filter out property values not intended to
Add filters option to property watch class Each property changed signal calls a defined callback, an optional set of filters can be defined to filter out property values not intended to be used within the callback. These filters can be setup to eliminate property value(s) that should be ignored per property group and its configured callback. ex.) Handle errant sensor values that could occur from a faulty device so these values do not cause unwanted results from a callback function. Example config entry to throw out an ambient temperature less than 0C or greater than 100C: - name: watch ambient temps description: > 'Filter the ambient temps, discarding any value that does not pass, then trigger the callback logic.' class: watch watch: property paths: ambient sensors properties: ambient temp callback: median temps filters: - op: '>=' bound: 0 - op: '<=' bound: 100000 Tested: Generate a single filter function against a group of properties Generate multiple filter functions against a group of properties Property values are cleared when it fails to pass a filter Property values that pass all filters are updated Change-Id: Id5126263096b4787a40befdb14cf3514038df3ed Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
show more ...
|
#
efcd653d |
| 12-Nov-2018 |
William A. Kennington III <wak@google.com> |
std::variant: Fixup .get() usage This is just a refactor from the mapbox specific .get() interface to the common std::variant ::get<>() interface. Tested: Built and run
std::variant: Fixup .get() usage This is just a refactor from the mapbox specific .get() interface to the common std::variant ::get<>() interface. Tested: Built and run through unit tests. Change-Id: Ic0737f632e80c9dd5b73717ec33d31f245f107db Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
#
3d6d3182 |
| 31-Aug-2018 |
Patrick Venture <venture@google.com> |
update .clang-format Added the header inclusion order to the .clang-format file generated these changes. Change-Id: I4f51a20f469de431ee6a5ba78e3f4da39c980fab Signed-off-by:
update .clang-format Added the header inclusion order to the .clang-format file generated these changes. Change-Id: I4f51a20f469de431ee6a5ba78e3f4da39c980fab Signed-off-by: Patrick Venture <venture@google.com>
show more ...
|
#
cca7a7c8 |
| 09-Jul-2018 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
propertywatch: Improve error handling Handle exceptions from the sdbusplus method call API. A number of method calls are made at application startup. First the mapper is querie
propertywatch: Improve error handling Handle exceptions from the sdbusplus method call API. A number of method calls are made at application startup. First the mapper is queried and then host services directly to obtain initial values for the property cache. In either case a missing object is sometimes expected and tolerated (in a logical sense) without issue. Eat the new exceptions in these scenarios and avoid a program crash. Change-Id: Id79d28b2da997f3c545b86c21932e271e3df8bb3 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
show more ...
|
#
d1eac88d |
| 29-Mar-2018 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
Enable clang-format Fix up errors and enable clang-format during CI builds. Change-Id: I4176b81f8b85a287af9354165e09ff66aeb9fb29 Signed-off-by: Brad Bishop <bradleyb@fuzziesquir
Enable clang-format Fix up errors and enable clang-format during CI builds. Change-Id: I4176b81f8b85a287af9354165e09ff66aeb9fb29 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
show more ...
|
#
1abcb06b |
| 26-Feb-2018 |
Matt Spinler <spinler@us.ibm.com> |
Add constants for tuple fields Add constants for use with std::get. Tested: Run unit tests Change-Id: Ic09c13feeda69d61c98f63d227cae8f08d1bf50e Signed-off-by: Matt Spi
Add constants for tuple fields Add constants for use with std::get. Tested: Run unit tests Change-Id: Ic09c13feeda69d61c98f63d227cae8f08d1bf50e Signed-off-by: Matt Spinler <spinler@us.ibm.com>
show more ...
|
#
abe43ab4 |
| 19-Feb-2018 |
Matt Spinler <spinler@us.ibm.com> |
Extend storage array to contain additional data This array was originally just an array of objects of type 'any'. This commit changes it to be an array of tuples of type <any, any>
Extend storage array to contain additional data This array was originally just an array of objects of type 'any'. This commit changes it to be an array of tuples of type <any, any> to add an extra field for use by anything that needs it. For example, the storage is currently used to store property values, and a future change to the CountCondition class will now also store the result of the comparisons done between the property values and another value specified in the rule YAML. Then, a callback will be able to see the result of whether each property passed the check. Tested: Build and run unit tests Change-Id: I58f32c9f4068b15a02b1ff7f28871161cafebddb Signed-off-by: Matt Spinler <spinler@us.ibm.com>
show more ...
|
#
a45e086d |
| 21-Feb-2018 |
Ratan Gupta <ratagupt@in.ibm.com> |
Add callback contexts Add the notion of a callback context. This enables callbacks to have logic around the conditions they were invoked in. There are two context on which call
Add callback contexts Add the notion of a callback context. This enables callbacks to have logic around the conditions they were invoked in. There are two context on which call back can be invoked 1) Startup: during startup all the call backs will be called 2) Signal: As part of condition match on the watched properties. Callback would behave differently based on the context. eg: eventCallback 1) Startup: Don't take any action. 2) Signal: Create the Dbus Object for the event. Change-Id: If455558798ac3e44bbd8a93de0ce1b09d2e308ae Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
show more ...
|
#
df1b7cfc |
| 31-Oct-2017 |
Matt Spinler <spinler@us.ibm.com> |
Add getBusName() utility function to SDBusPlus Add a function to SDBusPlus to get the D-Bus bus name for an object path and interface. Change-Id: I7d7a533c7430fcf42e1e0f6a21a245
Add getBusName() utility function to SDBusPlus Add a function to SDBusPlus to get the D-Bus bus name for an object path and interface. Change-Id: I7d7a533c7430fcf42e1e0f6a21a2453e6c8197ea Signed-off-by: Matt Spinler <spinler@us.ibm.com>
show more ...
|
#
ce4fbe11 |
| 06-Jun-2017 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
expose watch callbacks Allow watch class users to explicitly invoke the watch callback. Since watches and callbacks share a common pool of state all watches must complete th
expose watch callbacks Allow watch class users to explicitly invoke the watch callback. Since watches and callbacks share a common pool of state all watches must complete their initialization prior to invoking their callback methods. Change-Id: I62ebad64da88a145f3d5006b07c01381b0eb6728 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
show more ...
|
#
fccdc39f |
| 22-May-2017 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
Link watches to callbacks Callbacks must ultimately be triggered when a property is updated by a watch. Add that support. Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.co
Link watches to callbacks Callbacks must ultimately be triggered when a property is updated by a watch. Add that support. Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com> Change-Id: I20130a11c19ddcf2c4ae45800f2068b31950bcd6
show more ...
|
#
c1283ae8 |
| 20-May-2017 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
Add support for callbacks Callbacks are the response in the PDM 'trigger->response' model. Add general support for implementing callbacks and implement a log to systemd journal using
Add support for callbacks Callbacks are the response in the PDM 'trigger->response' model. Add general support for implementing callbacks and implement a log to systemd journal using that framework. Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com> Change-Id: I8bead5368ee5472a02b47e8bba9e9df3a1f346bc
show more ...
|
#
4b916f13 |
| 23-May-2017 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
Add property watches Property watches cache DBus property values given an externally supplied index of property names and paths, in an externally supplied storage location.
Add property watches Property watches cache DBus property values given an externally supplied index of property names and paths, in an externally supplied storage location. Change-Id: I155081da88c3ab0e4f6a13b012fc9719203b1888 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
show more ...
|