History log of /openbmc/sdeventplus/test/utility/ (Results 1 – 10 of 10)
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
a8c11e3c10-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: I84a952aae0e96b2960d8622659902df660d5ddb8
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>

show more ...


/openbmc/sdeventplus/.clang-format
/openbmc/sdeventplus/README.md
/openbmc/sdeventplus/example/delayed_echo.cpp
/openbmc/sdeventplus/example/follow.cpp
/openbmc/sdeventplus/example/heartbeat.cpp
/openbmc/sdeventplus/example/heartbeat_timer.cpp
/openbmc/sdeventplus/src/sdeventplus/clock.cpp
/openbmc/sdeventplus/src/sdeventplus/clock.hpp
/openbmc/sdeventplus/src/sdeventplus/event.cpp
/openbmc/sdeventplus/src/sdeventplus/event.hpp
/openbmc/sdeventplus/src/sdeventplus/exception.cpp
/openbmc/sdeventplus/src/sdeventplus/internal/sdevent.cpp
/openbmc/sdeventplus/src/sdeventplus/source/base.cpp
/openbmc/sdeventplus/src/sdeventplus/source/base.hpp
/openbmc/sdeventplus/src/sdeventplus/source/child.cpp
/openbmc/sdeventplus/src/sdeventplus/source/child.hpp
/openbmc/sdeventplus/src/sdeventplus/source/event.cpp
/openbmc/sdeventplus/src/sdeventplus/source/event.hpp
/openbmc/sdeventplus/src/sdeventplus/source/io.cpp
/openbmc/sdeventplus/src/sdeventplus/source/io.hpp
/openbmc/sdeventplus/src/sdeventplus/source/signal.cpp
/openbmc/sdeventplus/src/sdeventplus/source/signal.hpp
/openbmc/sdeventplus/src/sdeventplus/source/time.cpp
/openbmc/sdeventplus/src/sdeventplus/source/time.hpp
/openbmc/sdeventplus/src/sdeventplus/test/sdevent.hpp
/openbmc/sdeventplus/src/sdeventplus/types.hpp
/openbmc/sdeventplus/src/sdeventplus/utility/sdbus.hpp
/openbmc/sdeventplus/src/sdeventplus/utility/timer.cpp
/openbmc/sdeventplus/src/sdeventplus/utility/timer.hpp
/openbmc/sdeventplus/test/clock.cpp
/openbmc/sdeventplus/test/event.cpp
/openbmc/sdeventplus/test/exception.cpp
/openbmc/sdeventplus/test/source/base.cpp
/openbmc/sdeventplus/test/source/child.cpp
/openbmc/sdeventplus/test/source/event.cpp
/openbmc/sdeventplus/test/source/io.cpp
/openbmc/sdeventplus/test/source/signal.cpp
/openbmc/sdeventplus/test/source/time.cpp
sdbus.cpp
timer.cpp
a4c76ea921-Nov-2022 William A. Kennington III <wak@google.com>

utility/sdbus: Add bus processing workaround

Provide a wrapper for others to use that works around a memory leak that
we have with processing dbus matches in an event loop.

Change-Id: I944e9c254784

utility/sdbus: Add bus processing workaround

Provide a wrapper for others to use that works around a memory leak that
we have with processing dbus matches in an event loop.

Change-Id: I944e9c2547844b507216e334bd013f26b8a547da
Signed-off-by: William A. Kennington III <wak@google.com>

show more ...

3d37b58130-Mar-2019 William A. Kennington III <wak@google.com>

utility/timer: Implement heap based userdata

Change-Id: I38b127e4fb147f207f32ff44a9f8d82ee7866ba9
Signed-off-by: William A. Kennington III <wak@google.com>

5320b1f529-Mar-2019 William A. Kennington III <wak@google.com>

