-
Notifications
You must be signed in to change notification settings - Fork 436
feat: Integrate coolbpf cpu profiling feature in loongcollector #2391
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
wokron
wants to merge
97
commits into
alibaba:main
Choose a base branch
from
wokron:support-coolbpf-cpu-profiling
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
97 commits
Select commit
Hold shift + click to select a range
213516c
link coolbpf libprofiler library
wokron 2bc3e9e
add CpuProfiler
wokron 4a90e69
eBPFDriver support cpu profiling
wokron c38f003
add ProcessScanner
wokron e3f36d5
PluginOptions alias
wokron fffe21d
add CpuProfilingManager
wokron 45bb109
add InputCpuProfiling
wokron fddf0f9
handle invalid regex error
wokron d03172b
send profiling event to queue
wokron 5c51899
misc updates
wokron 815ceff
add ProcessDiscoveryManager
wokron bcd66af
cpu profiling support multi config
wokron c83ba79
remove old ProcessScanner
wokron 8c5d574
use SetContentNoCopy
wokron 8d336df
handle regex exception
wokron 9823e94
remove unnecessary set to vector conversion
wokron 7aec624
cpu profiling add metrics
wokron 6185fa2
EBPFServerUnittest add cpu profiling
wokron 0030333
add container discovery options
wokron 8aa9645
update cmake in ebpf driver
wokron ce1bd6d
ListAllProcesses use ProcParser
wokron f227e25
process discovery support container id
wokron e0d057e
update container config in process discovery
wokron b2e7a3e
fix unused
wokron 496f874
update eBPFDriver
wokron 45700b8
support libprofiler set_host_root_path
wokron 102e24f
fix parseStackCnt
wokron 2dae7b2
cpu profiling event set timestamp
wokron ec0cb9c
update config parse logic
wokron 86c3fb8
add CpuProfilingManagerUnittest
wokron 130e661
refactor AddOrUpdateDiscovery
wokron b2139f9
fix build failure
wokron 040210d
support trace_id
wokron a1ad9c2
add livetrace_enable_tracing
wokron 969ea9d
update coolbpf commit
wokron 7f7d531
update build deps
wokron 55ea258
fix build
wokron 30970ad
disable container match
wokron b1b5b93
format code
wokron fc71c07
ContainerManager add handler
wokron 8d0e8cd
cpu profiling resupport container discovery
wokron 8ba1255
fix
wokron ca232c9
remove unused code
wokron 89839c4
use arms format
wokron f330544
fix
wokron 42bf65a
remove hard code
wokron 7913280
custom app name
wokron 036fc64
add language config
wokron 9c8a38e
replace hard code key
wokron ba6baa4
use NoCopy
wokron e6cd0ac
fix name
wokron 7528b1d
format code
wokron c8de186
support collect interval
wokron 399e504
support build libprofiler
wokron 4ce4e51
try fix build
wokron 64db983
styles update
wokron 9e1e38c
use raw string
wokron f87ea04
use BoostRegexMatch
wokron 3432235
remove retry logic
wokron dbfa24a
remove some assert
wokron 7ffda56
minor update
wokron 32d04fe
use StringTo
wokron cf99291
remove assert
wokron fd5a882
move CpuProfiler impl to source file
wokron 42e627a
UpdateDiscovery just pass ContainerDiff
wokron bb6b550
remove old UpdateDiscovery
wokron 2abe71a
move ContainerManager callback place
wokron df3e33a
refactor ContainerManager callback logic
wokron 90e2cd0
check regex in config init
wokron 7ffdbb7
fix build
wokron 1ffef40
update option init test
wokron 8191f24
add missing format
wokron f867fad
update todo comment
wokron ad368a1
update ProcessDiscoveryManager sleep interval
wokron 888bdf6
valNs use uint64
wokron b34daed
remove mContainerHandlersMutex
wokron 48da876
clean up apply diff logic
wokron c172191
refactor profiling collect interval
wokron 4b2d826
parseStackCnt and addContentToEvent become static method
wokron 7f5301c
unittest use shorter discovery interval
wokron ed1fb8a
check stack empty
wokron ced4e64
reserve size in addContentToEvent
wokron 631e70e
extract FindAllMatch method
wokron 8408ccc
add process match cache
wokron d4d420e
add test for addContentToEvent
wokron b540ae3
update parseStackCnt
wokron cf4e7c3
parseStackCnt unittest
wokron fa80ee9
add missing format
wokron 17fe8ef
add docs
wokron 1e280e4
reserve space for jsonLabels
wokron 3abcf77
also poll when pid is empty
wokron 0d955f1
better parseStackCnt
wokron a78b301
use Json::Value
wokron b2dcbf7
remove GetContainerHostPath
wokron 18352a2
add ContainerManager ut
wokron f006915
optim process discovery cache
wokron 9f1231f
remove uesless ListAllProcesses
wokron File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule coolbpf
updated
from bc2e5e to 111b2f
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.