summaryrefslogtreecommitdiffstats
path: root/src/include
Commit message (Collapse)AuthorAgeFilesLines
* split libreport to a separate packageJiri Moskovcak2011-06-087-624/+3
|
* 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>
* abrt-action-bugzilla: fold make_description_comment into its only callsiteDenys Vlasenko2011-05-241-2/+0
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* rename "global_uuid" element to "duphash"Denys Vlasenko2011-05-231-1/+1
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* remove old commentDenys Vlasenko2011-05-231-1/+0
| | | | 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-193-17/+10
|\
| * move vector of pd's cod to cli, its only userDenys Vlasenko2011-05-191-17/+1
| | | | | | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
| * reenable kernel taintNikola Pajkovsky2011-05-192-0/+9
| | | | | | | | | | | | | | | | abrt-dump-oops stores two new files into dump dir. kernel_tainted_short which is representation of kernel tainted value (P----T). kernel_tainted_long contains human readable strings of short version Signed-off-by: Nikola Pajkovsky <npajkovs@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>
* rename "rating" -> "backtrace_rating", "dsos" -> "dso_list"Denys Vlasenko2011-05-161-2/+1
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* fixed copyright textJiri Moskovcak2011-05-161-2/+2
|
* Merge branch 'master' into report_apiJiri Moskovcak2011-05-131-1/+1
|\
| * whitespace fixes. no code changesDenys Vlasenko2011-05-111-1/+1
| | | | | | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* | report api proposalJiri Moskovcak2011-05-132-1/+45
|/
* 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>
* abrt-cli: incorporate most of abrt-handle-crashdump functionalityDenys Vlasenko2011-05-041-0/+1
| | | | | | The only finction not included is -l[PFX] - list possible events. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* Logger: output "END:" line to delimit appended reports. closes bz#698458Denys Vlasenko2011-04-282-5/+18
| | | | | | Also changes Bugzilla and abrt-cli output format. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* mass replace of crash_data with problem_dataDenys Vlasenko2011-04-236-42/+42
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* delete ugly parse_conf(), use load_abrt_conf() insteadDenys Vlasenko2011-04-201-0/+1
| | | | | | Therefore moved abrt_conf.* to libreport Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* daemon: simplify parsing of settings; remove remaining c++isms in daemonDenys Vlasenko2011-04-201-26/+1
| | | | | | | | This change will not compile, because in C++, void* cannot be automatically cast to char*. Next change renames Settings.cpp to *.c and fixes this. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* daemon: remove unused dbus calls and their support codeDenys Vlasenko2011-04-191-8/+0
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* abrt-hook-ccpp: add saving of environ, disable saving of smaps. closes #91Denys Vlasenko2011-04-182-0/+3
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* switch python and oops hashing to sha1Denys Vlasenko2011-04-181-1/+0
| | | | | | | Update sha1 code to a smaller version. Verified that ccpp hashing produces the same results as the old code. 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>
* rhbz#692465 - Blacklist doesn't workNikola Pajkovsky2011-04-041-0/+2
| | | | | | | | | parse_value() doesn't trim the string. Lest say BlackList = coreutils, mono the parsed list looks like -> 'coreutils', ' mono' Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>
* make validate_event_option staticNikola Pajkovsky2011-03-301-1/+0
| | | | Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>
* abrt-action-trim-files: new tool for trimming old debuginfo and debug dumpsDenys Vlasenko2011-03-261-0/+1
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* remove FILENAME_INFORMALL and tighten up some loose endsDenys Vlasenko2011-03-251-1/+0
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@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>
* | Replace FILENAME_MESSAGE with FILENAME_REPORTED_TO.Denys Vlasenko2011-03-181-1/+10
|/ | | | | | | | | | | This fixes the problem with abrt-cli not showing unreported bugs and abrt-gui not showing "green lamp" for reported bugs. In general, it introduces a way to record reporting results, such as Bugzilla URL, in dump dir. In the future, this enables such functions as "check BZ status". Signed-off-by: Denys Vlasenko <dvlasenk@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>
* gui-wizard-gtk: save event processing logDenys Vlasenko2011-03-151-10/+16
| | | | 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>