source/*: Implement heap based userdata

This makes no immediate change to the external interface, but it will
enable us to do things like making copies of the event sources and
support for floating

source/*: Implement heap based userdata

This makes no immediate change to the external interface, but it will
enable us to do things like making copies of the event sources and
support for floating event source types.

Change-Id: Ida73e773eb0869f6f6f21c1e03c61e9ce2b5625c
Signed-off-by: William A. Kennington III <wak@google.com>

show more ...


/openbmc/sdeventplus/.clang-ignore
/openbmc/sdeventplus/.clang-tidy
/openbmc/sdeventplus/.gitignore
/openbmc/sdeventplus/README.md
/openbmc/sdeventplus/example/heartbeat.cpp
/openbmc/sdeventplus/example/heartbeat_timer.cpp
/openbmc/sdeventplus/example/meson.build
/openbmc/sdeventplus/meson.build
/openbmc/sdeventplus/meson_options.txt
/openbmc/sdeventplus/src/meson.build
/openbmc/sdeventplus/src/sdeventplus/clock.cpp
/openbmc/sdeventplus/src/sdeventplus/event.cpp
/openbmc/sdeventplus/src/sdeventplus/event.hpp
/openbmc/sdeventplus/src/sdeventplus/internal/sdevent.cpp
/openbmc/sdeventplus/src/sdeventplus/internal/sdevent.hpp
/openbmc/sdeventplus/src/sdeventplus/internal/utils.hpp
/openbmc/sdeventplus/src/sdeventplus/source/base.cpp
/openbmc/sdeventplus/src/sdeventplus/source/base.hpp
/openbmc/sdeventplus/src/sdeventplus/source/child.cpp
/openbmc/sdeventplus/src/sdeventplus/source/child.hpp
/openbmc/sdeventplus/src/sdeventplus/source/event.cpp
/openbmc/sdeventplus/src/sdeventplus/source/event.hpp
/openbmc/sdeventplus/src/sdeventplus/source/io.cpp
/openbmc/sdeventplus/src/sdeventplus/source/io.hpp
/openbmc/sdeventplus/src/sdeventplus/source/signal.cpp
/openbmc/sdeventplus/src/sdeventplus/source/signal.hpp
/openbmc/sdeventplus/src/sdeventplus/source/time.cpp
/openbmc/sdeventplus/src/sdeventplus/source/time.hpp
/openbmc/sdeventplus/src/sdeventplus/test/sdevent.hpp
/openbmc/sdeventplus/src/sdeventplus/types.hpp
/openbmc/sdeventplus/src/sdeventplus/utility/timer.cpp
/openbmc/sdeventplus/src/sdeventplus/utility/timer.hpp
/openbmc/sdeventplus/subprojects/fmt.wrap
/openbmc/sdeventplus/subprojects/function2.wrap
/openbmc/sdeventplus/subprojects/googletest.wrap
/openbmc/sdeventplus/subprojects/span-lite.wrap
/openbmc/sdeventplus/subprojects/stdplus.wrap
/openbmc/sdeventplus/test/event.cpp
/openbmc/sdeventplus/test/internal/utils.cpp
/openbmc/sdeventplus/test/meson.build
/openbmc/sdeventplus/test/source/base.cpp
/openbmc/sdeventplus/test/source/child.cpp
/openbmc/sdeventplus/test/source/event.cpp
/openbmc/sdeventplus/test/source/io.cpp
/openbmc/sdeventplus/test/source/signal.cpp
/openbmc/sdeventplus/test/source/time.cpp
timer.cpp
08ebb39930-Oct-2018 William A. Kennington III <wak@google.com>

utility/timer: Implement callback setting

All of the other classes that take callbacks support having the callback
updated.

Tested:
Builds and passed through the unit test suite.

Change-Id: I0

utility/timer: Implement callback setting

All of the other classes that take callbacks support having the callback
updated.

Tested:
Builds and passed through the unit test suite.

Change-Id: I0efcd074523fa6ec0cc84c7a930346dd9340f7ec
Signed-off-by: William A. Kennington III <wak@google.com>

show more ...

a5f8596a29-Oct-2018 William A. Kennington III <wak@google.com>

utility/timer: Make movable

Now that we can update the callbacks of our sources, we can move the
timer object freely by updating the callback when moved.

Tested:
Unit tests pass, and we no long

utility/timer: Make movable

Now that we can update the callbacks of our sources, we can move the
timer object freely by updating the callback when moved.

Tested:
Unit tests pass, and we no longer see any valgrind issues when
moving the timer object.

Change-Id: I15baf97538459ca8b9c48b75dba77d09b7b5075b
Signed-off-by: William A. Kennington III <wak@google.com>

show more ...

27b7301a18-Oct-2018 William A. Kennington III <wak@google.com>

utility/timer: Make it possible to get the Event

Other event sources expose the ability to get th event used for
constructing the source. Since our timer is basically just a time
source, we should b

utility/timer: Make it possible to get the Event

Other event sources expose the ability to get th event used for
constructing the source. Since our timer is basically just a time
source, we should be able to trivially get the event object.

Tested:
Built and run through unit tests

Change-Id: I4b4192797652a903cba90d6e73771014df7702d6
Signed-off-by: William A. Kennington III <wak@google.com>

show more ...

ba04ffb520-Sep-2018 William A. Kennington III <wak@google.com>

utility/timer: Implement oneshot timers

This change is meant to enable users of the old openbmc timer class to
trivially use the timer if they only want single executions. It also
makes setting up t

utility/timer: Implement oneshot timers

This change is meant to enable users of the old openbmc timer class to
trivially use the timer if they only want single executions. It also
makes setting up the timer less verbose if you do not already know the
timeout interval.

Tested:
Run through unit tests and did a sample integration with
phosphor-watchdog and phosphor-networkd. Verified that the new
oneshot example works as expected.

Change-Id: I2cd006d1f19fff99bce3f732a16eac9ca9553666
Signed-off-by: William A. Kennington III <wak@google.com>

show more ...

4755818e25-Sep-2018 William A. Kennington III <wak@google.com>

utility/timer: Callback should pass in the timer

This makes the timer better resemble the other source types, and makes
it easier to access timer properties from the callback.

Since we do not yet h

utility/timer: Callback should pass in the timer

This makes the timer better resemble the other source types, and makes
it easier to access timer properties from the callback.

Since we do not yet have any committed users of this API it is safe to
change it.

Tested:
Unit tests were run and builds work fine.

Change-Id: I9ecb24a20bc822b2ab55900e47a7cae834ba873d
Signed-off-by: William A. Kennington III <wak@google.com>

show more ...

81282e1a19-Sep-2018 William A. Kennington III <wak@google.com>

utility/timer: Implement

We often need a continually ticking timer for our daemons. This utility
wraps an sd_event time source as a convenience. This is meant to be a
usable replacement for the time

utility/timer: Implement

We often need a continually ticking timer for our daemons. This utility
wraps an sd_event time source as a convenience. This is meant to be a
usable replacement for the timer.hpp found in other openbmc projects.

Tested:
New tests pass with full coverage. Changes to the phosphor-watchdog
that rely on this utility work as expected.

Change-Id: Id12aed9e5b018e7eca825c4a7ac7b4f46e2f04c6
Signed-off-by: William A. Kennington III <wak@google.com>

show more ...


/openbmc/sdeventplus/.clang-format
/openbmc/sdeventplus/.gitignore
/openbmc/sdeventplus/.lcovrc
/openbmc/sdeventplus/LICENSE
/openbmc/sdeventplus/MAINTAINERS
/openbmc/sdeventplus/Makefile.am
/openbmc/sdeventplus/README.md
/openbmc/sdeventplus/bootstrap.sh
/openbmc/sdeventplus/configure.ac
/openbmc/sdeventplus/example/Makefile.am
/openbmc/sdeventplus/example/follow.cpp
/openbmc/sdeventplus/example/heartbeat.cpp
/openbmc/sdeventplus/src/Makefile.am
/openbmc/sdeventplus/src/sdeventplus.pc.in
/openbmc/sdeventplus/src/sdeventplus/clock.cpp
/openbmc/sdeventplus/src/sdeventplus/clock.hpp
/openbmc/sdeventplus/src/sdeventplus/event.cpp
/openbmc/sdeventplus/src/sdeventplus/event.hpp
/openbmc/sdeventplus/src/sdeventplus/exception.cpp
/openbmc/sdeventplus/src/sdeventplus/exception.hpp
/openbmc/sdeventplus/src/sdeventplus/internal/sdevent.cpp
/openbmc/sdeventplus/src/sdeventplus/internal/sdevent.hpp
/openbmc/sdeventplus/src/sdeventplus/internal/sdref.cpp
/openbmc/sdeventplus/src/sdeventplus/internal/sdref.hpp
/openbmc/sdeventplus/src/sdeventplus/internal/utils.hpp
/openbmc/sdeventplus/src/sdeventplus/source/base.cpp
/openbmc/sdeventplus/src/sdeventplus/source/base.hpp
/openbmc/sdeventplus/src/sdeventplus/source/child.cpp
/openbmc/sdeventplus/src/sdeventplus/source/child.hpp
/openbmc/sdeventplus/src/sdeventplus/source/event.cpp
/openbmc/sdeventplus/src/sdeventplus/source/event.hpp
/openbmc/sdeventplus/src/sdeventplus/source/io.cpp
/openbmc/sdeventplus/src/sdeventplus/source/io.hpp
/openbmc/sdeventplus/src/sdeventplus/source/signal.cpp
/openbmc/sdeventplus/src/sdeventplus/source/signal.hpp
/openbmc/sdeventplus/src/sdeventplus/source/time.cpp
/openbmc/sdeventplus/src/sdeventplus/source/time.hpp
/openbmc/sdeventplus/src/sdeventplus/test/sdevent.hpp
/openbmc/sdeventplus/src/sdeventplus/utility/timer.cpp
/openbmc/sdeventplus/src/sdeventplus/utility/timer.hpp
/openbmc/sdeventplus/test/Makefile.am
/openbmc/sdeventplus/test/clock.cpp
/openbmc/sdeventplus/test/event.cpp
/openbmc/sdeventplus/test/exception.cpp
/openbmc/sdeventplus/test/internal/sdref.cpp
/openbmc/sdeventplus/test/internal/utils.cpp
/openbmc/sdeventplus/test/source/base.cpp
/openbmc/sdeventplus/test/source/child.cpp
/openbmc/sdeventplus/test/source/event.cpp
/openbmc/sdeventplus/test/source/io.cpp
/openbmc/sdeventplus/test/source/signal.cpp
/openbmc/sdeventplus/test/source/time.cpp
timer.cpp