aboutsummaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)Author
2011-09-28Migrate from gnome-vfs to gio, gnome-vfs is obsolete.Zhai Edwin
Signed-off-by: Zhai Edwin <edwin.zhai@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-09-28After enabling more careful linking within Yocto, a missing library ↵Nitin A Kamble
dependency was found (libm) so add this to the LDFLAGS. This patch avoids this linking error: | make[2]: Entering directory `/disk0/pokybuild/build1/tmp/work/i586-poky-linux/oprofileui-0.0+svnr197-r0/trunk/src' | ccache i586-poky-linux-gcc -march=i586 --sysroot=/disk0/pokybuild/build1/tmp/sysroots/i586-poky-linux -Wall -g -std=gnu99 -DPKG_DATA_DIR=\""/usr/share/oprofileui"\" -fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2 -ggdb -feliminate-unused-debug-types -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -o oprofile-viewer main.o client.o archive.o archive_window.o archive_save_window.o view.o report.o parser.o image.o symbol.o module.o symbol_instance.o module_instance.o callee_symbol_instance.o caller_symbol_instance.o state-util.o -pthread -lglade-2.0 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lxml2 -lgnomevfs-2 -lgmodule-2.0 -lgconf-2 -ldbus-glib-1 -ldbus-1 -lpthread -lgobject-2.0 -lgthread-2.0 -lrt -lglib-2.0 -pthread -lavahi-ui -lgtk-x11-2.0 -lavahi-common -lavahi-client -lavahi-glib -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 ../protocol/libop.a | /disk0/pokybuild/build1/tmp/sysroots/x86_64-linux/usr/libexec/i586-poky-linux/gcc/i586-poky-linux/4.5.1/ld: ^X^B: invalid DSO for symbol `log@@GLIBC_2.0' definition | /disk0/pokybuild/build1/tmp/sysroots/i586-poky-linux/lib/libm.so.6: could not read symbols: Bad value^M | collect2: ld returned 1 exit status^M | make[2]: *** [oprofile-viewer] Error 1 Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com> Signed-off-by: Edwin Zhai <edwin.zhai@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-03-14oprofileui: Correctly free GError struct.Lianhao Lu
[YOCTO #865] GError should freed by g_clear_error instead of g_free. Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
2010-12-10Update communications for new packet layout and to do endian conversionJoshua Lock
Patch from Lianhao Lu <lianhao.lu@intel.com>: "1. Changed packet layout comptible for common network packet layout, and upgraded the protocol version to 5. 2. Changed server/client code to do endian conversion between host/net endian of integer field of protocol packet. 3. In client, fixed an original array dereference error when it needed multiple read operations to get a full response header. 4. In client, fixed an original error happened in the archive->filestat->get command chain. The error happened due to the mismatch of command and response. 5. In both server/code, fixed an error of misusing memset." Fixes Yocto bug #382 [BUGID #382] Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-12-10Only re-send STATUS command after a succesful CONFIGJoshua Lock
Patch from Lianhao Lu <lianhao.lu@intel.com> "It added the checking of the CONFIG response and made it only re-send the STATUS command for successful CONFIG." Fixes Yocto bug #493 [BUGID #493] Signed-off-by: Joshua Lock <josh@linux.intel.com>
2008-07-152008-07-15 Joshua Lock <josh@o-hand.com>josh
* src/window-util.c: * src/window-util.h: These files where renamed to state-util.[ch] and should have been removed with the last commit. git-svn-id: http://svn.o-hand.com/repos/oprofileui/trunk@197 c51cf7d2-cc27-0410-ae70-8b2b087dd3d4
2008-07-15 2008-07-02 Joshua Lock <josh@o-hand.com>josh
* data/oprofile-viewer.glade: Remove visible property from window. * src/Makefile.am: * src/main.c (main): * src/window-util.c (get_filename), (get), (get_key_file), (on_unmap), (window_bind_state): * src/window-util.h: Add window-util.[ch], stolen from Tasks, to save window state. git-svn-id: http://svn.o-hand.com/repos/oprofileui/trunk@196 c51cf7d2-cc27-0410-ae70-8b2b087dd3d4
2008-07-022008-07-02 Joshua Lock <josh@o-hand.com>josh
* data/oprofile-viewer.glade: Remove visible property from window. * src/Makefile.am: * src/main.c (main): * src/window-util.c (get_filename), (get), (get_key_file), (on_unmap), (window_bind_state): * src/window-util.h: Add window-util.[ch], stolen from Tasks, to save window state. git-svn-id: http://svn.o-hand.com/repos/oprofileui/trunk@194 c51cf7d2-cc27-0410-ae70-8b2b087dd3d4
2008-07-022008-07-02 Richard Purdie <rpurdie@openedhand.com>richard
* src/client.c: * src/archive.c: * src/archive.h: * protocol/command.h: * protocol/response.h: * server/opserver.c: Add the mode field to the filestat structure allowing directories to be detected and ignored since recent oparchive seems to list them. Increase the protocol version since the fields structure changed. git-svn-id: http://svn.o-hand.com/repos/oprofileui/trunk@193 c51cf7d2-cc27-0410-ae70-8b2b087dd3d4
2008-07-012008-07-01 Rob Bradford <rob@openedhand.com>rob
* src/report.c (report_generate_from_archive): Use --root in the localhost case in order to get the binaries (and in theory debug information.) git-svn-id: http://svn.o-hand.com/repos/oprofileui/trunk@192 c51cf7d2-cc27-0410-ae70-8b2b087dd3d4
2008-06-30Small fix so that the cancel button in the save dialog works.josh
git-svn-id: http://svn.o-hand.com/repos/oprofileui/trunk@190 c51cf7d2-cc27-0410-ae70-8b2b087dd3d4
2008-06-282008-06-29 Rob Bradford <rob@openedhand.com>rob
* src/testparser.c (main): Fix lack of initialisation of the opui_config structure. git-svn-id: http://svn.o-hand.com/repos/oprofileui/trunk@188 c51cf7d2-cc27-0410-ae70-8b2b087dd3d4
2008-06-26Squashed commit of protocol-reworkrob
2008-06-26 Rob Bradford <rob@openedhand.com> * protocol/command.h: * protocol/response.h: * server/opserver.c (server_response_new), (server_do_command_wrapper), (server_handle_command_start), (server_handle_command_config), (server_handle_command_stop), (server_handle_command_status), (server_handle_command_reset), (server_handle_command_archive), (server_parse_open_file), (server_handle_command_get), (server_handle_command_filestat), (server_handle_command_unknown), (server_handle_command), (server_handle_connection): * src/archive.c (archive_handle_response): * src/archive.h: * src/client.c (client_handle_response_status), (client_handle_response_config), (client_handle_response_stop), (client_handle_response_reset), (client_handle_response_start), (client_handle_response_archive), (client_handle_response_get), (client_handle_response_filestat), (client_channel_read_cb), (client_command_new), (client_send_command), (client_send_command_archive), (client_send_command_get), (client_send_command_filestat), (client_send_command_start), (client_send_command_config), (client_send_command_reset), (client_send_command_stop), (client_send_command_status): * src/client.h: * src/main.c (main_status_response_cb): * src/main.h: Rework client-server protocol. git-svn-id: http://svn.o-hand.com/repos/oprofileui/trunk@187 c51cf7d2-cc27-0410-ae70-8b2b087dd3d4
2008-06-03Squashed commit of fix-warningsrob
2008-06-03 Rob Bradford <rob@openedhand.com> * server/opserver.c (server_handle_command_config), (server_parse_open_file), (server_handle_connection): * src/client.c (client_channel_read_cb): Fix compiler warnings: Cast protocol buffers correctly. Fix ambiguous if..else.. with bracketing. git-svn-id: http://svn.o-hand.com/repos/oprofileui/trunk@185 c51cf7d2-cc27-0410-ae70-8b2b087dd3d4
2008-06-032008-06-03 Ross Burton <ross@openedhand.com>ross
* configure.ac: Look for avahi-ui * src/Makefile.am: * src/avahi-ui.[ch]: Remove avahi-ui source, use the library. * src/main.c: Update. git-svn-id: http://svn.o-hand.com/repos/oprofileui/trunk@184 c51cf7d2-cc27-0410-ae70-8b2b087dd3d4
2008-02-152008-02-15 Rob Bradford <rob@openedhand.com>rob
* src/main.c: (on_options_clicked), (main_load_default_config), (main): Add command line options to pre-specify the supplementary binary search path. git-svn-id: http://svn.o-hand.com/repos/oprofileui/trunk@175 c51cf7d2-cc27-0410-ae70-8b2b087dd3d4
2008-02-11avahi-ui.c: Fix header namerichard
git-svn-id: http://svn.o-hand.com/repos/oprofileui/trunk@172 c51cf7d2-cc27-0410-ae70-8b2b087dd3d4
2008-02-052008-02-05 Ross Burton <ross@openedhand.com>ross
* src/archive_window.c: Set the downloading window as transient for the main window. git-svn-id: http://svn.o-hand.com/repos/oprofileui/trunk@171 c51cf7d2-cc27-0410-ae70-8b2b087dd3d4
2008-01-232008-01-23 Rob Bradford <rob@openedhand.com>rob
* src/main.c: (main_load_default_config), (main): Add command line options to pre-specify host and port. git-svn-id: http://svn.o-hand.com/repos/oprofileui/trunk@170 c51cf7d2-cc27-0410-ae70-8b2b087dd3d4
2007-10-252007-10-25 Rob Bradford <rob@openedhand.com>rob
* Makefile.am: * configure.ac: * data/Makefile.am: Add magic for i18n. * src/Makefile.am: Include oprofileui.h in oprofile_viewer_SOURCES so that it gets included in the dist. * data/oprofile-viewer.desktop.in: Replacement for oprofile-viewer.desktop * src/archive_save_window.c: (archive_save_window_show), (archive_save_window_progress): * src/archive_window.c: (archive_window_show), (archive_window_file_list_finished), (archive_window_file_get_started): * src/avahi-ui.c: (client_callback), (resolve_callback), (browse_callback), (domain_browse_callback), (get_domain_name), (start_callback), (response_callback), (domain_button_clicked), (aui_service_dialog_init): * src/client.c: (client_handle_response_status), (client_connect): * src/main.c: (main_connection_lost_cb), (on_save_clicked), (on_open_clicked), (on_compare_clicked), (on_menu_about_activate), (main): * src/view.c: (view_show_details_symbol_common_tv_setup), (view_show_details_symbol_common), (view_show_details_module), (view_setup_symbol_instances_tv), (view_setup_module_instances_tv), (view_setup): Gettextify strings. git-svn-id: http://svn.o-hand.com/repos/oprofileui/trunk@163 c51cf7d2-cc27-0410-ae70-8b2b087dd3d4
2007-10-242007-10-23 Jorn Baayen <jorn@openedhand.com>jorn
* data/oprofile-viewer.glade: Add "(Un)compare" menu items and "Compare" toolbar item. * src/main.c: (on_disconnect_clicked), (main): Handle new menu and toolbar items. * src/report.c: (report_generate_from_archive), (report_new_from_archive_path), (compare_image), (compare_module), (compare_module_instance), (compare_symbol), (compare_symbol_instance), (report_get_treestore), (report_get_symbol_details_liststore), (report_update_child_list_model), (report_get_symbol_instance_callers), (report_get_symbol_instance_callees), (report_get_symbol_callers), (report_get_symbol_callees), (report_get_module_details_liststore): * src/report.h: Add support for comparing against a different report. Plug a leak. * src/view.c: (view_get_property), (view_set_property), (search_comparison_func), (cell_colourer), (view_show_details_symbol_common_tv_setup), (view_show_details_symbol_common), (view_show_details_symbol_instance), (view_show_details_symbol), (view_show_details_module), (on_tree_selection_changed), (view_setup_symbol_instances_tv), (view_setup_module_instances_tv), (view_setup), (view_set_display_mode), (view_class_init): Show a column with percentage increases when the displayed report is being compared against another. Display a percentage increase label in the module and symbol "Details" tabs. Plug several leaks. git-svn-id: http://svn.o-hand.com/repos/oprofileui/trunk@161 c51cf7d2-cc27-0410-ae70-8b2b087dd3d4
2007-10-05src/archive.c: Update archive save/open functionality after recent archive ↵richard
changes (see changelog). git-svn-id: http://svn.o-hand.com/repos/oprofileui/trunk@160 c51cf7d2-cc27-0410-ae70-8b2b087dd3d4
2007-10-03archive.c: Add hostname and port into the cache path for better cache ↵richard
performance with multiple hosts git-svn-id: http://svn.o-hand.com/repos/oprofileui/trunk@158 c51cf7d2-cc27-0410-ae70-8b2b087dd3d4
2007-10-03report.c: Convert to use --root option with oprofile instead of ↵richard
--image-path. This requires a patched oprofile but is the only way sysroot style support is going to work. git-svn-id: http://svn.o-hand.com/repos/oprofileui/trunk@156 c51cf7d2-cc27-0410-ae70-8b2b087dd3d4
2007-10-01archive.c: Localhost and remote host downloading optimisations (see Changelog)richard
git-svn-id: http://svn.o-hand.com/repos/oprofileui/trunk@154 c51cf7d2-cc27-0410-ae70-8b2b087dd3d4
2007-10-01archive: Remove get_finished varable and simplify logic a bit, add ↵richard
archive_file for the actively downloading file. git-svn-id: http://svn.o-hand.com/repos/oprofileui/trunk@153 c51cf7d2-cc27-0410-ae70-8b2b087dd3d4
2007-10-01archive: Split archive_path into two paths using the pid for the base path ↵richard
and placing the active trace files in an active directory. Split the cleanup functions to mirror this. Create archive_removedir funciton for code reuse. git-svn-id: http://svn.o-hand.com/repos/oprofileui/trunk@152 c51cf7d2-cc27-0410-ae70-8b2b087dd3d4
2007-10-01client: Add filestat send and response routines, simplify an error handling ↵richard
printf, fix filestat response handling. archive: Add simple archive_filestat_got routine. git-svn-id: http://svn.o-hand.com/repos/oprofileui/trunk@151 c51cf7d2-cc27-0410-ae70-8b2b087dd3d4
2007-10-01report.c: Optimise for localhost, pass image-path option to opreport if set ↵richard
(and if not localhost). Passing directories containing large numbers of files causes opreport to OOM due to bad design in opreport. git-svn-id: http://svn.o-hand.com/repos/oprofileui/trunk@149 c51cf7d2-cc27-0410-ae70-8b2b087dd3d4
2007-10-01Generate dummy config structure in testparser so we can safely reference the ↵richard
config variables in shared code git-svn-id: http://svn.o-hand.com/repos/oprofileui/trunk@148 c51cf7d2-cc27-0410-ae70-8b2b087dd3d4
2007-10-01Move oprofileui_config to a new more global header file and fix a typo in ↵richard
one of its members. git-svn-id: http://svn.o-hand.com/repos/oprofileui/trunk@147 c51cf7d2-cc27-0410-ae70-8b2b087dd3d4
2007-09-28Call the gtk main loop when downloading files to keep the progress bar updatedrichard
git-svn-id: http://svn.o-hand.com/repos/oprofileui/trunk@146 c51cf7d2-cc27-0410-ae70-8b2b087dd3d4
2007-09-26Change status response to contain a version field so server/viewer mismatch ↵richard
can be easily detected. git-svn-id: http://svn.o-hand.com/repos/oprofileui/trunk@145 c51cf7d2-cc27-0410-ae70-8b2b087dd3d4
2007-09-26Add settings dialog and connect into gconf and the app.richard
git-svn-id: http://svn.o-hand.com/repos/oprofileui/trunk@144 c51cf7d2-cc27-0410-ae70-8b2b087dd3d4
2007-09-26Don't require a status update after starting profiling (hence reducing ↵richard
impact on the profiled system). git-svn-id: http://svn.o-hand.com/repos/oprofileui/trunk@143 c51cf7d2-cc27-0410-ae70-8b2b087dd3d4
2007-09-262007-09-26 Rob Bradford <rob@openedhand.com>rob
* src/main.c: (main_set_state): Set the cursor to the GDK_BUSY state when the application is 'busy'. git-svn-id: http://svn.o-hand.com/repos/oprofileui/trunk@142 c51cf7d2-cc27-0410-ae70-8b2b087dd3d4
2007-09-25Add a 'config' command to the server separating this from the 'start' ↵richard
command to decrese the overhead of starting traces. git-svn-id: http://svn.o-hand.com/repos/oprofileui/trunk@141 c51cf7d2-cc27-0410-ae70-8b2b087dd3d4
2007-09-25Hide the archive window if the download fails allowing program operation to ↵richard
continue. git-svn-id: http://svn.o-hand.com/repos/oprofileui/trunk@140 c51cf7d2-cc27-0410-ae70-8b2b087dd3d4
2007-09-25Refactor control button/menu sensitivity settings into a common function ↵richard
with different states. git-svn-id: http://svn.o-hand.com/repos/oprofileui/trunk@139 c51cf7d2-cc27-0410-ae70-8b2b087dd3d4
2007-09-252007-09-25 Rob Bradford <rob@openedhand.com>rob
* src/main.c: (main_archive_finished_cb), (on_open_clicked), (on_menu_group_by_application_toggled), (on_menu_group_by_module_toggled), (on_filter_entry_activate), (on_filter_clear_button_clicked), (main): Switch to using the revamped View and Report objects. * src/parser.c: (parser_state_new), (lookup_in_module_table): Tidy up the parser code. Remove unnecessary code. * src/report.c: (report_class_init), (report_init), (report_generate_from_archive), (report_new_from_archive_path), (report_get_treestore), (report_get_symbol_details_liststore), (report_update_child_list_model), (report_get_symbol_instance_callers), (report_get_symbol_instance_callees), (report_get_symbol_callers), (report_get_symbol_callees), (report_get_module_details_liststore): * src/report.h: Switch the Report class away from being a singleton and make the API more GObjecty. * src/view.c: (view_get_property), (view_set_property), (filter_func), (search_comparison_func), (cell_colourer), (view_show_details_symbol_common), (view_show_details_symbol_instance), (view_show_details_symbol), (view_show_details_module), (on_tree_selection_changed), (view_setup_symbol_instances_tv), (view_setup_module_instances_tv), (view_setup), (view_set_display_mode), (view_class_init), (view_init), (view_new): * src/view.h: Make view a GObject and maintain state internally. git-svn-id: http://svn.o-hand.com/repos/oprofileui/trunk@137 c51cf7d2-cc27-0410-ae70-8b2b087dd3d4
2007-09-25Add gconf support for connect_dialog optionsrichard
git-svn-id: http://svn.o-hand.com/repos/oprofileui/trunk@135 c51cf7d2-cc27-0410-ae70-8b2b087dd3d4
2007-09-24Add locahost option to connection dialogrichard
git-svn-id: http://svn.o-hand.com/repos/oprofileui/trunk@132 c51cf7d2-cc27-0410-ae70-8b2b087dd3d4
2007-09-24Add support for connecting to a local domain socket.richard
git-svn-id: http://svn.o-hand.com/repos/oprofileui/trunk@131 c51cf7d2-cc27-0410-ae70-8b2b087dd3d4
2007-07-182007-07-18 Ross Burton <ross@openedhand.com>ross
* src/avahi-ui.[ch]: * src/Makefile.am Add copy of the avahi service browser widget * data/oprofile-viewer.glade: * src/main.c: Add a Browse button to the Connect dialog if avahi is enabled. git-svn-id: http://svn.o-hand.com/repos/oprofileui/trunk@127 c51cf7d2-cc27-0410-ae70-8b2b087dd3d4
2007-05-132007-05-13 Rob Bradford <rob@openedhand.com>rob
* src/main.c: Remove backend.h and remote_backend.h includes that slipped into the last commit. git-svn-id: http://svn.o-hand.com/repos/oprofileui/trunk@124 c51cf7d2-cc27-0410-ae70-8b2b087dd3d4
2007-05-062007-05-06 Rob Bradford <rob@openedhand.com>rob
* src/archive.c: (archive_get_next_file), (archive_handle_response), (archive_file_got): * src/archive.h: * src/client.c: (client_handle_response_status), (client_handle_response_stop), (client_handle_response_reset), (client_handle_response_start), (client_handle_response_archive), (client_handle_response_get), (client_handle_connection_lost), (client_channel_read_cb), (client_connect), (client_disconnect), (client_send_command), (client_send_command_archive), (client_send_command_get), (client_send_command_start), (client_send_command_reset), (client_send_command_stop), (client_send_command_status), (client_new): * src/client.h: * src/main.c: (on_stop_clicked), (on_reset_clicked), (on_start_clicked), (on_download_clicked), (main_start_response_cb), (main_stop_response_cb), (main_reset_response_cb), (main_archive_response_cb), (main_archive_finished_cb), (main_connect_response_cb), (on_connect_clicked), (on_disconnect_clicked), (main): Move from static variables in client.c to a struct allocated on the heap. git-svn-id: http://svn.o-hand.com/repos/oprofileui/trunk@123 c51cf7d2-cc27-0410-ae70-8b2b087dd3d4
2007-04-162007-04-16 Ross Burton <ross@openedhand.com>ross
* protocol/*: * server/*: * src/*: * Makefile.am: * configure.ac: Split shared source into protocol/, the server into server/, and keep just the client in src/. git-svn-id: http://svn.o-hand.com/repos/oprofileui/trunk@118 c51cf7d2-cc27-0410-ae70-8b2b087dd3d4
2007-04-132007-04-13 Rob Bradford <rob@openedhand.com>rob
* src/main.c: (main): Set the default icon for the windows. git-svn-id: http://svn.o-hand.com/repos/oprofileui/trunk@113 c51cf7d2-cc27-0410-ae70-8b2b087dd3d4
2007-04-132007-04-13 Rob Bradford <rob@openedhand.com>rob
* src/main.c: (on_menu_about_activate): Fix email address in about box and add copyright statement. git-svn-id: http://svn.o-hand.com/repos/oprofileui/trunk@106 c51cf7d2-cc27-0410-ae70-8b2b087dd3d4
2007-04-122007-04-12 Rob Bradford <rob@openedhand.com>rob
* src/archive.c: (archive_get_archive_path): Use the contents of the TMPDIR environment variable when generating the archive path (patch from Eero Tamminen.) git-svn-id: http://svn.o-hand.com/repos/oprofileui/trunk@105 c51cf7d2-cc27-0410-ae70-8b2b087dd3d4