Mercurial > flash_v2
changeset 428:1a165a40f156
Make TFTP port configurable.
| author | gthomas |
|---|---|
| date | Fri, 15 Nov 2002 15:03:49 +0000 |
| parents | 0ff80f81c4e8 |
| children | 63d0c56d82e8 |
| files | packages/services/profile/gprof/current/ChangeLog packages/services/profile/gprof/current/cdl/profile_gprof.cdl packages/services/profile/gprof/current/src/profile.c |
| diffstat | 3 files changed, 14 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/packages/services/profile/gprof/current/ChangeLog +++ b/packages/services/profile/gprof/current/ChangeLog @@ -1,6 +1,9 @@ 2002-11-15 Gary Thomas <gthomas@ecoscentric.com> * 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.
--- 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
--- 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); }
