# HG changeset patch # User gthomas # Date 1037372629 0 # Node ID 1a165a40f1569dfd51622dabe2fbb0c71e0ba301 # Parent 0ff80f81c4e86f25bdc25aae90df09a36c0e4dac Make TFTP port configurable. diff --git a/packages/services/profile/gprof/current/ChangeLog b/packages/services/profile/gprof/current/ChangeLog --- a/packages/services/profile/gprof/current/ChangeLog +++ b/packages/services/profile/gprof/current/ChangeLog @@ -1,6 +1,9 @@ 2002-11-15 Gary Thomas * src/profile.c: + * cdl/profile_gprof.cdl: Allow TFTP port number to be configured. + + * src/profile.c: * include/profile.h: Add proper C++ protections. Change timer callback function to be __profile_hit() - less polluting. diff --git a/packages/services/profile/gprof/current/cdl/profile_gprof.cdl b/packages/services/profile/gprof/current/cdl/profile_gprof.cdl --- a/packages/services/profile/gprof/current/cdl/profile_gprof.cdl +++ b/packages/services/profile/gprof/current/cdl/profile_gprof.cdl @@ -73,6 +73,16 @@ cdl_package CYGPKG_PROFILE_GPROF { is platform dependent." } + cdl_option CYGNUM_PROFILE_TFTP_PORT { + display "Port used by TFTP server for profile data" + flavor data + default_value 0 + description " + This option sets the port number to use for the TFTP server + which exports the profiling data. A value of 0 will set + the port to be the IETF standard port of 69/udp." + } + cdl_option CYGPKG_PROFILE_TESTS { display "Profiling tests" flavor data diff --git a/packages/services/profile/gprof/current/src/profile.c b/packages/services/profile/gprof/current/src/profile.c --- a/packages/services/profile/gprof/current/src/profile.c +++ b/packages/services/profile/gprof/current/src/profile.c @@ -238,5 +238,5 @@ profile_on(void *_start, void *_end, int hal_enable_profile_timer(resolution); // Create a TFTP server to provide the data - tftp_server_id = tftpd_start(0, &profile_fileops); + tftp_server_id = tftpd_start(CYGNUM_PROFILE_TFTP_PORT, &profile_fileops); }