Skip to content

Commit

Permalink
chore: move PPM_MAX_PATH_SIZE macro to tests
Browse files Browse the repository at this point in the history
Signed-off-by: Roberto Scolaro <roberto.scolaro21@gmail.com>
  • Loading branch information
therealbobo committed Jul 16, 2024
1 parent fc618da commit 4c2ed07
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion driver/ppm_events_public.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ or GPL2.txt for full copies of the license.
* Limits
*/
#define PPM_MAX_EVENT_PARAMS (1 << 5) /* Max number of parameters an event can have */
#define PPM_MAX_PATH_SIZE 1024 /* Max size that an event parameter can have in the circular buffer, in bytes */
#define PPM_MAX_NAME_LEN 32

/*
Expand Down
1 change: 1 addition & 0 deletions test/drivers/event_class/event_class.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

#define CURRENT_PID -1
#define CURRENT_EVENT_TYPE -1
#define PPM_MAX_PATH_SIZE 1024 /* Max size that an event parameter can have in the circular buffer, in bytes */

extern "C"
{
Expand Down
2 changes: 1 addition & 1 deletion test/libsinsp_e2e/sys_call_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2515,7 +2515,7 @@ TEST_F(sys_call_test, fd_name_max_path)
{
int callnum = 0;
std::string pathname("/");
pathname.insert(1, PPM_MAX_PATH_SIZE - 3, 'A');
pathname.insert(1, 1024, 'A');

event_filter_t filter = [&](sinsp_evt* evt)
{
Expand Down

0 comments on commit 4c2ed07

Please sign in to comment.