summaryrefslogtreecommitdiffstats
path: root/src/include/report
Commit message (Collapse)AuthorAgeFilesLines
* split libreport to a separate packageJiri Moskovcak2011-06-085-410/+0
|
* wizard: hook selection checkboxes to reporters.Denys Vlasenko2011-06-012-5/+17
| | | | | | | | | | | | | | | | | | | | | Checkboxes are controlled by the following elements in .xml: <requires-items> ITEM1,ITEM2 </requires-items> <exclude-items-by-default> ITEM1,ITEM2 </exclude-items-by-default> <exclude-items-always> ITEM1,ITEM2 </exclude-items-always> <exclude-binary-items> yes / no </exclude-binary-items> <include-items-by-default> ITEM1,ITEM2 </include-items-by-default> exclude-items-by-default and exclude-items-always can be "*" meaning "all". include-items-by-default specifies which items are included (checked) is exclude-items-by-default is "*". Else, all are checked by default. the set of iters NOT included is passed in $EXCLUDE_FROM_REPORT variable. bugzilla, kerneloops, mailx, print and rhtsupport are made aware of this variable. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* include/report/report.h: change API from having more functions to having ↵Denys Vlasenko2011-05-241-18/+11
| | | | | | | | | | | | | | | more flags Now we have three functions instead of four: int report_problem_in_dir(const char *dirname, int flags); int report_problem_in_memory(problem_data_t *pd, int flags); int report_problem(problem_data_t *pd); (third one is a trivial wrapper around report_problem_in_memory), and two new flags LIBREPORT_ANALYZE and LIBREPORT_RELOAD_DATA. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* assorted cleanups, memory leak fix (g_list_free in add_basics_to_problem_data)Denys Vlasenko2011-05-221-2/+2
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* Merge branch 'master' of git://git.fedorahosted.org/git/abrtJiri Moskovcak2011-05-191-17/+1
|\
| * move vector of pd's cod to cli, its only userDenys Vlasenko2011-05-191-17/+1
| | | | | | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* | report C API improvementsJiri Moskovcak2011-05-182-2/+10
|/
* run_event.c: fix "EVENT=post-create component=mypkg doesn't work" bug. ↵Denys Vlasenko2011-05-171-1/+1
| | | | | | Closes bz#531365 Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* smart_event.conf: suppress stray output of "which" commandDenys Vlasenko2011-05-171-2/+2
| | | | | | Also, fix some typos in comments Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* fixed copyright textJiri Moskovcak2011-05-161-2/+2
|
* report api proposalJiri Moskovcak2011-05-131-0/+43
|
* Do away with reanalyze eventsDenys Vlasenko2011-05-101-0/+1
| | | | | | | | Now code determines whether analyze event can be skipped by looking at <creates-elements>backtrace</creates-elements> element in .xml file. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* mass replace of crash_data with problem_dataDenys Vlasenko2011-04-233-28/+28
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* Implement the possibility to add text labels to even config GUI. Closes #199.Denys Vlasenko2011-04-151-5/+7
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* wizard: implement long descriptionsDenys Vlasenko2011-04-141-4/+5
| | | | | | | | The change is somewhat big because I can no longer (ab)use tooltip to store event name. So I created a bit more generic method of remembering which events are shown and selected. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* abrt-cli is one of several places where we hardcode usage of variousDenys Vlasenko2011-04-081-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | elements of dump directory. This patch changes it to generic handling, where abrt-cli doesn't know anything about particular elements (like backtrace). Changes in detail: * crash_item->flags how has CD_FLAG_UNIXTIME bit. * format_crash_item(item) returns malloced formatted string (currently only formatted time for items with CD_FLAG_UNIXTIME) or NULL, if item->content is to be used as-is * crash_item->flags how has CD_FLAG_LIST bit, it is set on a small number of elements which are to be shown by abrt-cli -l. * abrt-cli -l doesn't use fixed names, it looks at CD_FLAG_LIST. * abrt-cli -i doesn't use fixed names, it prints all one-line elements: Directory : /var/spool/abrt/ccpp-1298264192-2705 analyzer : CCpp architecture : x86_64 cmdline : metacity comment : Abrt testing, please disregard component : metacity coredump : /var/spool/abrt/ccpp-1298264192-2705/coredump count : 1 crash_function : pa_atomic_load executable : /usr/bin/metacity global_uuid : 1e8b716d2094fb22dccdb5321ac0cf6f14eb6689 hostname : dhcp-25-227.brq.redhat.com kernel : 2.6.34.7-61.fc13.x86_64 os_release : Fedora release 13 (Goddard) package : metacity-2.30.0-3.fc13 rating : 4 reason : Process /usr/bin/metacity was killed by signal 11 (SIGSEGV) time : Mon 21 Feb 2011 05:56:32 AM CET uid : 500 uuid : 453085d0f703b96ddc3a5172dd7d5a29479f5b3f * abrt-cli -i --backtrace is removed. Instead, abrt-cli -i --full is to be used. It shows all elements, one-line and multi-line ones. * abrt-cli code now has an example how to list crast_data_t in the sorted-by-key order. Further ideas: abrt-cli needs -o elem1,elem2,elem3 option which tells which elements to show, and/or -O elem1,elem2,elem3 option which tells elements to NOT show. Rationale: abrt-cli -i --full output is way too long because of smaps, need a way to suppress unneeded elements display Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* make validate_event_option staticNikola Pajkovsky2011-03-301-1/+0
| | | | Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>
* Merge branch 'event'Nikola Pajkovsky2011-03-251-0/+3
|\ | | | | | | | | | | * event: validate input in cli and fix ask_for_missing_settings function parse and store 'allow-empty' value
| * validate input in cli and fix ask_for_missing_settings functionNikola Pajkovsky2011-03-221-0/+3
| | | | | | | | Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>
| * parse and store 'allow-empty' valueNikola Pajkovsky2011-03-171-0/+1
| | | | | | | | Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>
* | extend dump_dir to allow creating world-readable directoryJiri Moskovcak2011-03-241-1/+3
| | | | | | | | - so far used only by kerneloops
* | parse and store 'allow-empty' valueNikola Pajkovsky2011-03-221-0/+1
|/ | | | Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>
* expose export/unexport_event_configNikola Pajkovsky2011-03-171-0/+12
| | | | Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>
* gui-wizard-gtk: sanitize file mode/uid/gid after event runDenys Vlasenko2011-03-151-0/+3
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* abrt-gui: save event settings in gnome keyringJiri Moskovcak2011-03-141-0/+1
|
* put code shared among gui and wizard into libreportgtkJiri Moskovcak2011-03-141-1/+1
|
* gui-wizard-gtk: make one-line text elements selectable with mouseDenys Vlasenko2011-03-111-3/+0
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* remove some not needed fields from event_configJiri Moskovcak2011-03-091-8/+8
|
* view details in extrenal editor for multiline non-binary filesNikola Pajkovsky2011-03-091-0/+4
| | | | Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>
* added event description support into xml parserJiri Moskovcak2011-03-081-0/+1
| | | | | | | - so event now has: action: description of what will happen when this event is used - the main purpose is for the event selector in wizard description: description of the event
* implement load_event_config_data. Untested.Denys Vlasenko2011-03-081-0/+7
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* Merge branch 'master' of ssh://git.fedorahosted.org/git/abrtJiri Moskovcak2011-03-071-1/+24
|\ | | | | | | | | Conflicts: src/include/report/event_config.h
| * add license and #ifdef EVENT_CONFIG_H around headerNikola Pajkovsky2011-03-071-1/+24
| | | | | | | | Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>
* | added event_config.c stubJiri Moskovcak2011-03-071-1/+1
|/
* renamed some files, no code changesJiri Moskovcak2011-03-071-1/+9
|
* event_option_obj_t -> event_option_t, event_obj_t -> event_config_tJiri Moskovcak2011-03-071-3/+3
|
* event_xml_parser: string fields shouldn't be const, moved name and value ↵Jiri Moskovcak2011-03-071-7/+7
| | | | higher in the structure
* minor build fixesJiri Moskovcak2011-03-071-0/+2
|
* added function to parse event description from xml fileJiri Moskovcak2011-03-071-0/+41
|
* gui-wizard-gtk: fix stealing againDenys Vlasenko2011-03-031-4/+5
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* dump_dir API: rename dd_dir field to dd_dirnameDenys Vlasenko2011-02-281-2/+2
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* change stealing semantics from copy to moveDenys Vlasenko2011-02-251-1/+2
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* gui-wizard-gtk: make [Refresh] button workDenys Vlasenko2011-02-241-1/+4
| | | | | | | Looks for reanalyze_FOO events, enables them on "Select analyzer" page and sends user go to that page to pick the [re]analyzer to run. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* gui-wizard-gtk: run multiple reporters if they are selectedDenys Vlasenko2011-02-231-1/+1
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* gui-wizard-gtk: add forward_page_func which skips analyze step when it is ↵Denys Vlasenko2011-02-221-1/+1
| | | | | | missing Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* run_event: add async run event machineryDenys Vlasenko2011-02-181-0/+23
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* gui-wizard-gtk: show correct list of analyzers availableDenys Vlasenko2011-02-171-0/+1
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* get rid of unused CD_FLAG_SYSNikola Pajkovsky2011-02-161-5/+4
| | | | Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>
* run_event: fix comment which become outdated after recent changeDenys Vlasenko2011-02-011-1/+0
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* abrt-cli -r DIR: copy non-writable DIR into $HOME/abrt/spoolDenys Vlasenko2011-02-011-1/+3
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>