Richard Fuchs
f443bd8ce2
MT#55283 fix kernel compilation for >= 6.13
Closes #1898
Change-Id: I585db2307f750abc18f9918451cab6c6c693965c
11 months ago
Richard Fuchs
da79f90853
MT#61822 add tests for player cache size
Change-Id: I04b2b3e320dae5100ba353331eb6e1225fed1185
11 months ago
Richard Fuchs
9673703476
MT#61822 add new "CLI" NG command
Change-Id: Idd4114783b1bb6cc683970110a2f322ec07b894a
11 months ago
Richard Fuchs
d436c1d361
MT#61822 support evicting player cache data
Change-Id: I58c1127f2b906a3e238a2dc8579d433abe72c50b
11 months ago
Richard Fuchs
601abd2e5b
MT#61822 add list player cache
Change-Id: If40ab9218354b95ef2b4fba47cd5e38ab318a325
11 months ago
Richard Fuchs
bce0b8fc43
MT#61822 refcount media_player_cache_entry
Change-Id: I5a88a78070dd0b45731a70ad738d33cc48a2524a
11 months ago
Richard Fuchs
98a7c1ef06
MT#61822 include index object in entry
Change-Id: Ibeb100727ded16db788faaee750b60b7bd6a04be
11 months ago
Richard Fuchs
7f7259c260
MT#61822 refcount media players in hash
Change-Id: Id166918e97ea2dbe644543ccfd78d7c4323b70e6
11 months ago
Richard Fuchs
1191d2e8ca
MT#61822 hold call reference while decoding
The media blob is owned by the call, so we need to hold a reference to
the call until decoding is finished.
Change-Id: I6ed0d35edb485aad2811b287706ef101c4aa2c3f
11 months ago
Richard Fuchs
f0160d1c9d
MT#61822 use auto lock
Change-Id: Ice8a889f238f545dbd649e38e4f2833862ddaf00
11 months ago
Richard Fuchs
03b16d4ba7
MT#61822 add more debug log output
Change-Id: I345937e794088593b94c4d4b432d88d354285756
11 months ago
Richard Fuchs
bb03710131
MT#61822 use transparent union as arg
Change-Id: Icbba155570f583e49b02e797079082c3896a775d
11 months ago
Richard Fuchs
597229f4c8
MT#61822 add player_cache stats metric
Change-Id: Ie65070f1a0ea87aebb2f11b2089fdf94969f9986
11 months ago
Richard Fuchs
3694539bc5
MT#61822 switch to typed media_player_cache_ht
Change-Id: I04e8dd888fa65c4f43423693feb711af34030a84
11 months ago
Richard Fuchs
cd2c585958
MT#61822 add metric for cache size
Change-Id: I775839f6482b24fce216e32c1589d7eb91174c72
11 months ago
Richard Fuchs
e6172c34a2
MT#61822 add CLI cmd to add cached media
Change-Id: I749833d1548069444b36d1933a56080eebf9583d
11 months ago
Richard Fuchs
dcdeb6a9de
MT#61822 add db-cache-reload
Change-Id: I4976329d2a778fc9a87773a2d85c48bc1b0977ba
11 months ago
Richard Fuchs
4755594f90
MT#61822 fix with_transcoding=no warnings
Change-Id: Ic1996eceda52befe869c7de5851453a256be0f70
11 months ago
Richard Fuchs
8286cc93b9
MT#61822 support reloading of FS cache
Change-Id: I028a9f8ffb6ff51f753744fc39d0a5c0b19a9e7b
11 months ago
Richard Fuchs
ff16ac27f5
MT#61822 support on-demand loading to FS cache
Change-Id: Ifce951e52710fdb12ccb0de5d1a110b6f05a9873
11 months ago
Richard Fuchs
84998ced95
MT#61822 support preloading DB media to FS
Change-Id: I72a66a22d0eb75b7ea4a24c7c001c74fb25ca39b
11 months ago
Richard Fuchs
0fd3ac73a8
MT#61822 supporting removing entries from FS cache
Change-Id: Ie358778ce5d8d6872bc4964367cf0ec22296934f
11 months ago
Richard Fuchs
33be3468a7
MT#61822 support listing contents of FS cache
Change-Id: I31f9fe2bd0b95e832e285fa96ea969c703a816be
11 months ago
Richard Fuchs
a2ffa18d6c
MT#61822 add CLI command to list media cache
Change-Id: I41d388abefa1b356d7fecf7b1dc662d899a8f9ac
11 months ago
Richard Fuchs
33128b8c4a
MT#61822 add mechanism to remove cached media
Change-Id: I4be32b9b7cf122f09b891aff616c18f5ac883cd9
11 months ago
Richard Fuchs
48cbb29371
MT#61822 support FS cache for DB media
Change-Id: I1dd390843f4b02eb64587673d33b9291bd9acac1
11 months ago
Richard Fuchs
84568b3905
MT#61822 use ARG_FILENAME where appropriate
Change-Id: I2aa74dcd7daec716e27c94f493c60d573717d4b2
11 months ago
Richard Fuchs
db9144b91c
MT#61822 support on-demand loading of DB media
Change-Id: Ia356fbebdbb752ea7da314b8b16481eb302204d1
11 months ago
Richard Fuchs
40bb74ad52
MT#61822 add db-media-reload option
Change-Id: I50dbd868eeea2dd15d6cf95f5b80d5b4183f7d10
11 months ago
Richard Fuchs
e7c424d1ac
MT#61822 support preloading media from DB
Change-Id: Ieba8c9dd7ee413c64292a2fd48a16d38bade6be3
11 months ago
Richard Fuchs
52b6e6ea58
MT#61822 split up __media_player_add_db
Create separate function which only does the reading from DB and returns
the blob. Refactor __media_player_add_db to use this new function.
This slightly changes string allocation semantics: Instead of leaving
the string in the DB buffer and then letting
__media_player_add_blob_id() do the allocation and duplication, we now
immediately duplicate the string into the call's memory arena and
immediately free the DB buffers. __media_player_add_blob_id's
duplication then turns into a no-op thanks to call_ref().
Change-Id: I4360c7b0e8ec3c9b68cfc5b34b48115d8f4f89b0
11 months ago
Richard Fuchs
349249f423
MT#61822 add on-demand caching of memory files
Change-Id: I39deff0fd89d45df5739900dac3aa236f528161c
11 months ago
Richard Fuchs
5ba1793aff
MT#61822 add media-files-reload option
Change-Id: Ica0aaa49a772ce7a078858d720a215de5bb557f6
11 months ago
Richard Fuchs
ab0c2b0528
MT#61822 check for break before warning
Change-Id: I244675f88f19ac0361a75e8762e7557497901149
11 months ago
Richard Fuchs
77e8542229
MT#61822 add CLI command to reload media
Change-Id: I9c8c5423f1872169d9690282626abaad41c2597d
11 months ago
Richard Fuchs
64a250b593
MT#61822 add function to reload/refresh media
Change-Id: Ib9b745a15358ea8abd571a78c802592462047fed
11 months ago
Richard Fuchs
ecfdb0921e
MT#61822 improve CLI keyword matching
Doing a simple prefix string match is not enough as there may be
keywords that are equal to a prefix of another keyword. Make sure the
keyword is followed by a space or newline or end of line. This also
removes the burden of having to skip over leading spaces in the CLI
handlers.
Change-Id: I118a08e1b33d9bf592d3d80101e4f0634401adbd
11 months ago
Richard Fuchs
3e7f17335d
MT#61822 streamline CLI config diff/revert
Replace the awkward unnecessary strcmp case distintion with some macro
invokations.
Change-Id: I0ecd2312e9586e3221770aaf5076d6b8ce4371b3
11 months ago
Richard Fuchs
13ca0bff5a
MT#61822 generalise CLI handlers
Remove redundant code and replace with a generic parser.
Change-Id: I0fd2946eaabad13b59bca245c7db9cd0c2730baf
11 months ago
Richard Fuchs
67dfeef914
MT#61822 support caching of media files in memory
Change-Id: I4b4e203b03273abf6e745897dea2de663f599a6c
11 months ago
Richard Fuchs
2b90581e6c
MT#61822 support FILENAME_ARRAY in config wrapper
Change-Id: Iba89d708ba9be67b6f84fc61c9db78012ef804f4
11 months ago
Richard Fuchs
f86c5e17b6
MT#61822 change media player allocation semantics
Use the call's memory arena to store strings (in particular the media
blob), and use intrusive allocation storage for the blob str itself.
Change-Id: I3a3d480869d61a2e66a24e88ad135bacca947072
11 months ago
Richard Fuchs
d4abf2ccd8
MT#55283 add SIGHUP handler
This causes a termination with extreme prejudice. Useful for debugging
memory leak issues as it bypasses shutdown cleanup.
Change-Id: Ic39c5ad4aa5a4f9dc28274732bb736956a47e5bc
11 months ago
Richard Fuchs
1bcfb2baad
MT#55283 use bencode buffer for log limiter
This allows us to deallocate all held strings in one go without having
to iterate much.
Requires adjusting tests, Makefiles and dependencies.
Change-Id: Ic214f9dd2cd9609cb472301f52bb10d1918d859e
11 months ago
Richard Fuchs
c8df824bd6
MT#55283 put time_t into struct
Avoids possible issues with time_t being too large for an int
Change-Id: I067e83061eab7dc9ff179cf0536d08484e93c330
11 months ago
Richard Fuchs
a5cd0e4060
MT#55283 use mutex abstraction
Change-Id: I07b9cae328fe14c182aad4d01f0d5bada0b06761
11 months ago
Richard Fuchs
0baf79dada
MT#55283 move bencode.c to lib/
Change-Id: Iba99f31d99dfa4f71b2bcfdb44c5ac3f2ba0e6f7
11 months ago
Richard Fuchs
6e55a48369
MT#55283 use bencode_buffer for cookie cache
Change-Id: I5b9a50ab664504d9b7e58898dfa7af8fe1fe36f8
11 months ago
Richard Fuchs
113ae25a3c
MT#55283 add extra bencode_strdup* primitives
Change-Id: I54e108d276ebdb449227902efdaaf996d6c799a0
11 months ago
Richard Fuchs
1268078169
MT#55283 use auto lock
Change-Id: I2ecd3c0d11701697601a5ce524b57d49e487f2da
11 months ago